; 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.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 }

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

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

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

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

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

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

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

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

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

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

143:                                              ; preds = %324, %5
  %144 = load i64, ptr %32, align 8, !tbaa !38
  %145 = icmp ult i64 %144, 3
  br i1 %145, label %147, label %146

146:                                              ; preds = %143
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  br label %327

147:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  %149 = call noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48) %148)
  store i32 %149, ptr %33, align 4, !tbaa !9
  %150 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #6
  %151 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %151, ptr %35, align 4, !tbaa !9
  %152 = getelementptr inbounds i32, ptr %35, i64 1
  %153 = load i32, ptr %33, align 4, !tbaa !9
  store i32 %153, ptr %152, align 4, !tbaa !9
  %154 = getelementptr inbounds i32, ptr %35, i64 2
  %155 = load i32, ptr %26, align 4, !tbaa !9
  store i32 %155, ptr %154, align 4, !tbaa !9
  %156 = getelementptr inbounds i32, ptr %35, i64 3
  %157 = load i32, ptr %29, align 4, !tbaa !9
  store i32 %157, ptr %156, align 4, !tbaa !9
  %158 = getelementptr inbounds %"class.std::initializer_list", ptr %34, i32 0, i32 0
  store ptr %35, ptr %158, align 8, !tbaa !35
  %159 = getelementptr inbounds %"class.std::initializer_list", ptr %34, i32 0, i32 1
  store i64 4, ptr %159, align 8, !tbaa !37
  %160 = getelementptr inbounds { ptr, i64 }, ptr %34, i32 0, i32 0
  %161 = load ptr, ptr %160, align 8
  %162 = getelementptr inbounds { ptr, i64 }, ptr %34, i32 0, i32 1
  %163 = load i64, ptr %162, align 8
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %150, i32 noundef 128, ptr %161, i64 %163)
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #6
  %164 = load ptr, ptr %7, align 8, !tbaa !5
  %165 = call noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48) %164)
  store i32 %165, ptr %36, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %37) #6
  %166 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %166, ptr %37, align 4, !tbaa !9
  %167 = getelementptr inbounds i32, ptr %37, i64 1
  %168 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %168, ptr %167, align 4, !tbaa !9
  %169 = getelementptr inbounds i32, ptr %37, i64 2
  %170 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %170, ptr %169, align 4, !tbaa !9
  %171 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #6
  %172 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %172, ptr %39, align 4, !tbaa !9
  %173 = getelementptr inbounds i32, ptr %39, i64 1
  %174 = load i32, ptr %36, align 4, !tbaa !9
  store i32 %174, ptr %173, align 4, !tbaa !9
  %175 = getelementptr inbounds i32, ptr %39, i64 2
  %176 = load i32, ptr %33, align 4, !tbaa !9
  store i32 %176, ptr %175, align 4, !tbaa !9
  %177 = getelementptr inbounds i32, ptr %39, i64 3
  %178 = load i64, ptr %32, align 8, !tbaa !38
  %179 = getelementptr inbounds [3 x i32], ptr %37, i64 0, i64 %178
  %180 = load i32, ptr %179, align 4, !tbaa !9
  store i32 %180, ptr %177, align 4, !tbaa !9
  %181 = getelementptr inbounds %"class.std::initializer_list", ptr %38, i32 0, i32 0
  store ptr %39, ptr %181, align 8, !tbaa !35
  %182 = getelementptr inbounds %"class.std::initializer_list", ptr %38, i32 0, i32 1
  store i64 4, ptr %182, align 8, !tbaa !37
  %183 = getelementptr inbounds { ptr, i64 }, ptr %38, i32 0, i32 0
  %184 = load ptr, ptr %183, align 8
  %185 = getelementptr inbounds { ptr, i64 }, ptr %38, i32 0, i32 1
  %186 = load i64, ptr %185, align 8
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %171, i32 noundef 128, ptr %184, i64 %186)
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #6
  %187 = load ptr, ptr %7, align 8, !tbaa !5
  %188 = call noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48) %187)
  %189 = getelementptr inbounds [32 x i32], ptr %23, i64 0, i64 1
  store i32 %188, ptr %189, align 4, !tbaa !9
  %190 = getelementptr inbounds %class.MeshConverter, ptr %62, i32 0, i32 20
  %191 = load i32, ptr %190, align 4, !tbaa !39
  %192 = getelementptr inbounds [32 x i32], ptr %23, i64 0, i64 2
  store i32 %191, ptr %192, align 8, !tbaa !9
  %193 = getelementptr inbounds %class.MeshConverter, ptr %62, i32 0, i32 36
  %194 = load i32, ptr %193, align 4, !tbaa !40
  %195 = getelementptr inbounds [32 x i32], ptr %23, i64 0, i64 3
  store i32 %194, ptr %195, align 4, !tbaa !9
  %196 = load i32, ptr %36, align 4, !tbaa !9
  %197 = getelementptr inbounds [32 x i32], ptr %23, i64 0, i64 4
  store i32 %196, ptr %197, align 16, !tbaa !9
  %198 = load ptr, ptr %8, align 8, !tbaa !5
  %199 = getelementptr inbounds [32 x i32], ptr %23, i64 0, i64 0
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpEPKjm(ptr noundef nonnull align 8 dereferenceable(24) %198, i32 noundef 65, ptr noundef %199, i64 noundef 5)
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #6
  %200 = load ptr, ptr %7, align 8, !tbaa !5
  %201 = call noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48) %200)
  store i32 %201, ptr %40, align 4, !tbaa !9
  %202 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #6
  %203 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %203, ptr %42, align 4, !tbaa !9
  %204 = getelementptr inbounds i32, ptr %42, i64 1
  %205 = load i32, ptr %40, align 4, !tbaa !9
  store i32 %205, ptr %204, align 4, !tbaa !9
  %206 = getelementptr inbounds i32, ptr %42, i64 2
  %207 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %207, ptr %206, align 4, !tbaa !9
  %208 = getelementptr inbounds i32, ptr %42, i64 3
  %209 = load i64, ptr %32, align 8, !tbaa !38
  %210 = trunc i64 %209 to i32
  store i32 %210, ptr %208, align 4, !tbaa !9
  %211 = getelementptr inbounds %"class.std::initializer_list", ptr %41, i32 0, i32 0
  store ptr %42, ptr %211, align 8, !tbaa !35
  %212 = getelementptr inbounds %"class.std::initializer_list", ptr %41, i32 0, i32 1
  store i64 4, ptr %212, align 8, !tbaa !37
  %213 = getelementptr inbounds { ptr, i64 }, ptr %41, i32 0, i32 0
  %214 = load ptr, ptr %213, align 8
  %215 = getelementptr inbounds { ptr, i64 }, ptr %41, i32 0, i32 1
  %216 = load i64, ptr %215, align 8
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %202, i32 noundef 81, ptr %214, i64 %216)
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #6
  %217 = getelementptr inbounds %class.MeshConverter, ptr %62, i32 0, i32 0
  %218 = getelementptr inbounds %"struct.MeshConverter::Options", ptr %217, i32 0, i32 0
  %219 = load i8, ptr %218, align 8, !tbaa !41, !range !42, !noundef !43
  %220 = trunc i8 %219 to i1
  br i1 %220, label %221, label %264

221:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #6
  %222 = load ptr, ptr %7, align 8, !tbaa !5
  %223 = call noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48) %222)
  store i32 %223, ptr %43, align 4, !tbaa !9
  %224 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %45) #6
  %225 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %225, ptr %45, align 4, !tbaa !9
  %226 = getelementptr inbounds i32, ptr %45, i64 1
  %227 = load i32, ptr %43, align 4, !tbaa !9
  store i32 %227, ptr %226, align 4, !tbaa !9
  %228 = getelementptr inbounds i32, ptr %45, i64 2
  %229 = getelementptr inbounds %class.MeshConverter, ptr %62, i32 0, i32 22
  %230 = load i32, ptr %229, align 4, !tbaa !44
  store i32 %230, ptr %228, align 4, !tbaa !9
  %231 = getelementptr inbounds %"class.std::initializer_list", ptr %44, i32 0, i32 0
  store ptr %45, ptr %231, align 8, !tbaa !35
  %232 = getelementptr inbounds %"class.std::initializer_list", ptr %44, i32 0, i32 1
  store i64 3, ptr %232, align 8, !tbaa !37
  %233 = getelementptr inbounds { ptr, i64 }, ptr %44, i32 0, i32 0
  %234 = load ptr, ptr %233, align 8
  %235 = getelementptr inbounds { ptr, i64 }, ptr %44, i32 0, i32 1
  %236 = load i64, ptr %235, align 8
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %224, i32 noundef 61, ptr %234, i64 %236)
  call void @llvm.lifetime.end.p0(i64 12, ptr %45) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #6
  %237 = load ptr, ptr %7, align 8, !tbaa !5
  %238 = call noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48) %237)
  store i32 %238, ptr %46, align 4, !tbaa !9
  %239 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %48) #6
  %240 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %240, ptr %48, align 4, !tbaa !9
  %241 = getelementptr inbounds i32, ptr %48, i64 1
  %242 = load i32, ptr %46, align 4, !tbaa !9
  store i32 %242, ptr %241, align 4, !tbaa !9
  %243 = getelementptr inbounds i32, ptr %48, i64 2
  %244 = load i32, ptr %43, align 4, !tbaa !9
  store i32 %244, ptr %243, align 4, !tbaa !9
  %245 = getelementptr inbounds i32, ptr %48, i64 3
  %246 = load i32, ptr %40, align 4, !tbaa !9
  store i32 %246, ptr %245, align 4, !tbaa !9
  %247 = getelementptr inbounds %"class.std::initializer_list", ptr %47, i32 0, i32 0
  store ptr %48, ptr %247, align 8, !tbaa !35
  %248 = getelementptr inbounds %"class.std::initializer_list", ptr %47, i32 0, i32 1
  store i64 4, ptr %248, align 8, !tbaa !37
  %249 = getelementptr inbounds { ptr, i64 }, ptr %47, i32 0, i32 0
  %250 = load ptr, ptr %249, align 8
  %251 = getelementptr inbounds { ptr, i64 }, ptr %47, i32 0, i32 1
  %252 = load i64, ptr %251, align 8
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %239, i32 noundef 128, ptr %250, i64 %252)
  call void @llvm.lifetime.end.p0(i64 16, ptr %48) #6
  %253 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #6
  %254 = getelementptr inbounds [32 x i32], ptr %23, i64 0, i64 1
  %255 = load i32, ptr %254, align 4, !tbaa !9
  store i32 %255, ptr %50, align 4, !tbaa !9
  %256 = getelementptr inbounds i32, ptr %50, i64 1
  %257 = load i32, ptr %46, align 4, !tbaa !9
  store i32 %257, ptr %256, align 4, !tbaa !9
  %258 = getelementptr inbounds %"class.std::initializer_list", ptr %49, i32 0, i32 0
  store ptr %50, ptr %258, align 8, !tbaa !35
  %259 = getelementptr inbounds %"class.std::initializer_list", ptr %49, i32 0, i32 1
  store i64 2, ptr %259, align 8, !tbaa !37
  %260 = getelementptr inbounds { ptr, i64 }, ptr %49, i32 0, i32 0
  %261 = load ptr, ptr %260, align 8
  %262 = getelementptr inbounds { ptr, i64 }, ptr %49, i32 0, i32 1
  %263 = load i64, ptr %262, align 8
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %253, i32 noundef 62, ptr %261, i64 %263)
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #6
  br label %323

264:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #6
  %265 = load ptr, ptr %7, align 8, !tbaa !5
  %266 = call noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48) %265)
  store i32 %266, ptr %51, align 4, !tbaa !9
  %267 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %53) #6
  %268 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %268, ptr %53, align 4, !tbaa !9
  %269 = getelementptr inbounds i32, ptr %53, i64 1
  %270 = load i32, ptr %51, align 4, !tbaa !9
  store i32 %270, ptr %269, align 4, !tbaa !9
  %271 = getelementptr inbounds i32, ptr %53, i64 2
  %272 = load i32, ptr %40, align 4, !tbaa !9
  store i32 %272, ptr %271, align 4, !tbaa !9
  %273 = getelementptr inbounds i32, ptr %53, i64 3
  %274 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %274, ptr %273, align 4, !tbaa !9
  %275 = getelementptr inbounds %"class.std::initializer_list", ptr %52, i32 0, i32 0
  store ptr %53, ptr %275, align 8, !tbaa !35
  %276 = getelementptr inbounds %"class.std::initializer_list", ptr %52, i32 0, i32 1
  store i64 4, ptr %276, align 8, !tbaa !37
  %277 = getelementptr inbounds { ptr, i64 }, ptr %52, i32 0, i32 0
  %278 = load ptr, ptr %277, align 8
  %279 = getelementptr inbounds { ptr, i64 }, ptr %52, i32 0, i32 1
  %280 = load i64, ptr %279, align 8
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %267, i32 noundef 132, ptr %278, i64 %280)
  call void @llvm.lifetime.end.p0(i64 16, ptr %53) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #6
  %281 = load ptr, ptr %7, align 8, !tbaa !5
  %282 = call noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48) %281)
  store i32 %282, ptr %54, align 4, !tbaa !9
  %283 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %56) #6
  %284 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %284, ptr %56, align 4, !tbaa !9
  %285 = getelementptr inbounds i32, ptr %56, i64 1
  %286 = load i32, ptr %54, align 4, !tbaa !9
  store i32 %286, ptr %285, align 4, !tbaa !9
  %287 = getelementptr inbounds i32, ptr %56, i64 2
  %288 = getelementptr inbounds %class.MeshConverter, ptr %62, i32 0, i32 22
  %289 = load i32, ptr %288, align 4, !tbaa !44
  store i32 %289, ptr %287, align 4, !tbaa !9
  %290 = getelementptr inbounds %"class.std::initializer_list", ptr %55, i32 0, i32 0
  store ptr %56, ptr %290, align 8, !tbaa !35
  %291 = getelementptr inbounds %"class.std::initializer_list", ptr %55, i32 0, i32 1
  store i64 3, ptr %291, align 8, !tbaa !37
  %292 = getelementptr inbounds { ptr, i64 }, ptr %55, i32 0, i32 0
  %293 = load ptr, ptr %292, align 8
  %294 = getelementptr inbounds { ptr, i64 }, ptr %55, i32 0, i32 1
  %295 = load i64, ptr %294, align 8
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %283, i32 noundef 61, ptr %293, i64 %295)
  call void @llvm.lifetime.end.p0(i64 12, ptr %56) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #6
  %296 = load ptr, ptr %7, align 8, !tbaa !5
  %297 = call noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48) %296)
  store i32 %297, ptr %57, align 4, !tbaa !9
  %298 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %59) #6
  %299 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %299, ptr %59, align 4, !tbaa !9
  %300 = getelementptr inbounds i32, ptr %59, i64 1
  %301 = load i32, ptr %57, align 4, !tbaa !9
  store i32 %301, ptr %300, align 4, !tbaa !9
  %302 = getelementptr inbounds i32, ptr %59, i64 2
  %303 = load i32, ptr %54, align 4, !tbaa !9
  store i32 %303, ptr %302, align 4, !tbaa !9
  %304 = getelementptr inbounds i32, ptr %59, i64 3
  %305 = load i32, ptr %51, align 4, !tbaa !9
  store i32 %305, ptr %304, align 4, !tbaa !9
  %306 = getelementptr inbounds %"class.std::initializer_list", ptr %58, i32 0, i32 0
  store ptr %59, ptr %306, align 8, !tbaa !35
  %307 = getelementptr inbounds %"class.std::initializer_list", ptr %58, i32 0, i32 1
  store i64 4, ptr %307, align 8, !tbaa !37
  %308 = getelementptr inbounds { ptr, i64 }, ptr %58, i32 0, i32 0
  %309 = load ptr, ptr %308, align 8
  %310 = getelementptr inbounds { ptr, i64 }, ptr %58, i32 0, i32 1
  %311 = load i64, ptr %310, align 8
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %298, i32 noundef 128, ptr %309, i64 %311)
  call void @llvm.lifetime.end.p0(i64 16, ptr %59) #6
  %312 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #6
  %313 = getelementptr inbounds [32 x i32], ptr %23, i64 0, i64 1
  %314 = load i32, ptr %313, align 4, !tbaa !9
  store i32 %314, ptr %61, align 4, !tbaa !9
  %315 = getelementptr inbounds i32, ptr %61, i64 1
  %316 = load i32, ptr %57, align 4, !tbaa !9
  store i32 %316, ptr %315, align 4, !tbaa !9
  %317 = getelementptr inbounds %"class.std::initializer_list", ptr %60, i32 0, i32 0
  store ptr %61, ptr %317, align 8, !tbaa !35
  %318 = getelementptr inbounds %"class.std::initializer_list", ptr %60, i32 0, i32 1
  store i64 2, ptr %318, align 8, !tbaa !37
  %319 = getelementptr inbounds { ptr, i64 }, ptr %60, i32 0, i32 0
  %320 = load ptr, ptr %319, align 8
  %321 = getelementptr inbounds { ptr, i64 }, ptr %60, i32 0, i32 1
  %322 = load i64, ptr %321, align 8
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %312, i32 noundef 62, ptr %320, i64 %322)
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #6
  br label %323

323:                                              ; preds = %264, %221
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  br label %324

324:                                              ; preds = %323
  %325 = load i64, ptr %32, align 8, !tbaa !38
  %326 = add i64 %325, 1
  store i64 %326, ptr %32, align 8, !tbaa !38
  br label %143, !llvm.loop !45

327:                                              ; preds = %146
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, 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
  ret void
}

; 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

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

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 = { "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 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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 200}
!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 = !{!12, !6, i64 8}
!34 = !{!12, !10, i64 184}
!35 = !{!36, !6, i64 0}
!36 = !{!"_ZTSSt16initializer_listIjE", !6, i64 0, !17, i64 8}
!37 = !{!36, !17, i64 8}
!38 = !{!17, !17, i64 0}
!39 = !{!12, !10, i64 180}
!40 = !{!12, !10, i64 420}
!41 = !{!12, !14, i64 0}
!42 = !{i8 0, i8 2}
!43 = !{}
!44 = !{!12, !10, i64 188}
!45 = distinct !{!45, !46}
!46 = !{!"llvm.loop.mustprogress"}


; 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] }>

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13MeshConverter12emitIboStoreERN8libspirv15MutableBytecodeERNS1_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 #5 align 2 {
  %6 = alloca %"struct.libspirv::MutableBytecode::Iterator", align 8
  %7 = alloca %"struct.libspirv::Bytecode::Iterator", align 8
  %8 = alloca [32 x i32], align 16
  %9 = alloca %"struct.libspirv::MutableBytecode::Iterator", align 8
  %10 = alloca [3 x i32], align 4
  %11 = alloca [4 x i32], align 4
  %12 = alloca [4 x i32], align 4
  %13 = alloca [3 x i32], align 4
  %14 = alloca [4 x i32], align 4
  %15 = alloca [4 x i32], align 4
  %16 = alloca [3 x i32], align 4
  %17 = alloca [4 x i32], align 4
  %18 = alloca [2 x i32], align 4
  %19 = alloca [4 x i32], align 4
  %20 = alloca [3 x i32], align 4
  %21 = alloca [4 x i32], align 4
  %22 = alloca [2 x i32], align 4
  %23 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %3, i16 noundef zeroext 2)
  %24 = load i32, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #6
  call void @_ZN8libspirv15MutableBytecode14findSectionEndENS_8Bytecode7SectionE(ptr dead_on_unwind nonnull writable sret(%"struct.libspirv::MutableBytecode::Iterator") align 8 %6, ptr noundef nonnull align 8 dereferenceable(48) %1, i8 noundef zeroext 9)
  %25 = call noundef i32 @_ZN8libspirv15MutableBytecode9OpTypeIntERNS0_8IteratorEtb(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(24) %6, i16 noundef zeroext 32, i1 noundef zeroext false)
  %26 = call noundef i32 @_ZN8libspirv15MutableBytecode13OpTypePointerERNS0_8IteratorEN3spv12StorageClassEj(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 12, i32 noundef %25)
  %27 = getelementptr inbounds i8, ptr %0, i64 376
  %28 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef 0) #6
  %29 = load i32, ptr %28, align 4, !tbaa !5
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef 1) #6
  %31 = load i32, ptr %30, align 4, !tbaa !5
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef 2) #6
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef 3) #6
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %0, i64 200
  %37 = load i32, ptr %36, align 8, !tbaa !9
  %38 = zext i32 %37 to i64
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %38) #6
  %40 = load i32, ptr %39, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  %41 = getelementptr inbounds i8, ptr %0, i64 8
  %42 = load ptr, ptr %41, align 8, !tbaa !32
  %43 = zext i32 %4 to i64
  %44 = call { ptr, i32 } @_ZNK8libspirv8Bytecode10fromOffsetEm(ptr noundef nonnull align 8 dereferenceable(20) %42, i64 noundef %43)
  %.fca.0.extract = extractvalue { ptr, i32 } %44, 0
  %.fca.1.extract = extractvalue { ptr, i32 } %44, 1
  store ptr %.fca.0.extract, ptr %7, align 8
  %.sroa.249.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  store i32 %.fca.1.extract, ptr %.sroa.249.0..sroa_idx, align 8
  %45 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode8IteratordeEv(ptr noundef nonnull align 8 dereferenceable(12) %7)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %8) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(128) %8, i8 0, i64 128, i1 false)
  %46 = call noundef zeroext i16 @_ZNK8libspirv8Bytecode6OpCode6lengthEv(ptr noundef nonnull align 4 dereferenceable(4) %45)
  %47 = zext i16 %46 to i64
  %48 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %45, i16 noundef zeroext 1)
  %49 = shl nuw nsw i64 %47, 2
  %50 = add nuw nsw i64 %49, 17179869180
  %51 = and i64 %50, 17179869180
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %8, ptr nonnull align 4 %48, i64 %51, i1 false)
  store i32 %26, ptr %8, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
  call void @_ZN8libspirv15MutableBytecode3endEv(ptr dead_on_unwind nonnull writable sret(%"struct.libspirv::MutableBytecode::Iterator") align 8 %9, 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) %9, i64 24, i1 false)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  %52 = call noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48) %1)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #6
  store i32 %25, ptr %10, align 4, !tbaa !5
  %53 = getelementptr inbounds i8, ptr %10, i64 4
  store i32 %52, ptr %53, align 4, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %10, i64 8
  %55 = getelementptr inbounds i8, ptr %0, i64 184
  %56 = load i32, ptr %55, align 8, !tbaa !33
  store i32 %56, ptr %54, align 4, !tbaa !5
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 61, ptr nonnull %10, i64 3)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #6
  %57 = call noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48) %1)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  store i32 %25, ptr %11, align 4, !tbaa !5
  %58 = getelementptr inbounds i8, ptr %11, i64 4
  store i32 %57, ptr %58, align 4, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %11, i64 8
  store i32 %35, ptr %59, align 4, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %11, i64 12
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %45, i16 noundef zeroext 4)
  %62 = load i32, ptr %61, align 4, !tbaa !5
  store i32 %62, ptr %60, align 4, !tbaa !5
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 132, ptr nonnull %11, i64 4)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  %63 = getelementptr inbounds i8, ptr %12, i64 4
  %64 = getelementptr inbounds i8, ptr %12, i64 8
  %65 = getelementptr inbounds i8, ptr %12, i64 12
  %66 = getelementptr inbounds i8, ptr %13, i64 4
  %67 = getelementptr inbounds i8, ptr %13, i64 8
  %68 = getelementptr inbounds i8, ptr %14, i64 4
  %69 = getelementptr inbounds i8, ptr %14, i64 8
  %70 = getelementptr inbounds i8, ptr %14, i64 12
  %71 = getelementptr inbounds i8, ptr %8, i64 4
  %72 = getelementptr inbounds i8, ptr %0, i64 180
  %73 = getelementptr inbounds i8, ptr %8, i64 8
  %74 = getelementptr inbounds i8, ptr %0, i64 420
  %75 = getelementptr inbounds i8, ptr %8, i64 12
  %76 = getelementptr inbounds i8, ptr %8, i64 16
  %77 = getelementptr inbounds i8, ptr %15, i64 4
  %78 = getelementptr inbounds i8, ptr %15, i64 8
  %79 = getelementptr inbounds i8, ptr %15, i64 12
  %80 = getelementptr inbounds i8, ptr %19, i64 4
  %81 = getelementptr inbounds i8, ptr %19, i64 8
  %82 = getelementptr inbounds i8, ptr %19, i64 12
  %83 = getelementptr inbounds i8, ptr %20, i64 4
  %84 = getelementptr inbounds i8, ptr %20, i64 8
  %85 = getelementptr inbounds i8, ptr %0, i64 188
  %86 = getelementptr inbounds i8, ptr %21, i64 4
  %87 = getelementptr inbounds i8, ptr %21, i64 8
  %88 = getelementptr inbounds i8, ptr %21, i64 12
  %89 = getelementptr inbounds i8, ptr %22, i64 4
  %90 = getelementptr inbounds i8, ptr %16, i64 4
  %91 = getelementptr inbounds i8, ptr %16, i64 8
  %92 = getelementptr inbounds i8, ptr %17, i64 4
  %93 = getelementptr inbounds i8, ptr %17, i64 8
  %94 = getelementptr inbounds i8, ptr %17, i64 12
  %95 = getelementptr inbounds i8, ptr %18, i64 4
  br label %97

96:                                               ; preds = %119
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  ret void

97:                                               ; preds = %5, %119
  %.0102 = phi i64 [ 0, %5 ], [ %120, %119 ]
  %98 = call noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48) %1)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #6
  store i32 %25, ptr %12, align 4, !tbaa !5
  store i32 %98, ptr %63, align 4, !tbaa !5
  store i32 %52, ptr %64, align 4, !tbaa !5
  store i32 %57, ptr %65, align 4, !tbaa !5
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 128, ptr nonnull %12, i64 4)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  %99 = call noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48) %1)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #6
  store i32 %29, ptr %13, align 4, !tbaa !5
  store i32 %31, ptr %66, align 4, !tbaa !5
  store i32 %33, ptr %67, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #6
  store i32 %25, ptr %14, align 4, !tbaa !5
  store i32 %99, ptr %68, align 4, !tbaa !5
  store i32 %98, ptr %69, align 4, !tbaa !5
  %100 = getelementptr inbounds [3 x i32], ptr %13, i64 0, i64 %.0102
  %101 = load i32, ptr %100, align 4, !tbaa !5
  store i32 %101, ptr %70, align 4, !tbaa !5
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 128, ptr nonnull %14, i64 4)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  %102 = call noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48) %1)
  store i32 %102, ptr %71, align 4, !tbaa !5
  %103 = load i32, ptr %72, align 4, !tbaa !34
  store i32 %103, ptr %73, align 8, !tbaa !5
  %104 = load i32, ptr %74, align 4, !tbaa !35
  store i32 %104, ptr %75, align 4, !tbaa !5
  store i32 %99, ptr %76, align 16, !tbaa !5
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpEPKjm(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 65, ptr noundef nonnull %8, i64 noundef 5)
  %105 = call noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48) %1)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #6
  store i32 %25, ptr %15, align 4, !tbaa !5
  store i32 %105, ptr %77, align 4, !tbaa !5
  store i32 %24, ptr %78, align 4, !tbaa !5
  %106 = trunc nuw nsw i64 %.0102 to i32
  store i32 %106, ptr %79, align 4, !tbaa !5
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 81, ptr nonnull %15, i64 4)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #6
  %107 = load i8, ptr %0, align 8, !tbaa !36, !range !37, !noundef !38
  %108 = trunc nuw i8 %107 to i1
  %109 = call noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48) %1)
  br i1 %108, label %110, label %114

110:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %16) #6
  store i32 %25, ptr %16, align 4, !tbaa !5
  store i32 %109, ptr %90, align 4, !tbaa !5
  %111 = load i32, ptr %85, align 4, !tbaa !39
  store i32 %111, ptr %91, align 4, !tbaa !5
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 61, ptr nonnull %16, i64 3)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #6
  %112 = call noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48) %1)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #6
  store i32 %25, ptr %17, align 4, !tbaa !5
  store i32 %112, ptr %92, align 4, !tbaa !5
  store i32 %109, ptr %93, align 4, !tbaa !5
  store i32 %105, ptr %94, align 4, !tbaa !5
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 128, ptr nonnull %17, i64 4)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #6
  %113 = load i32, ptr %71, align 4, !tbaa !5
  store i32 %113, ptr %18, align 4, !tbaa !5
  store i32 %112, ptr %95, align 4, !tbaa !5
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 62, ptr nonnull %18, i64 2)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  br label %119

114:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #6
  store i32 %25, ptr %19, align 4, !tbaa !5
  store i32 %109, ptr %80, align 4, !tbaa !5
  store i32 %105, ptr %81, align 4, !tbaa !5
  store i32 %40, ptr %82, align 4, !tbaa !5
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 132, ptr nonnull %19, i64 4)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #6
  %115 = call noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48) %1)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %20) #6
  store i32 %25, ptr %20, align 4, !tbaa !5
  store i32 %115, ptr %83, align 4, !tbaa !5
  %116 = load i32, ptr %85, align 4, !tbaa !39
  store i32 %116, ptr %84, align 4, !tbaa !5
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 61, ptr nonnull %20, i64 3)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %20) #6
  %117 = call noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48) %1)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #6
  store i32 %25, ptr %21, align 4, !tbaa !5
  store i32 %117, ptr %86, align 4, !tbaa !5
  store i32 %115, ptr %87, align 4, !tbaa !5
  store i32 %109, ptr %88, align 4, !tbaa !5
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 128, ptr nonnull %21, i64 4)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #6
  %118 = load i32, ptr %71, align 4, !tbaa !5
  store i32 %118, ptr %22, align 4, !tbaa !5
  store i32 %117, ptr %89, align 4, !tbaa !5
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 62, ptr nonnull %22, i64 2)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #6
  br label %119

119:                                              ; preds = %114, %110
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #6
  %120 = add nuw nsw i64 %.0102, 1
  %exitcond.not = icmp eq i64 %120, 3
  br i1 %exitcond.not, label %96, label %97, !llvm.loop !40
}

; 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

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass