; LLVM IR from Try/Tempest :: Engine/thirdparty/spirv_cross (spirv_msl)

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

%"class.spirv_cross::SmallVector.92" = type { %"class.spirv_cross::VectorView.93", i64, %"class.spirv_cross::AlignedBuffer.94" }
%"class.spirv_cross::VectorView.93" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.94" = type { [32 x i8] }
%"struct.spirv_cross::CompilerMSL::MemberSorter" = type <{ ptr, ptr, i32, [4 x i8] }>
%"class.spirv_cross::SmallVector.227" = type { %"class.spirv_cross::VectorView.228", i64, %"class.spirv_cross::AlignedBuffer.229" }
%"class.spirv_cross::VectorView.228" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.229" = type { [32 x i8] }
%"class.spirv_cross::SmallVector.428" = type <{ %"class.spirv_cross::VectorView.429", i64, [8 x i8] }>
%"class.spirv_cross::VectorView.429" = type { ptr, i64 }
%"struct.spirv_cross::SPIRType" = type { %"struct.spirv_cross::IVariant.base", i32, i32, i32, i32, i32, %"class.spirv_cross::SmallVector.92", %"class.spirv_cross::SmallVector.416", i32, i8, i8, i32, %"class.spirv_cross::SmallVector.227", %"class.spirv_cross::SmallVector.92", %"struct.spirv_cross::SPIRType::ImageType", %"class.spirv_cross::TypedID.414", %"class.spirv_cross::TypedID.414", %"class.std::unordered_set.165" }
%"struct.spirv_cross::IVariant.base" = type <{ ptr, %"class.spirv_cross::TypedID.413" }>
%"class.spirv_cross::TypedID.413" = type { i32 }
%"class.spirv_cross::SmallVector.416" = type { %"class.spirv_cross::VectorView.417", i64, %"class.spirv_cross::AlignedBuffer.418" }
%"class.spirv_cross::VectorView.417" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.418" = type { [8 x i8] }
%"struct.spirv_cross::SPIRType::ImageType" = type { %"class.spirv_cross::TypedID.414", i32, i8, i8, i8, i32, i32, i32 }
%"class.spirv_cross::TypedID.414" = type { i32 }
%"class.std::unordered_set.165" = type { %"class.std::_Hashtable.166" }
%"class.std::_Hashtable.166" = 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 }
%"struct.spirv_cross::Meta" = type { %"struct.spirv_cross::Meta::Decoration", %"class.spirv_cross::SmallVector.428", %"class.std::unordered_map.213", i8, i32 }
%"struct.spirv_cross::Meta::Decoration" = type { %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.spirv_cross::Bitset", i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, %"struct.spirv_cross::Meta::Decoration::Extended" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.spirv_cross::Bitset" = type { i64, %"class.std::unordered_set" }
%"class.std::unordered_set" = type { %"class.std::_Hashtable.74" }
%"class.std::_Hashtable.74" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.spirv_cross::Meta::Decoration::Extended" = type { %"class.spirv_cross::Bitset", [18 x i32] }
%"class.std::unordered_map.213" = type { %"class.std::_Hashtable.214" }
%"class.std::_Hashtable.214" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }

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 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 @_ZN11spirv_cross11SmallVectorIjLm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #1 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(392) ptr @_ZN11spirv_cross10VectorViewINS_4Meta10DecorationEEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(392) ptr @_ZN11spirv_cross4Meta10DecorationaSERKS1_(ptr noundef nonnull align 8 dereferenceable(392), ptr noundef nonnull align 8 dereferenceable(392)) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK11spirv_cross10VectorViewINS_4Meta10DecorationEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11spirv_cross11CompilerMSL12MemberSorter4sortEv(ptr noundef nonnull align 8 dereferenceable(20) %0) #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca %"class.spirv_cross::SmallVector.92", align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"struct.spirv_cross::CompilerMSL::MemberSorter", align 8
  %8 = alloca i8, align 1
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.spirv_cross::SmallVector.227", align 8
  %12 = alloca %"class.spirv_cross::SmallVector.428", align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %15 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %16 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::MemberSorter", ptr %15, i32 0, i32 0
  %17 = load ptr, ptr %16, align 8, !tbaa !9
  %18 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %17, i32 0, i32 12
  %19 = call noundef i64 @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %18) #5
  store i64 %19, ptr %3, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 56, ptr %4) #5
  %20 = load i64, ptr %3, align 8, !tbaa !12
  call void @_ZN11spirv_cross11SmallVectorIjLm8EEC2Em(ptr noundef nonnull align 8 dereferenceable(56) %4, i64 noundef %20) #5
  %21 = call noundef ptr @_ZN11spirv_cross10VectorViewIjE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %4) #5
  %22 = call noundef ptr @_ZN11spirv_cross10VectorViewIjE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %4) #5
  invoke void @_ZSt4iotaIPjiEvT_S1_T0_(ptr noundef %21, ptr noundef %22, i32 noundef 0)
          to label %23 unwind label %33

23:                                               ; preds = %1
  %24 = call noundef ptr @_ZN11spirv_cross10VectorViewIjE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %4) #5
  %25 = call noundef ptr @_ZN11spirv_cross10VectorViewIjE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %4) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 %15, i64 24, i1 false), !tbaa.struct !14
  invoke void @_ZSt11stable_sortIPjN11spirv_cross11CompilerMSL12MemberSorterEEvT_S4_T0_(ptr noundef %24, ptr noundef %25, ptr noundef byval(%"struct.spirv_cross::CompilerMSL::MemberSorter") align 8 %7)
          to label %26 unwind label %33

26:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #5
  store i8 1, ptr %8, align 1, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !18
  br label %27

27:                                               ; preds = %46, %26
  %28 = load i32, ptr %9, align 4, !tbaa !18
  %29 = zext i32 %28 to i64
  %30 = load i64, ptr %3, align 8, !tbaa !12
  %31 = icmp ult i64 %29, %30
  br i1 %31, label %37, label %32

32:                                               ; preds = %27
  store i32 2, ptr %10, align 4
  br label %49

33:                                               ; preds = %23, %1
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %5, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %6, align 4
  br label %153

37:                                               ; preds = %27
  %38 = load i32, ptr %9, align 4, !tbaa !18
  %39 = load i32, ptr %9, align 4, !tbaa !18
  %40 = zext i32 %39 to i64
  %41 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross10VectorViewIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %40) #5
  %42 = load i32, ptr %41, align 4, !tbaa !18
  %43 = icmp ne i32 %38, %42
  br i1 %43, label %44, label %45

44:                                               ; preds = %37
  store i8 0, ptr %8, align 1, !tbaa !16
  store i32 2, ptr %10, align 4
  br label %49

45:                                               ; preds = %37
  br label %46

46:                                               ; preds = %45
  %47 = load i32, ptr %9, align 4, !tbaa !18
  %48 = add i32 %47, 1
  store i32 %48, ptr %9, align 4, !tbaa !18
  br label %27, !llvm.loop !20

49:                                               ; preds = %44, %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %50

50:                                               ; preds = %49
  %51 = load i8, ptr %8, align 1, !tbaa !16, !range !22, !noundef !23
  %52 = trunc i8 %51 to i1
  br i1 %52, label %53, label %54

53:                                               ; preds = %50
  store i32 1, ptr %10, align 4
  br label %150

54:                                               ; preds = %50
  %55 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::MemberSorter", ptr %15, i32 0, i32 1
  %56 = load ptr, ptr %55, align 8, !tbaa !24
  %57 = getelementptr inbounds %"struct.spirv_cross::Meta", ptr %56, i32 0, i32 1
  %58 = call noundef i64 @_ZNK11spirv_cross10VectorViewINS_4Meta10DecorationEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %57) #5
  %59 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::MemberSorter", ptr %15, i32 0, i32 0
  %60 = load ptr, ptr %59, align 8, !tbaa !9
  %61 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %60, i32 0, i32 12
  %62 = call noundef i64 @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %61) #5
  %63 = icmp ult i64 %58, %62
  br i1 %63, label %64, label %72

64:                                               ; preds = %54
  %65 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::MemberSorter", ptr %15, i32 0, i32 1
  %66 = load ptr, ptr %65, align 8, !tbaa !24
  %67 = getelementptr inbounds %"struct.spirv_cross::Meta", ptr %66, i32 0, i32 1
  %68 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::MemberSorter", ptr %15, i32 0, i32 0
  %69 = load ptr, ptr %68, align 8, !tbaa !9
  %70 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %69, i32 0, i32 12
  %71 = call noundef i64 @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %70) #5
  call void @_ZN11spirv_cross11SmallVectorINS_4Meta10DecorationELm0EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(25) %67, i64 noundef %71) #5
  br label %72

72:                                               ; preds = %64, %54
  call void @llvm.lifetime.start.p0(i64 56, ptr %11) #5
  %73 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::MemberSorter", ptr %15, i32 0, i32 0
  %74 = load ptr, ptr %73, align 8, !tbaa !9
  %75 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %74, i32 0, i32 12
  call void @_ZN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE1EEELm8EEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(56) %11, ptr noundef nonnull align 8 dereferenceable(56) %75) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #5
  %76 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::MemberSorter", ptr %15, i32 0, i32 1
  %77 = load ptr, ptr %76, align 8, !tbaa !24
  %78 = getelementptr inbounds %"struct.spirv_cross::Meta", ptr %77, i32 0, i32 1
  call void @_ZN11spirv_cross11SmallVectorINS_4Meta10DecorationELm0EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(25) %12, ptr noundef nonnull align 8 dereferenceable(25) %78) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !18
  br label %79

79:                                               ; preds = %112, %72
  %80 = load i32, ptr %13, align 4, !tbaa !18
  %81 = zext i32 %80 to i64
  %82 = load i64, ptr %3, align 8, !tbaa !12
  %83 = icmp ult i64 %81, %82
  br i1 %83, label %85, label %84

84:                                               ; preds = %79
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %119

85:                                               ; preds = %79
  %86 = load i32, ptr %13, align 4, !tbaa !18
  %87 = zext i32 %86 to i64
  %88 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross10VectorViewIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %87) #5
  %89 = load i32, ptr %88, align 4, !tbaa !18
  %90 = zext i32 %89 to i64
  %91 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %11, i64 noundef %90) #5
  %92 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::MemberSorter", ptr %15, i32 0, i32 0
  %93 = load ptr, ptr %92, align 8, !tbaa !9
  %94 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %93, i32 0, i32 12
  %95 = load i32, ptr %13, align 4, !tbaa !18
  %96 = zext i32 %95 to i64
  %97 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %94, i64 noundef %96) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %97, ptr align 4 %91, i64 4, i1 false), !tbaa.struct !25
  %98 = load i32, ptr %13, align 4, !tbaa !18
  %99 = zext i32 %98 to i64
  %100 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross10VectorViewIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %99) #5
  %101 = load i32, ptr %100, align 4, !tbaa !18
  %102 = zext i32 %101 to i64
  %103 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZN11spirv_cross10VectorViewINS_4Meta10DecorationEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %102) #5
  %104 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::MemberSorter", ptr %15, i32 0, i32 1
  %105 = load ptr, ptr %104, align 8, !tbaa !24
  %106 = getelementptr inbounds %"struct.spirv_cross::Meta", ptr %105, i32 0, i32 1
  %107 = load i32, ptr %13, align 4, !tbaa !18
  %108 = zext i32 %107 to i64
  %109 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZN11spirv_cross10VectorViewINS_4Meta10DecorationEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %106, i64 noundef %108) #5
  %110 = invoke noundef nonnull align 8 dereferenceable(392) ptr @_ZN11spirv_cross4Meta10DecorationaSERKS1_(ptr noundef nonnull align 8 dereferenceable(392) %109, ptr noundef nonnull align 8 dereferenceable(392) %103)
          to label %111 unwind label %115

111:                                              ; preds = %85
  br label %112

112:                                              ; preds = %111
  %113 = load i32, ptr %13, align 4, !tbaa !18
  %114 = add i32 %113, 1
  store i32 %114, ptr %13, align 4, !tbaa !18
  br label %79, !llvm.loop !26

115:                                              ; preds = %85
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %5, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @_ZN11spirv_cross11SmallVectorINS_4Meta10DecorationELm0EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #5
  call void @_ZN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE1EEELm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %11) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #5
  br label %153

119:                                              ; preds = %84
  %120 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::MemberSorter", ptr %15, i32 0, i32 2
  %121 = load i32, ptr %120, align 8, !tbaa !27
  %122 = icmp eq i32 %121, 1
  br i1 %122, label %123, label %149

123:                                              ; preds = %119
  %124 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::MemberSorter", ptr %15, i32 0, i32 0
  %125 = load ptr, ptr %124, align 8, !tbaa !9
  %126 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %125, i32 0, i32 13
  %127 = load i64, ptr %3, align 8, !tbaa !12
  call void @_ZN11spirv_cross11SmallVectorIjLm8EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(56) %126, i64 noundef %127) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !18
  br label %128

128:                                              ; preds = %145, %123
  %129 = load i32, ptr %14, align 4, !tbaa !18
  %130 = zext i32 %129 to i64
  %131 = load i64, ptr %3, align 8, !tbaa !12
  %132 = icmp ult i64 %130, %131
  br i1 %132, label %134, label %133

133:                                              ; preds = %128
  store i32 8, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %148

134:                                              ; preds = %128
  %135 = load i32, ptr %14, align 4, !tbaa !18
  %136 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::MemberSorter", ptr %15, i32 0, i32 0
  %137 = load ptr, ptr %136, align 8, !tbaa !9
  %138 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %137, i32 0, i32 13
  %139 = load i32, ptr %14, align 4, !tbaa !18
  %140 = zext i32 %139 to i64
  %141 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross10VectorViewIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %140) #5
  %142 = load i32, ptr %141, align 4, !tbaa !18
  %143 = zext i32 %142 to i64
  %144 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross10VectorViewIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %138, i64 noundef %143) #5
  store i32 %135, ptr %144, align 4, !tbaa !18
  br label %145

145:                                              ; preds = %134
  %146 = load i32, ptr %14, align 4, !tbaa !18
  %147 = add i32 %146, 1
  store i32 %147, ptr %14, align 4, !tbaa !18
  br label %128, !llvm.loop !28

148:                                              ; preds = %133
  br label %149

149:                                              ; preds = %148, %119
  call void @_ZN11spirv_cross11SmallVectorINS_4Meta10DecorationELm0EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #5
  call void @_ZN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE1EEELm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %11) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %11) #5
  store i32 0, ptr %10, align 4
  br label %150

150:                                              ; preds = %149, %53
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #5
  call void @_ZN11spirv_cross11SmallVectorIjLm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  %151 = load i32, ptr %10, align 4
  switch i32 %151, label %159 [
    i32 0, label %152
    i32 1, label %152
  ]

152:                                              ; preds = %150, %150
  ret void

153:                                              ; preds = %115, %33
  call void @_ZN11spirv_cross11SmallVectorIjLm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  br label %154

154:                                              ; preds = %153
  %155 = load ptr, ptr %5, align 8
  %156 = load i32, ptr %6, align 4
  %157 = insertvalue { ptr, i32 } poison, ptr %155, 0
  %158 = insertvalue { ptr, i32 } %157, i32 %156, 1
  resume { ptr, i32 } %158

159:                                              ; preds = %150
  unreachable
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt4iotaIPjiEvT_S1_T0_(ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11stable_sortIPjN11spirv_cross11CompilerMSL12MemberSorterEEvT_S4_T0_(ptr noundef, ptr noundef, ptr noundef byval(%"struct.spirv_cross::CompilerMSL::MemberSorter") align 8) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11spirv_cross11SmallVectorINS_4Meta10DecorationELm0EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(25), i64 noundef) #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11spirv_cross11SmallVectorIjLm8EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef) #1 align 2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTSN11spirv_cross11CompilerMSL12MemberSorterE", !6, i64 0, !6, i64 8, !11, i64 16}
!11 = !{!"_ZTSN11spirv_cross11CompilerMSL12MemberSorter10SortAspectE", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 4, !15}
!15 = !{!11, !11, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"int", !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!10, !6, i64 8}
!25 = !{i64 0, i64 4, !18}
!26 = distinct !{!26, !21}
!27 = !{!10, !11, i64 16}
!28 = distinct !{!28, !21}


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

%"class.spirv_cross::SmallVector.92" = type { %"class.spirv_cross::VectorView.93", i64, %"class.spirv_cross::AlignedBuffer.94" }
%"class.spirv_cross::VectorView.93" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.94" = type { [32 x i8] }
%"class.spirv_cross::SmallVector.227" = type { %"class.spirv_cross::VectorView.228", i64, %"class.spirv_cross::AlignedBuffer.229" }
%"class.spirv_cross::VectorView.228" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.229" = type { [32 x i8] }
%"class.spirv_cross::SmallVector.428" = type <{ %"class.spirv_cross::VectorView.429", i64, [8 x i8] }>
%"class.spirv_cross::VectorView.429" = type { ptr, i64 }
%"struct.spirv_cross::CompilerMSL::MemberSorter" = type <{ ptr, ptr, i32, [4 x i8] }>

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 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 @_ZN11spirv_cross11SmallVectorIjLm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN11spirv_cross10VectorViewIjE5beginEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN11spirv_cross10VectorViewIjE3endEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(392) ptr @_ZN11spirv_cross4Meta10DecorationaSERKS1_(ptr noundef nonnull align 8 dereferenceable(392), ptr noundef nonnull align 8 dereferenceable(392)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK11spirv_cross10VectorViewINS_4Meta10DecorationEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11spirv_cross11CompilerMSL12MemberSorter4sortEv(ptr nocapture noundef nonnull readonly align 8 dereferenceable(20) %0) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.spirv_cross::SmallVector.92", align 8
  %3 = alloca %"class.spirv_cross::SmallVector.227", align 8
  %4 = alloca %"class.spirv_cross::SmallVector.428", align 8
  %5 = load ptr, ptr %0, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %5, i64 136
  %7 = tail call noundef i64 @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %6) #4
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %2) #4
  call void @_ZN11spirv_cross11SmallVectorIjLm8EEC2Em(ptr noundef nonnull align 8 dereferenceable(56) %2, i64 noundef %7) #4
  %8 = call noundef ptr @_ZN11spirv_cross10VectorViewIjE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %2) #4
  %9 = call noundef ptr @_ZN11spirv_cross10VectorViewIjE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %2) #4
  call void @_ZSt4iotaIPjiEvT_S1_T0_(ptr noundef %8, ptr noundef %9, i32 noundef 0)
  %10 = call noundef ptr @_ZN11spirv_cross10VectorViewIjE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %2) #4
  %11 = call noundef ptr @_ZN11spirv_cross10VectorViewIjE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %2) #4
  invoke void @_ZSt11stable_sortIPjN11spirv_cross11CompilerMSL12MemberSorterEEvT_S4_T0_(ptr noundef %10, ptr noundef %11, ptr noundef nonnull byval(%"struct.spirv_cross::CompilerMSL::MemberSorter") align 8 %0)
          to label %.preheader unwind label %15

.preheader:                                       ; preds = %1
  %.not3133.not = icmp eq i64 %7, 0
  br i1 %.not3133.not, label %.critedge, label %.lr.ph

12:                                               ; preds = %.lr.ph
  %13 = add i32 %.02334, 1
  %14 = zext i32 %13 to i64
  %.not31 = icmp ugt i64 %7, %14
  br i1 %.not31, label %.lr.ph, label %.critedge, !llvm.loop !11

15:                                               ; preds = %1
  %16 = landingpad { ptr, i32 }
          cleanup
  br label %82

.lr.ph:                                           ; preds = %.preheader, %12
  %17 = phi i64 [ %14, %12 ], [ 0, %.preheader ]
  %.02334 = phi i32 [ %13, %12 ], [ 0, %.preheader ]
  %18 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross10VectorViewIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %2, i64 noundef %17) #4
  %19 = load i32, ptr %18, align 4, !tbaa !13
  %.not = icmp eq i32 %.02334, %19
  br i1 %.not, label %12, label %20

20:                                               ; preds = %.lr.ph
  %21 = getelementptr inbounds i8, ptr %0, i64 8
  %22 = load ptr, ptr %21, align 8, !tbaa !15
  %23 = getelementptr inbounds i8, ptr %22, i64 392
  %24 = call noundef i64 @_ZNK11spirv_cross10VectorViewINS_4Meta10DecorationEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %23) #4
  %25 = load ptr, ptr %0, align 8, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %25, i64 136
  %27 = call noundef i64 @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %26) #4
  %28 = icmp ult i64 %24, %27
  br i1 %28, label %29, label %35

29:                                               ; preds = %20
  %30 = load ptr, ptr %21, align 8, !tbaa !15
  %31 = getelementptr inbounds i8, ptr %30, i64 392
  %32 = load ptr, ptr %0, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %32, i64 136
  %34 = call noundef i64 @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %33) #4
  call void @_ZN11spirv_cross11SmallVectorINS_4Meta10DecorationELm0EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(25) %31, i64 noundef %34) #4
  br label %35

35:                                               ; preds = %29, %20
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %3) #4
  %36 = load ptr, ptr %0, align 8, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %36, i64 136
  call void @_ZN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE1EEELm8EEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(56) %3, ptr noundef nonnull align 8 dereferenceable(56) %37) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #4
  %38 = load ptr, ptr %21, align 8, !tbaa !15
  %39 = getelementptr inbounds i8, ptr %38, i64 392
  call void @_ZN11spirv_cross11SmallVectorINS_4Meta10DecorationELm0EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(25) %4, ptr noundef nonnull align 8 dereferenceable(25) %39) #4
  br label %44

40:                                               ; preds = %62
  %41 = getelementptr inbounds i8, ptr %0, i64 16
  %42 = load i32, ptr %41, align 8, !tbaa !16
  %43 = icmp eq i32 %42, 1
  br i1 %43, label %68, label %.loopexit

44:                                               ; preds = %35, %62
  %45 = phi i64 [ 0, %35 ], [ %64, %62 ]
  %.02235 = phi i32 [ 0, %35 ], [ %63, %62 ]
  %46 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross10VectorViewIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %2, i64 noundef %45) #4
  %47 = load i32, ptr %46, align 4, !tbaa !13
  %48 = zext i32 %47 to i64
  %49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %48) #4
  %50 = load ptr, ptr %0, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %50, i64 136
  %52 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %51, i64 noundef %45) #4
  %53 = load i32, ptr %49, align 4, !tbaa !13
  store i32 %53, ptr %52, align 4, !tbaa !13
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross10VectorViewIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %2, i64 noundef %45) #4
  %55 = load i32, ptr %54, align 4, !tbaa !13
  %56 = zext i32 %55 to i64
  %57 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZN11spirv_cross10VectorViewINS_4Meta10DecorationEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %56) #4
  %58 = load ptr, ptr %21, align 8, !tbaa !15
  %59 = getelementptr inbounds i8, ptr %58, i64 392
  %60 = call noundef nonnull align 8 dereferenceable(392) ptr @_ZN11spirv_cross10VectorViewINS_4Meta10DecorationEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %59, i64 noundef %45) #4
  %61 = invoke noundef nonnull align 8 dereferenceable(392) ptr @_ZN11spirv_cross4Meta10DecorationaSERKS1_(ptr noundef nonnull align 8 dereferenceable(392) %60, ptr noundef nonnull align 8 dereferenceable(392) %57)
          to label %62 unwind label %66

62:                                               ; preds = %44
  %63 = add i32 %.02235, 1
  %64 = zext i32 %63 to i64
  %65 = icmp ugt i64 %7, %64
  br i1 %65, label %44, label %40, !llvm.loop !17

66:                                               ; preds = %44
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN11spirv_cross11SmallVectorINS_4Meta10DecorationELm0EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %4) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #4
  call void @_ZN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE1EEELm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #4
  br label %82

68:                                               ; preds = %40
  %69 = load ptr, ptr %0, align 8, !tbaa !5
  %70 = getelementptr inbounds i8, ptr %69, i64 192
  call void @_ZN11spirv_cross11SmallVectorIjLm8EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(56) %70, i64 noundef %7) #4
  br label %71

71:                                               ; preds = %68, %71
  %72 = phi i64 [ 0, %68 ], [ %80, %71 ]
  %.036 = phi i32 [ 0, %68 ], [ %79, %71 ]
  %73 = load ptr, ptr %0, align 8, !tbaa !5
  %74 = getelementptr inbounds i8, ptr %73, i64 192
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross10VectorViewIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %2, i64 noundef %72) #4
  %76 = load i32, ptr %75, align 4, !tbaa !13
  %77 = zext i32 %76 to i64
  %78 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN11spirv_cross10VectorViewIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %74, i64 noundef %77) #4
  store i32 %.036, ptr %78, align 4, !tbaa !13
  %79 = add i32 %.036, 1
  %80 = zext i32 %79 to i64
  %81 = icmp ugt i64 %7, %80
  br i1 %81, label %71, label %.loopexit, !llvm.loop !18

.loopexit:                                        ; preds = %71, %40
  call void @_ZN11spirv_cross11SmallVectorINS_4Meta10DecorationELm0EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %4) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #4
  call void @_ZN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE1EEELm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #4
  br label %.critedge

.critedge:                                        ; preds = %12, %.preheader, %.loopexit
  call void @_ZN11spirv_cross11SmallVectorIjLm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %2) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %2) #4
  ret void

82:                                               ; preds = %66, %15
  %.pn = phi { ptr, i32 } [ %67, %66 ], [ %16, %15 ]
  call void @_ZN11spirv_cross11SmallVectorIjLm8EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %2) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %2) #4
  resume { ptr, i32 } %.pn
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt4iotaIPjiEvT_S1_T0_(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11stable_sortIPjN11spirv_cross11CompilerMSL12MemberSorterEEvT_S4_T0_(ptr noundef, ptr noundef, ptr noundef byval(%"struct.spirv_cross::CompilerMSL::MemberSorter") align 8) local_unnamed_addr #2

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSN11spirv_cross11CompilerMSL12MemberSorterE", !7, i64 0, !7, i64 8, !10, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN11spirv_cross11CompilerMSL12MemberSorter10SortAspectE", !8, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !8, i64 0}
!15 = !{!6, !7, i64 8}
!16 = !{!6, !10, i64 16}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass