; LLVM IR from Overload-Technologies/Overload :: Dependencies/assimp/code/PostProcessing (ScaleProcess)

; 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"

%class.aiVector3t = type { float, float, float }
%class.aiQuaterniont = type { float, float, float, float }
%class.aiMatrix4x4t = type { float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float }
%class.aiMatrix3x3t = type { float, float, float, float, float, float, float, float, float }
%"class.Assimp::ScaleProcess" = type <{ %"class.Assimp::BaseProcess", float, [4 x i8] }>
%"class.Assimp::BaseProcess" = type { ptr, ptr, ptr }
%struct.aiScene = type { i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, ptr, %struct.aiString, i32, ptr, ptr }
%struct.aiString = type { i32, [1024 x i8] }
%struct.aiAnimation = type { %struct.aiString, double, double, i32, ptr, i32, ptr, i32, ptr }
%struct.aiNodeAnim = type { %struct.aiString, i32, ptr, i32, ptr, i32, ptr, i32, i32 }
%struct.aiVectorKey = type { double, %class.aiVector3t, i32 }
%struct.aiMesh = type { i32, i32, i32, ptr, ptr, ptr, ptr, [8 x ptr], [8 x ptr], [8 x i32], ptr, i32, ptr, i32, %struct.aiString, i32, ptr, i32, %struct.aiAABB, ptr }
%struct.aiAABB = type { %class.aiVector3t, %class.aiVector3t }
%struct.aiBone = type { %struct.aiString, i32, ptr, ptr, ptr, %class.aiMatrix4x4t }
%struct.aiAnimMesh = type { %struct.aiString, ptr, ptr, ptr, ptr, [8 x ptr], [8 x ptr], i32, float }

@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [121 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [29 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: mustprogress uwtable
define dso_local void @_ZN6Assimp12ScaleProcess7ExecuteEP7aiScene(ptr noundef nonnull align 8 dereferenceable(28) %0, ptr noundef %1) unnamed_addr #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca %class.aiVector3t, align 4
  %19 = alloca %class.aiVector3t, align 4
  %20 = alloca %class.aiQuaterniont, align 4
  %21 = alloca %class.aiMatrix4x4t, align 4
  %22 = alloca %class.aiVector3t, align 4
  %23 = alloca { <2 x float>, float }, align 8
  %24 = alloca %class.aiMatrix4x4t, align 4
  %25 = alloca %class.aiVector3t, align 4
  %26 = alloca %class.aiMatrix4x4t, align 4
  %27 = alloca %class.aiMatrix3x3t, align 4
  %28 = alloca %class.aiMatrix4x4t, align 4
  %29 = alloca %class.aiMatrix4x4t, align 4
  %30 = alloca i32, align 4
  %31 = alloca ptr, align 8
  %32 = alloca i32, align 4
  %33 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %34 = load ptr, ptr %3, align 8
  %35 = getelementptr inbounds %"class.Assimp::ScaleProcess", ptr %34, i32 0, i32 1
  %36 = load float, ptr %35, align 8, !tbaa !9
  %37 = fcmp oeq float %36, 1.000000e+00
  br i1 %37, label %38, label %39

38:                                               ; preds = %2
  br label %242

39:                                               ; preds = %2
  %40 = getelementptr inbounds %"class.Assimp::ScaleProcess", ptr %34, i32 0, i32 1
  %41 = load float, ptr %40, align 8, !tbaa !9
  %42 = fcmp une float %41, 0.000000e+00
  br i1 %42, label %44, label %43

43:                                               ; preds = %39
  call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 88)
  br label %44

44:                                               ; preds = %43, %39
  %45 = phi i1 [ true, %39 ], [ false, %43 ]
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = icmp ne ptr null, %46
  br i1 %47, label %49, label %48

48:                                               ; preds = %44
  call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef @.str.4, ptr noundef @.str.3, i32 noundef 89)
  br label %49

49:                                               ; preds = %48, %44
  %50 = phi i1 [ true, %44 ], [ false, %48 ]
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.aiScene, ptr %51, i32 0, i32 1
  %53 = load ptr, ptr %52, align 8, !tbaa !13
  %54 = icmp ne ptr null, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %49
  call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef @.str.5, ptr noundef @.str.3, i32 noundef 90)
  br label %56

56:                                               ; preds = %55, %49
  %57 = phi i1 [ true, %49 ], [ false, %55 ]
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = icmp eq ptr null, %58
  br i1 %59, label %60, label %61

60:                                               ; preds = %56
  br label %242

61:                                               ; preds = %56
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.aiScene, ptr %62, i32 0, i32 1
  %64 = load ptr, ptr %63, align 8, !tbaa !13
  %65 = icmp eq ptr null, %64
  br i1 %65, label %66, label %67

66:                                               ; preds = %61
  br label %242

67:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  store i32 0, ptr %5, align 4, !tbaa !17
  br label %68

68:                                               ; preds = %125, %67
  %69 = load i32, ptr %5, align 4, !tbaa !17
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.aiScene, ptr %70, i32 0, i32 6
  %72 = load i32, ptr %71, align 8, !tbaa !18
  %73 = icmp ult i32 %69, %72
  br i1 %73, label %75, label %74

74:                                               ; preds = %68
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  br label %128

75:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.aiScene, ptr %76, i32 0, i32 7
  %78 = load ptr, ptr %77, align 8, !tbaa !19
  %79 = load i32, ptr %5, align 4, !tbaa !17
  %80 = zext i32 %79 to i64
  %81 = getelementptr inbounds ptr, ptr %78, i64 %80
  %82 = load ptr, ptr %81, align 8, !tbaa !5
  store ptr %82, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  store i32 0, ptr %8, align 4, !tbaa !17
  br label %83

83:                                               ; preds = %121, %75
  %84 = load i32, ptr %8, align 4, !tbaa !17
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.aiAnimation, ptr %85, i32 0, i32 3
  %87 = load i32, ptr %86, align 8, !tbaa !20
  %88 = icmp ult i32 %84, %87
  br i1 %88, label %90, label %89

89:                                               ; preds = %83
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  br label %124

90:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.aiAnimation, ptr %91, i32 0, i32 4
  %93 = load ptr, ptr %92, align 8, !tbaa !23
  %94 = load i32, ptr %8, align 4, !tbaa !17
  %95 = zext i32 %94 to i64
  %96 = getelementptr inbounds ptr, ptr %93, i64 %95
  %97 = load ptr, ptr %96, align 8, !tbaa !5
  store ptr %97, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  store i32 0, ptr %10, align 4, !tbaa !17
  br label %98

98:                                               ; preds = %117, %90
  %99 = load i32, ptr %10, align 4, !tbaa !17
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.aiNodeAnim, ptr %100, i32 0, i32 1
  %102 = load i32, ptr %101, align 4, !tbaa !24
  %103 = icmp ult i32 %99, %102
  br i1 %103, label %105, label %104

104:                                              ; preds = %98
  store i32 8, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  br label %120

105:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  %106 = load ptr, ptr %9, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.aiNodeAnim, ptr %106, i32 0, i32 2
  %108 = load ptr, ptr %107, align 8, !tbaa !27
  %109 = load i32, ptr %10, align 4, !tbaa !17
  %110 = zext i32 %109 to i64
  %111 = getelementptr inbounds %struct.aiVectorKey, ptr %108, i64 %110
  store ptr %111, ptr %11, align 8, !tbaa !5
  %112 = getelementptr inbounds %"class.Assimp::ScaleProcess", ptr %34, i32 0, i32 1
  %113 = load float, ptr %112, align 8, !tbaa !9
  %114 = load ptr, ptr %11, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.aiVectorKey, ptr %114, i32 0, i32 1
  %116 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN10aiVector3tIfEmLEf(ptr noundef nonnull align 4 dereferenceable(12) %115, float noundef %113)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  br label %117

117:                                              ; preds = %105
  %118 = load i32, ptr %10, align 4, !tbaa !17
  %119 = add i32 %118, 1
  store i32 %119, ptr %10, align 4, !tbaa !17
  br label %98, !llvm.loop !28

120:                                              ; preds = %104
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  br label %121

121:                                              ; preds = %120
  %122 = load i32, ptr %8, align 4, !tbaa !17
  %123 = add i32 %122, 1
  store i32 %123, ptr %8, align 4, !tbaa !17
  br label %83, !llvm.loop !30

124:                                              ; preds = %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  br label %125

125:                                              ; preds = %124
  %126 = load i32, ptr %5, align 4, !tbaa !17
  %127 = add i32 %126, 1
  store i32 %127, ptr %5, align 4, !tbaa !17
  br label %68, !llvm.loop !31

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

129:                                              ; preds = %235, %128
  %130 = load i32, ptr %12, align 4, !tbaa !17
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.aiScene, ptr %131, i32 0, i32 2
  %133 = load i32, ptr %132, align 8, !tbaa !32
  %134 = icmp ult i32 %130, %133
  br i1 %134, label %136, label %135

135:                                              ; preds = %129
  store i32 11, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  br label %238

136:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.aiScene, ptr %137, i32 0, i32 3
  %139 = load ptr, ptr %138, align 8, !tbaa !33
  %140 = load i32, ptr %12, align 4, !tbaa !17
  %141 = zext i32 %140 to i64
  %142 = getelementptr inbounds ptr, ptr %139, i64 %141
  %143 = load ptr, ptr %142, align 8, !tbaa !5
  store ptr %143, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  store i32 0, ptr %14, align 4, !tbaa !17
  br label %144

144:                                              ; preds = %162, %136
  %145 = load i32, ptr %14, align 4, !tbaa !17
  %146 = load ptr, ptr %13, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.aiMesh, ptr %146, i32 0, i32 1
  %148 = load i32, ptr %147, align 4, !tbaa !34
  %149 = icmp ult i32 %145, %148
  br i1 %149, label %151, label %150

150:                                              ; preds = %144
  store i32 14, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  br label %165

151:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  %152 = load ptr, ptr %13, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.aiMesh, ptr %152, i32 0, i32 3
  %154 = load ptr, ptr %153, align 8, !tbaa !39
  %155 = load i32, ptr %14, align 4, !tbaa !17
  %156 = zext i32 %155 to i64
  %157 = getelementptr inbounds %class.aiVector3t, ptr %154, i64 %156
  store ptr %157, ptr %15, align 8, !tbaa !5
  %158 = getelementptr inbounds %"class.Assimp::ScaleProcess", ptr %34, i32 0, i32 1
  %159 = load float, ptr %158, align 8, !tbaa !9
  %160 = load ptr, ptr %15, align 8, !tbaa !5
  %161 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN10aiVector3tIfEmLEf(ptr noundef nonnull align 4 dereferenceable(12) %160, float noundef %159)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  br label %162

162:                                              ; preds = %151
  %163 = load i32, ptr %14, align 4, !tbaa !17
  %164 = add i32 %163, 1
  store i32 %164, ptr %14, align 4, !tbaa !17
  br label %144, !llvm.loop !40

165:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  store i32 0, ptr %16, align 4, !tbaa !17
  br label %166

166:                                              ; preds = %190, %165
  %167 = load i32, ptr %16, align 4, !tbaa !17
  %168 = load ptr, ptr %13, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.aiMesh, ptr %168, i32 0, i32 11
  %170 = load i32, ptr %169, align 8, !tbaa !41
  %171 = icmp ult i32 %167, %170
  br i1 %171, label %173, label %172

172:                                              ; preds = %166
  store i32 17, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  br label %193

173:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  %174 = load ptr, ptr %13, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.aiMesh, ptr %174, i32 0, i32 12
  %176 = load ptr, ptr %175, align 8, !tbaa !42
  %177 = load i32, ptr %16, align 4, !tbaa !17
  %178 = zext i32 %177 to i64
  %179 = getelementptr inbounds ptr, ptr %176, i64 %178
  %180 = load ptr, ptr %179, align 8, !tbaa !5
  store ptr %180, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #9
  call void @_ZN10aiVector3tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %18) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #9
  call void @_ZN10aiVector3tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %19) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #9
  call void @_ZN13aiQuaterniontIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %20) #9
  %181 = load ptr, ptr %17, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.aiBone, ptr %181, i32 0, i32 5
  call void @_ZNK12aiMatrix4x4tIfE9DecomposeER10aiVector3tIfER13aiQuaterniontIfES3_(ptr noundef nonnull align 4 dereferenceable(64) %182, ptr noundef nonnull align 4 dereferenceable(12) %19, ptr noundef nonnull align 4 dereferenceable(16) %20, ptr noundef nonnull align 4 dereferenceable(12) %18)
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #9
  call void @_ZN12aiMatrix4x4tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(64) %21) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr %22) #9
  %183 = getelementptr inbounds %"class.Assimp::ScaleProcess", ptr %34, i32 0, i32 1
  %184 = load float, ptr %183, align 8, !tbaa !9
  %185 = call { <2 x float>, float } @_ZmlIfE10aiVector3tIT_ERKS2_S1_(ptr noundef nonnull align 4 dereferenceable(12) %18, float noundef %184)
  store { <2 x float>, float } %185, ptr %23, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 8 %23, i64 12, i1 false)
  %186 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZN12aiMatrix4x4tIfE11TranslationERK10aiVector3tIfERS0_(ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(64) %21)
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr %24) #9
  call void @_ZN12aiMatrix4x4tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(64) %24) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr %25) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %19, i64 12, i1 false), !tbaa.struct !43
  %187 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZN12aiMatrix4x4tIfE7ScalingERK10aiVector3tIfERS0_(ptr noundef nonnull align 4 dereferenceable(12) %25, ptr noundef nonnull align 4 dereferenceable(64) %24)
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr %26) #9
  call void @llvm.lifetime.start.p0(i64 36, ptr %27) #9
  call void @_ZNK13aiQuaterniontIfE9GetMatrixEv(ptr dead_on_unwind writable sret(%class.aiMatrix3x3t) align 4 %27, ptr noundef nonnull align 4 dereferenceable(16) %20)
  call void @_ZN12aiMatrix4x4tIfEC2ERK12aiMatrix3x3tIfE(ptr noundef nonnull align 4 dereferenceable(64) %26, ptr noundef nonnull align 4 dereferenceable(36) %27)
  call void @llvm.lifetime.end.p0(i64 36, ptr %27) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr %28) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr %29) #9
  call void @_ZNK12aiMatrix4x4tIfEmlERKS0_(ptr dead_on_unwind writable sret(%class.aiMatrix4x4t) align 4 %29, ptr noundef nonnull align 4 dereferenceable(64) %21, ptr noundef nonnull align 4 dereferenceable(64) %26)
  call void @_ZNK12aiMatrix4x4tIfEmlERKS0_(ptr dead_on_unwind writable sret(%class.aiMatrix4x4t) align 4 %28, ptr noundef nonnull align 4 dereferenceable(64) %29, ptr noundef nonnull align 4 dereferenceable(64) %24)
  %188 = load ptr, ptr %17, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.aiBone, ptr %188, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %189, ptr align 4 %28, i64 64, i1 false), !tbaa.struct !45
  call void @llvm.lifetime.end.p0(i64 64, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  br label %190

190:                                              ; preds = %173
  %191 = load i32, ptr %16, align 4, !tbaa !17
  %192 = add i32 %191, 1
  store i32 %192, ptr %16, align 4, !tbaa !17
  br label %166, !llvm.loop !46

193:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #9
  store i32 0, ptr %30, align 4, !tbaa !17
  br label %194

194:                                              ; preds = %231, %193
  %195 = load i32, ptr %30, align 4, !tbaa !17
  %196 = load ptr, ptr %13, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.aiMesh, ptr %196, i32 0, i32 15
  %198 = load i32, ptr %197, align 8, !tbaa !47
  %199 = icmp ult i32 %195, %198
  br i1 %199, label %201, label %200

200:                                              ; preds = %194
  store i32 20, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  br label %234

201:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #9
  %202 = load ptr, ptr %13, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.aiMesh, ptr %202, i32 0, i32 16
  %204 = load ptr, ptr %203, align 8, !tbaa !48
  %205 = load i32, ptr %30, align 4, !tbaa !17
  %206 = zext i32 %205 to i64
  %207 = getelementptr inbounds ptr, ptr %204, i64 %206
  %208 = load ptr, ptr %207, align 8, !tbaa !5
  store ptr %208, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #9
  store i32 0, ptr %32, align 4, !tbaa !17
  br label %209

209:                                              ; preds = %227, %201
  %210 = load i32, ptr %32, align 4, !tbaa !17
  %211 = load ptr, ptr %31, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.aiAnimMesh, ptr %211, i32 0, i32 7
  %213 = load i32, ptr %212, align 8, !tbaa !49
  %214 = icmp ult i32 %210, %213
  br i1 %214, label %216, label %215

215:                                              ; preds = %209
  store i32 23, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #9
  br label %230

216:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #9
  %217 = load ptr, ptr %31, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.aiAnimMesh, ptr %217, i32 0, i32 1
  %219 = load ptr, ptr %218, align 8, !tbaa !51
  %220 = load i32, ptr %32, align 4, !tbaa !17
  %221 = zext i32 %220 to i64
  %222 = getelementptr inbounds %class.aiVector3t, ptr %219, i64 %221
  store ptr %222, ptr %33, align 8, !tbaa !5
  %223 = getelementptr inbounds %"class.Assimp::ScaleProcess", ptr %34, i32 0, i32 1
  %224 = load float, ptr %223, align 8, !tbaa !9
  %225 = load ptr, ptr %33, align 8, !tbaa !5
  %226 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN10aiVector3tIfEmLEf(ptr noundef nonnull align 4 dereferenceable(12) %225, float noundef %224)
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  br label %227

227:                                              ; preds = %216
  %228 = load i32, ptr %32, align 4, !tbaa !17
  %229 = add i32 %228, 1
  store i32 %229, ptr %32, align 4, !tbaa !17
  br label %209, !llvm.loop !52

230:                                              ; preds = %215
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  br label %231

231:                                              ; preds = %230
  %232 = load i32, ptr %30, align 4, !tbaa !17
  %233 = add i32 %232, 1
  store i32 %233, ptr %30, align 4, !tbaa !17
  br label %194, !llvm.loop !53

234:                                              ; preds = %200
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  br label %235

235:                                              ; preds = %234
  %236 = load i32, ptr %12, align 4, !tbaa !17
  %237 = add i32 %236, 1
  store i32 %237, ptr %12, align 4, !tbaa !17
  br label %129, !llvm.loop !54

238:                                              ; preds = %135
  %239 = load ptr, ptr %4, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.aiScene, ptr %239, i32 0, i32 1
  %241 = load ptr, ptr %240, align 8, !tbaa !13
  call void @_ZN6Assimp12ScaleProcess13traverseNodesEP6aiNodej(ptr noundef nonnull align 8 dereferenceable(28) %34, ptr noundef %241, i32 noundef 0)
  br label %242

242:                                              ; preds = %238, %66, %60, %38
  ret void
}

declare void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN10aiVector3tIfEmLEf(ptr noundef nonnull align 4 dereferenceable(12), float noundef) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN13aiQuaterniontIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK12aiMatrix4x4tIfE9DecomposeER10aiVector3tIfER13aiQuaterniontIfES3_(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(12)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN12aiMatrix4x4tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(64)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(64) ptr @_ZN12aiMatrix4x4tIfE11TranslationERK10aiVector3tIfERS0_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(64)) #3 align 2

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

; 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) #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(64) ptr @_ZN12aiMatrix4x4tIfE7ScalingERK10aiVector3tIfERS0_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(64)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNK13aiQuaterniontIfE9GetMatrixEv(ptr dead_on_unwind noalias writable sret(%class.aiMatrix3x3t) align 4, ptr noundef nonnull align 4 dereferenceable(16)) #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK12aiMatrix4x4tIfEmlERKS0_(ptr dead_on_unwind noalias writable sret(%class.aiMatrix4x4t) align 4, ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64)) #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Assimp12ScaleProcess13traverseNodesEP6aiNodej(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef, i32 noundef) #8 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress 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 = { 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 #6 = { 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { 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 #9 = { 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, !12, i64 24}
!10 = !{!"_ZTSN6Assimp12ScaleProcessE", !11, i64 0, !12, i64 24}
!11 = !{!"_ZTSN6Assimp11BaseProcessE", !6, i64 8, !6, i64 16}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !6, i64 8}
!14 = !{!"_ZTS7aiScene", !15, i64 0, !6, i64 8, !15, i64 16, !6, i64 24, !15, i64 32, !6, i64 40, !15, i64 48, !6, i64 56, !15, i64 64, !6, i64 72, !15, i64 80, !6, i64 88, !15, i64 96, !6, i64 104, !6, i64 112, !16, i64 120, !15, i64 1148, !6, i64 1152, !6, i64 1160}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTS8aiString", !15, i64 0, !7, i64 4}
!17 = !{!15, !15, i64 0}
!18 = !{!14, !15, i64 48}
!19 = !{!14, !6, i64 56}
!20 = !{!21, !15, i64 1048}
!21 = !{!"_ZTS11aiAnimation", !16, i64 0, !22, i64 1032, !22, i64 1040, !15, i64 1048, !6, i64 1056, !15, i64 1064, !6, i64 1072, !15, i64 1080, !6, i64 1088}
!22 = !{!"double", !7, i64 0}
!23 = !{!21, !6, i64 1056}
!24 = !{!25, !15, i64 1028}
!25 = !{!"_ZTS10aiNodeAnim", !16, i64 0, !15, i64 1028, !6, i64 1032, !15, i64 1040, !6, i64 1048, !15, i64 1056, !6, i64 1064, !26, i64 1072, !26, i64 1076}
!26 = !{!"_ZTS15aiAnimBehaviour", !7, i64 0}
!27 = !{!25, !6, i64 1032}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = distinct !{!30, !29}
!31 = distinct !{!31, !29}
!32 = !{!14, !15, i64 16}
!33 = !{!14, !6, i64 24}
!34 = !{!35, !15, i64 4}
!35 = !{!"_ZTS6aiMesh", !15, i64 0, !15, i64 4, !15, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !7, i64 48, !7, i64 112, !7, i64 176, !6, i64 208, !15, i64 216, !6, i64 224, !15, i64 232, !16, i64 236, !15, i64 1264, !6, i64 1272, !36, i64 1280, !37, i64 1284, !6, i64 1312}
!36 = !{!"_ZTS16aiMorphingMethod", !7, i64 0}
!37 = !{!"_ZTS6aiAABB", !38, i64 0, !38, i64 12}
!38 = !{!"_ZTS10aiVector3tIfE", !12, i64 0, !12, i64 4, !12, i64 8}
!39 = !{!35, !6, i64 16}
!40 = distinct !{!40, !29}
!41 = !{!35, !15, i64 216}
!42 = !{!35, !6, i64 224}
!43 = !{i64 0, i64 4, !44, i64 4, i64 4, !44, i64 8, i64 4, !44}
!44 = !{!12, !12, i64 0}
!45 = !{i64 0, i64 4, !44, i64 4, i64 4, !44, i64 8, i64 4, !44, i64 12, i64 4, !44, i64 16, i64 4, !44, i64 20, i64 4, !44, i64 24, i64 4, !44, i64 28, i64 4, !44, i64 32, i64 4, !44, i64 36, i64 4, !44, i64 40, i64 4, !44, i64 44, i64 4, !44, i64 48, i64 4, !44, i64 52, i64 4, !44, i64 56, i64 4, !44, i64 60, i64 4, !44}
!46 = distinct !{!46, !29}
!47 = !{!35, !15, i64 1264}
!48 = !{!35, !6, i64 1272}
!49 = !{!50, !15, i64 1192}
!50 = !{!"_ZTS10aiAnimMesh", !16, i64 0, !6, i64 1032, !6, i64 1040, !6, i64 1048, !6, i64 1056, !7, i64 1064, !7, i64 1128, !15, i64 1192, !12, i64 1196}
!51 = !{!50, !6, i64 1032}
!52 = distinct !{!52, !29}
!53 = distinct !{!53, !29}
!54 = distinct !{!54, !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"

%class.aiVector3t = type { float, float, float }
%class.aiQuaterniont = type { float, float, float, float }
%class.aiMatrix4x4t = type { float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float }
%class.aiMatrix3x3t = type { float, float, float, float, float, float, float, float, float }
%struct.aiVectorKey = type { double, %class.aiVector3t, i32 }

@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [121 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [29 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: mustprogress uwtable
define dso_local void @_ZN6Assimp12ScaleProcess7ExecuteEP7aiScene(ptr noundef nonnull align 8 dereferenceable(28) %0, ptr noundef readonly %1) unnamed_addr #1 align 2 {
  %3 = alloca %class.aiVector3t, align 4
  %4 = alloca %class.aiVector3t, align 4
  %5 = alloca %class.aiQuaterniont, align 4
  %6 = alloca %class.aiMatrix4x4t, align 4
  %7 = alloca %class.aiVector3t, align 8
  %8 = alloca %class.aiMatrix4x4t, align 4
  %9 = alloca %class.aiVector3t, align 4
  %10 = alloca %class.aiMatrix4x4t, align 4
  %11 = alloca %class.aiMatrix3x3t, align 4
  %12 = alloca %class.aiMatrix4x4t, align 4
  %13 = alloca %class.aiMatrix4x4t, align 4
  %14 = getelementptr inbounds i8, ptr %0, i64 24
  %15 = load float, ptr %14, align 8, !tbaa !5
  %16 = fcmp oeq float %15, 1.000000e+00
  br i1 %16, label %119, label %17

17:                                               ; preds = %2
  %18 = fcmp une float %15, 0.000000e+00
  br i1 %18, label %20, label %19

19:                                               ; preds = %17
  tail call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef 88)
  br label %20

20:                                               ; preds = %19, %17
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %21, label %22

21:                                               ; preds = %20
  tail call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.3, i32 noundef 89)
  br label %22

22:                                               ; preds = %21, %20
  %23 = getelementptr inbounds i8, ptr %1, i64 8
  %24 = load ptr, ptr %23, align 8, !tbaa !12
  %.not59 = icmp eq ptr %24, null
  br i1 %.not59, label %25, label %.critedge.preheader

25:                                               ; preds = %22
  tail call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.3, i32 noundef 90)
  %.pr = load ptr, ptr %23, align 8, !tbaa !12
  %26 = icmp eq ptr %.pr, null
  br i1 %26, label %119, label %.critedge.preheader

.critedge.preheader:                              ; preds = %25, %22
  %27 = getelementptr inbounds i8, ptr %1, i64 48
  %28 = load i32, ptr %27, align 8, !tbaa !16
  %.not84 = icmp eq i32 %28, 0
  br i1 %.not84, label %.preheader61, label %.lr.ph68

.lr.ph68:                                         ; preds = %.critedge.preheader
  %29 = getelementptr inbounds i8, ptr %1, i64 56
  br label %33

.preheader61:                                     ; preds = %.critedge, %.critedge.preheader
  %30 = getelementptr inbounds i8, ptr %1, i64 16
  %31 = load i32, ptr %30, align 8, !tbaa !17
  %.not87 = icmp eq i32 %31, 0
  br i1 %.not87, label %._crit_edge83, label %.lr.ph82

.lr.ph82:                                         ; preds = %.preheader61
  %32 = getelementptr inbounds i8, ptr %1, i64 24
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  br label %64

33:                                               ; preds = %.lr.ph68, %.critedge
  %34 = phi i32 [ %28, %.lr.ph68 ], [ %41, %.critedge ]
  %indvars.iv96 = phi i64 [ 0, %.lr.ph68 ], [ %indvars.iv.next97, %.critedge ]
  %35 = load ptr, ptr %29, align 8, !tbaa !18
  %36 = getelementptr inbounds ptr, ptr %35, i64 %indvars.iv96
  %37 = load ptr, ptr %36, align 8, !tbaa !19
  %38 = getelementptr inbounds i8, ptr %37, i64 1048
  %39 = load i32, ptr %38, align 8, !tbaa !20
  %.not85 = icmp eq i32 %39, 0
  br i1 %.not85, label %.critedge, label %.lr.ph65

.lr.ph65:                                         ; preds = %33
  %40 = getelementptr inbounds i8, ptr %37, i64 1056
  br label %44

.critedge.loopexit:                               ; preds = %._crit_edge
  %.pre114 = load i32, ptr %27, align 8, !tbaa !16
  br label %.critedge

.critedge:                                        ; preds = %.critedge.loopexit, %33
  %41 = phi i32 [ %.pre114, %.critedge.loopexit ], [ %34, %33 ]
  %indvars.iv.next97 = add nuw nsw i64 %indvars.iv96, 1
  %42 = zext i32 %41 to i64
  %43 = icmp ult i64 %indvars.iv.next97, %42
  br i1 %43, label %33, label %.preheader61, !llvm.loop !23

44:                                               ; preds = %.lr.ph65, %._crit_edge
  %45 = phi i32 [ %39, %.lr.ph65 ], [ %52, %._crit_edge ]
  %indvars.iv93 = phi i64 [ 0, %.lr.ph65 ], [ %indvars.iv.next94, %._crit_edge ]
  %46 = load ptr, ptr %40, align 8, !tbaa !25
  %47 = getelementptr inbounds ptr, ptr %46, i64 %indvars.iv93
  %48 = load ptr, ptr %47, align 8, !tbaa !19
  %49 = getelementptr inbounds i8, ptr %48, i64 1028
  %50 = load i32, ptr %49, align 4, !tbaa !26
  %.not86 = icmp eq i32 %50, 0
  br i1 %.not86, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %44
  %51 = getelementptr inbounds i8, ptr %48, i64 1032
  br label %55

._crit_edge.loopexit:                             ; preds = %55
  %.pre = load i32, ptr %38, align 8, !tbaa !20
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %44
  %52 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %45, %44 ]
  %indvars.iv.next94 = add nuw nsw i64 %indvars.iv93, 1
  %53 = zext i32 %52 to i64
  %54 = icmp ult i64 %indvars.iv.next94, %53
  br i1 %54, label %44, label %.critedge.loopexit, !llvm.loop !29

55:                                               ; preds = %.lr.ph, %55
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %55 ]
  %56 = load ptr, ptr %51, align 8, !tbaa !30
  %57 = load float, ptr %14, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.aiVectorKey, ptr %56, i64 %indvars.iv, i32 1
  %59 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZN10aiVector3tIfEmLEf(ptr noundef nonnull align 4 dereferenceable(12) %58, float noundef %57)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %60 = load i32, ptr %49, align 4, !tbaa !26
  %61 = zext i32 %60 to i64
  %62 = icmp ult i64 %indvars.iv.next, %61
  br i1 %62, label %55, label %._crit_edge.loopexit, !llvm.loop !31

._crit_edge83:                                    ; preds = %._crit_edge80, %.preheader61
  %63 = load ptr, ptr %23, align 8, !tbaa !12
  call void @_ZN6Assimp12ScaleProcess13traverseNodesEP6aiNodej(ptr noundef nonnull align 8 dereferenceable(28) %0, ptr noundef %63, i32 noundef 0)
  br label %119

64:                                               ; preds = %.lr.ph82, %._crit_edge80
  %indvars.iv111 = phi i64 [ 0, %.lr.ph82 ], [ %indvars.iv.next112, %._crit_edge80 ]
  %65 = load ptr, ptr %32, align 8, !tbaa !32
  %66 = getelementptr inbounds ptr, ptr %65, i64 %indvars.iv111
  %67 = load ptr, ptr %66, align 8, !tbaa !19
  %68 = getelementptr inbounds i8, ptr %67, i64 4
  %69 = load i32, ptr %68, align 4, !tbaa !33
  %.not88 = icmp eq i32 %69, 0
  br i1 %.not88, label %.preheader60, label %.lr.ph71

.lr.ph71:                                         ; preds = %64
  %70 = getelementptr inbounds i8, ptr %67, i64 16
  br label %74

.preheader60:                                     ; preds = %74, %64
  %71 = getelementptr inbounds i8, ptr %67, i64 216
  %72 = load i32, ptr %71, align 8, !tbaa !38
  %.not89 = icmp eq i32 %72, 0
  br i1 %.not89, label %.preheader, label %.lr.ph73

.lr.ph73:                                         ; preds = %.preheader60
  %73 = getelementptr inbounds i8, ptr %67, i64 224
  br label %85

74:                                               ; preds = %.lr.ph71, %74
  %indvars.iv99 = phi i64 [ 0, %.lr.ph71 ], [ %indvars.iv.next100, %74 ]
  %75 = load ptr, ptr %70, align 8, !tbaa !39
  %76 = getelementptr inbounds %class.aiVector3t, ptr %75, i64 %indvars.iv99
  %77 = load float, ptr %14, align 8, !tbaa !5
  %78 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN10aiVector3tIfEmLEf(ptr noundef nonnull align 4 dereferenceable(12) %76, float noundef %77)
  %indvars.iv.next100 = add nuw nsw i64 %indvars.iv99, 1
  %79 = load i32, ptr %68, align 4, !tbaa !33
  %80 = zext i32 %79 to i64
  %81 = icmp ult i64 %indvars.iv.next100, %80
  br i1 %81, label %74, label %.preheader60, !llvm.loop !40

.preheader:                                       ; preds = %85, %.preheader60
  %82 = getelementptr inbounds i8, ptr %67, i64 1264
  %83 = load i32, ptr %82, align 8, !tbaa !41
  %.not90 = icmp eq i32 %83, 0
  br i1 %.not90, label %._crit_edge80, label %.lr.ph79

.lr.ph79:                                         ; preds = %.preheader
  %84 = getelementptr inbounds i8, ptr %67, i64 1272
  br label %100

85:                                               ; preds = %.lr.ph73, %85
  %indvars.iv102 = phi i64 [ 0, %.lr.ph73 ], [ %indvars.iv.next103, %85 ]
  %86 = load ptr, ptr %73, align 8, !tbaa !42
  %87 = getelementptr inbounds ptr, ptr %86, i64 %indvars.iv102
  %88 = load ptr, ptr %87, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #9
  call void @_ZN10aiVector3tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %3) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #9
  call void @_ZN10aiVector3tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %4) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #9
  call void @_ZN13aiQuaterniontIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %5) #9
  %89 = getelementptr inbounds i8, ptr %88, i64 1056
  call void @_ZNK12aiMatrix4x4tIfE9DecomposeER10aiVector3tIfER13aiQuaterniontIfES3_(ptr noundef nonnull align 4 dereferenceable(64) %89, ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(12) %3)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #9
  call void @_ZN12aiMatrix4x4tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(64) %6) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #9
  %90 = load float, ptr %14, align 8, !tbaa !5
  %91 = call { <2 x float>, float } @_ZmlIfE10aiVector3tIT_ERKS2_S1_(ptr noundef nonnull align 4 dereferenceable(12) %3, float noundef %90)
  %.fca.0.extract = extractvalue { <2 x float>, float } %91, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %91, 1
  store <2 x float> %.fca.0.extract, ptr %7, align 8
  store float %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  %92 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZN12aiMatrix4x4tIfE11TranslationERK10aiVector3tIfERS0_(ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(64) %6)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #9
  call void @_ZN12aiMatrix4x4tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(64) %8) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %4, i64 12, i1 false), !tbaa.struct !43
  %93 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZN12aiMatrix4x4tIfE7ScalingERK10aiVector3tIfERS0_(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(64) %8)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %11) #9
  call void @_ZNK13aiQuaterniontIfE9GetMatrixEv(ptr dead_on_unwind nonnull writable sret(%class.aiMatrix3x3t) align 4 %11, ptr noundef nonnull align 4 dereferenceable(16) %5)
  call void @_ZN12aiMatrix4x4tIfEC2ERK12aiMatrix3x3tIfE(ptr noundef nonnull align 4 dereferenceable(64) %10, ptr noundef nonnull align 4 dereferenceable(36) %11)
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %11) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #9
  call void @_ZNK12aiMatrix4x4tIfEmlERKS0_(ptr dead_on_unwind nonnull writable sret(%class.aiMatrix4x4t) align 4 %13, ptr noundef nonnull align 4 dereferenceable(64) %6, ptr noundef nonnull align 4 dereferenceable(64) %10)
  call void @_ZNK12aiMatrix4x4tIfEmlERKS0_(ptr dead_on_unwind nonnull writable sret(%class.aiMatrix4x4t) align 4 %12, ptr noundef nonnull align 4 dereferenceable(64) %13, ptr noundef nonnull align 4 dereferenceable(64) %8)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %89, ptr noundef nonnull align 4 dereferenceable(64) %12, i64 64, i1 false), !tbaa.struct !45
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #9
  %indvars.iv.next103 = add nuw nsw i64 %indvars.iv102, 1
  %94 = load i32, ptr %71, align 8, !tbaa !38
  %95 = zext i32 %94 to i64
  %96 = icmp ult i64 %indvars.iv.next103, %95
  br i1 %96, label %85, label %.preheader, !llvm.loop !46

._crit_edge80:                                    ; preds = %._crit_edge77, %.preheader
  %indvars.iv.next112 = add nuw nsw i64 %indvars.iv111, 1
  %97 = load i32, ptr %30, align 8, !tbaa !17
  %98 = zext i32 %97 to i64
  %99 = icmp ult i64 %indvars.iv.next112, %98
  br i1 %99, label %64, label %._crit_edge83, !llvm.loop !47

100:                                              ; preds = %.lr.ph79, %._crit_edge77
  %101 = phi i32 [ %83, %.lr.ph79 ], [ %108, %._crit_edge77 ]
  %indvars.iv108 = phi i64 [ 0, %.lr.ph79 ], [ %indvars.iv.next109, %._crit_edge77 ]
  %102 = load ptr, ptr %84, align 8, !tbaa !48
  %103 = getelementptr inbounds ptr, ptr %102, i64 %indvars.iv108
  %104 = load ptr, ptr %103, align 8, !tbaa !19
  %105 = getelementptr inbounds i8, ptr %104, i64 1192
  %106 = load i32, ptr %105, align 8, !tbaa !49
  %.not91 = icmp eq i32 %106, 0
  br i1 %.not91, label %._crit_edge77, label %.lr.ph76

.lr.ph76:                                         ; preds = %100
  %107 = getelementptr inbounds i8, ptr %104, i64 1032
  br label %111

._crit_edge77.loopexit:                           ; preds = %111
  %.pre115 = load i32, ptr %82, align 8, !tbaa !41
  br label %._crit_edge77

._crit_edge77:                                    ; preds = %._crit_edge77.loopexit, %100
  %108 = phi i32 [ %.pre115, %._crit_edge77.loopexit ], [ %101, %100 ]
  %indvars.iv.next109 = add nuw nsw i64 %indvars.iv108, 1
  %109 = zext i32 %108 to i64
  %110 = icmp ult i64 %indvars.iv.next109, %109
  br i1 %110, label %100, label %._crit_edge80, !llvm.loop !51

111:                                              ; preds = %.lr.ph76, %111
  %indvars.iv105 = phi i64 [ 0, %.lr.ph76 ], [ %indvars.iv.next106, %111 ]
  %112 = load ptr, ptr %107, align 8, !tbaa !52
  %113 = getelementptr inbounds %class.aiVector3t, ptr %112, i64 %indvars.iv105
  %114 = load float, ptr %14, align 8, !tbaa !5
  %115 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN10aiVector3tIfEmLEf(ptr noundef nonnull align 4 dereferenceable(12) %113, float noundef %114)
  %indvars.iv.next106 = add nuw nsw i64 %indvars.iv105, 1
  %116 = load i32, ptr %105, align 8, !tbaa !49
  %117 = zext i32 %116 to i64
  %118 = icmp ult i64 %indvars.iv.next106, %117
  br i1 %118, label %111, label %._crit_edge77.loopexit, !llvm.loop !53

119:                                              ; preds = %25, %2, %._crit_edge83
  ret void
}

declare void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN10aiVector3tIfEmLEf(ptr noundef nonnull align 4 dereferenceable(12), float noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN13aiQuaterniontIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK12aiMatrix4x4tIfE9DecomposeER10aiVector3tIfER13aiQuaterniontIfES3_(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN12aiMatrix4x4tIfEC2Ev(ptr noundef nonnull align 4 dereferenceable(64)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(64) ptr @_ZN12aiMatrix4x4tIfE11TranslationERK10aiVector3tIfERS0_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #3 align 2

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

; 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) #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(64) ptr @_ZN12aiMatrix4x4tIfE7ScalingERK10aiVector3tIfERS0_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNK13aiQuaterniontIfE9GetMatrixEv(ptr dead_on_unwind noalias writable sret(%class.aiMatrix3x3t) align 4, ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK12aiMatrix4x4tIfEmlERKS0_(ptr dead_on_unwind noalias writable sret(%class.aiMatrix4x4t) align 4, ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Assimp12ScaleProcess13traverseNodesEP6aiNodej(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef, i32 noundef) local_unnamed_addr #8 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress 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 = { 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 #6 = { 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 #7 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { 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 #9 = { 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, !11, i64 24}
!6 = !{!"_ZTSN6Assimp12ScaleProcessE", !7, i64 0, !11, i64 24}
!7 = !{!"_ZTSN6Assimp11BaseProcessE", !8, i64 8, !8, i64 16}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"float", !9, i64 0}
!12 = !{!13, !8, i64 8}
!13 = !{!"_ZTS7aiScene", !14, i64 0, !8, i64 8, !14, i64 16, !8, i64 24, !14, i64 32, !8, i64 40, !14, i64 48, !8, i64 56, !14, i64 64, !8, i64 72, !14, i64 80, !8, i64 88, !14, i64 96, !8, i64 104, !8, i64 112, !15, i64 120, !14, i64 1148, !8, i64 1152, !8, i64 1160}
!14 = !{!"int", !9, i64 0}
!15 = !{!"_ZTS8aiString", !14, i64 0, !9, i64 4}
!16 = !{!13, !14, i64 48}
!17 = !{!13, !14, i64 16}
!18 = !{!13, !8, i64 56}
!19 = !{!8, !8, i64 0}
!20 = !{!21, !14, i64 1048}
!21 = !{!"_ZTS11aiAnimation", !15, i64 0, !22, i64 1032, !22, i64 1040, !14, i64 1048, !8, i64 1056, !14, i64 1064, !8, i64 1072, !14, i64 1080, !8, i64 1088}
!22 = !{!"double", !9, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!21, !8, i64 1056}
!26 = !{!27, !14, i64 1028}
!27 = !{!"_ZTS10aiNodeAnim", !15, i64 0, !14, i64 1028, !8, i64 1032, !14, i64 1040, !8, i64 1048, !14, i64 1056, !8, i64 1064, !28, i64 1072, !28, i64 1076}
!28 = !{!"_ZTS15aiAnimBehaviour", !9, i64 0}
!29 = distinct !{!29, !24}
!30 = !{!27, !8, i64 1032}
!31 = distinct !{!31, !24}
!32 = !{!13, !8, i64 24}
!33 = !{!34, !14, i64 4}
!34 = !{!"_ZTS6aiMesh", !14, i64 0, !14, i64 4, !14, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !9, i64 48, !9, i64 112, !9, i64 176, !8, i64 208, !14, i64 216, !8, i64 224, !14, i64 232, !15, i64 236, !14, i64 1264, !8, i64 1272, !35, i64 1280, !36, i64 1284, !8, i64 1312}
!35 = !{!"_ZTS16aiMorphingMethod", !9, i64 0}
!36 = !{!"_ZTS6aiAABB", !37, i64 0, !37, i64 12}
!37 = !{!"_ZTS10aiVector3tIfE", !11, i64 0, !11, i64 4, !11, i64 8}
!38 = !{!34, !14, i64 216}
!39 = !{!34, !8, i64 16}
!40 = distinct !{!40, !24}
!41 = !{!34, !14, i64 1264}
!42 = !{!34, !8, i64 224}
!43 = !{i64 0, i64 4, !44, i64 4, i64 4, !44, i64 8, i64 4, !44}
!44 = !{!11, !11, i64 0}
!45 = !{i64 0, i64 4, !44, i64 4, i64 4, !44, i64 8, i64 4, !44, i64 12, i64 4, !44, i64 16, i64 4, !44, i64 20, i64 4, !44, i64 24, i64 4, !44, i64 28, i64 4, !44, i64 32, i64 4, !44, i64 36, i64 4, !44, i64 40, i64 4, !44, i64 44, i64 4, !44, i64 48, i64 4, !44, i64 52, i64 4, !44, i64 56, i64 4, !44, i64 60, i64 4, !44}
!46 = distinct !{!46, !24}
!47 = distinct !{!47, !24}
!48 = !{!34, !8, i64 1272}
!49 = !{!50, !14, i64 1192}
!50 = !{!"_ZTS10aiAnimMesh", !15, i64 0, !8, i64 1032, !8, i64 1040, !8, i64 1048, !8, i64 1056, !9, i64 1064, !9, i64 1128, !14, i64 1192, !11, i64 1196}
!51 = distinct !{!51, !24}
!52 = !{!50, !8, i64 1032}
!53 = distinct !{!53, !24}


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