; LLVM IR from zeux/meshoptimizer :: tools/vcachetuner.ll (Z7objmeshPKc)

; 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 { ptr, i64, %"class.std::vector", [2 x float] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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::allocator.2" = type { i8 }
%struct.fastObjIndex = type { i32, i32, i32 }
%struct.Vertex = type { float, float, float, float, float, float, float, float }
%"class.std::allocator" = 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.1 = 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4MeshC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

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

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

27:                                               ; preds = %2
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %28)
  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 %6, align 4
  br label %257

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

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

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

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

51:                                               ; preds = %38
  %52 = load i32, ptr %8, align 4, !tbaa !11
  %53 = add i32 %52, 1
  store i32 %53, ptr %8, align 4, !tbaa !11
  br label %31, !llvm.loop !16

54:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #7
  %55 = load i64, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #7
  call void @_ZNSaIZ7objmeshPKcE6VertexEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  invoke void @_ZNSt6vectorIZ7objmeshPKcE6VertexSaIS2_EEC2EmRKS3_(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %55, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %56 unwind label %64

56:                                               ; preds = %54
  call void @_ZNSt15__new_allocatorIZ7objmeshPKcE6VertexED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  store i64 0, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  store i64 0, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !11
  br label %57

57:                                               ; preds = %213, %56
  %58 = load i32, ptr %15, align 4, !tbaa !11
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.fastObjMesh, ptr %59, i32 0, i32 8
  %61 = load i32, ptr %60, align 8, !tbaa !13
  %62 = icmp ult i32 %58, %61
  br i1 %62, label %68, label %63

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

64:                                               ; preds = %54
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %11, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %12, align 4
  call void @_ZNSt15__new_allocatorIZ7objmeshPKcE6VertexED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #7
  br label %256

68:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !11
  br label %69

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

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

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

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

194:                                              ; preds = %179, %80
  %195 = load i64, ptr %13, align 8, !tbaa !9
  %196 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNSt6vectorIZ7objmeshPKcE6VertexSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %195) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %196, ptr align 4 %18, i64 32, i1 false), !tbaa.struct !38
  %197 = load i64, ptr %13, align 8, !tbaa !9
  %198 = add i64 %197, 1
  store i64 %198, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #7
  br label %199

199:                                              ; preds = %194
  %200 = load i32, ptr %16, align 4, !tbaa !11
  %201 = add i32 %200, 1
  store i32 %201, ptr %16, align 4, !tbaa !11
  br label %69, !llvm.loop !39

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

213:                                              ; preds = %202
  %214 = load i32, ptr %15, align 4, !tbaa !11
  %215 = add i32 %214, 1
  store i32 %215, ptr %15, align 4, !tbaa !11
  br label %57, !llvm.loop !40

216:                                              ; preds = %63
  %217 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @fast_obj_destroy(ptr noundef %217)
          to label %218 unwind label %240

218:                                              ; preds = %216
  store i1 false, ptr %19, align 1
  call void @_ZN4MeshC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #7
  %219 = load ptr, ptr %4, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.Mesh, ptr %0, i32 0, i32 0
  store ptr %219, ptr %220, align 8, !tbaa !41
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #7
  %221 = load i64, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #7
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #7
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %221, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %222 unwind label %244

222:                                              ; preds = %218
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %223 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef 0) #7
  %224 = load i64, ptr %7, align 8, !tbaa !9
  %225 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNSt6vectorIZ7objmeshPKcE6VertexSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 0) #7
  %226 = load i64, ptr %7, align 8, !tbaa !9
  %227 = invoke i64 @meshopt_generateVertexRemap(ptr noundef %223, ptr noundef null, i64 noundef %224, ptr noundef %225, i64 noundef %226, i64 noundef 32)
          to label %228 unwind label %248

228:                                              ; preds = %222
  store i64 %227, ptr %22, align 8, !tbaa !9
  %229 = getelementptr inbounds %struct.Mesh, ptr %0, i32 0, i32 2
  %230 = load i64, ptr %7, align 8, !tbaa !9
  invoke void @_ZNSt6vectorIjSaIjEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %229, i64 noundef %230)
          to label %231 unwind label %248

231:                                              ; preds = %228
  %232 = getelementptr inbounds %struct.Mesh, ptr %0, i32 0, i32 2
  %233 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %232, i64 noundef 0) #7
  %234 = load i64, ptr %7, align 8, !tbaa !9
  %235 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef 0) #7
  invoke void @meshopt_remapIndexBuffer(ptr noundef %233, ptr noundef null, i64 noundef %234, ptr noundef %235)
          to label %236 unwind label %248

236:                                              ; preds = %231
  %237 = load i64, ptr %22, align 8, !tbaa !9
  %238 = getelementptr inbounds %struct.Mesh, ptr %0, i32 0, i32 1
  store i64 %237, ptr %238, align 8, !tbaa !47
  store i1 true, ptr %19, align 1
  store i32 1, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #7
  %239 = load i1, ptr %19, align 1
  br i1 %239, label %254, label %253

240:                                              ; preds = %216
  %241 = landingpad { ptr, i32 }
          cleanup
  %242 = extractvalue { ptr, i32 } %241, 0
  store ptr %242, ptr %11, align 8
  %243 = extractvalue { ptr, i32 } %241, 1
  store i32 %243, ptr %12, align 4
  br label %255

244:                                              ; preds = %218
  %245 = landingpad { ptr, i32 }
          cleanup
  %246 = extractvalue { ptr, i32 } %245, 0
  store ptr %246, ptr %11, align 8
  %247 = extractvalue { ptr, i32 } %245, 1
  store i32 %247, ptr %12, align 4
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  br label %252

248:                                              ; preds = %231, %228, %222
  %249 = landingpad { ptr, i32 }
          cleanup
  %250 = extractvalue { ptr, i32 } %249, 0
  store ptr %250, ptr %11, align 8
  %251 = extractvalue { ptr, i32 } %249, 1
  store i32 %251, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  br label %252

252:                                              ; preds = %248, %244
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #7
  call void @_ZN4MeshD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #7
  br label %255

253:                                              ; preds = %236
  call void @_ZN4MeshD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #7
  br label %254

254:                                              ; preds = %253, %236
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @_ZNSt6vectorIZ7objmeshPKcE6VertexSaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %257

255:                                              ; preds = %252, %240
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @_ZNSt6vectorIZ7objmeshPKcE6VertexSaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  br label %256

256:                                              ; preds = %255, %64
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  br label %258

257:                                              ; preds = %254, %27
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  ret void

258:                                              ; preds = %256
  %259 = load ptr, ptr %11, align 8
  %260 = load i32, ptr %12, align 4
  %261 = insertvalue { ptr, i32 } poison, ptr %259, 0
  %262 = insertvalue { ptr, i32 } %261, i32 %260, 1
  resume { ptr, i32 } %262
}

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: mustprogress nounwind uwtable
declare hidden void @_ZNSaIZ7objmeshPKcE6VertexEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZNSt6vectorIZ7objmeshPKcE6VertexSaIS2_EEC2EmRKS3_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) 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) #6

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 4 dereferenceable(32) ptr @_ZNSt6vectorIZ7objmeshPKcE6VertexSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #5 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 #5 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

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) #5 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 nounwind uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 = !{!"_ZTSZ7objmeshPKcE6Vertex", !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, !6, i64 0}
!42 = !{!"_ZTS4Mesh", !6, i64 0, !10, i64 8, !43, i64 16, !7, i64 40}
!43 = !{!"_ZTSSt6vectorIjSaIjEE", !44, i64 0}
!44 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!47 = !{!42, !10, i64 8}


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

@.str.1 = 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4MeshC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

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

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

.preheader73:                                     ; preds = %2
  %8 = getelementptr inbounds i8, ptr %7, i64 64
  %9 = load i32, ptr %8, align 8, !tbaa !5
  %.not87 = icmp eq i32 %9, 0
  br i1 %.not87, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader73
  %10 = getelementptr inbounds i8, ptr %7, i64 72
  %11 = load ptr, ptr %10, align 8, !tbaa !11
  %wide.trip.count = zext i32 %9 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %12 = icmp ult i32 %9, 4
  br i1 %12, 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 %21

13:                                               ; preds = %2
  %14 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, 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 %271

._crit_edge.loopexit.unr-lcssa:                   ; preds = %21, %.lr.ph
  %.lcssa150.ph = phi i64 [ poison, %.lr.ph ], [ %45, %21 ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next.3, %21 ]
  %.076.unr = phi i64 [ 0, %.lr.ph ], [ %45, %21 ]
  %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 ]
  %.076.epil = phi i64 [ %20, %.epil.preheader ], [ %.076.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %15 = getelementptr inbounds i32, ptr %11, i64 %indvars.iv.epil
  %16 = load i32, ptr %15, align 4, !tbaa !12
  %17 = mul i32 %16, 3
  %18 = add i32 %17, -6
  %19 = zext i32 %18 to i64
  %20 = add i64 %.076.epil, %19
  %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, %.preheader73
  %.0.lcssa = phi i64 [ 0, %.preheader73 ], [ %.lcssa150.ph, %._crit_edge.loopexit.unr-lcssa ], [ %20, %.epil.preheader ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #8
  call void @_ZNSaIZ7objmeshPKcE6VertexEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #8
  invoke void @_ZNSt6vectorIZ7objmeshPKcE6VertexSaIS2_EEC2EmRKS3_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.0.lcssa, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %46 unwind label %188

21:                                               ; preds = %21, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.3, %21 ]
  %.076 = phi i64 [ 0, %.lr.ph.new ], [ %45, %21 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %21 ]
  %22 = getelementptr inbounds i32, ptr %11, i64 %indvars.iv
  %23 = load i32, ptr %22, align 4, !tbaa !12
  %24 = mul i32 %23, 3
  %25 = add i32 %24, -6
  %26 = zext i32 %25 to i64
  %27 = add i64 %.076, %26
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %28 = getelementptr inbounds i32, ptr %11, i64 %indvars.iv.next
  %29 = load i32, ptr %28, align 4, !tbaa !12
  %30 = mul i32 %29, 3
  %31 = add i32 %30, -6
  %32 = zext i32 %31 to i64
  %33 = add i64 %27, %32
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %34 = getelementptr inbounds i32, ptr %11, i64 %indvars.iv.next.1
  %35 = load i32, ptr %34, align 4, !tbaa !12
  %36 = mul i32 %35, 3
  %37 = add i32 %36, -6
  %38 = zext i32 %37 to i64
  %39 = add i64 %33, %38
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %40 = getelementptr inbounds i32, ptr %11, i64 %indvars.iv.next.2
  %41 = load i32, ptr %40, align 4, !tbaa !12
  %42 = mul i32 %41, 3
  %43 = add i32 %42, -6
  %44 = zext i32 %43 to i64
  %45 = add i64 %39, %44
  %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 %21, !llvm.loop !15

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

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

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge80
  %53 = phi i32 [ %47, %.preheader.lr.ph ], [ %191, %._crit_edge80 ]
  %54 = phi ptr [ %.pre, %.preheader.lr.ph ], [ %192, %._crit_edge80 ]
  %indvars.iv130 = phi i64 [ 0, %.preheader.lr.ph ], [ %indvars.iv.next131, %._crit_edge80 ]
  %.06285 = phi i64 [ 0, %.preheader.lr.ph ], [ %.163.lcssa, %._crit_edge80 ]
  %.06584 = phi i64 [ 0, %.preheader.lr.ph ], [ %194, %._crit_edge80 ]
  %55 = getelementptr inbounds i32, ptr %54, i64 %indvars.iv130
  %56 = load i32, ptr %55, align 4, !tbaa !12
  %.not89 = icmp eq i32 %56, 0
  br i1 %.not89, label %._crit_edge80, label %57

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

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

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

._crit_edge86:                                    ; preds = %._crit_edge80, %46
  invoke void @fast_obj_destroy(ptr noundef nonnull %7)
          to label %250 unwind label %262

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

._crit_edge80.loopexit:                           ; preds = %.lr.ph79.peel.next113, %144, %100, %57
  %190 = phi ptr [ %96, %57 ], [ %140, %100 ], [ %184, %144 ], [ %245, %.lr.ph79.peel.next113 ]
  %.lcssa91 = phi i64 [ %.pre134, %57 ], [ %.pre135, %100 ], [ %.pre137, %144 ], [ %244, %.lr.ph79.peel.next113 ]
  %.lcssa90 = phi i32 [ %98, %57 ], [ %142, %100 ], [ %186, %144 ], [ %247, %.lr.ph79.peel.next113 ]
  %.pre133 = load i32, ptr %8, align 8, !tbaa !5
  br label %._crit_edge80

._crit_edge80:                                    ; preds = %._crit_edge80.loopexit, %.preheader
  %191 = phi i32 [ %53, %.preheader ], [ %.pre133, %._crit_edge80.loopexit ]
  %192 = phi ptr [ %54, %.preheader ], [ %190, %._crit_edge80.loopexit ]
  %.163.lcssa = phi i64 [ %.06285, %.preheader ], [ %.lcssa91, %._crit_edge80.loopexit ]
  %.lcssa = phi i32 [ 0, %.preheader ], [ %.lcssa90, %._crit_edge80.loopexit ]
  %193 = zext i32 %.lcssa to i64
  %194 = add i64 %.06584, %193
  %indvars.iv.next131 = add nuw nsw i64 %indvars.iv130, 1
  %195 = zext i32 %191 to i64
  %196 = icmp ult i64 %indvars.iv.next131, %195
  br i1 %196, label %.preheader, label %._crit_edge86, !llvm.loop !23

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

250:                                              ; preds = %._crit_edge86
  call void @_ZN4MeshC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #8
  store ptr %1, ptr %0, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.0.lcssa, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %251 unwind label %264

251:                                              ; preds = %250
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  %252 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #8
  %253 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNSt6vectorIZ7objmeshPKcE6VertexSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #8
  %254 = invoke i64 @meshopt_generateVertexRemap(ptr noundef nonnull %252, ptr noundef null, i64 noundef %.0.lcssa, ptr noundef nonnull %253, i64 noundef %.0.lcssa, i64 noundef 32)
          to label %255 unwind label %266

255:                                              ; preds = %251
  %256 = getelementptr inbounds i8, ptr %0, i64 16
  invoke void @_ZNSt6vectorIjSaIjEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %256, i64 noundef %.0.lcssa)
          to label %257 unwind label %266

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

260:                                              ; preds = %257
  %261 = getelementptr inbounds i8, ptr %0, i64 8
  store i64 %254, ptr %261, align 8, !tbaa !34
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  call void @_ZNSt6vectorIZ7objmeshPKcE6VertexSaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  br label %271

262:                                              ; preds = %._crit_edge86
  %263 = landingpad { ptr, i32 }
          cleanup
  br label %269

264:                                              ; preds = %250
  %265 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  br label %268

266:                                              ; preds = %257, %255, %251
  %267 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  br label %268

268:                                              ; preds = %266, %264
  %.pn = phi { ptr, i32 } [ %267, %266 ], [ %265, %264 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  call void @_ZN4MeshD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #8
  br label %269

269:                                              ; preds = %268, %262
  %.pn.pn = phi { ptr, i32 } [ %.pn, %268 ], [ %263, %262 ]
  call void @_ZNSt6vectorIZ7objmeshPKcE6VertexSaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  br label %270

270:                                              ; preds = %269, %188
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %269 ], [ %189, %188 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  resume { ptr, i32 } %.pn.pn.pn

271:                                              ; preds = %260, %13
  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: mustprogress nounwind uwtable
declare hidden void @_ZNSaIZ7objmeshPKcE6VertexEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #6 align 2

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

; 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 hidden noundef nonnull align 4 dereferenceable(32) ptr @_ZNSt6vectorIZ7objmeshPKcE6VertexSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #6 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 #6 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

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 #6 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 nounwind uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #6 align 2

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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, !10, i64 0}
!28 = !{!"_ZTS4Mesh", !10, i64 0, !29, i64 8, !30, i64 16, !8, i64 40}
!29 = !{!"long", !8, i64 0}
!30 = !{!"_ZTSSt6vectorIjSaIjEE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!34 = !{!28, !29, i64 8}


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