; LLVM IR from zeux/meshoptimizer :: demo/main.ll (Z8parseObjPKcRd)

; 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", %"class.std::vector.0" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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 }
%"class.std::allocator" = type { i8 }
%struct.fastObjIndex = type { i32, i32, i32 }
%struct.Vertex = type { float, float, float, float, float, float, float, float }
%"class.std::allocator.2" = type { i8 }
%struct.fastObjMesh = type { i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr }

@.str = external hidden unnamed_addr constant [34 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 nounwind uwtable
declare dso_local noundef double @_Z9timestampv() #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8parseObjPKcRd(ptr dead_on_unwind noalias writable sret(%struct.Mesh) align 8 %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(8) %2) #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::vector", align 8
  %12 = alloca %"class.std::allocator", align 1
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %struct.fastObjIndex, align 4
  %20 = alloca %struct.Vertex, align 4
  %21 = alloca i1, align 1
  %22 = alloca %"class.std::vector.0", align 8
  %23 = alloca %"class.std::allocator.2", align 1
  %24 = alloca i64, align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = call ptr @fast_obj_read(ptr noundef %25)
  store ptr %26, ptr %7, align 8, !tbaa !5
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = icmp ne ptr %27, null
  br i1 %28, label %32, label %29

29:                                               ; preds = %3
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %30)
  call void @llvm.memset.p0.i64(ptr align 8 %0, i8 0, i64 48, i1 false)
  call void @_ZN4MeshC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #7
  store i32 1, ptr %8, align 4
  br label %266

32:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  store i64 0, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !11
  br label %33

33:                                               ; preds = %53, %32
  %34 = load i32, ptr %10, align 4, !tbaa !11
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.fastObjMesh, ptr %35, i32 0, i32 8
  %37 = load i32, ptr %36, align 8, !tbaa !13
  %38 = icmp ult i32 %34, %37
  br i1 %38, label %40, label %39

39:                                               ; preds = %33
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %56

40:                                               ; preds = %33
  %41 = load ptr, ptr %7, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.fastObjMesh, ptr %41, i32 0, i32 9
  %43 = load ptr, ptr %42, align 8, !tbaa !15
  %44 = load i32, ptr %10, align 4, !tbaa !11
  %45 = zext i32 %44 to i64
  %46 = getelementptr inbounds i32, ptr %43, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !11
  %48 = sub i32 %47, 2
  %49 = mul i32 3, %48
  %50 = zext i32 %49 to i64
  %51 = load i64, ptr %9, align 8, !tbaa !9
  %52 = add i64 %51, %50
  store i64 %52, ptr %9, align 8, !tbaa !9
  br label %53

53:                                               ; preds = %40
  %54 = load i32, ptr %10, align 4, !tbaa !11
  %55 = add i32 %54, 1
  store i32 %55, ptr %10, align 4, !tbaa !11
  br label %33, !llvm.loop !16

56:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #7
  %57 = load i64, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #7
  call void @_ZNSaI6VertexEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  invoke void @_ZNSt6vectorI6VertexSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %57, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %58 unwind label %66

58:                                               ; preds = %56
  call void @_ZNSt15__new_allocatorI6VertexED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  store i64 0, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  store i64 0, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !11
  br label %59

59:                                               ; preds = %215, %58
  %60 = load i32, ptr %17, align 4, !tbaa !11
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.fastObjMesh, ptr %61, i32 0, i32 8
  %63 = load i32, ptr %62, align 8, !tbaa !13
  %64 = icmp ult i32 %60, %63
  br i1 %64, label %70, label %65

65:                                               ; preds = %59
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %218

66:                                               ; preds = %56
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %13, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %14, align 4
  call void @_ZNSt15__new_allocatorI6VertexED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #7
  br label %265

70:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !11
  br label %71

71:                                               ; preds = %201, %70
  %72 = load i32, ptr %18, align 4, !tbaa !11
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.fastObjMesh, ptr %73, i32 0, i32 9
  %75 = load ptr, ptr %74, align 8, !tbaa !15
  %76 = load i32, ptr %17, align 4, !tbaa !11
  %77 = zext i32 %76 to i64
  %78 = getelementptr inbounds i32, ptr %75, i64 %77
  %79 = load i32, ptr %78, align 4, !tbaa !11
  %80 = icmp ult i32 %72, %79
  br i1 %80, label %82, label %81

81:                                               ; preds = %71
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %204

82:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #7
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.fastObjMesh, ptr %83, i32 0, i32 12
  %85 = load ptr, ptr %84, align 8, !tbaa !18
  %86 = load i64, ptr %16, align 8, !tbaa !9
  %87 = load i32, ptr %18, align 4, !tbaa !11
  %88 = zext i32 %87 to i64
  %89 = add i64 %86, %88
  %90 = getelementptr inbounds %struct.fastObjIndex, ptr %85, i64 %89
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %90, i64 12, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #7
  %91 = getelementptr inbounds %struct.Vertex, ptr %20, i32 0, i32 0
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.fastObjMesh, ptr %92, i32 0, i32 1
  %94 = load ptr, ptr %93, align 8, !tbaa !20
  %95 = getelementptr inbounds %struct.fastObjIndex, ptr %19, i32 0, i32 0
  %96 = load i32, ptr %95, align 4, !tbaa !21
  %97 = mul i32 %96, 3
  %98 = add i32 %97, 0
  %99 = zext i32 %98 to i64
  %100 = getelementptr inbounds float, ptr %94, i64 %99
  %101 = load float, ptr %100, align 4, !tbaa !23
  store float %101, ptr %91, align 4, !tbaa !25
  %102 = getelementptr inbounds %struct.Vertex, ptr %20, i32 0, i32 1
  %103 = load ptr, ptr %7, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.fastObjMesh, ptr %103, i32 0, i32 1
  %105 = load ptr, ptr %104, align 8, !tbaa !20
  %106 = getelementptr inbounds %struct.fastObjIndex, ptr %19, i32 0, i32 0
  %107 = load i32, ptr %106, align 4, !tbaa !21
  %108 = mul i32 %107, 3
  %109 = add i32 %108, 1
  %110 = zext i32 %109 to i64
  %111 = getelementptr inbounds float, ptr %105, i64 %110
  %112 = load float, ptr %111, align 4, !tbaa !23
  store float %112, ptr %102, align 4, !tbaa !27
  %113 = getelementptr inbounds %struct.Vertex, ptr %20, i32 0, i32 2
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.fastObjMesh, ptr %114, i32 0, i32 1
  %116 = load ptr, ptr %115, align 8, !tbaa !20
  %117 = getelementptr inbounds %struct.fastObjIndex, ptr %19, i32 0, i32 0
  %118 = load i32, ptr %117, align 4, !tbaa !21
  %119 = mul i32 %118, 3
  %120 = add i32 %119, 2
  %121 = zext i32 %120 to i64
  %122 = getelementptr inbounds float, ptr %116, i64 %121
  %123 = load float, ptr %122, align 4, !tbaa !23
  store float %123, ptr %113, align 4, !tbaa !28
  %124 = getelementptr inbounds %struct.Vertex, ptr %20, i32 0, i32 3
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.fastObjMesh, ptr %125, i32 0, i32 5
  %127 = load ptr, ptr %126, align 8, !tbaa !29
  %128 = getelementptr inbounds %struct.fastObjIndex, ptr %19, i32 0, i32 2
  %129 = load i32, ptr %128, align 4, !tbaa !30
  %130 = mul i32 %129, 3
  %131 = add i32 %130, 0
  %132 = zext i32 %131 to i64
  %133 = getelementptr inbounds float, ptr %127, i64 %132
  %134 = load float, ptr %133, align 4, !tbaa !23
  store float %134, ptr %124, align 4, !tbaa !31
  %135 = getelementptr inbounds %struct.Vertex, ptr %20, i32 0, i32 4
  %136 = load ptr, ptr %7, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.fastObjMesh, ptr %136, i32 0, i32 5
  %138 = load ptr, ptr %137, align 8, !tbaa !29
  %139 = getelementptr inbounds %struct.fastObjIndex, ptr %19, i32 0, i32 2
  %140 = load i32, ptr %139, align 4, !tbaa !30
  %141 = mul i32 %140, 3
  %142 = add i32 %141, 1
  %143 = zext i32 %142 to i64
  %144 = getelementptr inbounds float, ptr %138, i64 %143
  %145 = load float, ptr %144, align 4, !tbaa !23
  store float %145, ptr %135, align 4, !tbaa !32
  %146 = getelementptr inbounds %struct.Vertex, ptr %20, i32 0, i32 5
  %147 = load ptr, ptr %7, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.fastObjMesh, ptr %147, i32 0, i32 5
  %149 = load ptr, ptr %148, align 8, !tbaa !29
  %150 = getelementptr inbounds %struct.fastObjIndex, ptr %19, i32 0, i32 2
  %151 = load i32, ptr %150, align 4, !tbaa !30
  %152 = mul i32 %151, 3
  %153 = add i32 %152, 2
  %154 = zext i32 %153 to i64
  %155 = getelementptr inbounds float, ptr %149, i64 %154
  %156 = load float, ptr %155, align 4, !tbaa !23
  store float %156, ptr %146, align 4, !tbaa !33
  %157 = getelementptr inbounds %struct.Vertex, ptr %20, i32 0, i32 6
  %158 = load ptr, ptr %7, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.fastObjMesh, ptr %158, i32 0, i32 3
  %160 = load ptr, ptr %159, align 8, !tbaa !34
  %161 = getelementptr inbounds %struct.fastObjIndex, ptr %19, i32 0, i32 1
  %162 = load i32, ptr %161, align 4, !tbaa !35
  %163 = mul i32 %162, 2
  %164 = add i32 %163, 0
  %165 = zext i32 %164 to i64
  %166 = getelementptr inbounds float, ptr %160, i64 %165
  %167 = load float, ptr %166, align 4, !tbaa !23
  store float %167, ptr %157, align 4, !tbaa !36
  %168 = getelementptr inbounds %struct.Vertex, ptr %20, i32 0, i32 7
  %169 = load ptr, ptr %7, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.fastObjMesh, ptr %169, i32 0, i32 3
  %171 = load ptr, ptr %170, align 8, !tbaa !34
  %172 = getelementptr inbounds %struct.fastObjIndex, ptr %19, i32 0, i32 1
  %173 = load i32, ptr %172, align 4, !tbaa !35
  %174 = mul i32 %173, 2
  %175 = add i32 %174, 1
  %176 = zext i32 %175 to i64
  %177 = getelementptr inbounds float, ptr %171, i64 %176
  %178 = load float, ptr %177, align 4, !tbaa !23
  store float %178, ptr %168, align 4, !tbaa !37
  %179 = load i32, ptr %18, align 4, !tbaa !11
  %180 = icmp uge i32 %179, 3
  br i1 %180, label %181, label %196

181:                                              ; preds = %82
  %182 = load i64, ptr %15, align 8, !tbaa !9
  %183 = sub i64 %182, 3
  %184 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %183) #7
  %185 = load i64, ptr %15, align 8, !tbaa !9
  %186 = add i64 %185, 0
  %187 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %186) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %187, ptr align 4 %184, i64 32, i1 false), !tbaa.struct !38
  %188 = load i64, ptr %15, align 8, !tbaa !9
  %189 = sub i64 %188, 1
  %190 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %189) #7
  %191 = load i64, ptr %15, align 8, !tbaa !9
  %192 = add i64 %191, 1
  %193 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %192) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %193, ptr align 4 %190, i64 32, i1 false), !tbaa.struct !38
  %194 = load i64, ptr %15, align 8, !tbaa !9
  %195 = add i64 %194, 2
  store i64 %195, ptr %15, align 8, !tbaa !9
  br label %196

196:                                              ; preds = %181, %82
  %197 = load i64, ptr %15, align 8, !tbaa !9
  %198 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %197) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %198, ptr align 4 %20, i64 32, i1 false), !tbaa.struct !38
  %199 = load i64, ptr %15, align 8, !tbaa !9
  %200 = add i64 %199, 1
  store i64 %200, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #7
  br label %201

201:                                              ; preds = %196
  %202 = load i32, ptr %18, align 4, !tbaa !11
  %203 = add i32 %202, 1
  store i32 %203, ptr %18, align 4, !tbaa !11
  br label %71, !llvm.loop !39

204:                                              ; preds = %81
  %205 = load ptr, ptr %7, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.fastObjMesh, ptr %205, i32 0, i32 9
  %207 = load ptr, ptr %206, align 8, !tbaa !15
  %208 = load i32, ptr %17, align 4, !tbaa !11
  %209 = zext i32 %208 to i64
  %210 = getelementptr inbounds i32, ptr %207, i64 %209
  %211 = load i32, ptr %210, align 4, !tbaa !11
  %212 = zext i32 %211 to i64
  %213 = load i64, ptr %16, align 8, !tbaa !9
  %214 = add i64 %213, %212
  store i64 %214, ptr %16, align 8, !tbaa !9
  br label %215

215:                                              ; preds = %204
  %216 = load i32, ptr %17, align 4, !tbaa !11
  %217 = add i32 %216, 1
  store i32 %217, ptr %17, align 4, !tbaa !11
  br label %59, !llvm.loop !40

218:                                              ; preds = %65
  %219 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @fast_obj_destroy(ptr noundef %219)
          to label %220 unwind label %249

220:                                              ; preds = %218
  %221 = call noundef double @_Z9timestampv()
  %222 = load ptr, ptr %6, align 8, !tbaa !5
  store double %221, ptr %222, align 8, !tbaa !41
  store i1 false, ptr %21, align 1
  call void @_ZN4MeshC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #7
  %223 = load i64, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #7
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #7
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %223, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %224 unwind label %253

224:                                              ; preds = %220
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %225 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef 0) #7
  %226 = load i64, ptr %9, align 8, !tbaa !9
  %227 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 0) #7
  %228 = load i64, ptr %9, align 8, !tbaa !9
  %229 = invoke i64 @meshopt_generateVertexRemap(ptr noundef %225, ptr noundef null, i64 noundef %226, ptr noundef %227, i64 noundef %228, i64 noundef 32)
          to label %230 unwind label %257

230:                                              ; preds = %224
  store i64 %229, ptr %24, align 8, !tbaa !9
  %231 = getelementptr inbounds %struct.Mesh, ptr %0, i32 0, i32 1
  %232 = load i64, ptr %9, align 8, !tbaa !9
  invoke void @_ZNSt6vectorIjSaIjEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %231, i64 noundef %232)
          to label %233 unwind label %257

233:                                              ; preds = %230
  %234 = getelementptr inbounds %struct.Mesh, ptr %0, i32 0, i32 1
  %235 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %234, i64 noundef 0) #7
  %236 = load i64, ptr %9, align 8, !tbaa !9
  %237 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef 0) #7
  invoke void @meshopt_remapIndexBuffer(ptr noundef %235, ptr noundef null, i64 noundef %236, ptr noundef %237)
          to label %238 unwind label %257

238:                                              ; preds = %233
  %239 = getelementptr inbounds %struct.Mesh, ptr %0, i32 0, i32 0
  %240 = load i64, ptr %24, align 8, !tbaa !9
  invoke void @_ZNSt6vectorI6VertexSaIS0_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %239, i64 noundef %240)
          to label %241 unwind label %257

241:                                              ; preds = %238
  %242 = getelementptr inbounds %struct.Mesh, ptr %0, i32 0, i32 0
  %243 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %242, i64 noundef 0) #7
  %244 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 0) #7
  %245 = load i64, ptr %9, align 8, !tbaa !9
  %246 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef 0) #7
  invoke void @meshopt_remapVertexBuffer(ptr noundef %243, ptr noundef %244, i64 noundef %245, i64 noundef 32, ptr noundef %246)
          to label %247 unwind label %257

247:                                              ; preds = %241
  store i1 true, ptr %21, align 1
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #7
  %248 = load i1, ptr %21, align 1
  br i1 %248, label %263, label %262

249:                                              ; preds = %218
  %250 = landingpad { ptr, i32 }
          cleanup
  %251 = extractvalue { ptr, i32 } %250, 0
  store ptr %251, ptr %13, align 8
  %252 = extractvalue { ptr, i32 } %250, 1
  store i32 %252, ptr %14, align 4
  br label %264

253:                                              ; preds = %220
  %254 = landingpad { ptr, i32 }
          cleanup
  %255 = extractvalue { ptr, i32 } %254, 0
  store ptr %255, ptr %13, align 8
  %256 = extractvalue { ptr, i32 } %254, 1
  store i32 %256, ptr %14, align 4
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #7
  br label %261

257:                                              ; preds = %241, %238, %233, %230, %224
  %258 = landingpad { ptr, i32 }
          cleanup
  %259 = extractvalue { ptr, i32 } %258, 0
  store ptr %259, ptr %13, align 8
  %260 = extractvalue { ptr, i32 } %258, 1
  store i32 %260, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  br label %261

261:                                              ; preds = %257, %253
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #7
  call void @_ZN4MeshD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #7
  br label %264

262:                                              ; preds = %247
  call void @_ZN4MeshD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #7
  br label %263

263:                                              ; preds = %262, %247
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @_ZNSt6vectorI6VertexSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %266

264:                                              ; preds = %261, %249
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @_ZNSt6vectorI6VertexSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  br label %265

265:                                              ; preds = %264, %66
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %267

266:                                              ; preds = %263, %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  ret void

267:                                              ; preds = %265
  %268 = load ptr, ptr %13, align 8
  %269 = load i32, ptr %14, align 4
  %270 = insertvalue { ptr, i32 } poison, ptr %268, 0
  %271 = insertvalue { ptr, i32 } %270, i32 %269, 1
  resume { ptr, i32 } %271
}

declare ptr @fast_obj_read(ptr noundef) #3

declare i32 @printf(ptr noundef, ...) #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4MeshC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #5 align 2

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(32) ptr @_ZNSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

declare void @fast_obj_destroy(ptr noundef) #3

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

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

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

declare i64 @meshopt_generateVertexRemap(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) #3

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

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

declare void @meshopt_remapIndexBuffer(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #3

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

declare void @meshopt_remapVertexBuffer(ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4MeshD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #5 align 2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 64}
!14 = !{!"_ZTS11fastObjMesh", !12, i64 0, !6, i64 8, !12, i64 16, !6, i64 24, !12, i64 32, !6, i64 40, !12, i64 48, !6, i64 56, !12, i64 64, !6, i64 72, !6, i64 80, !12, i64 88, !6, i64 96, !12, i64 104, !6, i64 112, !12, i64 120, !6, i64 128, !12, i64 136, !6, i64 144, !12, i64 152, !6, i64 160}
!15 = !{!14, !6, i64 72}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!14, !6, i64 96}
!19 = !{i64 0, i64 4, !11, i64 4, i64 4, !11, i64 8, i64 4, !11}
!20 = !{!14, !6, i64 8}
!21 = !{!22, !12, i64 0}
!22 = !{!"_ZTS12fastObjIndex", !12, i64 0, !12, i64 4, !12, i64 8}
!23 = !{!24, !24, i64 0}
!24 = !{!"float", !7, i64 0}
!25 = !{!26, !24, i64 0}
!26 = !{!"_ZTS6Vertex", !24, i64 0, !24, i64 4, !24, i64 8, !24, i64 12, !24, i64 16, !24, i64 20, !24, i64 24, !24, i64 28}
!27 = !{!26, !24, i64 4}
!28 = !{!26, !24, i64 8}
!29 = !{!14, !6, i64 40}
!30 = !{!22, !12, i64 8}
!31 = !{!26, !24, i64 12}
!32 = !{!26, !24, i64 16}
!33 = !{!26, !24, i64 20}
!34 = !{!14, !6, i64 24}
!35 = !{!22, !12, i64 4}
!36 = !{!26, !24, i64 24}
!37 = !{!26, !24, i64 28}
!38 = !{i64 0, i64 4, !23, i64 4, i64 4, !23, i64 8, i64 4, !23, i64 12, i64 4, !23, i64 16, i64 4, !23, i64 20, i64 4, !23, i64 24, i64 4, !23, i64 28, i64 4, !23}
!39 = distinct !{!39, !17}
!40 = distinct !{!40, !17}
!41 = !{!42, !42, i64 0}
!42 = !{!"double", !7, i64 0}


; 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", %"class.std::vector.0" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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 }
%"class.std::allocator" = type { i8 }
%"class.std::allocator.2" = type { i8 }
%struct.fastObjIndex = type { i32, i32, i32 }

@.str = external hidden unnamed_addr constant [34 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 nounwind uwtable
declare dso_local noundef double @_Z9timestampv() local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8parseObjPKcRd(ptr dead_on_unwind noalias writable sret(%struct.Mesh) align 8 %0, ptr noundef %1, ptr nocapture noundef nonnull writeonly align 8 dereferenceable(8) %2) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.std::allocator", align 1
  %6 = alloca %"class.std::vector.0", align 8
  %7 = alloca %"class.std::allocator.2", align 1
  %8 = tail call ptr @fast_obj_read(ptr noundef %1)
  %.not = icmp eq ptr %8, null
  br i1 %.not, label %14, label %.preheader74

.preheader74:                                     ; preds = %3
  %9 = getelementptr inbounds i8, ptr %8, i64 64
  %10 = load i32, ptr %9, align 8, !tbaa !5
  %.not88 = icmp eq i32 %10, 0
  br i1 %.not88, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader74
  %11 = getelementptr inbounds i8, ptr %8, i64 72
  %12 = load ptr, ptr %11, align 8, !tbaa !11
  %wide.trip.count = zext i32 %10 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %13 = icmp ult i32 %10, 4
  br i1 %13, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %wide.trip.count, 4294967292
  br label %22

14:                                               ; preds = %3
  %15 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef %1)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %0, i8 0, i64 48, i1 false)
  tail call void @_ZN4MeshC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #8
  br label %277

._crit_edge.loopexit.unr-lcssa:                   ; preds = %22, %.lr.ph
  %.lcssa151.ph = phi i64 [ poison, %.lr.ph ], [ %46, %22 ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next.3, %22 ]
  %.077.unr = phi i64 [ 0, %.lr.ph ], [ %46, %22 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %._crit_edge.loopexit.unr-lcssa ]
  %.077.epil = phi i64 [ %21, %.epil.preheader ], [ %.077.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %16 = getelementptr inbounds i32, ptr %12, i64 %indvars.iv.epil
  %17 = load i32, ptr %16, align 4, !tbaa !12
  %18 = mul i32 %17, 3
  %19 = add i32 %18, -6
  %20 = zext i32 %19 to i64
  %21 = add i64 %.077.epil, %20
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.epil.preheader, !llvm.loop !13

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %.preheader74
  %.0.lcssa = phi i64 [ 0, %.preheader74 ], [ %.lcssa151.ph, %._crit_edge.loopexit.unr-lcssa ], [ %21, %.epil.preheader ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #8
  call void @_ZNSaI6VertexEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
  invoke void @_ZNSt6vectorI6VertexSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.0.lcssa, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %47 unwind label %189

22:                                               ; preds = %22, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.3, %22 ]
  %.077 = phi i64 [ 0, %.lr.ph.new ], [ %46, %22 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %22 ]
  %23 = getelementptr inbounds i32, ptr %12, i64 %indvars.iv
  %24 = load i32, ptr %23, align 4, !tbaa !12
  %25 = mul i32 %24, 3
  %26 = add i32 %25, -6
  %27 = zext i32 %26 to i64
  %28 = add i64 %.077, %27
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %29 = getelementptr inbounds i32, ptr %12, i64 %indvars.iv.next
  %30 = load i32, ptr %29, align 4, !tbaa !12
  %31 = mul i32 %30, 3
  %32 = add i32 %31, -6
  %33 = zext i32 %32 to i64
  %34 = add i64 %28, %33
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %35 = getelementptr inbounds i32, ptr %12, i64 %indvars.iv.next.1
  %36 = load i32, ptr %35, align 4, !tbaa !12
  %37 = mul i32 %36, 3
  %38 = add i32 %37, -6
  %39 = zext i32 %38 to i64
  %40 = add i64 %34, %39
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %41 = getelementptr inbounds i32, ptr %12, i64 %indvars.iv.next.2
  %42 = load i32, ptr %41, align 4, !tbaa !12
  %43 = mul i32 %42, 3
  %44 = add i32 %43, -6
  %45 = zext i32 %44 to i64
  %46 = add i64 %40, %45
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %22, !llvm.loop !15

47:                                               ; preds = %._crit_edge
  call void @_ZNSt15__new_allocatorI6VertexED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #8
  %48 = load i32, ptr %9, align 8, !tbaa !5
  %.not89 = icmp eq i32 %48, 0
  br i1 %.not89, label %._crit_edge87, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %47
  %49 = getelementptr inbounds i8, ptr %8, i64 72
  %50 = getelementptr inbounds i8, ptr %8, i64 96
  %51 = getelementptr inbounds i8, ptr %8, i64 8
  %52 = getelementptr inbounds i8, ptr %8, i64 40
  %53 = getelementptr inbounds i8, ptr %8, i64 24
  %.pre = load ptr, ptr %49, align 8, !tbaa !11
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge81
  %54 = phi i32 [ %48, %.preheader.lr.ph ], [ %192, %._crit_edge81 ]
  %55 = phi ptr [ %.pre, %.preheader.lr.ph ], [ %193, %._crit_edge81 ]
  %indvars.iv131 = phi i64 [ 0, %.preheader.lr.ph ], [ %indvars.iv.next132, %._crit_edge81 ]
  %.06386 = phi i64 [ 0, %.preheader.lr.ph ], [ %.164.lcssa, %._crit_edge81 ]
  %.06685 = phi i64 [ 0, %.preheader.lr.ph ], [ %195, %._crit_edge81 ]
  %56 = getelementptr inbounds i32, ptr %55, i64 %indvars.iv131
  %57 = load i32, ptr %56, align 4, !tbaa !12
  %.not90 = icmp eq i32 %57, 0
  br i1 %.not90, label %._crit_edge81, label %58

58:                                               ; preds = %.preheader
  %59 = load ptr, ptr %50, align 8, !tbaa !17
  %60 = getelementptr %struct.fastObjIndex, ptr %59, i64 %.06685
  %.sroa.01.0.copyload.peel = load i32, ptr %60, align 4, !tbaa !12
  %.sroa.64.0..sroa_idx.peel = getelementptr inbounds i8, ptr %60, i64 4
  %.sroa.64.0.copyload.peel = load i32, ptr %.sroa.64.0..sroa_idx.peel, align 4, !tbaa !12
  %.sroa.86.0..sroa_idx.peel = getelementptr inbounds i8, ptr %60, i64 8
  %.sroa.86.0.copyload.peel = load i32, ptr %.sroa.86.0..sroa_idx.peel, align 4, !tbaa !12
  %61 = load ptr, ptr %51, align 8, !tbaa !18
  %62 = mul i32 %.sroa.01.0.copyload.peel, 3
  %63 = zext i32 %62 to i64
  %64 = getelementptr inbounds float, ptr %61, i64 %63
  %65 = load float, ptr %64, align 4, !tbaa !19
  %66 = add i32 %62, 1
  %67 = zext i32 %66 to i64
  %68 = getelementptr inbounds float, ptr %61, i64 %67
  %69 = load float, ptr %68, align 4, !tbaa !19
  %70 = add i32 %62, 2
  %71 = zext i32 %70 to i64
  %72 = getelementptr inbounds float, ptr %61, i64 %71
  %73 = load float, ptr %72, align 4, !tbaa !19
  %74 = load ptr, ptr %52, align 8, !tbaa !21
  %75 = mul i32 %.sroa.86.0.copyload.peel, 3
  %76 = zext i32 %75 to i64
  %77 = getelementptr inbounds float, ptr %74, i64 %76
  %78 = load float, ptr %77, align 4, !tbaa !19
  %79 = add i32 %75, 1
  %80 = zext i32 %79 to i64
  %81 = getelementptr inbounds float, ptr %74, i64 %80
  %82 = load float, ptr %81, align 4, !tbaa !19
  %83 = add i32 %75, 2
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds float, ptr %74, i64 %84
  %86 = load float, ptr %85, align 4, !tbaa !19
  %87 = load ptr, ptr %53, align 8, !tbaa !22
  %88 = shl i32 %.sroa.64.0.copyload.peel, 1
  %89 = zext i32 %88 to i64
  %90 = getelementptr inbounds float, ptr %87, i64 %89
  %91 = load <2 x float>, ptr %90, align 4, !tbaa !19
  %.pre135 = add i64 %.06386, 1
  %92 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.06386) #8
  store float %65, ptr %92, align 4, !tbaa !19
  %.sroa.4.0..sroa_idx.peel = getelementptr inbounds i8, ptr %92, i64 4
  store float %69, ptr %.sroa.4.0..sroa_idx.peel, align 4, !tbaa !19
  %.sroa.5.0..sroa_idx.peel = getelementptr inbounds i8, ptr %92, i64 8
  store float %73, ptr %.sroa.5.0..sroa_idx.peel, align 4, !tbaa !19
  %.sroa.6.0..sroa_idx.peel = getelementptr inbounds i8, ptr %92, i64 12
  store float %78, ptr %.sroa.6.0..sroa_idx.peel, align 4, !tbaa !19
  %.sroa.7.0..sroa_idx.peel = getelementptr inbounds i8, ptr %92, i64 16
  %93 = insertelement <4 x float> poison, float %82, i64 0
  %94 = insertelement <4 x float> %93, float %86, i64 1
  %95 = shufflevector <2 x float> %91, <2 x float> poison, <4 x i32> <i32 0, i32 1, i32 poison, i32 poison>
  %96 = shufflevector <4 x float> %94, <4 x float> %95, <4 x i32> <i32 0, i32 1, i32 4, i32 5>
  store <4 x float> %96, ptr %.sroa.7.0..sroa_idx.peel, align 4, !tbaa !19
  %97 = load ptr, ptr %49, align 8, !tbaa !11
  %98 = getelementptr inbounds i32, ptr %97, i64 %indvars.iv131
  %99 = load i32, ptr %98, align 4, !tbaa !12
  %100 = icmp ugt i32 %99, 1
  br i1 %100, label %101, label %._crit_edge81.loopexit

101:                                              ; preds = %58
  %102 = load ptr, ptr %50, align 8, !tbaa !17
  %103 = getelementptr %struct.fastObjIndex, ptr %102, i64 %.06685
  %104 = getelementptr i8, ptr %103, i64 12
  %.sroa.01.0.copyload.peel100 = load i32, ptr %104, align 4, !tbaa !12
  %.sroa.64.0..sroa_idx.peel101 = getelementptr i8, ptr %103, i64 16
  %.sroa.64.0.copyload.peel102 = load i32, ptr %.sroa.64.0..sroa_idx.peel101, align 4, !tbaa !12
  %.sroa.86.0..sroa_idx.peel103 = getelementptr i8, ptr %103, i64 20
  %.sroa.86.0.copyload.peel104 = load i32, ptr %.sroa.86.0..sroa_idx.peel103, align 4, !tbaa !12
  %105 = load ptr, ptr %51, align 8, !tbaa !18
  %106 = mul i32 %.sroa.01.0.copyload.peel100, 3
  %107 = zext i32 %106 to i64
  %108 = getelementptr inbounds float, ptr %105, i64 %107
  %109 = load float, ptr %108, align 4, !tbaa !19
  %110 = add i32 %106, 1
  %111 = zext i32 %110 to i64
  %112 = getelementptr inbounds float, ptr %105, i64 %111
  %113 = load float, ptr %112, align 4, !tbaa !19
  %114 = add i32 %106, 2
  %115 = zext i32 %114 to i64
  %116 = getelementptr inbounds float, ptr %105, i64 %115
  %117 = load float, ptr %116, align 4, !tbaa !19
  %118 = load ptr, ptr %52, align 8, !tbaa !21
  %119 = mul i32 %.sroa.86.0.copyload.peel104, 3
  %120 = zext i32 %119 to i64
  %121 = getelementptr inbounds float, ptr %118, i64 %120
  %122 = load float, ptr %121, align 4, !tbaa !19
  %123 = add i32 %119, 1
  %124 = zext i32 %123 to i64
  %125 = getelementptr inbounds float, ptr %118, i64 %124
  %126 = load float, ptr %125, align 4, !tbaa !19
  %127 = add i32 %119, 2
  %128 = zext i32 %127 to i64
  %129 = getelementptr inbounds float, ptr %118, i64 %128
  %130 = load float, ptr %129, align 4, !tbaa !19
  %131 = load ptr, ptr %53, align 8, !tbaa !22
  %132 = shl i32 %.sroa.64.0.copyload.peel102, 1
  %133 = zext i32 %132 to i64
  %134 = getelementptr inbounds float, ptr %131, i64 %133
  %135 = load <2 x float>, ptr %134, align 4, !tbaa !19
  %.pre136 = add i64 %.06386, 2
  %136 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.pre135) #8
  store float %109, ptr %136, align 4, !tbaa !19
  %.sroa.4.0..sroa_idx.peel106 = getelementptr inbounds i8, ptr %136, i64 4
  store float %113, ptr %.sroa.4.0..sroa_idx.peel106, align 4, !tbaa !19
  %.sroa.5.0..sroa_idx.peel107 = getelementptr inbounds i8, ptr %136, i64 8
  store float %117, ptr %.sroa.5.0..sroa_idx.peel107, align 4, !tbaa !19
  %.sroa.6.0..sroa_idx.peel108 = getelementptr inbounds i8, ptr %136, i64 12
  store float %122, ptr %.sroa.6.0..sroa_idx.peel108, align 4, !tbaa !19
  %.sroa.7.0..sroa_idx.peel109 = getelementptr inbounds i8, ptr %136, i64 16
  %137 = insertelement <4 x float> poison, float %126, i64 0
  %138 = insertelement <4 x float> %137, float %130, i64 1
  %139 = shufflevector <2 x float> %135, <2 x float> poison, <4 x i32> <i32 0, i32 1, i32 poison, i32 poison>
  %140 = shufflevector <4 x float> %138, <4 x float> %139, <4 x i32> <i32 0, i32 1, i32 4, i32 5>
  store <4 x float> %140, ptr %.sroa.7.0..sroa_idx.peel109, align 4, !tbaa !19
  %141 = load ptr, ptr %49, align 8, !tbaa !11
  %142 = getelementptr inbounds i32, ptr %141, i64 %indvars.iv131
  %143 = load i32, ptr %142, align 4, !tbaa !12
  %144 = icmp ugt i32 %143, 2
  br i1 %144, label %145, label %._crit_edge81.loopexit

145:                                              ; preds = %101
  %146 = load ptr, ptr %50, align 8, !tbaa !17
  %147 = getelementptr %struct.fastObjIndex, ptr %146, i64 %.06685
  %148 = getelementptr i8, ptr %147, i64 24
  %.sroa.01.0.copyload.peel116 = load i32, ptr %148, align 4, !tbaa !12
  %.sroa.64.0..sroa_idx.peel117 = getelementptr i8, ptr %147, i64 28
  %.sroa.64.0.copyload.peel118 = load i32, ptr %.sroa.64.0..sroa_idx.peel117, align 4, !tbaa !12
  %.sroa.86.0..sroa_idx.peel119 = getelementptr i8, ptr %147, i64 32
  %.sroa.86.0.copyload.peel120 = load i32, ptr %.sroa.86.0..sroa_idx.peel119, align 4, !tbaa !12
  %149 = load ptr, ptr %51, align 8, !tbaa !18
  %150 = mul i32 %.sroa.01.0.copyload.peel116, 3
  %151 = zext i32 %150 to i64
  %152 = getelementptr inbounds float, ptr %149, i64 %151
  %153 = load float, ptr %152, align 4, !tbaa !19
  %154 = add i32 %150, 1
  %155 = zext i32 %154 to i64
  %156 = getelementptr inbounds float, ptr %149, i64 %155
  %157 = load float, ptr %156, align 4, !tbaa !19
  %158 = add i32 %150, 2
  %159 = zext i32 %158 to i64
  %160 = getelementptr inbounds float, ptr %149, i64 %159
  %161 = load float, ptr %160, align 4, !tbaa !19
  %162 = load ptr, ptr %52, align 8, !tbaa !21
  %163 = mul i32 %.sroa.86.0.copyload.peel120, 3
  %164 = zext i32 %163 to i64
  %165 = getelementptr inbounds float, ptr %162, i64 %164
  %166 = load float, ptr %165, align 4, !tbaa !19
  %167 = add i32 %163, 1
  %168 = zext i32 %167 to i64
  %169 = getelementptr inbounds float, ptr %162, i64 %168
  %170 = load float, ptr %169, align 4, !tbaa !19
  %171 = add i32 %163, 2
  %172 = zext i32 %171 to i64
  %173 = getelementptr inbounds float, ptr %162, i64 %172
  %174 = load float, ptr %173, align 4, !tbaa !19
  %175 = load ptr, ptr %53, align 8, !tbaa !22
  %176 = shl i32 %.sroa.64.0.copyload.peel118, 1
  %177 = zext i32 %176 to i64
  %178 = getelementptr inbounds float, ptr %175, i64 %177
  %179 = load <2 x float>, ptr %178, align 4, !tbaa !19
  %.pre138 = add i64 %.06386, 3
  %180 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.pre136) #8
  store float %153, ptr %180, align 4, !tbaa !19
  %.sroa.4.0..sroa_idx.peel122 = getelementptr inbounds i8, ptr %180, i64 4
  store float %157, ptr %.sroa.4.0..sroa_idx.peel122, align 4, !tbaa !19
  %.sroa.5.0..sroa_idx.peel123 = getelementptr inbounds i8, ptr %180, i64 8
  store float %161, ptr %.sroa.5.0..sroa_idx.peel123, align 4, !tbaa !19
  %.sroa.6.0..sroa_idx.peel124 = getelementptr inbounds i8, ptr %180, i64 12
  store float %166, ptr %.sroa.6.0..sroa_idx.peel124, align 4, !tbaa !19
  %.sroa.7.0..sroa_idx.peel125 = getelementptr inbounds i8, ptr %180, i64 16
  %181 = insertelement <4 x float> poison, float %170, i64 0
  %182 = insertelement <4 x float> %181, float %174, i64 1
  %183 = shufflevector <2 x float> %179, <2 x float> poison, <4 x i32> <i32 0, i32 1, i32 poison, i32 poison>
  %184 = shufflevector <4 x float> %182, <4 x float> %183, <4 x i32> <i32 0, i32 1, i32 4, i32 5>
  store <4 x float> %184, ptr %.sroa.7.0..sroa_idx.peel125, align 4, !tbaa !19
  %185 = load ptr, ptr %49, align 8, !tbaa !11
  %186 = getelementptr inbounds i32, ptr %185, i64 %indvars.iv131
  %187 = load i32, ptr %186, align 4, !tbaa !12
  %188 = icmp ugt i32 %187, 3
  br i1 %188, label %.lr.ph80.peel.next114, label %._crit_edge81.loopexit

._crit_edge87:                                    ; preds = %._crit_edge81, %47
  invoke void @fast_obj_destroy(ptr noundef nonnull %8)
          to label %251 unwind label %268

189:                                              ; preds = %._crit_edge
  %190 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI6VertexED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #8
  br label %276

._crit_edge81.loopexit:                           ; preds = %.lr.ph80.peel.next114, %145, %101, %58
  %191 = phi ptr [ %97, %58 ], [ %141, %101 ], [ %185, %145 ], [ %246, %.lr.ph80.peel.next114 ]
  %.lcssa92 = phi i64 [ %.pre135, %58 ], [ %.pre136, %101 ], [ %.pre138, %145 ], [ %245, %.lr.ph80.peel.next114 ]
  %.lcssa91 = phi i32 [ %99, %58 ], [ %143, %101 ], [ %187, %145 ], [ %248, %.lr.ph80.peel.next114 ]
  %.pre134 = load i32, ptr %9, align 8, !tbaa !5
  br label %._crit_edge81

._crit_edge81:                                    ; preds = %._crit_edge81.loopexit, %.preheader
  %192 = phi i32 [ %54, %.preheader ], [ %.pre134, %._crit_edge81.loopexit ]
  %193 = phi ptr [ %55, %.preheader ], [ %191, %._crit_edge81.loopexit ]
  %.164.lcssa = phi i64 [ %.06386, %.preheader ], [ %.lcssa92, %._crit_edge81.loopexit ]
  %.lcssa = phi i32 [ 0, %.preheader ], [ %.lcssa91, %._crit_edge81.loopexit ]
  %194 = zext i32 %.lcssa to i64
  %195 = add i64 %.06685, %194
  %indvars.iv.next132 = add nuw nsw i64 %indvars.iv131, 1
  %196 = zext i32 %192 to i64
  %197 = icmp ult i64 %indvars.iv.next132, %196
  br i1 %197, label %.preheader, label %._crit_edge87, !llvm.loop !23

.lr.ph80.peel.next114:                            ; preds = %145, %.lr.ph80.peel.next114
  %indvars.iv95 = phi i64 [ %indvars.iv.next96, %.lr.ph80.peel.next114 ], [ 3, %145 ]
  %.16479 = phi i64 [ %245, %.lr.ph80.peel.next114 ], [ %.pre138, %145 ]
  %198 = load ptr, ptr %50, align 8, !tbaa !17
  %199 = getelementptr %struct.fastObjIndex, ptr %198, i64 %.06685
  %200 = getelementptr %struct.fastObjIndex, ptr %199, i64 %indvars.iv95
  %.sroa.01.0.copyload = load i32, ptr %200, align 4, !tbaa !12
  %.sroa.64.0..sroa_idx = getelementptr inbounds i8, ptr %200, i64 4
  %.sroa.64.0.copyload = load i32, ptr %.sroa.64.0..sroa_idx, align 4, !tbaa !12
  %.sroa.86.0..sroa_idx = getelementptr inbounds i8, ptr %200, i64 8
  %.sroa.86.0.copyload = load i32, ptr %.sroa.86.0..sroa_idx, align 4, !tbaa !12
  %201 = load ptr, ptr %51, align 8, !tbaa !18
  %202 = mul i32 %.sroa.01.0.copyload, 3
  %203 = zext i32 %202 to i64
  %204 = getelementptr inbounds float, ptr %201, i64 %203
  %205 = load float, ptr %204, align 4, !tbaa !19
  %206 = add i32 %202, 1
  %207 = zext i32 %206 to i64
  %208 = getelementptr inbounds float, ptr %201, i64 %207
  %209 = load float, ptr %208, align 4, !tbaa !19
  %210 = add i32 %202, 2
  %211 = zext i32 %210 to i64
  %212 = getelementptr inbounds float, ptr %201, i64 %211
  %213 = load float, ptr %212, align 4, !tbaa !19
  %214 = load ptr, ptr %52, align 8, !tbaa !21
  %215 = mul i32 %.sroa.86.0.copyload, 3
  %216 = zext i32 %215 to i64
  %217 = getelementptr inbounds float, ptr %214, i64 %216
  %218 = load float, ptr %217, align 4, !tbaa !19
  %219 = add i32 %215, 1
  %220 = zext i32 %219 to i64
  %221 = getelementptr inbounds float, ptr %214, i64 %220
  %222 = load float, ptr %221, align 4, !tbaa !19
  %223 = add i32 %215, 2
  %224 = zext i32 %223 to i64
  %225 = getelementptr inbounds float, ptr %214, i64 %224
  %226 = load float, ptr %225, align 4, !tbaa !19
  %227 = load ptr, ptr %53, align 8, !tbaa !22
  %228 = shl i32 %.sroa.64.0.copyload, 1
  %229 = zext i32 %228 to i64
  %230 = getelementptr inbounds float, ptr %227, i64 %229
  %231 = load <2 x float>, ptr %230, align 4, !tbaa !19
  %232 = add i64 %.16479, -3
  %233 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %232) #8
  %234 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.16479) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(32) %234, ptr noundef nonnull align 4 dereferenceable(32) %233, i64 32, i1 false), !tbaa.struct !24
  %235 = add i64 %.16479, -1
  %236 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %235) #8
  %237 = add i64 %.16479, 1
  %238 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %237) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(32) %238, ptr noundef nonnull align 4 dereferenceable(32) %236, i64 32, i1 false), !tbaa.struct !24
  %239 = add i64 %.16479, 2
  %240 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %239) #8
  store float %205, ptr %240, align 4, !tbaa !19
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %240, i64 4
  store float %209, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !19
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %240, i64 8
  store float %213, ptr %.sroa.5.0..sroa_idx, align 4, !tbaa !19
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %240, i64 12
  store float %218, ptr %.sroa.6.0..sroa_idx, align 4, !tbaa !19
  %.sroa.7.0..sroa_idx = getelementptr inbounds i8, ptr %240, i64 16
  %241 = insertelement <4 x float> poison, float %222, i64 0
  %242 = insertelement <4 x float> %241, float %226, i64 1
  %243 = shufflevector <2 x float> %231, <2 x float> poison, <4 x i32> <i32 0, i32 1, i32 poison, i32 poison>
  %244 = shufflevector <4 x float> %242, <4 x float> %243, <4 x i32> <i32 0, i32 1, i32 4, i32 5>
  store <4 x float> %244, ptr %.sroa.7.0..sroa_idx, align 4, !tbaa !19
  %245 = add i64 %.16479, 3
  %indvars.iv.next96 = add nuw nsw i64 %indvars.iv95, 1
  %246 = load ptr, ptr %49, align 8, !tbaa !11
  %247 = getelementptr inbounds i32, ptr %246, i64 %indvars.iv131
  %248 = load i32, ptr %247, align 4, !tbaa !12
  %249 = zext i32 %248 to i64
  %250 = icmp ult i64 %indvars.iv.next96, %249
  br i1 %250, label %.lr.ph80.peel.next114, label %._crit_edge81.loopexit, !llvm.loop !25

251:                                              ; preds = %._crit_edge87
  %252 = call noundef double @_Z9timestampv()
  store double %252, ptr %2, align 8, !tbaa !27
  call void @_ZN4MeshC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #8
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %.0.lcssa, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %253 unwind label %270

253:                                              ; preds = %251
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #8
  %254 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 0) #8
  %255 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #8
  %256 = invoke i64 @meshopt_generateVertexRemap(ptr noundef nonnull %254, ptr noundef null, i64 noundef %.0.lcssa, ptr noundef nonnull %255, i64 noundef %.0.lcssa, i64 noundef 32)
          to label %257 unwind label %272

257:                                              ; preds = %253
  %258 = getelementptr inbounds i8, ptr %0, i64 24
  invoke void @_ZNSt6vectorIjSaIjEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %258, i64 noundef %.0.lcssa)
          to label %259 unwind label %272

259:                                              ; preds = %257
  %260 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %258, i64 noundef 0) #8
  %261 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 0) #8
  invoke void @meshopt_remapIndexBuffer(ptr noundef nonnull %260, ptr noundef null, i64 noundef %.0.lcssa, ptr noundef nonnull %261)
          to label %262 unwind label %272

262:                                              ; preds = %259
  invoke void @_ZNSt6vectorI6VertexSaIS0_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %256)
          to label %263 unwind label %272

263:                                              ; preds = %262
  %264 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #8
  %265 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #8
  %266 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 0) #8
  invoke void @meshopt_remapVertexBuffer(ptr noundef nonnull %264, ptr noundef nonnull %265, i64 noundef %.0.lcssa, i64 noundef 32, ptr noundef nonnull %266)
          to label %267 unwind label %272

267:                                              ; preds = %263
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  call void @_ZNSt6vectorI6VertexSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  br label %277

268:                                              ; preds = %._crit_edge87
  %269 = landingpad { ptr, i32 }
          cleanup
  br label %275

270:                                              ; preds = %251
  %271 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #8
  br label %274

272:                                              ; preds = %263, %262, %259, %257, %253
  %273 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  br label %274

274:                                              ; preds = %272, %270
  %.pn = phi { ptr, i32 } [ %273, %272 ], [ %271, %270 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  call void @_ZN4MeshD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #8
  br label %275

275:                                              ; preds = %274, %268
  %.pn.pn = phi { ptr, i32 } [ %.pn, %274 ], [ %269, %268 ]
  call void @_ZNSt6vectorI6VertexSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  br label %276

276:                                              ; preds = %275, %189
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %275 ], [ %190, %189 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  resume { ptr, i32 } %.pn.pn.pn

277:                                              ; preds = %267, %14
  ret void
}

declare ptr @fast_obj_read(ptr noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4MeshC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #6 align 2

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

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

declare i32 @__gxx_personality_v0(...)

; 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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(32) ptr @_ZNSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

declare void @fast_obj_destroy(ptr noundef) local_unnamed_addr #3

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

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

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

declare i64 @meshopt_generateVertexRemap(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #3

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

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

declare void @meshopt_remapIndexBuffer(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

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

declare void @meshopt_remapVertexBuffer(ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4MeshD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #6 align 2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 64}
!6 = !{!"_ZTS11fastObjMesh", !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, !10, i64 80, !7, i64 88, !10, i64 96, !7, i64 104, !10, i64 112, !7, i64 120, !10, i64 128, !7, i64 136, !10, i64 144, !7, i64 152, !10, i64 160}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 72}
!12 = !{!7, !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.unroll.disable"}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!6, !10, i64 96}
!18 = !{!6, !10, i64 8}
!19 = !{!20, !20, i64 0}
!20 = !{!"float", !8, i64 0}
!21 = !{!6, !10, i64 40}
!22 = !{!6, !10, i64 24}
!23 = distinct !{!23, !16}
!24 = !{i64 0, i64 4, !19, i64 4, i64 4, !19, i64 8, i64 4, !19, i64 12, i64 4, !19, i64 16, i64 4, !19, i64 20, i64 4, !19, i64 24, i64 4, !19, i64 28, i64 4, !19}
!25 = distinct !{!25, !16, !26}
!26 = !{!"llvm.loop.peeled.count", i32 3}
!27 = !{!28, !28, i64 0}
!28 = !{!"double", !8, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass