; LLVM IR from Angelo1211/HybridRenderingEngine :: src/model.ll (ZN5Model11processMeshEP6aiMeshPK7aiScene)

; 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.Mesh = type <{ %"class.std::vector.11", %"class.std::vector.16", %"class.std::vector.16", i32, i32, i32, [4 x i8] }>
%"class.std::vector.11" = type { %"struct.std::_Vector_base.12" }
%"struct.std::_Vector_base.12" = type { %"struct.std::_Vector_base<Vertex, std::allocator<Vertex>>::_Vector_impl" }
%"struct.std::_Vector_base<Vertex, std::allocator<Vertex>>::_Vector_impl" = type { %"struct.std::_Vector_base<Vertex, std::allocator<Vertex>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Vertex, std::allocator<Vertex>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Vertex = type { %"struct.glm::vec.21", %"struct.glm::vec.21", %"struct.glm::vec.21", %"struct.glm::vec.21", %"struct.glm::vec.26" }
%"struct.glm::vec.21" = type { %union.anon.22 }
%union.anon.22 = type { %struct.anon.23 }
%struct.anon.23 = type { float, float, float }
%"struct.glm::vec.26" = type { %union.anon.27 }
%union.anon.27 = type { %struct.anon.28 }
%struct.anon.28 = type { float, float }
%struct.aiFace = type { i32, ptr }
%struct.aiMesh = type <{ i32, i32, i32, [4 x i8], ptr, ptr, ptr, ptr, [8 x ptr], [8 x ptr], [8 x i32], ptr, i32, [4 x i8], ptr, i32, [4 x i8], %struct.aiString, i32, [4 x i8], ptr, i32, [4 x i8] }>
%struct.aiString = type { i64, [1024 x i8] }
%class.aiVector3t = type { float, float, float }
%struct.aiScene = type { i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, ptr, ptr }

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

declare i32 @__gxx_personality_v0(...)

; 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 @_ZN5Model11processMeshEP6aiMeshPK7aiScene(ptr dead_on_unwind noalias writable sret(%struct.Mesh) align 8 %0, ptr noundef nonnull align 8 dereferenceable(216) %1, ptr noundef %2, ptr noundef %3) #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.std::vector.11", align 8
  %10 = alloca %"class.std::vector.16", align 8
  %11 = alloca %"class.std::vector.16", align 8
  %12 = alloca i32, align 4
  %13 = alloca %struct.Vertex, align 4
  %14 = alloca %"struct.glm::vec.21", align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca %"struct.glm::vec.26", align 4
  %18 = alloca %"struct.glm::vec.26", align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %struct.aiFace, align 8
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca %"class.std::vector.16", align 8
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %25 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #5
  call void @_ZNSt6vectorI6VertexSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #5
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #5
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %26

26:                                               ; preds = %198, %4
  %27 = load i32, ptr %12, align 4, !tbaa !9
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.aiMesh, ptr %28, i32 0, i32 1
  %30 = load i32, ptr %29, align 4, !tbaa !11
  %31 = icmp ult i32 %27, %30
  br i1 %31, label %33, label %32

32:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %202

33:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 56, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #5
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.aiMesh, ptr %34, i32 0, i32 4
  %36 = load ptr, ptr %35, align 8, !tbaa !15
  %37 = load i32, ptr %12, align 4, !tbaa !9
  %38 = zext i32 %37 to i64
  %39 = getelementptr inbounds %class.aiVector3t, ptr %36, i64 %38
  %40 = getelementptr inbounds %class.aiVector3t, ptr %39, i32 0, i32 0
  %41 = load float, ptr %40, align 4, !tbaa !16
  %42 = getelementptr inbounds %"struct.glm::vec.21", ptr %14, i32 0, i32 0
  %43 = getelementptr inbounds %struct.anon.23, ptr %42, i32 0, i32 0
  store float %41, ptr %43, align 4, !tbaa !19
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.aiMesh, ptr %44, i32 0, i32 4
  %46 = load ptr, ptr %45, align 8, !tbaa !15
  %47 = load i32, ptr %12, align 4, !tbaa !9
  %48 = zext i32 %47 to i64
  %49 = getelementptr inbounds %class.aiVector3t, ptr %46, i64 %48
  %50 = getelementptr inbounds %class.aiVector3t, ptr %49, i32 0, i32 1
  %51 = load float, ptr %50, align 4, !tbaa !20
  %52 = getelementptr inbounds %"struct.glm::vec.21", ptr %14, i32 0, i32 0
  %53 = getelementptr inbounds %struct.anon.23, ptr %52, i32 0, i32 1
  store float %51, ptr %53, align 4, !tbaa !19
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.aiMesh, ptr %54, i32 0, i32 4
  %56 = load ptr, ptr %55, align 8, !tbaa !15
  %57 = load i32, ptr %12, align 4, !tbaa !9
  %58 = zext i32 %57 to i64
  %59 = getelementptr inbounds %class.aiVector3t, ptr %56, i64 %58
  %60 = getelementptr inbounds %class.aiVector3t, ptr %59, i32 0, i32 2
  %61 = load float, ptr %60, align 4, !tbaa !21
  %62 = getelementptr inbounds %"struct.glm::vec.21", ptr %14, i32 0, i32 0
  %63 = getelementptr inbounds %struct.anon.23, ptr %62, i32 0, i32 2
  store float %61, ptr %63, align 4, !tbaa !19
  %64 = getelementptr inbounds %struct.Vertex, ptr %13, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %64, ptr align 4 %14, i64 12, i1 false), !tbaa.struct !22
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.aiMesh, ptr %65, i32 0, i32 6
  %67 = load ptr, ptr %66, align 8, !tbaa !23
  %68 = load i32, ptr %12, align 4, !tbaa !9
  %69 = zext i32 %68 to i64
  %70 = getelementptr inbounds %class.aiVector3t, ptr %67, i64 %69
  %71 = getelementptr inbounds %class.aiVector3t, ptr %70, i32 0, i32 0
  %72 = load float, ptr %71, align 4, !tbaa !16
  %73 = getelementptr inbounds %"struct.glm::vec.21", ptr %14, i32 0, i32 0
  %74 = getelementptr inbounds %struct.anon.23, ptr %73, i32 0, i32 0
  store float %72, ptr %74, align 4, !tbaa !19
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.aiMesh, ptr %75, i32 0, i32 6
  %77 = load ptr, ptr %76, align 8, !tbaa !23
  %78 = load i32, ptr %12, align 4, !tbaa !9
  %79 = zext i32 %78 to i64
  %80 = getelementptr inbounds %class.aiVector3t, ptr %77, i64 %79
  %81 = getelementptr inbounds %class.aiVector3t, ptr %80, i32 0, i32 1
  %82 = load float, ptr %81, align 4, !tbaa !20
  %83 = getelementptr inbounds %"struct.glm::vec.21", ptr %14, i32 0, i32 0
  %84 = getelementptr inbounds %struct.anon.23, ptr %83, i32 0, i32 1
  store float %82, ptr %84, align 4, !tbaa !19
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.aiMesh, ptr %85, i32 0, i32 6
  %87 = load ptr, ptr %86, align 8, !tbaa !23
  %88 = load i32, ptr %12, align 4, !tbaa !9
  %89 = zext i32 %88 to i64
  %90 = getelementptr inbounds %class.aiVector3t, ptr %87, i64 %89
  %91 = getelementptr inbounds %class.aiVector3t, ptr %90, i32 0, i32 2
  %92 = load float, ptr %91, align 4, !tbaa !21
  %93 = getelementptr inbounds %"struct.glm::vec.21", ptr %14, i32 0, i32 0
  %94 = getelementptr inbounds %struct.anon.23, ptr %93, i32 0, i32 2
  store float %92, ptr %94, align 4, !tbaa !19
  %95 = getelementptr inbounds %struct.Vertex, ptr %13, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %95, ptr align 4 %14, i64 12, i1 false), !tbaa.struct !22
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.aiMesh, ptr %96, i32 0, i32 7
  %98 = load ptr, ptr %97, align 8, !tbaa !24
  %99 = load i32, ptr %12, align 4, !tbaa !9
  %100 = zext i32 %99 to i64
  %101 = getelementptr inbounds %class.aiVector3t, ptr %98, i64 %100
  %102 = getelementptr inbounds %class.aiVector3t, ptr %101, i32 0, i32 0
  %103 = load float, ptr %102, align 4, !tbaa !16
  %104 = getelementptr inbounds %"struct.glm::vec.21", ptr %14, i32 0, i32 0
  %105 = getelementptr inbounds %struct.anon.23, ptr %104, i32 0, i32 0
  store float %103, ptr %105, align 4, !tbaa !19
  %106 = load ptr, ptr %7, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.aiMesh, ptr %106, i32 0, i32 7
  %108 = load ptr, ptr %107, align 8, !tbaa !24
  %109 = load i32, ptr %12, align 4, !tbaa !9
  %110 = zext i32 %109 to i64
  %111 = getelementptr inbounds %class.aiVector3t, ptr %108, i64 %110
  %112 = getelementptr inbounds %class.aiVector3t, ptr %111, i32 0, i32 1
  %113 = load float, ptr %112, align 4, !tbaa !20
  %114 = getelementptr inbounds %"struct.glm::vec.21", ptr %14, i32 0, i32 0
  %115 = getelementptr inbounds %struct.anon.23, ptr %114, i32 0, i32 1
  store float %113, ptr %115, align 4, !tbaa !19
  %116 = load ptr, ptr %7, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.aiMesh, ptr %116, i32 0, i32 7
  %118 = load ptr, ptr %117, align 8, !tbaa !24
  %119 = load i32, ptr %12, align 4, !tbaa !9
  %120 = zext i32 %119 to i64
  %121 = getelementptr inbounds %class.aiVector3t, ptr %118, i64 %120
  %122 = getelementptr inbounds %class.aiVector3t, ptr %121, i32 0, i32 2
  %123 = load float, ptr %122, align 4, !tbaa !21
  %124 = getelementptr inbounds %"struct.glm::vec.21", ptr %14, i32 0, i32 0
  %125 = getelementptr inbounds %struct.anon.23, ptr %124, i32 0, i32 2
  store float %123, ptr %125, align 4, !tbaa !19
  %126 = getelementptr inbounds %struct.Vertex, ptr %13, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %126, ptr align 4 %14, i64 12, i1 false), !tbaa.struct !22
  %127 = load ptr, ptr %7, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.aiMesh, ptr %127, i32 0, i32 5
  %129 = load ptr, ptr %128, align 8, !tbaa !25
  %130 = load i32, ptr %12, align 4, !tbaa !9
  %131 = zext i32 %130 to i64
  %132 = getelementptr inbounds %class.aiVector3t, ptr %129, i64 %131
  %133 = getelementptr inbounds %class.aiVector3t, ptr %132, i32 0, i32 0
  %134 = load float, ptr %133, align 4, !tbaa !16
  %135 = getelementptr inbounds %"struct.glm::vec.21", ptr %14, i32 0, i32 0
  %136 = getelementptr inbounds %struct.anon.23, ptr %135, i32 0, i32 0
  store float %134, ptr %136, align 4, !tbaa !19
  %137 = load ptr, ptr %7, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.aiMesh, ptr %137, i32 0, i32 5
  %139 = load ptr, ptr %138, align 8, !tbaa !25
  %140 = load i32, ptr %12, align 4, !tbaa !9
  %141 = zext i32 %140 to i64
  %142 = getelementptr inbounds %class.aiVector3t, ptr %139, i64 %141
  %143 = getelementptr inbounds %class.aiVector3t, ptr %142, i32 0, i32 1
  %144 = load float, ptr %143, align 4, !tbaa !20
  %145 = getelementptr inbounds %"struct.glm::vec.21", ptr %14, i32 0, i32 0
  %146 = getelementptr inbounds %struct.anon.23, ptr %145, i32 0, i32 1
  store float %144, ptr %146, align 4, !tbaa !19
  %147 = load ptr, ptr %7, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.aiMesh, ptr %147, i32 0, i32 5
  %149 = load ptr, ptr %148, align 8, !tbaa !25
  %150 = load i32, ptr %12, align 4, !tbaa !9
  %151 = zext i32 %150 to i64
  %152 = getelementptr inbounds %class.aiVector3t, ptr %149, i64 %151
  %153 = getelementptr inbounds %class.aiVector3t, ptr %152, i32 0, i32 2
  %154 = load float, ptr %153, align 4, !tbaa !21
  %155 = getelementptr inbounds %"struct.glm::vec.21", ptr %14, i32 0, i32 0
  %156 = getelementptr inbounds %struct.anon.23, ptr %155, i32 0, i32 2
  store float %154, ptr %156, align 4, !tbaa !19
  %157 = getelementptr inbounds %struct.Vertex, ptr %13, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %157, ptr align 4 %14, i64 12, i1 false), !tbaa.struct !22
  %158 = load ptr, ptr %7, align 8, !tbaa !5
  %159 = invoke noundef zeroext i1 @_ZNK6aiMesh16HasTextureCoordsEj(ptr noundef nonnull align 8 dereferenceable(1292) %158, i32 noundef 0)
          to label %160 unwind label %185

160:                                              ; preds = %33
  br i1 %159, label %161, label %189

161:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %162 = load ptr, ptr %7, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.aiMesh, ptr %162, i32 0, i32 9
  %164 = getelementptr inbounds [8 x ptr], ptr %163, i64 0, i64 0
  %165 = load ptr, ptr %164, align 8, !tbaa !5
  %166 = load i32, ptr %12, align 4, !tbaa !9
  %167 = zext i32 %166 to i64
  %168 = getelementptr inbounds %class.aiVector3t, ptr %165, i64 %167
  %169 = getelementptr inbounds %class.aiVector3t, ptr %168, i32 0, i32 0
  %170 = load float, ptr %169, align 4, !tbaa !16
  %171 = getelementptr inbounds %"struct.glm::vec.26", ptr %17, i32 0, i32 0
  %172 = getelementptr inbounds %struct.anon.28, ptr %171, i32 0, i32 0
  store float %170, ptr %172, align 4, !tbaa !19
  %173 = load ptr, ptr %7, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.aiMesh, ptr %173, i32 0, i32 9
  %175 = getelementptr inbounds [8 x ptr], ptr %174, i64 0, i64 0
  %176 = load ptr, ptr %175, align 8, !tbaa !5
  %177 = load i32, ptr %12, align 4, !tbaa !9
  %178 = zext i32 %177 to i64
  %179 = getelementptr inbounds %class.aiVector3t, ptr %176, i64 %178
  %180 = getelementptr inbounds %class.aiVector3t, ptr %179, i32 0, i32 1
  %181 = load float, ptr %180, align 4, !tbaa !20
  %182 = getelementptr inbounds %"struct.glm::vec.26", ptr %17, i32 0, i32 0
  %183 = getelementptr inbounds %struct.anon.28, ptr %182, i32 0, i32 1
  store float %181, ptr %183, align 4, !tbaa !19
  %184 = getelementptr inbounds %struct.Vertex, ptr %13, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %184, ptr align 4 %17, i64 8, i1 false), !tbaa.struct !26
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %196

185:                                              ; preds = %196, %33
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %15, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %16, align 4
  br label %201

189:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  invoke void @_ZN3glm3vecILi2EfLNS_9qualifierE0EEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %18, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %190 unwind label %192

190:                                              ; preds = %189
  %191 = getelementptr inbounds %struct.Vertex, ptr %13, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %191, ptr align 4 %18, i64 8, i1 false), !tbaa.struct !26
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %196

192:                                              ; preds = %189
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %15, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %201

196:                                              ; preds = %190, %161
  invoke void @_ZNSt6vectorI6VertexSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 4 dereferenceable(56) %13)
          to label %197 unwind label %185

197:                                              ; preds = %196
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %13) #5
  br label %198

198:                                              ; preds = %197
  %199 = load i32, ptr %12, align 4, !tbaa !9
  %200 = add i32 %199, 1
  store i32 %200, ptr %12, align 4, !tbaa !9
  br label %26, !llvm.loop !27

201:                                              ; preds = %192, %185
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %270

202:                                              ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %203

203:                                              ; preds = %243, %202
  %204 = load i32, ptr %19, align 4, !tbaa !9
  %205 = load ptr, ptr %7, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.aiMesh, ptr %205, i32 0, i32 2
  %207 = load i32, ptr %206, align 8, !tbaa !29
  %208 = icmp ult i32 %204, %207
  br i1 %208, label %210, label %209

209:                                              ; preds = %203
  store i32 5, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %247

210:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #5
  %211 = load ptr, ptr %7, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.aiMesh, ptr %211, i32 0, i32 11
  %213 = load ptr, ptr %212, align 8, !tbaa !30
  %214 = load i32, ptr %19, align 4, !tbaa !9
  %215 = zext i32 %214 to i64
  %216 = getelementptr inbounds %struct.aiFace, ptr %213, i64 %215
  invoke void @_ZN6aiFaceC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) %216)
          to label %217 unwind label %224

217:                                              ; preds = %210
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %218

218:                                              ; preds = %235, %217
  %219 = load i32, ptr %22, align 4, !tbaa !9
  %220 = getelementptr inbounds %struct.aiFace, ptr %21, i32 0, i32 0
  %221 = load i32, ptr %220, align 8, !tbaa !31
  %222 = icmp ult i32 %219, %221
  br i1 %222, label %228, label %223

223:                                              ; preds = %218
  store i32 8, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %242

224:                                              ; preds = %210
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %15, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %16, align 4
  br label %246

228:                                              ; preds = %218
  %229 = getelementptr inbounds %struct.aiFace, ptr %21, i32 0, i32 1
  %230 = load ptr, ptr %229, align 8, !tbaa !33
  %231 = load i32, ptr %22, align 4, !tbaa !9
  %232 = zext i32 %231 to i64
  %233 = getelementptr inbounds i32, ptr %230, i64 %232
  invoke void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 4 dereferenceable(4) %233)
          to label %234 unwind label %238

234:                                              ; preds = %228
  br label %235

235:                                              ; preds = %234
  %236 = load i32, ptr %22, align 4, !tbaa !9
  %237 = add i32 %236, 1
  store i32 %237, ptr %22, align 4, !tbaa !9
  br label %218, !llvm.loop !34

238:                                              ; preds = %228
  %239 = landingpad { ptr, i32 }
          cleanup
  %240 = extractvalue { ptr, i32 } %239, 0
  store ptr %240, ptr %15, align 8
  %241 = extractvalue { ptr, i32 } %239, 1
  store i32 %241, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @_ZN6aiFaceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #5
  br label %246

242:                                              ; preds = %223
  call void @_ZN6aiFaceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #5
  br label %243

243:                                              ; preds = %242
  %244 = load i32, ptr %19, align 4, !tbaa !9
  %245 = add i32 %244, 1
  store i32 %245, ptr %19, align 4, !tbaa !9
  br label %203, !llvm.loop !35

246:                                              ; preds = %238, %224
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %270

247:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %248 = load ptr, ptr %8, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.aiScene, ptr %248, i32 0, i32 5
  %250 = load ptr, ptr %249, align 8, !tbaa !36
  %251 = load ptr, ptr %7, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.aiMesh, ptr %251, i32 0, i32 15
  %253 = load i32, ptr %252, align 8, !tbaa !38
  %254 = zext i32 %253 to i64
  %255 = getelementptr inbounds ptr, ptr %250, i64 %254
  %256 = load ptr, ptr %255, align 8, !tbaa !5
  store ptr %256, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #5
  %257 = load ptr, ptr %23, align 8, !tbaa !5
  invoke void @_ZN5Model15processTexturesEPK10aiMaterial(ptr dead_on_unwind writable sret(%"class.std::vector.16") align 8 %24, ptr noundef nonnull align 8 dereferenceable(216) %25, ptr noundef %257)
          to label %258 unwind label %261

258:                                              ; preds = %247
  %259 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIjSaIjEEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %24) #5
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #5
  invoke void @_ZN4MeshC2ERKSt6vectorI6VertexSaIS1_EERKS0_IjSaIjEES9_(ptr noundef nonnull align 8 dereferenceable(84) %0, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %260 unwind label %265

260:                                              ; preds = %258
  store i32 1, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #5
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #5
  call void @_ZNSt6vectorI6VertexSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #5
  ret void

261:                                              ; preds = %247
  %262 = landingpad { ptr, i32 }
          cleanup
  %263 = extractvalue { ptr, i32 } %262, 0
  store ptr %263, ptr %15, align 8
  %264 = extractvalue { ptr, i32 } %262, 1
  store i32 %264, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #5
  br label %269

265:                                              ; preds = %258
  %266 = landingpad { ptr, i32 }
          cleanup
  %267 = extractvalue { ptr, i32 } %266, 0
  store ptr %267, ptr %15, align 8
  %268 = extractvalue { ptr, i32 } %266, 1
  store i32 %268, ptr %16, align 4
  br label %269

269:                                              ; preds = %265, %261
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %270

270:                                              ; preds = %269, %246, %201
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #5
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #5
  call void @_ZNSt6vectorI6VertexSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #5
  br label %271

271:                                              ; preds = %270
  %272 = load ptr, ptr %15, align 8
  %273 = load i32, ptr %16, align 4
  %274 = insertvalue { ptr, i32 } poison, ptr %272, 0
  %275 = insertvalue { ptr, i32 } %274, i32 %273, 1
  resume { ptr, i32 } %275
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI6VertexSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6aiMesh16HasTextureCoordsEj(ptr noundef nonnull align 8 dereferenceable(1292), i32 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3glm3vecILi2EfLNS_9qualifierE0EEC2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI6VertexSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(56)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6aiFaceC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Model15processTexturesEPK10aiMaterial(ptr dead_on_unwind noalias writable sret(%"class.std::vector.16") align 8, ptr noundef nonnull align 8 dereferenceable(216), ptr noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIjSaIjEEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4MeshC2ERKSt6vectorI6VertexSaIS1_EERKS0_IjSaIjEES9_(ptr noundef nonnull align 8 dereferenceable(84), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI6VertexSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 4}
!12 = !{!"_ZTS6aiMesh", !10, i64 0, !10, i64 4, !10, 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, !10, i64 216, !6, i64 224, !10, i64 232, !13, i64 240, !10, i64 1272, !6, i64 1280, !10, i64 1288}
!13 = !{!"_ZTS8aiString", !14, i64 0, !7, i64 8}
!14 = !{!"long", !7, i64 0}
!15 = !{!12, !6, i64 16}
!16 = !{!17, !18, i64 0}
!17 = !{!"_ZTS10aiVector3tIfE", !18, i64 0, !18, i64 4, !18, i64 8}
!18 = !{!"float", !7, i64 0}
!19 = !{!7, !7, i64 0}
!20 = !{!17, !18, i64 4}
!21 = !{!17, !18, i64 8}
!22 = !{i64 0, i64 12, !19}
!23 = !{!12, !6, i64 32}
!24 = !{!12, !6, i64 40}
!25 = !{!12, !6, i64 24}
!26 = !{i64 0, i64 8, !19}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!12, !10, i64 8}
!30 = !{!12, !6, i64 208}
!31 = !{!32, !10, i64 0}
!32 = !{!"_ZTS6aiFace", !10, i64 0, !6, i64 8}
!33 = !{!32, !6, i64 8}
!34 = distinct !{!34, !28}
!35 = distinct !{!35, !28}
!36 = !{!37, !6, i64 40}
!37 = !{!"_ZTS7aiScene", !10, i64 0, !6, i64 8, !10, i64 16, !6, i64 24, !10, i64 32, !6, i64 40, !10, i64 48, !6, i64 56, !10, i64 64, !6, i64 72, !10, i64 80, !6, i64 88, !10, i64 96, !6, i64 104, !6, i64 112, !6, i64 120}
!38 = !{!12, !10, i64 232}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.Mesh = type <{ %"class.std::vector.11", %"class.std::vector.16", %"class.std::vector.16", i32, i32, i32, [4 x i8] }>
%"class.std::vector.11" = type { %"struct.std::_Vector_base.12" }
%"struct.std::_Vector_base.12" = type { %"struct.std::_Vector_base<Vertex, std::allocator<Vertex>>::_Vector_impl" }
%"struct.std::_Vector_base<Vertex, std::allocator<Vertex>>::_Vector_impl" = type { %"struct.std::_Vector_base<Vertex, std::allocator<Vertex>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Vertex, std::allocator<Vertex>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Vertex = type { %"struct.glm::vec.21", %"struct.glm::vec.21", %"struct.glm::vec.21", %"struct.glm::vec.21", %"struct.glm::vec.26" }
%"struct.glm::vec.21" = type { %union.anon.22 }
%union.anon.22 = type { %struct.anon.23 }
%struct.anon.23 = type { float, float, float }
%"struct.glm::vec.26" = type { %union.anon.27 }
%union.anon.27 = type { %struct.anon.28 }
%struct.anon.28 = type { float, float }
%struct.aiFace = type { i32, ptr }
%class.aiVector3t = type { float, float, float }

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

declare i32 @__gxx_personality_v0(...)

; 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 @_ZN5Model11processMeshEP6aiMeshPK7aiScene(ptr dead_on_unwind noalias writable sret(%struct.Mesh) align 8 %0, ptr noundef nonnull align 8 dereferenceable(216) %1, ptr noundef %2, ptr nocapture noundef readonly %3) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::vector.11", align 8
  %6 = alloca %"class.std::vector.16", align 8
  %7 = alloca %"class.std::vector.16", align 8
  %8 = alloca %struct.Vertex, align 8
  %9 = alloca %"struct.glm::vec.26", align 8
  %10 = alloca %struct.aiFace, align 8
  %11 = alloca %"class.std::vector.16", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #4
  call void @_ZNSt6vectorI6VertexSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #4
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #4
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  %12 = getelementptr inbounds i8, ptr %2, i64 4
  %13 = load i32, ptr %12, align 4, !tbaa !5
  %.not = icmp eq i32 %13, 0
  br i1 %.not, label %.preheader72, label %.lr.ph

.lr.ph:                                           ; preds = %4
  %14 = getelementptr inbounds i8, ptr %2, i64 16
  %.sroa.15.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  %15 = getelementptr inbounds i8, ptr %2, i64 32
  %16 = getelementptr inbounds i8, ptr %8, i64 24
  %.sroa.15.0..sroa_idx18 = getelementptr inbounds i8, ptr %8, i64 32
  %17 = getelementptr inbounds i8, ptr %2, i64 40
  %18 = getelementptr inbounds i8, ptr %8, i64 36
  %.sroa.15.0..sroa_idx20 = getelementptr inbounds i8, ptr %8, i64 44
  %19 = getelementptr inbounds i8, ptr %2, i64 24
  %20 = getelementptr inbounds i8, ptr %8, i64 12
  %.sroa.15.0..sroa_idx22 = getelementptr inbounds i8, ptr %8, i64 20
  %21 = getelementptr inbounds i8, ptr %8, i64 48
  %22 = getelementptr inbounds i8, ptr %2, i64 112
  br label %27

.preheader72:                                     ; preds = %58, %4
  %23 = getelementptr inbounds i8, ptr %2, i64 8
  %24 = load i32, ptr %23, align 8, !tbaa !13
  %.not79 = icmp eq i32 %24, 0
  br i1 %.not79, label %._crit_edge78, label %.lr.ph77

.lr.ph77:                                         ; preds = %.preheader72
  %25 = getelementptr inbounds i8, ptr %2, i64 208
  %26 = getelementptr inbounds i8, ptr %10, i64 8
  br label %69

27:                                               ; preds = %.lr.ph, %58
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %58 ]
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %8) #4
  %28 = load ptr, ptr %14, align 8, !tbaa !14
  %29 = getelementptr inbounds %class.aiVector3t, ptr %28, i64 %indvars.iv
  %30 = getelementptr inbounds i8, ptr %29, i64 8
  %31 = load float, ptr %30, align 4, !tbaa !15
  %32 = load <2 x float>, ptr %29, align 4, !tbaa !18
  store <2 x float> %32, ptr %8, align 8
  store float %31, ptr %.sroa.15.0..sroa_idx, align 8, !tbaa !19
  %33 = load ptr, ptr %15, align 8, !tbaa !20
  %34 = getelementptr inbounds %class.aiVector3t, ptr %33, i64 %indvars.iv
  %35 = getelementptr inbounds i8, ptr %34, i64 8
  %36 = load float, ptr %35, align 4, !tbaa !15
  %37 = load <2 x float>, ptr %34, align 4, !tbaa !18
  store <2 x float> %37, ptr %16, align 8
  store float %36, ptr %.sroa.15.0..sroa_idx18, align 8, !tbaa !19
  %38 = load ptr, ptr %17, align 8, !tbaa !21
  %39 = getelementptr inbounds %class.aiVector3t, ptr %38, i64 %indvars.iv
  %40 = getelementptr inbounds i8, ptr %39, i64 8
  %41 = load float, ptr %40, align 4, !tbaa !15
  %42 = load <2 x float>, ptr %39, align 4, !tbaa !18
  store <2 x float> %42, ptr %18, align 4
  store float %41, ptr %.sroa.15.0..sroa_idx20, align 4, !tbaa !19
  %43 = load ptr, ptr %19, align 8, !tbaa !22
  %44 = getelementptr inbounds %class.aiVector3t, ptr %43, i64 %indvars.iv
  %45 = getelementptr inbounds i8, ptr %44, i64 8
  %46 = load float, ptr %45, align 4, !tbaa !15
  %47 = load <2 x float>, ptr %44, align 4, !tbaa !18
  store <2 x float> %47, ptr %20, align 4
  store float %46, ptr %.sroa.15.0..sroa_idx22, align 4, !tbaa !19
  %48 = call noundef zeroext i1 @_ZNK6aiMesh16HasTextureCoordsEj(ptr noundef nonnull align 8 dereferenceable(1292) %2, i32 noundef 0)
  br i1 %48, label %49, label %55

49:                                               ; preds = %27
  %50 = load ptr, ptr %22, align 8, !tbaa !23
  %51 = getelementptr inbounds %class.aiVector3t, ptr %50, i64 %indvars.iv
  %52 = load <2 x float>, ptr %51, align 4, !tbaa !18
  store <2 x float> %52, ptr %21, align 8
  br label %57

53:                                               ; preds = %57
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #4
  br label %94

55:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  call void @_ZN3glm3vecILi2EfLNS_9qualifierE0EEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %9, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %56 = load i64, ptr %9, align 8, !tbaa !19
  store i64 %56, ptr %21, align 8, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  br label %57

57:                                               ; preds = %55, %49
  invoke void @_ZNSt6vectorI6VertexSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 4 dereferenceable(56) %8)
          to label %58 unwind label %53

58:                                               ; preds = %57
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %59 = load i32, ptr %12, align 4, !tbaa !5
  %60 = zext i32 %59 to i64
  %61 = icmp ult i64 %indvars.iv.next, %60
  br i1 %61, label %27, label %.preheader72, !llvm.loop !24

._crit_edge78:                                    ; preds = %._crit_edge, %.preheader72
  %62 = getelementptr inbounds i8, ptr %3, i64 40
  %63 = load ptr, ptr %62, align 8, !tbaa !26
  %64 = getelementptr inbounds i8, ptr %2, i64 232
  %65 = load i32, ptr %64, align 8, !tbaa !28
  %66 = zext i32 %65 to i64
  %67 = getelementptr inbounds ptr, ptr %63, i64 %66
  %68 = load ptr, ptr %67, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #4
  invoke void @_ZN5Model15processTexturesEPK10aiMaterial(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.16") align 8 %11, ptr noundef nonnull align 8 dereferenceable(216) %1, ptr noundef %68)
          to label %87 unwind label %90

69:                                               ; preds = %.lr.ph77, %._crit_edge
  %indvars.iv85 = phi i64 [ 0, %.lr.ph77 ], [ %indvars.iv.next86, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #4
  %70 = load ptr, ptr %25, align 8, !tbaa !29
  %71 = getelementptr inbounds %struct.aiFace, ptr %70, i64 %indvars.iv85
  invoke void @_ZN6aiFaceC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %71)
          to label %.preheader unwind label %76

.preheader:                                       ; preds = %69
  %72 = load i32, ptr %10, align 8, !tbaa !30
  %.not80 = icmp eq i32 %72, 0
  br i1 %.not80, label %._crit_edge, label %.lr.ph75

._crit_edge:                                      ; preds = %80, %.preheader
  call void @_ZN6aiFaceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #4
  %indvars.iv.next86 = add nuw nsw i64 %indvars.iv85, 1
  %73 = load i32, ptr %23, align 8, !tbaa !13
  %74 = zext i32 %73 to i64
  %75 = icmp ult i64 %indvars.iv.next86, %74
  br i1 %75, label %69, label %._crit_edge78, !llvm.loop !32

76:                                               ; preds = %69
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %86

.lr.ph75:                                         ; preds = %.preheader, %80
  %indvars.iv82 = phi i64 [ %indvars.iv.next83, %80 ], [ 0, %.preheader ]
  %78 = load ptr, ptr %26, align 8, !tbaa !33
  %79 = getelementptr inbounds i32, ptr %78, i64 %indvars.iv82
  invoke void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 4 dereferenceable(4) %79)
          to label %80 unwind label %84

80:                                               ; preds = %.lr.ph75
  %indvars.iv.next83 = add nuw nsw i64 %indvars.iv82, 1
  %81 = load i32, ptr %10, align 8, !tbaa !30
  %82 = zext i32 %81 to i64
  %83 = icmp ult i64 %indvars.iv.next83, %82
  br i1 %83, label %.lr.ph75, label %._crit_edge, !llvm.loop !34

84:                                               ; preds = %.lr.ph75
  %85 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6aiFaceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #4
  br label %86

86:                                               ; preds = %84, %76
  %.pn68 = phi { ptr, i32 } [ %85, %84 ], [ %77, %76 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #4
  br label %94

87:                                               ; preds = %._crit_edge78
  %88 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIjSaIjEEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #4
  invoke void @_ZN4MeshC2ERKSt6vectorI6VertexSaIS1_EERKS0_IjSaIjEES9_(ptr noundef nonnull align 8 dereferenceable(84) %0, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %89 unwind label %92

89:                                               ; preds = %87
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  call void @_ZNSt6vectorI6VertexSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  ret void

90:                                               ; preds = %._crit_edge78
  %91 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #4
  br label %94

92:                                               ; preds = %87
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %94

94:                                               ; preds = %90, %92, %86, %53
  %.pn70 = phi { ptr, i32 } [ %54, %53 ], [ %.pn68, %86 ], [ %93, %92 ], [ %91, %90 ]
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  call void @_ZNSt6vectorI6VertexSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  resume { ptr, i32 } %.pn70
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI6VertexSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6aiMesh16HasTextureCoordsEj(ptr noundef nonnull align 8 dereferenceable(1292), i32 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI6VertexSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(56)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6aiFaceC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Model15processTexturesEPK10aiMaterial(ptr dead_on_unwind noalias writable sret(%"class.std::vector.16") align 8, ptr noundef nonnull align 8 dereferenceable(216), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIjSaIjEEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4MeshC2ERKSt6vectorI6VertexSaIS1_EERKS0_IjSaIjEES9_(ptr noundef nonnull align 8 dereferenceable(84), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI6VertexSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 4}
!6 = !{!"_ZTS6aiMesh", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !8, i64 48, !8, i64 112, !8, i64 176, !10, i64 208, !7, i64 216, !10, i64 224, !7, i64 232, !11, i64 240, !7, i64 1272, !10, i64 1280, !7, i64 1288}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_ZTS8aiString", !12, i64 0, !8, i64 8}
!12 = !{!"long", !8, i64 0}
!13 = !{!6, !7, i64 8}
!14 = !{!6, !10, i64 16}
!15 = !{!16, !17, i64 8}
!16 = !{!"_ZTS10aiVector3tIfE", !17, i64 0, !17, i64 4, !17, i64 8}
!17 = !{!"float", !8, i64 0}
!18 = !{!17, !17, i64 0}
!19 = !{!8, !8, i64 0}
!20 = !{!6, !10, i64 32}
!21 = !{!6, !10, i64 40}
!22 = !{!6, !10, i64 24}
!23 = !{!10, !10, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!27, !10, i64 40}
!27 = !{!"_ZTS7aiScene", !7, i64 0, !10, i64 8, !7, i64 16, !10, i64 24, !7, i64 32, !10, i64 40, !7, i64 48, !10, i64 56, !7, i64 64, !10, i64 72, !7, i64 80, !10, i64 88, !7, i64 96, !10, i64 104, !10, i64 112, !10, i64 120}
!28 = !{!6, !7, i64 232}
!29 = !{!6, !10, i64 208}
!30 = !{!31, !7, i64 0}
!31 = !{!"_ZTS6aiFace", !7, i64 0, !10, i64 8}
!32 = distinct !{!32, !25}
!33 = !{!31, !10, i64 8}
!34 = distinct !{!34, !25}


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