; LLVM IR from Try/Tempest :: Engine/gapi/spirv (meshconverter)

; 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.libspirv::MutableBytecode::Iterator" = type { %"struct.libspirv::Bytecode::Iterator.base", ptr }
%"struct.libspirv::Bytecode::Iterator.base" = type <{ ptr, i32 }>
%"struct.libspirv::Bytecode::Iterator" = type <{ ptr, i32, [4 x i8] }>
%"class.std::initializer_list" = type { ptr, i64 }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.37 = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%class.MeshConverter = type <{ %"struct.MeshConverter::Options", [6 x i8], ptr, %"class.libspirv::MutableBytecode", %"class.libspirv::MutableBytecode", [3 x i32], i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x i8], %"class.std::unordered_map", %"class.std::unordered_map", %"class.std::unordered_map.5", %"class.std::vector.19", i32, i32, i32, i32, i32, i32, i8, [7 x i8] }>
%"struct.MeshConverter::Options" = type { i8, i8 }
%"class.libspirv::MutableBytecode" = type { %"class.libspirv::Bytecode.base", %"class.std::vector" }
%"class.libspirv::Bytecode.base" = type <{ ptr, i64, i32 }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<libspirv::Bytecode::OpCode, std::allocator<libspirv::Bytecode::OpCode>>::_Vector_impl" }
%"struct.std::_Vector_base<libspirv::Bytecode::OpCode, std::allocator<libspirv::Bytecode::OpCode>>::_Vector_impl" = type { %"struct.std::_Vector_base<libspirv::Bytecode::OpCode, std::allocator<libspirv::Bytecode::OpCode>>::_Vector_impl_data" }
%"struct.std::_Vector_base<libspirv::Bytecode::OpCode, std::allocator<libspirv::Bytecode::OpCode>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::unordered_map.5" = type { %"class.std::_Hashtable.6" }
%"class.std::_Hashtable.6" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::vector.19" = type { %"struct.std::_Vector_base.20" }
%"struct.std::_Vector_base.20" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.MeshConverter::Varying" = type { i32, i32, i32, i32 }
%"struct.libspirv::Bytecode::OpCode" = type { i16, i16 }

declare i32 @__gxx_personality_v0(...)

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4), i16 noundef zeroext) #2 align 2

; 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 void @_ZN8libspirv8Bytecode8IteratorppEv(ptr noundef nonnull align 8 dereferenceable(12)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt13unordered_mapIjN13MeshConverter7VaryingESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

declare void @_ZN8libspirv8Bytecode12traverseTypeEjSt8functionIFvPKNS0_11AccessChainEjEENS0_12TraverseModeE(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef, ptr noundef, i8 noundef zeroext) #4

declare noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48)) #4

declare void @_ZN8libspirv15MutableBytecode3endEv(ptr dead_on_unwind writable sret(%"struct.libspirv::MutableBytecode::Iterator") align 8, ptr noundef nonnull align 8 dereferenceable(48)) #4

declare void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, ptr, i64) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZNK8libspirv8Bytecode6OpCode6lengthEv(ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

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

declare void @_ZN8libspirv15MutableBytecode14findSectionEndENS_8Bytecode7SectionE(ptr dead_on_unwind writable sret(%"struct.libspirv::MutableBytecode::Iterator") align 8, ptr noundef nonnull align 8 dereferenceable(48), i8 noundef zeroext) #4

declare noundef i32 @_ZN8libspirv15MutableBytecode9OpTypeIntERNS0_8IteratorEtb(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24), i16 noundef zeroext, i1 noundef zeroext) #4

declare noundef i32 @_ZN8libspirv15MutableBytecode13OpTypePointerERNS0_8IteratorEN3spv12StorageClassEj(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13MeshConverter12emitVboStoreERN8libspirv15MutableBytecodeERNS1_8IteratorERKNS0_8Bytecode6OpCodeEj(ptr noundef nonnull align 8 dereferenceable(425) %0, ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef %4) #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"struct.libspirv::MutableBytecode::Iterator", align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca %"struct.libspirv::Bytecode::Iterator", align 8
  %18 = alloca { ptr, i32 }, align 8
  %19 = alloca i32, align 4
  %20 = alloca [32 x i32], align 16
  %21 = alloca %"struct.libspirv::MutableBytecode::Iterator", align 8
  %22 = alloca i32, align 4
  %23 = alloca %"class.std::initializer_list", align 8
  %24 = alloca [3 x i32], align 4
  %25 = alloca i32, align 4
  %26 = alloca %"class.std::initializer_list", align 8
  %27 = alloca [4 x i32], align 4
  %28 = alloca i32, align 4
  %29 = alloca %"class.std::initializer_list", align 8
  %30 = alloca [4 x i32], align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i64, align 8
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca %"struct.libspirv::Bytecode::Iterator", align 8
  %38 = alloca { ptr, i32 }, align 8
  %39 = alloca %"struct.libspirv::Bytecode::Iterator", align 8
  %40 = alloca { ptr, i32 }, align 8
  %41 = alloca %"struct.libspirv::Bytecode::Iterator", align 8
  %42 = alloca ptr, align 8
  %43 = alloca %"class.std::function", align 8
  %44 = alloca %class.anon.37, align 8
  %45 = alloca ptr, align 8
  %46 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store i32 %4, ptr %10, align 4, !tbaa !9
  %47 = load ptr, ptr %6, align 8
  %48 = getelementptr inbounds %class.MeshConverter, ptr %47, i32 0, i32 0
  %49 = getelementptr inbounds %"struct.MeshConverter::Options", ptr %48, i32 0, i32 0
  %50 = load i8, ptr %49, align 8, !tbaa !11, !range !33, !noundef !34
  %51 = trunc i8 %50 to i1
  br i1 %51, label %52, label %53

52:                                               ; preds = %5
  br label %218

53:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %54, i16 noundef zeroext 2)
  %56 = load i32, ptr %55, align 4, !tbaa !9
  store i32 %56, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #6
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN8libspirv15MutableBytecode14findSectionEndENS_8Bytecode7SectionE(ptr dead_on_unwind writable sret(%"struct.libspirv::MutableBytecode::Iterator") align 8 %12, ptr noundef nonnull align 8 dereferenceable(48) %57, i8 noundef zeroext 9)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = call noundef i32 @_ZN8libspirv15MutableBytecode9OpTypeIntERNS0_8IteratorEtb(ptr noundef nonnull align 8 dereferenceable(48) %58, ptr noundef nonnull align 8 dereferenceable(24) %12, i16 noundef zeroext 32, i1 noundef zeroext false)
  store i32 %59, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = load i32, ptr %13, align 4, !tbaa !9
  %62 = call noundef i32 @_ZN8libspirv15MutableBytecode13OpTypePointerERNS0_8IteratorEN3spv12StorageClassEj(ptr noundef nonnull align 8 dereferenceable(48) %60, ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef 12, i32 noundef %61)
  store i32 %62, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %63 = getelementptr inbounds %class.MeshConverter, ptr %47, i32 0, i32 30
  %64 = getelementptr inbounds %class.MeshConverter, ptr %47, i32 0, i32 25
  %65 = load i32, ptr %64, align 8, !tbaa !35
  %66 = zext i32 %65 to i64
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %63, i64 noundef %66) #6
  %68 = load i32, ptr %67, align 4, !tbaa !9
  store i32 %68, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #6
  %69 = getelementptr inbounds %class.MeshConverter, ptr %47, i32 0, i32 2
  %70 = load ptr, ptr %69, align 8, !tbaa !36
  %71 = load i32, ptr %10, align 4, !tbaa !9
  %72 = zext i32 %71 to i64
  %73 = call { ptr, i32 } @_ZNK8libspirv8Bytecode10fromOffsetEm(ptr noundef nonnull align 8 dereferenceable(20) %70, i64 noundef %72)
  store { ptr, i32 } %73, ptr %18, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %18, i64 12, i1 false)
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode8IteratordeEv(ptr noundef nonnull align 8 dereferenceable(12) %17)
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  store ptr %74, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %75 = load ptr, ptr %16, align 8, !tbaa !5
  %76 = call noundef zeroext i16 @_ZNK8libspirv8Bytecode6OpCode6lengthEv(ptr noundef nonnull align 4 dereferenceable(4) %75)
  %77 = zext i16 %76 to i32
  store i32 %77, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 128, ptr %20) #6
  call void @llvm.memset.p0.i64(ptr align 16 %20, i8 0, i64 128, i1 false)
  %78 = getelementptr inbounds [32 x i32], ptr %20, i64 0, i64 0
  %79 = getelementptr inbounds i32, ptr %78, i64 4
  %80 = load ptr, ptr %16, align 8, !tbaa !5
  %81 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %80, i16 noundef zeroext 3)
  %82 = load i32, ptr %19, align 4, !tbaa !9
  %83 = sub i32 %82, 3
  %84 = zext i32 %83 to i64
  %85 = mul i64 %84, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %79, ptr align 4 %81, i64 %85, i1 false)
  %86 = load i32, ptr %14, align 4, !tbaa !9
  %87 = getelementptr inbounds [32 x i32], ptr %20, i64 0, i64 0
  store i32 %86, ptr %87, align 16, !tbaa !9
  %88 = getelementptr inbounds %class.MeshConverter, ptr %47, i32 0, i32 20
  %89 = load i32, ptr %88, align 4, !tbaa !37
  %90 = getelementptr inbounds [32 x i32], ptr %20, i64 0, i64 2
  store i32 %89, ptr %90, align 8, !tbaa !9
  %91 = getelementptr inbounds %class.MeshConverter, ptr %47, i32 0, i32 36
  %92 = load i32, ptr %91, align 4, !tbaa !38
  %93 = getelementptr inbounds [32 x i32], ptr %20, i64 0, i64 3
  store i32 %92, ptr %93, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #6
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN8libspirv15MutableBytecode3endEv(ptr dead_on_unwind writable sret(%"struct.libspirv::MutableBytecode::Iterator") align 8 %21, ptr noundef nonnull align 8 dereferenceable(48) %94)
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %95, ptr align 8 %21, i64 24, i1 false)
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  %97 = call noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48) %96)
  store i32 %97, ptr %22, align 4, !tbaa !9
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %24) #6
  %99 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %99, ptr %24, align 4, !tbaa !9
  %100 = getelementptr inbounds i32, ptr %24, i64 1
  %101 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %101, ptr %100, align 4, !tbaa !9
  %102 = getelementptr inbounds i32, ptr %24, i64 2
  %103 = getelementptr inbounds %class.MeshConverter, ptr %47, i32 0, i32 22
  %104 = load i32, ptr %103, align 4, !tbaa !39
  store i32 %104, ptr %102, align 4, !tbaa !9
  %105 = getelementptr inbounds %"class.std::initializer_list", ptr %23, i32 0, i32 0
  store ptr %24, ptr %105, align 8, !tbaa !40
  %106 = getelementptr inbounds %"class.std::initializer_list", ptr %23, i32 0, i32 1
  store i64 3, ptr %106, align 8, !tbaa !42
  %107 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 0
  %108 = load ptr, ptr %107, align 8
  %109 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 1
  %110 = load i64, ptr %109, align 8
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %98, i32 noundef 61, ptr %108, i64 %110)
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = call noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48) %111)
  store i32 %112, ptr %25, align 4, !tbaa !9
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #6
  %114 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %114, ptr %27, align 4, !tbaa !9
  %115 = getelementptr inbounds i32, ptr %27, i64 1
  %116 = load i32, ptr %25, align 4, !tbaa !9
  store i32 %116, ptr %115, align 4, !tbaa !9
  %117 = getelementptr inbounds i32, ptr %27, i64 2
  %118 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %118, ptr %117, align 4, !tbaa !9
  %119 = getelementptr inbounds i32, ptr %27, i64 3
  %120 = load ptr, ptr %16, align 8, !tbaa !5
  %121 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %120, i16 noundef zeroext 4)
  %122 = load i32, ptr %121, align 4, !tbaa !9
  store i32 %122, ptr %119, align 4, !tbaa !9
  %123 = getelementptr inbounds %"class.std::initializer_list", ptr %26, i32 0, i32 0
  store ptr %27, ptr %123, align 8, !tbaa !40
  %124 = getelementptr inbounds %"class.std::initializer_list", ptr %26, i32 0, i32 1
  store i64 4, ptr %124, align 8, !tbaa !42
  %125 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 0
  %126 = load ptr, ptr %125, align 8
  %127 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 1
  %128 = load i64, ptr %127, align 8
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %113, i32 noundef 132, ptr %126, i64 %128)
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  %130 = call noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48) %129)
  store i32 %130, ptr %28, align 4, !tbaa !9
  %131 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #6
  %132 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %132, ptr %30, align 4, !tbaa !9
  %133 = getelementptr inbounds i32, ptr %30, i64 1
  %134 = load i32, ptr %28, align 4, !tbaa !9
  store i32 %134, ptr %133, align 4, !tbaa !9
  %135 = getelementptr inbounds i32, ptr %30, i64 2
  %136 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %136, ptr %135, align 4, !tbaa !9
  %137 = getelementptr inbounds i32, ptr %30, i64 3
  %138 = load i32, ptr %25, align 4, !tbaa !9
  store i32 %138, ptr %137, align 4, !tbaa !9
  %139 = getelementptr inbounds %"class.std::initializer_list", ptr %29, i32 0, i32 0
  store ptr %30, ptr %139, align 8, !tbaa !40
  %140 = getelementptr inbounds %"class.std::initializer_list", ptr %29, i32 0, i32 1
  store i64 4, ptr %140, align 8, !tbaa !42
  %141 = getelementptr inbounds { ptr, i64 }, ptr %29, i32 0, i32 0
  %142 = load ptr, ptr %141, align 8
  %143 = getelementptr inbounds { ptr, i64 }, ptr %29, i32 0, i32 1
  %144 = load i64, ptr %143, align 8
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %131, i32 noundef 128, ptr %142, i64 %144)
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #6
  %145 = load i32, ptr %28, align 4, !tbaa !9
  %146 = getelementptr inbounds [32 x i32], ptr %20, i64 0, i64 4
  store i32 %145, ptr %146, align 16, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  %147 = load ptr, ptr %16, align 8, !tbaa !5
  %148 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %147, i16 noundef zeroext 1)
  %149 = load i32, ptr %148, align 4, !tbaa !9
  store i32 %149, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  %150 = load ptr, ptr %16, align 8, !tbaa !5
  %151 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %150, i16 noundef zeroext 3)
  %152 = load i32, ptr %151, align 4, !tbaa !9
  store i32 %152, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  %153 = getelementptr inbounds %class.MeshConverter, ptr %47, i32 0, i32 29
  %154 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt13unordered_mapIjN13MeshConverter7VaryingESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(56) %153, ptr noundef nonnull align 4 dereferenceable(4) %32)
  %155 = getelementptr inbounds %"struct.MeshConverter::Varying", ptr %154, i32 0, i32 1
  %156 = load i32, ptr %155, align 4, !tbaa !43
  store i32 %156, ptr %33, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  store i64 5, ptr %34, align 8, !tbaa !45
  br label %157

157:                                              ; preds = %200, %53
  %158 = load i64, ptr %34, align 8, !tbaa !45
  %159 = load i32, ptr %19, align 4, !tbaa !9
  %160 = zext i32 %159 to i64
  %161 = icmp ult i64 %158, %160
  br i1 %161, label %163, label %162

162:                                              ; preds = %157
  store i32 2, ptr %35, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  br label %203

163:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #6
  %164 = load ptr, ptr %16, align 8, !tbaa !5
  %165 = load i64, ptr %34, align 8, !tbaa !45
  %166 = trunc i64 %165 to i16
  %167 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %164, i16 noundef zeroext %166)
  %168 = load i32, ptr %167, align 4, !tbaa !9
  store i32 %168, ptr %36, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #6
  %169 = getelementptr inbounds %class.MeshConverter, ptr %47, i32 0, i32 2
  %170 = load ptr, ptr %169, align 8, !tbaa !36
  %171 = call { ptr, i32 } @_ZNK8libspirv8Bytecode11findSectionENS0_7SectionE(ptr noundef nonnull align 8 dereferenceable(20) %170, i8 noundef zeroext 9)
  store { ptr, i32 } %171, ptr %38, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %37, ptr align 8 %38, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #6
  %172 = getelementptr inbounds %class.MeshConverter, ptr %47, i32 0, i32 2
  %173 = load ptr, ptr %172, align 8, !tbaa !36
  %174 = call { ptr, i32 } @_ZNK8libspirv8Bytecode14findSectionEndENS0_7SectionE(ptr noundef nonnull align 8 dereferenceable(20) %173, i8 noundef zeroext 9)
  store { ptr, i32 } %174, ptr %40, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %39, ptr align 8 %40, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %41, ptr align 8 %37, i64 16, i1 false), !tbaa.struct !46
  br label %175

175:                                              ; preds = %198, %163
  %176 = call noundef zeroext i1 @_ZN8libspirvneERKNS_8Bytecode8IteratorES3_(ptr noundef nonnull align 8 dereferenceable(12) %41, ptr noundef nonnull align 8 dereferenceable(12) %39)
  br i1 %176, label %178, label %177

177:                                              ; preds = %175
  store i32 5, ptr %35, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #6
  br label %199

178:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #6
  %179 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode8IteratordeEv(ptr noundef nonnull align 8 dereferenceable(12) %41)
  store ptr %179, ptr %42, align 8, !tbaa !5
  %180 = load ptr, ptr %42, align 8, !tbaa !5
  %181 = getelementptr inbounds %"struct.libspirv::Bytecode::OpCode", ptr %180, i32 0, i32 0
  %182 = load i16, ptr %181, align 4, !tbaa !47
  %183 = zext i16 %182 to i32
  %184 = icmp eq i32 %183, 43
  br i1 %184, label %185, label %197

185:                                              ; preds = %178
  %186 = load ptr, ptr %42, align 8, !tbaa !5
  %187 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %186, i16 noundef zeroext 2)
  %188 = load i32, ptr %187, align 4, !tbaa !9
  %189 = load i32, ptr %36, align 4, !tbaa !9
  %190 = icmp eq i32 %188, %189
  br i1 %190, label %191, label %197

191:                                              ; preds = %185
  %192 = load ptr, ptr %42, align 8, !tbaa !5
  %193 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %192, i16 noundef zeroext 3)
  %194 = load i32, ptr %193, align 4, !tbaa !9
  %195 = load i32, ptr %33, align 4, !tbaa !9
  %196 = add i32 %195, %194
  store i32 %196, ptr %33, align 4, !tbaa !9
  br label %197

197:                                              ; preds = %191, %185, %178
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #6
  br label %198

198:                                              ; preds = %197
  call void @_ZN8libspirv8Bytecode8IteratorppEv(ptr noundef nonnull align 8 dereferenceable(12) %41)
  br label %175, !llvm.loop !50

199:                                              ; preds = %177
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #6
  br label %200

200:                                              ; preds = %199
  %201 = load i64, ptr %34, align 8, !tbaa !45
  %202 = add i64 %201, 1
  store i64 %202, ptr %34, align 8, !tbaa !45
  br label %157, !llvm.loop !52

203:                                              ; preds = %162
  %204 = getelementptr inbounds %class.MeshConverter, ptr %47, i32 0, i32 2
  %205 = load ptr, ptr %204, align 8, !tbaa !36
  %206 = load i32, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 64, ptr %44) #6
  %207 = getelementptr inbounds %class.anon.37, ptr %44, i32 0, i32 0
  store ptr %47, ptr %207, align 8, !tbaa !53
  %208 = getelementptr inbounds %class.anon.37, ptr %44, i32 0, i32 1
  %209 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %209, ptr %208, align 8, !tbaa !5
  %210 = getelementptr inbounds %class.anon.37, ptr %44, i32 0, i32 2
  %211 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %211, ptr %210, align 8, !tbaa !5
  %212 = getelementptr inbounds %class.anon.37, ptr %44, i32 0, i32 3
  store ptr %13, ptr %212, align 8, !tbaa !5
  %213 = getelementptr inbounds %class.anon.37, ptr %44, i32 0, i32 4
  store ptr %28, ptr %213, align 8, !tbaa !5
  %214 = getelementptr inbounds %class.anon.37, ptr %44, i32 0, i32 5
  store ptr %33, ptr %214, align 8, !tbaa !5
  %215 = getelementptr inbounds %class.anon.37, ptr %44, i32 0, i32 6
  store ptr %20, ptr %215, align 8, !tbaa !5
  %216 = getelementptr inbounds %class.anon.37, ptr %44, i32 0, i32 7
  store ptr %11, ptr %216, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvPKN8libspirv8Bytecode11AccessChainEjEEC2IZN13MeshConverter12emitVboStoreERNS0_15MutableBytecodeERNS9_8IteratorERKNS1_6OpCodeEjE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef nonnull align 8 dereferenceable(64) %44)
  invoke void @_ZN8libspirv8Bytecode12traverseTypeEjSt8functionIFvPKNS0_11AccessChainEjEENS0_12TraverseModeE(ptr noundef nonnull align 8 dereferenceable(20) %205, i32 noundef %206, ptr noundef %43, i8 noundef zeroext 0)
          to label %217 unwind label %219

217:                                              ; preds = %203
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %44) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %218

218:                                              ; preds = %217, %52
  ret void

219:                                              ; preds = %203
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %45, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %46, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %44) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %223

223:                                              ; preds = %219
  %224 = load ptr, ptr %45, align 8
  %225 = load i32, ptr %46, align 4
  %226 = insertvalue { ptr, i32 } poison, ptr %224, 0
  %227 = insertvalue { ptr, i32 } %226, i32 %225, 1
  resume { ptr, i32 } %227
}

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

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

declare { ptr, i32 } @_ZNK8libspirv8Bytecode10fromOffsetEm(ptr noundef nonnull align 8 dereferenceable(20), i64 noundef) #4

declare { ptr, i32 } @_ZNK8libspirv8Bytecode11findSectionENS0_7SectionE(ptr noundef nonnull align 8 dereferenceable(20), i8 noundef zeroext) #4

declare { ptr, i32 } @_ZNK8libspirv8Bytecode14findSectionEndENS0_7SectionE(ptr noundef nonnull align 8 dereferenceable(20), i8 noundef zeroext) #4

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvPKN8libspirv8Bytecode11AccessChainEjEEC2IZN13MeshConverter12emitVboStoreERNS0_15MutableBytecodeERNS9_8IteratorERKNS1_6OpCodeEjE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #3 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !14, i64 0}
!12 = !{!"_ZTS13MeshConverter", !13, i64 0, !6, i64 8, !15, i64 16, !15, i64 64, !7, i64 112, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !10, i64 172, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !10, i64 192, !10, i64 196, !10, i64 200, !22, i64 208, !22, i64 264, !27, i64 320, !29, i64 376, !10, i64 400, !10, i64 404, !10, i64 408, !10, i64 412, !10, i64 416, !10, i64 420, !14, i64 424}
!13 = !{!"_ZTSN13MeshConverter7OptionsE", !14, i64 0, !14, i64 1}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTSN8libspirv15MutableBytecodeE", !16, i64 0, !18, i64 24}
!16 = !{!"_ZTSN8libspirv8BytecodeE", !6, i64 0, !17, i64 8, !10, i64 16}
!17 = !{!"long", !7, i64 0}
!18 = !{!"_ZTSSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIN8libspirv8Bytecode6OpCodeESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN8libspirv8Bytecode6OpCodeESaIS2_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN8libspirv8Bytecode6OpCodeESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!"_ZTSSt13unordered_mapIjmSt4hashIjESt8equal_toIjESaISt4pairIKjmEEE", !23, i64 0}
!23 = !{!"_ZTSSt10_HashtableIjSt4pairIKjmESaIS2_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !17, i64 8, !24, i64 16, !17, i64 24, !25, i64 32, !6, i64 48}
!24 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!25 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !26, i64 0, !17, i64 8}
!26 = !{!"float", !7, i64 0}
!27 = !{!"_ZTSSt13unordered_mapIjN13MeshConverter7VaryingESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEE", !28, i64 0}
!28 = !{!"_ZTSSt10_HashtableIjSt4pairIKjN13MeshConverter7VaryingEESaIS4_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS6_18_Mod_range_hashingENS6_20_Default_ranged_hashENS6_20_Prime_rehash_policyENS6_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !17, i64 8, !24, i64 16, !17, i64 24, !25, i64 32, !6, i64 48}
!29 = !{!"_ZTSSt6vectorIjSaIjEE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!33 = !{i8 0, i8 2}
!34 = !{}
!35 = !{!12, !10, i64 200}
!36 = !{!12, !6, i64 8}
!37 = !{!12, !10, i64 180}
!38 = !{!12, !10, i64 420}
!39 = !{!12, !10, i64 188}
!40 = !{!41, !6, i64 0}
!41 = !{!"_ZTSSt16initializer_listIjE", !6, i64 0, !17, i64 8}
!42 = !{!41, !17, i64 8}
!43 = !{!44, !10, i64 4}
!44 = !{!"_ZTSN13MeshConverter7VaryingE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!45 = !{!17, !17, i64 0}
!46 = !{i64 0, i64 8, !5, i64 8, i64 4, !9}
!47 = !{!48, !49, i64 0}
!48 = !{!"_ZTSN8libspirv8Bytecode6OpCodeE", !49, i64 0, !49, i64 2}
!49 = !{!"short", !7, i64 0}
!50 = distinct !{!50, !51}
!51 = !{!"llvm.loop.mustprogress"}
!52 = distinct !{!52, !51}
!53 = !{!54, !6, i64 0}
!54 = !{!"_ZTSZN13MeshConverter12emitVboStoreERN8libspirv15MutableBytecodeERNS1_8IteratorERKNS0_8Bytecode6OpCodeEjE3$_0", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}


; 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.libspirv::MutableBytecode::Iterator" = type { %"struct.libspirv::Bytecode::Iterator.base", ptr }
%"struct.libspirv::Bytecode::Iterator.base" = type <{ ptr, i32 }>
%"struct.libspirv::Bytecode::Iterator" = type <{ ptr, i32, [4 x i8] }>
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.37 = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

declare i32 @__gxx_personality_v0(...)

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode8IteratordeEv(ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4), i16 noundef zeroext) local_unnamed_addr #2 align 2

; 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 void @_ZN8libspirv8Bytecode8IteratorppEv(ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt13unordered_mapIjN13MeshConverter7VaryingESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

declare void @_ZN8libspirv8Bytecode12traverseTypeEjSt8functionIFvPKNS0_11AccessChainEjEENS0_12TraverseModeE(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef, ptr noundef, i8 noundef zeroext) local_unnamed_addr #4

declare noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #4

declare void @_ZN8libspirv15MutableBytecode3endEv(ptr dead_on_unwind writable sret(%"struct.libspirv::MutableBytecode::Iterator") align 8, ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #4

declare void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, ptr, i64) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZNK8libspirv8Bytecode6OpCode6lengthEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

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

declare void @_ZN8libspirv15MutableBytecode14findSectionEndENS_8Bytecode7SectionE(ptr dead_on_unwind writable sret(%"struct.libspirv::MutableBytecode::Iterator") align 8, ptr noundef nonnull align 8 dereferenceable(48), i8 noundef zeroext) local_unnamed_addr #4

declare noundef i32 @_ZN8libspirv15MutableBytecode9OpTypeIntERNS0_8IteratorEtb(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24), i16 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #4

declare noundef i32 @_ZN8libspirv15MutableBytecode13OpTypePointerERNS0_8IteratorEN3spv12StorageClassEj(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13MeshConverter12emitVboStoreERN8libspirv15MutableBytecodeERNS1_8IteratorERKNS0_8Bytecode6OpCodeEj(ptr noundef nonnull align 8 dereferenceable(425) %0, ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef %4) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca i32, align 4
  %7 = alloca %"struct.libspirv::MutableBytecode::Iterator", align 8
  %8 = alloca i32, align 4
  %9 = alloca %"struct.libspirv::Bytecode::Iterator", align 8
  %10 = alloca [32 x i32], align 16
  %11 = alloca %"struct.libspirv::MutableBytecode::Iterator", align 8
  %12 = alloca [3 x i32], align 4
  %13 = alloca [4 x i32], align 4
  %14 = alloca i32, align 4
  %15 = alloca [4 x i32], align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %"struct.libspirv::Bytecode::Iterator", align 8
  %19 = alloca %"struct.libspirv::Bytecode::Iterator", align 8
  %20 = alloca %"class.std::function", align 8
  %21 = alloca %class.anon.37, align 8
  %22 = load i8, ptr %0, align 8, !tbaa !5, !range !31, !noundef !32
  %23 = trunc nuw i8 %22 to i1
  br i1 %23, label %113, label %24

24:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  %25 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %3, i16 noundef zeroext 2)
  %26 = load i32, ptr %25, align 4, !tbaa !33
  store i32 %26, ptr %6, align 4, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  call void @_ZN8libspirv15MutableBytecode14findSectionEndENS_8Bytecode7SectionE(ptr dead_on_unwind nonnull writable sret(%"struct.libspirv::MutableBytecode::Iterator") align 8 %7, ptr noundef nonnull align 8 dereferenceable(48) %1, i8 noundef zeroext 9)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  %27 = call noundef i32 @_ZN8libspirv15MutableBytecode9OpTypeIntERNS0_8IteratorEtb(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(24) %7, i16 noundef zeroext 32, i1 noundef zeroext false)
  store i32 %27, ptr %8, align 4, !tbaa !33
  %28 = call noundef i32 @_ZN8libspirv15MutableBytecode13OpTypePointerERNS0_8IteratorEN3spv12StorageClassEj(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 12, i32 noundef %27)
  %29 = getelementptr inbounds i8, ptr %0, i64 376
  %30 = getelementptr inbounds i8, ptr %0, i64 200
  %31 = load i32, ptr %30, align 8, !tbaa !34
  %32 = zext i32 %31 to i64
  %33 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %32) #6
  %34 = load i32, ptr %33, align 4, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  %35 = getelementptr inbounds i8, ptr %0, i64 8
  %36 = load ptr, ptr %35, align 8, !tbaa !35
  %37 = zext i32 %4 to i64
  %38 = call { ptr, i32 } @_ZNK8libspirv8Bytecode10fromOffsetEm(ptr noundef nonnull align 8 dereferenceable(20) %36, i64 noundef %37)
  %.fca.0.extract26 = extractvalue { ptr, i32 } %38, 0
  %.fca.1.extract27 = extractvalue { ptr, i32 } %38, 1
  store ptr %.fca.0.extract26, ptr %9, align 8
  %.sroa.229.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  store i32 %.fca.1.extract27, ptr %.sroa.229.0..sroa_idx, align 8
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode8IteratordeEv(ptr noundef nonnull align 8 dereferenceable(12) %9)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  %40 = call noundef zeroext i16 @_ZNK8libspirv8Bytecode6OpCode6lengthEv(ptr noundef nonnull align 4 dereferenceable(4) %39)
  %41 = zext i16 %40 to i64
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %10) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(128) %10, i8 0, i64 128, i1 false)
  %42 = getelementptr inbounds i8, ptr %10, i64 16
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %39, i16 noundef zeroext 3)
  %44 = shl nuw nsw i64 %41, 2
  %45 = add nuw nsw i64 %44, 17179869172
  %46 = and i64 %45, 17179869180
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %42, ptr nonnull align 4 %43, i64 %46, i1 false)
  store i32 %28, ptr %10, align 16, !tbaa !33
  %47 = getelementptr inbounds i8, ptr %0, i64 180
  %48 = load i32, ptr %47, align 4, !tbaa !36
  %49 = getelementptr inbounds i8, ptr %10, i64 8
  store i32 %48, ptr %49, align 8, !tbaa !33
  %50 = getelementptr inbounds i8, ptr %0, i64 420
  %51 = load i32, ptr %50, align 4, !tbaa !37
  %52 = getelementptr inbounds i8, ptr %10, i64 12
  store i32 %51, ptr %52, align 4, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #6
  call void @_ZN8libspirv15MutableBytecode3endEv(ptr dead_on_unwind nonnull writable sret(%"struct.libspirv::MutableBytecode::Iterator") align 8 %11, ptr noundef nonnull align 8 dereferenceable(48) %1)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %11, i64 24, i1 false)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  %53 = call noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48) %1)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #6
  store i32 %27, ptr %12, align 4, !tbaa !33
  %54 = getelementptr inbounds i8, ptr %12, i64 4
  store i32 %53, ptr %54, align 4, !tbaa !33
  %55 = getelementptr inbounds i8, ptr %12, i64 8
  %56 = getelementptr inbounds i8, ptr %0, i64 188
  %57 = load i32, ptr %56, align 4, !tbaa !38
  store i32 %57, ptr %55, align 4, !tbaa !33
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 61, ptr nonnull %12, i64 3)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #6
  %58 = call noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48) %1)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #6
  store i32 %27, ptr %13, align 4, !tbaa !33
  %59 = getelementptr inbounds i8, ptr %13, i64 4
  store i32 %58, ptr %59, align 4, !tbaa !33
  %60 = getelementptr inbounds i8, ptr %13, i64 8
  store i32 %34, ptr %60, align 4, !tbaa !33
  %61 = getelementptr inbounds i8, ptr %13, i64 12
  %62 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %39, i16 noundef zeroext 4)
  %63 = load i32, ptr %62, align 4, !tbaa !33
  store i32 %63, ptr %61, align 4, !tbaa !33
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 132, ptr nonnull %13, i64 4)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #6
  %64 = call noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48) %1)
  store i32 %64, ptr %14, align 4, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #6
  store i32 %27, ptr %15, align 4, !tbaa !33
  %65 = getelementptr inbounds i8, ptr %15, i64 4
  store i32 %64, ptr %65, align 4, !tbaa !33
  %66 = getelementptr inbounds i8, ptr %15, i64 8
  store i32 %53, ptr %66, align 4, !tbaa !33
  %67 = getelementptr inbounds i8, ptr %15, i64 12
  store i32 %58, ptr %67, align 4, !tbaa !33
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 128, ptr nonnull %15, i64 4)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #6
  store i32 %64, ptr %42, align 16, !tbaa !33
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %39, i16 noundef zeroext 1)
  %69 = load i32, ptr %68, align 4, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #6
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %39, i16 noundef zeroext 3)
  %71 = load i32, ptr %70, align 4, !tbaa !33
  store i32 %71, ptr %16, align 4, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #6
  %72 = getelementptr inbounds i8, ptr %0, i64 320
  %73 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt13unordered_mapIjN13MeshConverter7VaryingESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(56) %72, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %74 = getelementptr inbounds i8, ptr %73, i64 4
  %75 = load i32, ptr %74, align 4, !tbaa !39
  store i32 %75, ptr %17, align 4, !tbaa !33
  %76 = icmp ugt i16 %40, 5
  br i1 %76, label %.lr.ph56, label %._crit_edge57

.lr.ph56:                                         ; preds = %24
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %18, i64 8
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %19, i64 8
  br label %85

._crit_edge57:                                    ; preds = %._crit_edge, %24
  %77 = load ptr, ptr %35, align 8, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %21) #6
  store ptr %0, ptr %21, align 8, !tbaa !41
  %78 = getelementptr inbounds i8, ptr %21, i64 8
  store ptr %1, ptr %78, align 8, !tbaa !43
  %79 = getelementptr inbounds i8, ptr %21, i64 16
  store ptr %2, ptr %79, align 8, !tbaa !43
  %80 = getelementptr inbounds i8, ptr %21, i64 24
  store ptr %8, ptr %80, align 8, !tbaa !43
  %81 = getelementptr inbounds i8, ptr %21, i64 32
  store ptr %14, ptr %81, align 8, !tbaa !43
  %82 = getelementptr inbounds i8, ptr %21, i64 40
  store ptr %17, ptr %82, align 8, !tbaa !43
  %83 = getelementptr inbounds i8, ptr %21, i64 48
  store ptr %10, ptr %83, align 8, !tbaa !43
  %84 = getelementptr inbounds i8, ptr %21, i64 56
  store ptr %6, ptr %84, align 8, !tbaa !43
  call void @"_ZNSt8functionIFvPKN8libspirv8Bytecode11AccessChainEjEEC2IZN13MeshConverter12emitVboStoreERNS0_15MutableBytecodeERNS9_8IteratorERKNS1_6OpCodeEjE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(64) %21)
  invoke void @_ZN8libspirv8Bytecode12traverseTypeEjSt8functionIFvPKNS0_11AccessChainEjEENS0_12TraverseModeE(ptr noundef nonnull align 8 dereferenceable(20) %77, i32 noundef %69, ptr noundef nonnull %20, i8 noundef zeroext 0)
          to label %112 unwind label %114

85:                                               ; preds = %.lr.ph56, %._crit_edge
  %86 = phi i32 [ %75, %.lr.ph56 ], [ %95, %._crit_edge ]
  %.054 = phi i64 [ 5, %.lr.ph56 ], [ %96, %._crit_edge ]
  %87 = trunc nuw i64 %.054 to i16
  %88 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %39, i16 noundef zeroext %87)
  %89 = load i32, ptr %88, align 4, !tbaa !33
  %90 = load ptr, ptr %35, align 8, !tbaa !35
  %91 = call { ptr, i32 } @_ZNK8libspirv8Bytecode11findSectionENS0_7SectionE(ptr noundef nonnull align 8 dereferenceable(20) %90, i8 noundef zeroext 9)
  %.fca.0.extract4 = extractvalue { ptr, i32 } %91, 0
  %.fca.1.extract5 = extractvalue { ptr, i32 } %91, 1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #6
  %92 = load ptr, ptr %35, align 8, !tbaa !35
  %93 = call { ptr, i32 } @_ZNK8libspirv8Bytecode14findSectionEndENS0_7SectionE(ptr noundef nonnull align 8 dereferenceable(20) %92, i8 noundef zeroext 9)
  %.fca.0.extract = extractvalue { ptr, i32 } %93, 0
  %.fca.1.extract = extractvalue { ptr, i32 } %93, 1
  store ptr %.fca.0.extract, ptr %18, align 8
  store i32 %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #6
  store ptr %.fca.0.extract4, ptr %19, align 8, !tbaa !43
  store i32 %.fca.1.extract5, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !33
  %94 = call noundef zeroext i1 @_ZN8libspirvneERKNS_8Bytecode8IteratorES3_(ptr noundef nonnull align 8 dereferenceable(12) %19, ptr noundef nonnull align 8 dereferenceable(12) %18)
  br i1 %94, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %109, %85
  %95 = phi i32 [ %86, %85 ], [ %110, %109 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #6
  %96 = add nuw nsw i64 %.054, 1
  %exitcond.not = icmp eq i64 %96, %41
  br i1 %exitcond.not, label %._crit_edge57, label %85, !llvm.loop !44

.lr.ph:                                           ; preds = %85, %109
  %97 = phi i32 [ %110, %109 ], [ %86, %85 ]
  %98 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode8IteratordeEv(ptr noundef nonnull align 8 dereferenceable(12) %19)
  %99 = load i16, ptr %98, align 4, !tbaa !46
  %100 = icmp eq i16 %99, 43
  br i1 %100, label %101, label %109

101:                                              ; preds = %.lr.ph
  %102 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %98, i16 noundef zeroext 2)
  %103 = load i32, ptr %102, align 4, !tbaa !33
  %104 = icmp eq i32 %103, %89
  br i1 %104, label %105, label %109

105:                                              ; preds = %101
  %106 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %98, i16 noundef zeroext 3)
  %107 = load i32, ptr %106, align 4, !tbaa !33
  %108 = add i32 %97, %107
  store i32 %108, ptr %17, align 4, !tbaa !33
  br label %109

109:                                              ; preds = %105, %101, %.lr.ph
  %110 = phi i32 [ %108, %105 ], [ %97, %101 ], [ %97, %.lr.ph ]
  call void @_ZN8libspirv8Bytecode8IteratorppEv(ptr noundef nonnull align 8 dereferenceable(12) %19)
  %111 = call noundef zeroext i1 @_ZN8libspirvneERKNS_8Bytecode8IteratorES3_(ptr noundef nonnull align 8 dereferenceable(12) %19, ptr noundef nonnull align 8 dereferenceable(12) %18)
  br i1 %111, label %.lr.ph, label %._crit_edge, !llvm.loop !49

112:                                              ; preds = %._crit_edge57
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  br label %113

113:                                              ; preds = %5, %112
  ret void

114:                                              ; preds = %._crit_edge57
  %115 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  resume { ptr, i32 } %115
}

; 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 #2 align 2

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

declare { ptr, i32 } @_ZNK8libspirv8Bytecode10fromOffsetEm(ptr noundef nonnull align 8 dereferenceable(20), i64 noundef) local_unnamed_addr #4

declare { ptr, i32 } @_ZNK8libspirv8Bytecode11findSectionENS0_7SectionE(ptr noundef nonnull align 8 dereferenceable(20), i8 noundef zeroext) local_unnamed_addr #4

declare { ptr, i32 } @_ZNK8libspirv8Bytecode14findSectionEndENS0_7SectionE(ptr noundef nonnull align 8 dereferenceable(20), i8 noundef zeroext) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvPKN8libspirv8Bytecode11AccessChainEjEEC2IZN13MeshConverter12emitVboStoreERNS0_15MutableBytecodeERNS9_8IteratorERKNS1_6OpCodeEjE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #3 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { "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 = { 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, !8, i64 0}
!6 = !{!"_ZTS13MeshConverter", !7, i64 0, !11, i64 8, !12, i64 16, !12, i64 64, !9, i64 112, !15, i64 124, !15, i64 128, !15, i64 132, !15, i64 136, !15, i64 140, !15, i64 144, !15, i64 148, !15, i64 152, !15, i64 156, !15, i64 160, !15, i64 164, !15, i64 168, !15, i64 172, !15, i64 176, !15, i64 180, !15, i64 184, !15, i64 188, !15, i64 192, !15, i64 196, !15, i64 200, !20, i64 208, !20, i64 264, !25, i64 320, !27, i64 376, !15, i64 400, !15, i64 404, !15, i64 408, !15, i64 412, !15, i64 416, !15, i64 420, !8, i64 424}
!7 = !{!"_ZTSN13MeshConverter7OptionsE", !8, i64 0, !8, i64 1}
!8 = !{!"bool", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"_ZTSN8libspirv15MutableBytecodeE", !13, i64 0, !16, i64 24}
!13 = !{!"_ZTSN8libspirv8BytecodeE", !11, i64 0, !14, i64 8, !15, i64 16}
!14 = !{!"long", !9, i64 0}
!15 = !{!"int", !9, i64 0}
!16 = !{!"_ZTSSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIN8libspirv8Bytecode6OpCodeESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN8libspirv8Bytecode6OpCodeESaIS2_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN8libspirv8Bytecode6OpCodeESaIS2_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!20 = !{!"_ZTSSt13unordered_mapIjmSt4hashIjESt8equal_toIjESaISt4pairIKjmEEE", !21, i64 0}
!21 = !{!"_ZTSSt10_HashtableIjSt4pairIKjmESaIS2_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE", !11, i64 0, !14, i64 8, !22, i64 16, !14, i64 24, !23, i64 32, !11, i64 48}
!22 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !11, i64 0}
!23 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !24, i64 0, !14, i64 8}
!24 = !{!"float", !9, i64 0}
!25 = !{!"_ZTSSt13unordered_mapIjN13MeshConverter7VaryingESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEE", !26, i64 0}
!26 = !{!"_ZTSSt10_HashtableIjSt4pairIKjN13MeshConverter7VaryingEESaIS4_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS6_18_Mod_range_hashingENS6_20_Default_ranged_hashENS6_20_Prime_rehash_policyENS6_17_Hashtable_traitsILb0ELb0ELb1EEEE", !11, i64 0, !14, i64 8, !22, i64 16, !14, i64 24, !23, i64 32, !11, i64 48}
!27 = !{!"_ZTSSt6vectorIjSaIjEE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = !{!15, !15, i64 0}
!34 = !{!6, !15, i64 200}
!35 = !{!6, !11, i64 8}
!36 = !{!6, !15, i64 180}
!37 = !{!6, !15, i64 420}
!38 = !{!6, !15, i64 188}
!39 = !{!40, !15, i64 4}
!40 = !{!"_ZTSN13MeshConverter7VaryingE", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!41 = !{!42, !11, i64 0}
!42 = !{!"_ZTSZN13MeshConverter12emitVboStoreERN8libspirv15MutableBytecodeERNS1_8IteratorERKNS0_8Bytecode6OpCodeEjE3$_0", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56}
!43 = !{!11, !11, i64 0}
!44 = distinct !{!44, !45}
!45 = !{!"llvm.loop.mustprogress"}
!46 = !{!47, !48, i64 0}
!47 = !{!"_ZTSN8libspirv8Bytecode6OpCodeE", !48, i64 0, !48, i64 2}
!48 = !{!"short", !9, i64 0}
!49 = distinct !{!49, !45}


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