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

%"struct.std::pair.539" = type <{ %"struct.std::_Rb_tree_const_iterator.538", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator.538" = type { ptr }
%"class.spirv_cross::TypedID.413" = type { i32 }
%"struct.std::__detail::_Node_iterator.613" = type { %"struct.std::__detail::_Node_iterator_base.406" }
%"struct.std::__detail::_Node_iterator_base.406" = type { ptr }
%"struct.std::pair.444" = type <{ %"struct.std::__detail::_Node_iterator.446", i8, [7 x i8] }>
%"struct.std::__detail::_Node_iterator.446" = type { %"struct.std::__detail::_Node_iterator_base.447" }
%"struct.std::__detail::_Node_iterator_base.447" = type { ptr }
%"class.spirv_cross::TypedID.414" = type { i32 }
%"struct.spirv_cross::CompilerMSL::OpCodePreprocessor" = type <{ %"struct.spirv_cross::Compiler::OpcodeHandler", ptr, %"class.std::unordered_map.213", %"class.std::unordered_map.213", i8, i8, i8, i8, i8, i8, i8, i8, i8, [7 x i8] }>
%"struct.spirv_cross::Compiler::OpcodeHandler" = type { ptr }
%"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 }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.spirv_cross::CompilerMSL" = type <{ %"class.spirv_cross::CompilerGLSL", %"class.std::unordered_map.277", i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, [2 x i8], %"struct.spirv_cross::CompilerMSL::Options", %"class.std::set", %"class.std::map", %"class.std::unordered_map.299", %"class.std::map", %"class.std::unordered_map.299", %"class.std::unordered_set", %"class.std::unordered_set", %"class.std::unordered_set", %"class.std::unordered_set", %"class.std::unordered_map.213", %"class.std::unordered_map.213", %"class.std::unordered_map.213", %"class.std::set.313", %"class.std::set.313", %"class.spirv_cross::SmallVector.92", %"class.std::unordered_map.319", %"class.std::unordered_map.336", i32, i32, i32, [8 x i32], %"class.spirv_cross::TypedID.350", %"class.spirv_cross::TypedID.350", %"class.spirv_cross::TypedID.350", %"class.spirv_cross::TypedID.350", %"class.spirv_cross::TypedID.350", %"class.spirv_cross::TypedID.350", %"class.spirv_cross::TypedID.350", %"class.spirv_cross::TypedID.350", %"class.spirv_cross::TypedID.350", %"class.spirv_cross::TypedID.350", %"class.spirv_cross::TypedID.350", i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, [3 x i8], %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, [4 x i8], %"class.std::map.351", %"class.std::unordered_map.357", %"class.std::unordered_set", %"class.spirv_cross::SmallVector.374", %"class.spirv_cross::SmallVector.92", %"class.std::unordered_set", %"class.std::unordered_set", %"class.std::unordered_set", %"class.spirv_cross::SmallVector.377", %"class.std::map.380", %"class.spirv_cross::SmallVector.92", %"class.std::unordered_set.386", [8 x i32], i32, i32, i8, i8, [6 x i8] }>
%"class.spirv_cross::CompilerGLSL" = type { %"class.spirv_cross::Compiler", ptr, %"class.spirv_cross::SmallVector.159", i8, %"class.spirv_cross::StringStream", ptr, ptr, i8, i8, %"struct.spirv_cross::CompilerGLSL::Options", %"class.std::unordered_set.165", %"class.std::unordered_set.165", %"class.std::unordered_set.165", %"class.std::unordered_set.165", %"class.std::unordered_set.165", %"class.std::unordered_set.165", %"class.std::unordered_set.165", %"class.std::unordered_map.185", %"class.std::unordered_map.145", i8, [7 x i8], %"struct.spirv_cross::CompilerGLSL::BackendVariations", i32, %"class.std::unordered_set", %"class.std::unordered_set", %"class.std::unordered_set", %"class.std::unordered_map.199", %"struct.spirv_cross::CompilerGLSL::ShaderSubgroupSupportHelper", %"class.std::unordered_map.213", %"class.spirv_cross::SmallVector.27", %"class.spirv_cross::SmallVector.27", %"class.std::unordered_map.213", %"class.spirv_cross::SmallVector.227", i32, i32, i32, i8, i8, %"class.std::vector.230", %"class.std::vector.230", %"class.std::vector.235", %"class.std::vector.240", %"class.std::unordered_map.213", %"class.std::unordered_set", %"class.std::unordered_set", i8, %"class.std::unordered_set.245", %"class.std::unordered_set", ptr, %"class.std::unordered_map.263" }
%"class.spirv_cross::Compiler" = type { ptr, %"class.spirv_cross::ParsedIR", %"class.spirv_cross::SmallVector.92", %"class.spirv_cross::SmallVector.92", ptr, ptr, i32, %"class.std::unordered_set.95", i8, %"class.std::unordered_set", i8, i8, %"class.spirv_cross::SmallVector.114", %"class.spirv_cross::SmallVector.92", %"class.std::function", %"class.std::unordered_set", %"class.std::unordered_set", %"class.std::unordered_set", %"class.std::unordered_set", %"class.std::unordered_set", %"class.spirv_cross::Bitset", %"class.spirv_cross::Bitset", i32, i32, i8, %"class.std::unordered_set", i8, i8, i32, %"class.std::unordered_map.117", %"class.spirv_cross::SmallVector.92", %"class.std::unordered_map.131", %"class.std::unordered_set", i8, %"class.std::unordered_map.145" }
%"class.spirv_cross::ParsedIR" = type { %"class.std::unique_ptr", %"class.std::vector", %"class.spirv_cross::SmallVector", %"class.std::unordered_map", [14 x %"class.spirv_cross::SmallVector.7"], %"class.spirv_cross::SmallVector.7", %"class.spirv_cross::SmallVector.7", %"class.std::unordered_map.10", %"class.spirv_cross::SmallVector.24", %"class.spirv_cross::SmallVector.27", %"class.spirv_cross::SmallVector.30", %"class.std::unordered_map.33", %"class.std::unordered_map.52", %"class.spirv_cross::TypedID", %"struct.spirv_cross::ParsedIR::Source", i32, i32, i32, i32, %"class.std::__cxx11::basic_string", %"class.spirv_cross::Bitset", %"class.std::unordered_set" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.spirv_cross::SmallVector" = type { %"class.spirv_cross::VectorView", i64, %"class.spirv_cross::AlignedBuffer" }
%"class.spirv_cross::VectorView" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer" = type { [192 x i8] }
%"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 }
%"class.spirv_cross::SmallVector.7" = type { %"class.spirv_cross::VectorView.8", i64, %"class.spirv_cross::AlignedBuffer.9" }
%"class.spirv_cross::VectorView.8" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.9" = type { [32 x i8] }
%"class.std::unordered_map.10" = type { %"class.std::_Hashtable.11" }
%"class.std::_Hashtable.11" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.spirv_cross::SmallVector.24" = type { %"class.spirv_cross::VectorView.25", i64, %"class.spirv_cross::AlignedBuffer.26" }
%"class.spirv_cross::VectorView.25" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.26" = type { [32 x i8] }
%"class.spirv_cross::SmallVector.30" = type { %"class.spirv_cross::VectorView.31", i64, %"class.spirv_cross::AlignedBuffer.32" }
%"class.spirv_cross::VectorView.31" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.32" = type { [8 x i8] }
%"class.std::unordered_map.33" = type { %"class.std::_Hashtable.34" }
%"class.std::_Hashtable.34" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.52" = type { %"class.std::_Hashtable.53" }
%"class.std::_Hashtable.53" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.spirv_cross::TypedID" = type { i32 }
%"struct.spirv_cross::ParsedIR::Source" = type <{ i32, i8, i8, i8, i8 }>
%"class.std::unordered_set.95" = type { %"class.std::_Hashtable.96" }
%"class.std::_Hashtable.96" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.spirv_cross::SmallVector.114" = type { %"class.spirv_cross::VectorView.115", i64, %"class.spirv_cross::AlignedBuffer.116" }
%"class.spirv_cross::VectorView.115" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.116" = type { [96 x i8] }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.spirv_cross::Bitset" = type { i64, %"class.std::unordered_set" }
%"class.std::unordered_map.117" = type { %"class.std::_Hashtable.118" }
%"class.std::_Hashtable.118" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.131" = type { %"class.std::_Hashtable.132" }
%"class.std::_Hashtable.132" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.spirv_cross::SmallVector.159" = type { %"class.spirv_cross::VectorView.160", i64, %"class.spirv_cross::AlignedBuffer.161" }
%"class.spirv_cross::VectorView.160" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.161" = type { [64 x i8] }
%"class.spirv_cross::StringStream" = type { %"struct.spirv_cross::StringStream<>::Buffer", [4096 x i8], %"class.spirv_cross::SmallVector.162" }
%"struct.spirv_cross::StringStream<>::Buffer" = type { ptr, i64, i64 }
%"class.spirv_cross::SmallVector.162" = type { %"class.spirv_cross::VectorView.163", i64, %"class.spirv_cross::AlignedBuffer.164" }
%"class.spirv_cross::VectorView.163" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.164" = type { [192 x i8] }
%"struct.spirv_cross::CompilerGLSL::Options" = type { i32, i8, i8, i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, %"struct.spirv_cross::CompilerGLSL::Options::VertexOptions", %"struct.spirv_cross::CompilerGLSL::Options::FragmentOptions" }
%"struct.spirv_cross::CompilerGLSL::Options::VertexOptions" = type { i8, i8, i8 }
%"struct.spirv_cross::CompilerGLSL::Options::FragmentOptions" = type { i32, 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 }
%"class.std::unordered_map.185" = type { %"class.std::_Hashtable.186" }
%"class.std::_Hashtable.186" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.145" = type { %"class.std::_Hashtable.146" }
%"class.std::_Hashtable.146" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.spirv_cross::CompilerGLSL::BackendVariations" = type <{ %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i8, i8, i8, i8, [4 x i8], ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, [4 x i8] }>
%"class.std::unordered_map.199" = type { %"class.std::_Hashtable.200" }
%"class.std::_Hashtable.200" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.spirv_cross::CompilerGLSL::ShaderSubgroupSupportHelper" = type { i32 }
%"class.spirv_cross::SmallVector.27" = type { %"class.spirv_cross::VectorView.28", i64, %"class.spirv_cross::AlignedBuffer.29" }
%"class.spirv_cross::VectorView.28" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.29" = type { [256 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.std::vector.230" = type { %"struct.std::_Vector_base.231" }
%"struct.std::_Vector_base.231" = type { %"struct.std::_Vector_base<spirv_cross::PlsRemap, std::allocator<spirv_cross::PlsRemap>>::_Vector_impl" }
%"struct.std::_Vector_base<spirv_cross::PlsRemap, std::allocator<spirv_cross::PlsRemap>>::_Vector_impl" = type { %"struct.std::_Vector_base<spirv_cross::PlsRemap, std::allocator<spirv_cross::PlsRemap>>::_Vector_impl_data" }
%"struct.std::_Vector_base<spirv_cross::PlsRemap, std::allocator<spirv_cross::PlsRemap>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.235" = type { %"struct.std::_Vector_base.236" }
%"struct.std::_Vector_base.236" = type { %"struct.std::_Vector_base<std::pair<unsigned int, unsigned int>, std::allocator<std::pair<unsigned int, unsigned int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<unsigned int, unsigned int>, std::allocator<std::pair<unsigned int, unsigned int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<unsigned int, unsigned int>, std::allocator<std::pair<unsigned int, unsigned int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<unsigned int, unsigned int>, std::allocator<std::pair<unsigned int, unsigned int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.240" = type { %"struct.std::_Vector_base.241" }
%"struct.std::_Vector_base.241" = type { %"struct.std::_Vector_base<std::pair<unsigned int, bool>, std::allocator<std::pair<unsigned int, bool>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<unsigned int, bool>, std::allocator<std::pair<unsigned int, bool>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<unsigned int, bool>, std::allocator<std::pair<unsigned int, bool>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<unsigned int, bool>, std::allocator<std::pair<unsigned int, bool>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_set.245" = type { %"class.std::_Hashtable.246" }
%"class.std::_Hashtable.246" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.263" = type { %"class.std::_Hashtable.264" }
%"class.std::_Hashtable.264" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.277" = type { %"class.std::_Hashtable.278" }
%"class.std::_Hashtable.278" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.spirv_cross::CompilerMSL::Options" = type <{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, [3 x i8], i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, [3 x i8] }>
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<spirv_cross::CompilerMSL::SPVFuncImpl, spirv_cross::CompilerMSL::SPVFuncImpl, std::_Identity<spirv_cross::CompilerMSL::SPVFuncImpl>, std::less<spirv_cross::CompilerMSL::SPVFuncImpl>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<spirv_cross::CompilerMSL::SPVFuncImpl, spirv_cross::CompilerMSL::SPVFuncImpl, std::_Identity<spirv_cross::CompilerMSL::SPVFuncImpl>, std::less<spirv_cross::CompilerMSL::SPVFuncImpl>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree.294" }
%"class.std::_Rb_tree.294" = type { %"struct.std::_Rb_tree<spirv_cross::LocationComponentPair, std::pair<const spirv_cross::LocationComponentPair, spirv_cross::MSLShaderInterfaceVariable>, std::_Select1st<std::pair<const spirv_cross::LocationComponentPair, spirv_cross::MSLShaderInterfaceVariable>>, std::less<spirv_cross::LocationComponentPair>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<spirv_cross::LocationComponentPair, std::pair<const spirv_cross::LocationComponentPair, spirv_cross::MSLShaderInterfaceVariable>, std::_Select1st<std::pair<const spirv_cross::LocationComponentPair, spirv_cross::MSLShaderInterfaceVariable>>, std::less<spirv_cross::LocationComponentPair>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::unordered_map.299" = type { %"class.std::_Hashtable.300" }
%"class.std::_Hashtable.300" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::set.313" = type { %"class.std::_Rb_tree.314" }
%"class.std::_Rb_tree.314" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::_Identity<std::__cxx11::basic_string<char>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::_Identity<std::__cxx11::basic_string<char>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::unordered_map.319" = type { %"class.std::_Hashtable.320" }
%"class.std::_Hashtable.320" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.336" = type { %"class.std::_Hashtable.337" }
%"class.std::_Hashtable.337" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.spirv_cross::TypedID.350" = type { i32 }
%"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.std::map.351" = type { %"class.std::_Rb_tree.352" }
%"class.std::_Rb_tree.352" = type { %"struct.std::_Rb_tree<unsigned int, std::pair<const unsigned int, spirv_cross::MSLConstexprSampler>, std::_Select1st<std::pair<const unsigned int, spirv_cross::MSLConstexprSampler>>, std::less<unsigned int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned int, std::pair<const unsigned int, spirv_cross::MSLConstexprSampler>, std::_Select1st<std::pair<const unsigned int, spirv_cross::MSLConstexprSampler>>, std::less<unsigned int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::unordered_map.357" = type { %"class.std::_Hashtable.358" }
%"class.std::_Hashtable.358" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.spirv_cross::SmallVector.374" = type { %"class.spirv_cross::VectorView.375", i64, %"class.spirv_cross::AlignedBuffer.376" }
%"class.spirv_cross::VectorView.375" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.376" = type { [64 x i8] }
%"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 }
%"class.spirv_cross::SmallVector.377" = type { %"class.spirv_cross::VectorView.378", i64, %"class.spirv_cross::AlignedBuffer.379" }
%"class.spirv_cross::VectorView.378" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.379" = type { [64 x i8] }
%"class.std::map.380" = type { %"class.std::_Rb_tree.381" }
%"class.std::_Rb_tree.381" = type { %"struct.std::_Rb_tree<spirv_cross::SetBindingPair, std::pair<const spirv_cross::SetBindingPair, std::pair<unsigned int, unsigned int>>, std::_Select1st<std::pair<const spirv_cross::SetBindingPair, std::pair<unsigned int, unsigned int>>>, std::less<spirv_cross::SetBindingPair>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<spirv_cross::SetBindingPair, std::pair<const spirv_cross::SetBindingPair, std::pair<unsigned int, unsigned int>>, std::_Select1st<std::pair<const spirv_cross::SetBindingPair, std::pair<unsigned int, unsigned int>>>, std::less<spirv_cross::SetBindingPair>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"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.std::unordered_set.386" = type { %"class.std::_Hashtable.387" }
%"class.std::_Hashtable.387" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.spirv_cross::IVariant" = type <{ ptr, %"class.spirv_cross::TypedID.413", [4 x i8] }>
%"struct.std::pair.407" = type { i32, i32 }
%"struct.spirv_cross::SPIRExtension" = type { %"struct.spirv_cross::IVariant.base", i32 }
%"struct.spirv_cross::IVariant.base" = type <{ ptr, %"class.spirv_cross::TypedID.413" }>
%"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" }
%"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 }

@_ZTIN11spirv_cross13CompilerErrorE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.35 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.1752 = external hidden unnamed_addr constant [43 x i8], align 1

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

declare ptr @__cxa_allocate_exception(i64)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11spirv_cross13CompilerErrorC2EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #2 align 2

declare void @__cxa_free_exception(ptr)

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK11spirv_cross11CompilerMSL25is_var_runtime_size_arrayERKNS_12SPIRVariableE(ptr noundef nonnull align 8 dereferenceable(12482), ptr noundef nonnull align 8 dereferenceable(176)) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11spirv_cross7TypedIDILNS_5TypesE0EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK11spirv_cross11CompilerMSL7Options20supports_msl_versionEjjj(ptr noundef nonnull align 4 dereferenceable(137), i32 noundef, i32 noundef, i32 noundef) #4 align 2

declare noundef nonnull align 8 dereferenceable(336) ptr @_ZN11spirv_cross8Compiler25get_variable_element_typeERKNS_12SPIRVariableE(ptr noundef nonnull align 8 dereferenceable(3176), ptr noundef nonnull align 8 dereferenceable(176)) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK11spirv_cross11CompilerMSL38needs_manual_helper_invocation_updatesEv(ptr noundef nonnull align 8 dereferenceable(12482)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE6insertEOj(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE6insertERKj(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

declare noundef ptr @_ZN11spirv_cross8Compiler26maybe_get_backing_variableEj(ptr noundef nonnull align 8 dereferenceable(3176), i32 noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN11spirv_cross8Compiler3getINS_13SPIRExtensionEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176), i32 noundef) #2 align 2

declare noundef zeroext i1 @_ZNK11spirv_cross8Compiler14has_decorationENS_7TypedIDILNS_5TypesE0EEEN3spv10DecorationE(ptr noundef nonnull align 8 dereferenceable(3176), i32, i32 noundef) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvNS0_IXT_EEEILS1_1EEEv(ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

declare noundef zeroext i1 @_ZNK11spirv_cross8Compiler21has_member_decorationENS_7TypedIDILNS_5TypesE1EEEjN3spv10DecorationE(ptr noundef nonnull align 8 dereferenceable(3176), i32, i32 noundef, i32 noundef) #5

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

declare void @_ZN11spirv_cross8Compiler13register_readEjjb(ptr noundef nonnull align 8 dereferenceable(3176), i32 noundef, i32 noundef, i1 noundef zeroext) #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(236) ptr @_ZN11spirv_cross8Compiler3setINS_14SPIRExpressionEJRA1_KcRjbEEERT_jDpOT0_(ptr noundef nonnull align 8 dereferenceable(3176), i32 noundef, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIN11spirv_cross11CompilerMSL11SPVFuncImplESt4lessIS2_ESaIS2_EE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 1 dereferenceable(1)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11spirv_cross11CompilerMSL18OpCodePreprocessor6handleEN3spv2OpEPKjj(ptr noundef nonnull align 8 dereferenceable(137) %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i8, align 1
  %10 = alloca %"struct.std::pair.539", align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.spirv_cross::TypedID.413", align 4
  %13 = alloca %"struct.std::__detail::_Node_iterator.613", align 8
  %14 = alloca %"struct.std::__detail::_Node_iterator.613", align 8
  %15 = alloca %"struct.std::pair.444", align 8
  %16 = alloca %"struct.std::__detail::_Node_iterator.613", align 8
  %17 = alloca %"struct.std::__detail::_Node_iterator.613", align 8
  %18 = alloca %"struct.std::pair.444", align 8
  %19 = alloca %"struct.std::__detail::_Node_iterator.613", align 8
  %20 = alloca %"struct.std::__detail::_Node_iterator.613", align 8
  %21 = alloca %"struct.std::pair.444", align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca %"struct.std::pair.444", align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i8, align 1
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca ptr, align 8
  %32 = alloca i32, align 4
  %33 = alloca ptr, align 8
  %34 = alloca i32, align 4
  %35 = alloca %"struct.std::pair.444", align 8
  %36 = alloca ptr, align 8
  %37 = alloca %"class.spirv_cross::TypedID.413", align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca %"class.spirv_cross::TypedID.414", align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !11
  %43 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #6
  %44 = load i32, ptr %6, align 4, !tbaa !9
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = call noundef zeroext i8 @_ZN11spirv_cross11CompilerMSL18OpCodePreprocessor17get_spv_func_implEN3spv2OpEPKj(ptr noundef nonnull align 8 dereferenceable(137) %43, i32 noundef %44, ptr noundef %45)
  store i8 %46, ptr %9, align 1, !tbaa !13
  %47 = load i8, ptr %9, align 1, !tbaa !13
  %48 = zext i8 %47 to i32
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %50, label %60

50:                                               ; preds = %4
  %51 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 1
  %52 = load ptr, ptr %51, align 8, !tbaa !15
  %53 = getelementptr inbounds %"class.spirv_cross::CompilerMSL", ptr %52, i32 0, i32 38
  %54 = call { ptr, i8 } @_ZNSt3setIN11spirv_cross11CompilerMSL11SPVFuncImplESt4lessIS2_ESaIS2_EE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(48) %53, ptr noundef nonnull align 1 dereferenceable(1) %9)
  %55 = getelementptr inbounds { ptr, i8 }, ptr %10, i32 0, i32 0
  %56 = extractvalue { ptr, i8 } %54, 0
  store ptr %56, ptr %55, align 8
  %57 = getelementptr inbounds { ptr, i8 }, ptr %10, i32 0, i32 1
  %58 = extractvalue { ptr, i8 } %54, 1
  store i8 %58, ptr %57, align 8
  %59 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 4
  store i8 1, ptr %59, align 8, !tbaa !25
  br label %60

60:                                               ; preds = %50, %4
  %61 = load i32, ptr %6, align 4, !tbaa !9
  switch i32 %61, label %357 [
    i32 57, label %62
    i32 5380, label %64
    i32 60, label %66
    i32 99, label %91
    i32 62, label %93
    i32 229, label %97
    i32 230, label %97
    i32 231, label %97
    i32 232, label %97
    i32 233, label %97
    i32 234, label %97
    i32 6035, label %97
    i32 235, label %97
    i32 236, label %97
    i32 237, label %97
    i32 238, label %97
    i32 239, label %97
    i32 240, label %97
    i32 241, label %97
    i32 242, label %97
    i32 228, label %127
    i32 227, label %157
    i32 340, label %182
    i32 343, label %184
    i32 344, label %184
    i32 342, label %186
    i32 68, label %196
    i32 66, label %224
    i32 65, label %224
    i32 67, label %224
    i32 12, label %249
    i32 5381, label %350
  ]

62:                                               ; preds = %60
  %63 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 4
  store i8 1, ptr %63, align 8, !tbaa !25
  br label %358

64:                                               ; preds = %60
  %65 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 8
  store i8 1, ptr %65, align 4, !tbaa !26
  br label %358

66:                                               ; preds = %60
  %67 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 1
  %68 = load ptr, ptr %67, align 8, !tbaa !15
  %69 = getelementptr inbounds %"class.spirv_cross::CompilerMSL", ptr %68, i32 0, i32 37
  %70 = call noundef zeroext i1 @_ZNK11spirv_cross11CompilerMSL7Options20supports_msl_versionEjjj(ptr noundef nonnull align 4 dereferenceable(137) %69, i32 noundef 3, i32 noundef 1, i32 noundef 0)
  br i1 %70, label %90, label %71

71:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %72 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 1
  %73 = load ptr, ptr %72, align 8, !tbaa !15
  %74 = load ptr, ptr %7, align 8, !tbaa !5
  %75 = getelementptr inbounds i32, ptr %74, i64 2
  %76 = load i32, ptr %75, align 4, !tbaa !11
  %77 = call noundef ptr @_ZN11spirv_cross8Compiler26maybe_get_backing_variableEj(ptr noundef nonnull align 8 dereferenceable(3176) %73, i32 noundef %76)
  store ptr %77, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %78 = load ptr, ptr %11, align 8, !tbaa !5
  %79 = icmp ne ptr %78, null
  br i1 %79, label %80, label %83

80:                                               ; preds = %71
  %81 = load ptr, ptr %11, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.spirv_cross::IVariant", ptr %81, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 8 %82, i64 4, i1 false), !tbaa.struct !27
  br label %84

83:                                               ; preds = %71
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE0EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %12, i32 noundef 0)
  br label %84

84:                                               ; preds = %83, %80
  %85 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %12)
  %86 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 3
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = getelementptr inbounds i32, ptr %87, i64 1
  %89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %86, ptr noundef nonnull align 4 dereferenceable(4) %88)
  store i32 %85, ptr %89, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %90

90:                                               ; preds = %84, %66
  br label %358

91:                                               ; preds = %60
  %92 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 6
  store i8 1, ptr %92, align 2, !tbaa !28
  br label %358

93:                                               ; preds = %60
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  %95 = getelementptr inbounds i32, ptr %94, i64 0
  %96 = load i32, ptr %95, align 4, !tbaa !11
  call void @_ZN11spirv_cross11CompilerMSL18OpCodePreprocessor20check_resource_writeEj(ptr noundef nonnull align 8 dereferenceable(137) %43, i32 noundef %96)
  br label %358

97:                                               ; preds = %60, %60, %60, %60, %60, %60, %60, %60, %60, %60, %60, %60, %60, %60, %60
  %98 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 5
  store i8 1, ptr %98, align 1, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %99 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 3
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = getelementptr inbounds i32, ptr %100, i64 2
  %102 = call ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE4findERS5_(ptr noundef nonnull align 8 dereferenceable(56) %99, ptr noundef nonnull align 4 dereferenceable(4) %101)
  %103 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.613", ptr %13, i32 0, i32 0
  %104 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.406", ptr %103, i32 0, i32 0
  store ptr %102, ptr %104, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %105 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 3
  %106 = call ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %105) #6
  %107 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.613", ptr %14, i32 0, i32 0
  %108 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.406", ptr %107, i32 0, i32 0
  store ptr %106, ptr %108, align 8
  %109 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjjELb0EEES6_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br i1 %109, label %110, label %122

110:                                              ; preds = %97
  %111 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 6
  store i8 1, ptr %111, align 2, !tbaa !28
  %112 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 1
  %113 = load ptr, ptr %112, align 8, !tbaa !15
  %114 = getelementptr inbounds %"class.spirv_cross::CompilerMSL", ptr %113, i32 0, i32 109
  %115 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKjjELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  %116 = getelementptr inbounds %"struct.std::pair.407", ptr %115, i32 0, i32 1
  %117 = call { ptr, i8 } @_ZNSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE6insertERKj(ptr noundef nonnull align 8 dereferenceable(56) %114, ptr noundef nonnull align 4 dereferenceable(4) %116)
  %118 = getelementptr inbounds { ptr, i8 }, ptr %15, i32 0, i32 0
  %119 = extractvalue { ptr, i8 } %117, 0
  store ptr %119, ptr %118, align 8
  %120 = getelementptr inbounds { ptr, i8 }, ptr %15, i32 0, i32 1
  %121 = extractvalue { ptr, i8 } %117, 1
  store i8 %121, ptr %120, align 8
  br label %126

122:                                              ; preds = %97
  %123 = load ptr, ptr %7, align 8, !tbaa !5
  %124 = getelementptr inbounds i32, ptr %123, i64 2
  %125 = load i32, ptr %124, align 4, !tbaa !11
  call void @_ZN11spirv_cross11CompilerMSL18OpCodePreprocessor20check_resource_writeEj(ptr noundef nonnull align 8 dereferenceable(137) %43, i32 noundef %125)
  br label %126

126:                                              ; preds = %122, %110
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %358

127:                                              ; preds = %60
  %128 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 5
  store i8 1, ptr %128, align 1, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %129 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 3
  %130 = load ptr, ptr %7, align 8, !tbaa !5
  %131 = getelementptr inbounds i32, ptr %130, i64 0
  %132 = call ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE4findERS5_(ptr noundef nonnull align 8 dereferenceable(56) %129, ptr noundef nonnull align 4 dereferenceable(4) %131)
  %133 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.613", ptr %16, i32 0, i32 0
  %134 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.406", ptr %133, i32 0, i32 0
  store ptr %132, ptr %134, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %135 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 3
  %136 = call ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %135) #6
  %137 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.613", ptr %17, i32 0, i32 0
  %138 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.406", ptr %137, i32 0, i32 0
  store ptr %136, ptr %138, align 8
  %139 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjjELb0EEES6_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br i1 %139, label %140, label %152

140:                                              ; preds = %127
  %141 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 1
  %142 = load ptr, ptr %141, align 8, !tbaa !15
  %143 = getelementptr inbounds %"class.spirv_cross::CompilerMSL", ptr %142, i32 0, i32 109
  %144 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKjjELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  %145 = getelementptr inbounds %"struct.std::pair.407", ptr %144, i32 0, i32 1
  %146 = call { ptr, i8 } @_ZNSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE6insertERKj(ptr noundef nonnull align 8 dereferenceable(56) %143, ptr noundef nonnull align 4 dereferenceable(4) %145)
  %147 = getelementptr inbounds { ptr, i8 }, ptr %18, i32 0, i32 0
  %148 = extractvalue { ptr, i8 } %146, 0
  store ptr %148, ptr %147, align 8
  %149 = getelementptr inbounds { ptr, i8 }, ptr %18, i32 0, i32 1
  %150 = extractvalue { ptr, i8 } %146, 1
  store i8 %150, ptr %149, align 8
  %151 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 6
  store i8 1, ptr %151, align 2, !tbaa !28
  br label %156

152:                                              ; preds = %127
  %153 = load ptr, ptr %7, align 8, !tbaa !5
  %154 = getelementptr inbounds i32, ptr %153, i64 0
  %155 = load i32, ptr %154, align 4, !tbaa !11
  call void @_ZN11spirv_cross11CompilerMSL18OpCodePreprocessor20check_resource_writeEj(ptr noundef nonnull align 8 dereferenceable(137) %43, i32 noundef %155)
  br label %156

156:                                              ; preds = %152, %140
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %358

157:                                              ; preds = %60
  %158 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 5
  store i8 1, ptr %158, align 1, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %159 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 3
  %160 = load ptr, ptr %7, align 8, !tbaa !5
  %161 = getelementptr inbounds i32, ptr %160, i64 2
  %162 = call ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE4findERS5_(ptr noundef nonnull align 8 dereferenceable(56) %159, ptr noundef nonnull align 4 dereferenceable(4) %161)
  %163 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.613", ptr %19, i32 0, i32 0
  %164 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.406", ptr %163, i32 0, i32 0
  store ptr %162, ptr %164, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %165 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 3
  %166 = call ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %165) #6
  %167 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.613", ptr %20, i32 0, i32 0
  %168 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.406", ptr %167, i32 0, i32 0
  store ptr %166, ptr %168, align 8
  %169 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjjELb0EEES6_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br i1 %169, label %170, label %181

170:                                              ; preds = %157
  %171 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 1
  %172 = load ptr, ptr %171, align 8, !tbaa !15
  %173 = getelementptr inbounds %"class.spirv_cross::CompilerMSL", ptr %172, i32 0, i32 109
  %174 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKjjELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  %175 = getelementptr inbounds %"struct.std::pair.407", ptr %174, i32 0, i32 1
  %176 = call { ptr, i8 } @_ZNSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE6insertERKj(ptr noundef nonnull align 8 dereferenceable(56) %173, ptr noundef nonnull align 4 dereferenceable(4) %175)
  %177 = getelementptr inbounds { ptr, i8 }, ptr %21, i32 0, i32 0
  %178 = extractvalue { ptr, i8 } %176, 0
  store ptr %178, ptr %177, align 8
  %179 = getelementptr inbounds { ptr, i8 }, ptr %21, i32 0, i32 1
  %180 = extractvalue { ptr, i8 } %176, 1
  store i8 %180, ptr %179, align 8
  br label %181

181:                                              ; preds = %170, %157
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %358

182:                                              ; preds = %60
  %183 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 9
  store i8 1, ptr %183, align 1, !tbaa !30
  br label %358

184:                                              ; preds = %60, %60
  %185 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 10
  store i8 1, ptr %185, align 2, !tbaa !31
  br label %358

186:                                              ; preds = %60
  %187 = load ptr, ptr %7, align 8, !tbaa !5
  %188 = getelementptr inbounds i32, ptr %187, i64 3
  %189 = load i32, ptr %188, align 4, !tbaa !11
  %190 = icmp eq i32 %189, 0
  br i1 %190, label %191, label %193

191:                                              ; preds = %186
  %192 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 10
  store i8 1, ptr %192, align 2, !tbaa !31
  br label %195

193:                                              ; preds = %186
  %194 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 9
  store i8 1, ptr %194, align 1, !tbaa !30
  br label %195

195:                                              ; preds = %193, %191
  br label %358

196:                                              ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %197 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 1
  %198 = load ptr, ptr %197, align 8, !tbaa !15
  %199 = load ptr, ptr %7, align 8, !tbaa !5
  %200 = getelementptr inbounds i32, ptr %199, i64 2
  %201 = load i32, ptr %200, align 4, !tbaa !11
  %202 = call noundef ptr @_ZN11spirv_cross8Compiler26maybe_get_backing_variableEj(ptr noundef nonnull align 8 dereferenceable(3176) %198, i32 noundef %201)
  store ptr %202, ptr %22, align 8, !tbaa !5
  %203 = load ptr, ptr %22, align 8, !tbaa !5
  %204 = icmp ne ptr %203, null
  br i1 %204, label %205, label %223

205:                                              ; preds = %196
  %206 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 1
  %207 = load ptr, ptr %206, align 8, !tbaa !15
  %208 = load ptr, ptr %22, align 8, !tbaa !5
  %209 = call noundef zeroext i1 @_ZNK11spirv_cross11CompilerMSL25is_var_runtime_size_arrayERKNS_12SPIRVariableE(ptr noundef nonnull align 8 dereferenceable(12482) %207, ptr noundef nonnull align 8 dereferenceable(176) %208)
  br i1 %209, label %222, label %210

210:                                              ; preds = %205
  %211 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 1
  %212 = load ptr, ptr %211, align 8, !tbaa !15
  %213 = getelementptr inbounds %"class.spirv_cross::CompilerMSL", ptr %212, i32 0, i32 106
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %214 = load ptr, ptr %22, align 8, !tbaa !5
  %215 = getelementptr inbounds %"struct.spirv_cross::IVariant", ptr %214, i32 0, i32 1
  %216 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %215)
  store i32 %216, ptr %23, align 4, !tbaa !11
  %217 = call { ptr, i8 } @_ZNSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE6insertEOj(ptr noundef nonnull align 8 dereferenceable(56) %213, ptr noundef nonnull align 4 dereferenceable(4) %23)
  %218 = getelementptr inbounds { ptr, i8 }, ptr %24, i32 0, i32 0
  %219 = extractvalue { ptr, i8 } %217, 0
  store ptr %219, ptr %218, align 8
  %220 = getelementptr inbounds { ptr, i8 }, ptr %24, i32 0, i32 1
  %221 = extractvalue { ptr, i8 } %217, 1
  store i8 %221, ptr %220, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %222

222:                                              ; preds = %210, %205
  br label %223

223:                                              ; preds = %222, %196
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %358

224:                                              ; preds = %60, %60, %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %225 = load ptr, ptr %7, align 8, !tbaa !5
  %226 = getelementptr inbounds i32, ptr %225, i64 0
  %227 = load i32, ptr %226, align 4, !tbaa !11
  store i32 %227, ptr %25, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %228 = load ptr, ptr %7, align 8, !tbaa !5
  %229 = getelementptr inbounds i32, ptr %228, i64 1
  %230 = load i32, ptr %229, align 4, !tbaa !11
  store i32 %230, ptr %26, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %231 = load ptr, ptr %7, align 8, !tbaa !5
  %232 = getelementptr inbounds i32, ptr %231, i64 2
  %233 = load i32, ptr %232, align 4, !tbaa !11
  store i32 %233, ptr %27, align 4, !tbaa !11
  %234 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 1
  %235 = load ptr, ptr %234, align 8, !tbaa !15
  %236 = load i32, ptr %26, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #6
  store i8 1, ptr %28, align 1, !tbaa !32
  %237 = call noundef nonnull align 8 dereferenceable(236) ptr @_ZN11spirv_cross8Compiler3setINS_14SPIRExpressionEJRA1_KcRjbEEERT_jDpOT0_(ptr noundef nonnull align 8 dereferenceable(3176) %235, i32 noundef %236, ptr noundef nonnull align 1 dereferenceable(1) @.str.35, ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 1 dereferenceable(1) %28)
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #6
  %238 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 1
  %239 = load ptr, ptr %238, align 8, !tbaa !15
  %240 = load i32, ptr %26, align 4, !tbaa !11
  %241 = load i32, ptr %27, align 4, !tbaa !11
  call void @_ZN11spirv_cross8Compiler13register_readEjjb(ptr noundef nonnull align 8 dereferenceable(3176) %239, i32 noundef %240, i32 noundef %241, i1 noundef zeroext true)
  %242 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 1
  %243 = load ptr, ptr %242, align 8, !tbaa !15
  %244 = getelementptr inbounds %"class.spirv_cross::Compiler", ptr %243, i32 0, i32 1
  %245 = getelementptr inbounds %"class.spirv_cross::ParsedIR", ptr %244, i32 0, i32 2
  %246 = load i32, ptr %26, align 4, !tbaa !11
  %247 = zext i32 %246 to i64
  %248 = call noundef nonnull align 8 dereferenceable(21) ptr @_ZN11spirv_cross10VectorViewINS_7VariantEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %245, i64 noundef %247) #6
  call void @_ZN11spirv_cross7Variant22set_allow_type_rewriteEv(ptr noundef nonnull align 8 dereferenceable(21) %248)
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %358

249:                                              ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %250 = load ptr, ptr %7, align 8, !tbaa !5
  %251 = getelementptr inbounds i32, ptr %250, i64 2
  %252 = load i32, ptr %251, align 4, !tbaa !11
  store i32 %252, ptr %29, align 4, !tbaa !11
  %253 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 1
  %254 = load ptr, ptr %253, align 8, !tbaa !15
  %255 = load i32, ptr %29, align 4, !tbaa !11
  %256 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN11spirv_cross8Compiler3getINS_13SPIRExtensionEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %254, i32 noundef %255)
  %257 = getelementptr inbounds %"struct.spirv_cross::SPIRExtension", ptr %256, i32 0, i32 1
  %258 = load i32, ptr %257, align 4, !tbaa !33
  %259 = icmp eq i32 %258, 1
  br i1 %259, label %260, label %349

260:                                              ; preds = %249
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %261 = load ptr, ptr %7, align 8, !tbaa !5
  %262 = getelementptr inbounds i32, ptr %261, i64 3
  %263 = load i32, ptr %262, align 4, !tbaa !11
  store i32 %263, ptr %30, align 4, !tbaa !38
  %264 = load i32, ptr %30, align 4, !tbaa !38
  switch i32 %264, label %347 [
    i32 76, label %265
    i32 77, label %265
    i32 78, label %265
  ]

265:                                              ; preds = %260, %260, %260
  %266 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 1
  %267 = load ptr, ptr %266, align 8, !tbaa !15
  %268 = getelementptr inbounds %"class.spirv_cross::CompilerMSL", ptr %267, i32 0, i32 37
  %269 = call noundef zeroext i1 @_ZNK11spirv_cross11CompilerMSL7Options20supports_msl_versionEjjj(ptr noundef nonnull align 4 dereferenceable(137) %268, i32 noundef 2, i32 noundef 3, i32 noundef 0)
  br i1 %269, label %277, label %270

270:                                              ; preds = %265
  %271 = call ptr @__cxa_allocate_exception(i64 16) #6
  invoke void @_ZN11spirv_cross13CompilerErrorC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %271, ptr noundef @.str.1752)
          to label %272 unwind label %273

272:                                              ; preds = %270
  call void @__cxa_throw(ptr %271, ptr @_ZTIN11spirv_cross13CompilerErrorE, ptr @_ZNSt13runtime_errorD2Ev) #7
  unreachable

273:                                              ; preds = %270
  %274 = landingpad { ptr, i32 }
          cleanup
  %275 = extractvalue { ptr, i32 } %274, 0
  store ptr %275, ptr %31, align 8
  %276 = extractvalue { ptr, i32 } %274, 1
  store i32 %276, ptr %32, align 4
  call void @__cxa_free_exception(ptr %271) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  br label %370

277:                                              ; preds = %265
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  %278 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 1
  %279 = load ptr, ptr %278, align 8, !tbaa !15
  %280 = load ptr, ptr %7, align 8, !tbaa !5
  %281 = getelementptr inbounds i32, ptr %280, i64 4
  %282 = load i32, ptr %281, align 4, !tbaa !11
  %283 = call noundef ptr @_ZN11spirv_cross8Compiler26maybe_get_backing_variableEj(ptr noundef nonnull align 8 dereferenceable(3176) %279, i32 noundef %282)
  store ptr %283, ptr %33, align 8, !tbaa !5
  %284 = load ptr, ptr %33, align 8, !tbaa !5
  %285 = icmp ne ptr %284, null
  br i1 %285, label %286, label %346

286:                                              ; preds = %277
  %287 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 1
  %288 = load ptr, ptr %287, align 8, !tbaa !15
  %289 = getelementptr inbounds %"class.spirv_cross::CompilerMSL", ptr %288, i32 0, i32 110
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  %290 = load ptr, ptr %33, align 8, !tbaa !5
  %291 = getelementptr inbounds %"struct.spirv_cross::IVariant", ptr %290, i32 0, i32 1
  %292 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %291)
  store i32 %292, ptr %34, align 4, !tbaa !11
  %293 = call { ptr, i8 } @_ZNSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE6insertEOj(ptr noundef nonnull align 8 dereferenceable(56) %289, ptr noundef nonnull align 4 dereferenceable(4) %34)
  %294 = getelementptr inbounds { ptr, i8 }, ptr %35, i32 0, i32 0
  %295 = extractvalue { ptr, i8 } %293, 0
  store ptr %295, ptr %294, align 8
  %296 = getelementptr inbounds { ptr, i8 }, ptr %35, i32 0, i32 1
  %297 = extractvalue { ptr, i8 } %293, 1
  store i8 %297, ptr %296, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  %298 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 1
  %299 = load ptr, ptr %298, align 8, !tbaa !15
  %300 = load ptr, ptr %33, align 8, !tbaa !5
  %301 = call noundef nonnull align 8 dereferenceable(336) ptr @_ZN11spirv_cross8Compiler25get_variable_element_typeERKNS_12SPIRVariableE(ptr noundef nonnull align 8 dereferenceable(3176) %299, ptr noundef nonnull align 8 dereferenceable(176) %300)
  store ptr %301, ptr %36, align 8, !tbaa !5
  %302 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 1
  %303 = load ptr, ptr %302, align 8, !tbaa !15
  %304 = load ptr, ptr %33, align 8, !tbaa !5
  %305 = getelementptr inbounds %"struct.spirv_cross::IVariant", ptr %304, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 8 %305, i64 4, i1 false), !tbaa.struct !27
  %306 = getelementptr inbounds %"class.spirv_cross::TypedID.413", ptr %37, i32 0, i32 0
  %307 = load i32, ptr %306, align 4
  %308 = call noundef zeroext i1 @_ZNK11spirv_cross8Compiler14has_decorationENS_7TypedIDILNS_5TypesE0EEEN3spv10DecorationE(ptr noundef nonnull align 8 dereferenceable(3176) %303, i32 %307, i32 noundef 17)
  br i1 %308, label %309, label %311

309:                                              ; preds = %286
  %310 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 11
  store i8 1, ptr %310, align 1, !tbaa !40
  br label %345

311:                                              ; preds = %286
  %312 = load ptr, ptr %36, align 8, !tbaa !5
  %313 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %312, i32 0, i32 2
  %314 = load i32, ptr %313, align 8, !tbaa !41
  %315 = icmp eq i32 %314, 15
  br i1 %315, label %316, label %344

316:                                              ; preds = %311
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #6
  store i32 0, ptr %38, align 4, !tbaa !11
  br label %317

317:                                              ; preds = %339, %316
  %318 = load i32, ptr %38, align 4, !tbaa !11
  %319 = zext i32 %318 to i64
  %320 = load ptr, ptr %36, align 8, !tbaa !5
  %321 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %320, i32 0, i32 12
  %322 = call noundef i64 @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %321) #6
  %323 = icmp ult i64 %319, %322
  br i1 %323, label %325, label %324

324:                                              ; preds = %317
  store i32 4, ptr %39, align 4
  br label %342

325:                                              ; preds = %317
  %326 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 1
  %327 = load ptr, ptr %326, align 8, !tbaa !15
  %328 = load ptr, ptr %36, align 8, !tbaa !5
  %329 = getelementptr inbounds %"struct.spirv_cross::IVariant", ptr %328, i32 0, i32 1
  %330 = call i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvNS0_IXT_EEEILS1_1EEEv(ptr noundef nonnull align 4 dereferenceable(4) %329)
  %331 = getelementptr inbounds %"class.spirv_cross::TypedID.414", ptr %40, i32 0, i32 0
  store i32 %330, ptr %331, align 4
  %332 = load i32, ptr %38, align 4, !tbaa !11
  %333 = getelementptr inbounds %"class.spirv_cross::TypedID.414", ptr %40, i32 0, i32 0
  %334 = load i32, ptr %333, align 4
  %335 = call noundef zeroext i1 @_ZNK11spirv_cross8Compiler21has_member_decorationENS_7TypedIDILNS_5TypesE1EEEjN3spv10DecorationE(ptr noundef nonnull align 8 dereferenceable(3176) %327, i32 %334, i32 noundef %332, i32 noundef 17)
  br i1 %335, label %336, label %338

336:                                              ; preds = %325
  %337 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 11
  store i8 1, ptr %337, align 1, !tbaa !40
  store i32 4, ptr %39, align 4
  br label %342

338:                                              ; preds = %325
  br label %339

339:                                              ; preds = %338
  %340 = load i32, ptr %38, align 4, !tbaa !11
  %341 = add i32 %340, 1
  store i32 %341, ptr %38, align 4, !tbaa !11
  br label %317, !llvm.loop !61

342:                                              ; preds = %336, %324
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  br label %343

343:                                              ; preds = %342
  br label %344

344:                                              ; preds = %343, %311
  br label %345

345:                                              ; preds = %344, %309
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  br label %346

346:                                              ; preds = %345, %277
  store i32 3, ptr %39, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  br label %348

347:                                              ; preds = %260
  br label %348

348:                                              ; preds = %347, %346
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %349

349:                                              ; preds = %348, %249
  store i32 2, ptr %39, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %358

350:                                              ; preds = %60
  %351 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 1
  %352 = load ptr, ptr %351, align 8, !tbaa !15
  %353 = call noundef zeroext i1 @_ZNK11spirv_cross11CompilerMSL38needs_manual_helper_invocation_updatesEv(ptr noundef nonnull align 8 dereferenceable(12482) %352)
  br i1 %353, label %354, label %356

354:                                              ; preds = %350
  %355 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 12
  store i8 1, ptr %355, align 8, !tbaa !63
  br label %356

356:                                              ; preds = %354, %350
  br label %358

357:                                              ; preds = %60
  br label %358

358:                                              ; preds = %357, %356, %349, %224, %223, %195, %184, %182, %181, %156, %126, %93, %91, %90, %64, %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #6
  %359 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 1
  %360 = load ptr, ptr %359, align 8, !tbaa !15
  %361 = load i32, ptr %6, align 4, !tbaa !9
  %362 = load ptr, ptr %7, align 8, !tbaa !5
  %363 = load i32, ptr %8, align 4, !tbaa !11
  %364 = call noundef zeroext i1 @_ZN11spirv_cross8Compiler26instruction_to_result_typeERjS1_N3spv2OpEPKjj(ptr noundef nonnull align 8 dereferenceable(3176) %360, ptr noundef nonnull align 4 dereferenceable(4) %41, ptr noundef nonnull align 4 dereferenceable(4) %42, i32 noundef %361, ptr noundef %362, i32 noundef %363)
  br i1 %364, label %365, label %369

365:                                              ; preds = %358
  %366 = load i32, ptr %41, align 4, !tbaa !11
  %367 = getelementptr inbounds %"struct.spirv_cross::CompilerMSL::OpCodePreprocessor", ptr %43, i32 0, i32 2
  %368 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %367, ptr noundef nonnull align 4 dereferenceable(4) %42)
  store i32 %366, ptr %368, align 4, !tbaa !11
  br label %369

369:                                              ; preds = %365, %358
  store i32 1, ptr %39, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  ret i1 true

370:                                              ; preds = %273
  %371 = load ptr, ptr %31, align 8
  %372 = load i32, ptr %32, align 4
  %373 = insertvalue { ptr, i32 } poison, ptr %371, 0
  %374 = insertvalue { ptr, i32 } %373, i32 %372, 1
  resume { ptr, i32 } %374
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i8 @_ZN11spirv_cross11CompilerMSL18OpCodePreprocessor17get_spv_func_implEN3spv2OpEPKj(ptr noundef nonnull align 8 dereferenceable(137), i32 noundef, ptr noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11spirv_cross11CompilerMSL18OpCodePreprocessor20check_resource_writeEj(ptr noundef nonnull align 8 dereferenceable(137), i32 noundef) #2 align 2

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

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

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

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

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

declare noundef zeroext i1 @_ZN11spirv_cross8Compiler26instruction_to_result_typeERjS1_N3spv2OpEPKjj(ptr noundef nonnull align 8 dereferenceable(3176), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), i32 noundef, ptr noundef, i32 noundef) #5

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

!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 = !{!"_ZTSN3spv2OpE", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTSN11spirv_cross11CompilerMSL11SPVFuncImplE", !7, i64 0}
!15 = !{!16, !6, i64 8}
!16 = !{!"_ZTSN11spirv_cross11CompilerMSL18OpCodePreprocessorE", !17, i64 0, !6, i64 8, !18, i64 16, !18, i64 72, !24, i64 128, !24, i64 129, !24, i64 130, !24, i64 131, !24, i64 132, !24, i64 133, !24, i64 134, !24, i64 135, !24, i64 136}
!17 = !{!"_ZTSN11spirv_cross8Compiler13OpcodeHandlerE"}
!18 = !{!"_ZTSSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE", !19, i64 0}
!19 = !{!"_ZTSSt10_HashtableIjSt4pairIKjjESaIS2_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !20, i64 8, !21, i64 16, !20, i64 24, !22, i64 32, !6, i64 48}
!20 = !{!"long", !7, i64 0}
!21 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!22 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !23, i64 0, !20, i64 8}
!23 = !{!"float", !7, i64 0}
!24 = !{!"bool", !7, i64 0}
!25 = !{!16, !24, i64 128}
!26 = !{!16, !24, i64 132}
!27 = !{i64 0, i64 4, !11}
!28 = !{!16, !24, i64 130}
!29 = !{!16, !24, i64 129}
!30 = !{!16, !24, i64 133}
!31 = !{!16, !24, i64 134}
!32 = !{!24, !24, i64 0}
!33 = !{!34, !37, i64 12}
!34 = !{!"_ZTSN11spirv_cross13SPIRExtensionE", !35, i64 0, !37, i64 12}
!35 = !{!"_ZTSN11spirv_cross8IVariantE", !36, i64 8}
!36 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE0EEE", !12, i64 0}
!37 = !{!"_ZTSN11spirv_cross13SPIRExtension9ExtensionE", !7, i64 0}
!38 = !{!39, !39, i64 0}
!39 = !{!"_ZTS10GLSLstd450", !7, i64 0}
!40 = !{!16, !24, i64 135}
!41 = !{!42, !43, i64 16}
!42 = !{!"_ZTSN11spirv_cross8SPIRTypeE", !35, i64 0, !10, i64 12, !43, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !44, i64 32, !47, i64 88, !12, i64 120, !24, i64 124, !24, i64 125, !50, i64 128, !51, i64 136, !44, i64 192, !54, i64 248, !55, i64 272, !55, i64 276, !59, i64 280}
!43 = !{!"_ZTSN11spirv_cross8SPIRType8BaseTypeE", !7, i64 0}
!44 = !{!"_ZTSN11spirv_cross11SmallVectorIjLm8EEE", !45, i64 0, !20, i64 16, !46, i64 24}
!45 = !{!"_ZTSN11spirv_cross10VectorViewIjEE", !6, i64 0, !20, i64 8}
!46 = !{!"_ZTSN11spirv_cross13AlignedBufferIjLm8EEE", !7, i64 0}
!47 = !{!"_ZTSN11spirv_cross11SmallVectorIbLm8EEE", !48, i64 0, !20, i64 16, !49, i64 24}
!48 = !{!"_ZTSN11spirv_cross10VectorViewIbEE", !6, i64 0, !20, i64 8}
!49 = !{!"_ZTSN11spirv_cross13AlignedBufferIbLm8EEE", !7, i64 0}
!50 = !{!"_ZTSN3spv12StorageClassE", !7, i64 0}
!51 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE1EEELm8EEE", !52, i64 0, !20, i64 16, !53, i64 24}
!52 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEEE", !6, i64 0, !20, i64 8}
!53 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE1EEELm8EEE", !7, i64 0}
!54 = !{!"_ZTSN11spirv_cross8SPIRType9ImageTypeE", !55, i64 0, !56, i64 4, !24, i64 8, !24, i64 9, !24, i64 10, !12, i64 12, !57, i64 16, !58, i64 20}
!55 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE1EEE", !12, i64 0}
!56 = !{!"_ZTSN3spv3DimE", !7, i64 0}
!57 = !{!"_ZTSN3spv11ImageFormatE", !7, i64 0}
!58 = !{!"_ZTSN3spv15AccessQualifierE", !7, i64 0}
!59 = !{!"_ZTSSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE", !60, i64 0}
!60 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEE", !6, i64 0, !20, i64 8, !21, i64 16, !20, i64 24, !22, i64 32, !6, i64 48}
!61 = distinct !{!61, !62}
!62 = !{!"llvm.loop.mustprogress"}
!63 = !{!16, !24, i64 136}


; 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::TypedID.413" = type { i32 }
%"struct.std::__detail::_Node_iterator.613" = type { %"struct.std::__detail::_Node_iterator_base.406" }
%"struct.std::__detail::_Node_iterator_base.406" = type { ptr }

@_ZTIN11spirv_cross13CompilerErrorE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.35 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.1752 = external hidden unnamed_addr constant [43 x i8], align 1

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK11spirv_cross11CompilerMSL25is_var_runtime_size_arrayERKNS_12SPIRVariableE(ptr noundef nonnull align 8 dereferenceable(12482), ptr noundef nonnull align 8 dereferenceable(176)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11spirv_cross7TypedIDILNS_5TypesE0EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK11spirv_cross11CompilerMSL7Options20supports_msl_versionEjjj(ptr noundef nonnull align 4 dereferenceable(137), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3 align 2

declare noundef nonnull align 8 dereferenceable(336) ptr @_ZN11spirv_cross8Compiler25get_variable_element_typeERKNS_12SPIRVariableE(ptr noundef nonnull align 8 dereferenceable(3176), ptr noundef nonnull align 8 dereferenceable(176)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK11spirv_cross11CompilerMSL38needs_manual_helper_invocation_updatesEv(ptr noundef nonnull align 8 dereferenceable(12482)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE6insertEOj(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE6insertERKj(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

declare noundef ptr @_ZN11spirv_cross8Compiler26maybe_get_backing_variableEj(ptr noundef nonnull align 8 dereferenceable(3176), i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN11spirv_cross8Compiler3getINS_13SPIRExtensionEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176), i32 noundef) local_unnamed_addr #1 align 2

declare noundef zeroext i1 @_ZNK11spirv_cross8Compiler14has_decorationENS_7TypedIDILNS_5TypesE0EEEN3spv10DecorationE(ptr noundef nonnull align 8 dereferenceable(3176), i32, i32 noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvNS0_IXT_EEEILS1_1EEEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

declare noundef zeroext i1 @_ZNK11spirv_cross8Compiler21has_member_decorationENS_7TypedIDILNS_5TypesE1EEEjN3spv10DecorationE(ptr noundef nonnull align 8 dereferenceable(3176), i32, i32 noundef, i32 noundef) local_unnamed_addr #4

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

declare void @_ZN11spirv_cross8Compiler13register_readEjjb(ptr noundef nonnull align 8 dereferenceable(3176), i32 noundef, i32 noundef, i1 noundef zeroext) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(236) ptr @_ZN11spirv_cross8Compiler3setINS_14SPIRExpressionEJRA1_KcRjbEEERT_jDpOT0_(ptr noundef nonnull align 8 dereferenceable(3176), i32 noundef, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIN11spirv_cross11CompilerMSL11SPVFuncImplESt4lessIS2_ESaIS2_EE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11spirv_cross11CompilerMSL18OpCodePreprocessor6handleEN3spv2OpEPKjj(ptr noundef nonnull align 8 dereferenceable(137) %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i8, align 1
  %6 = alloca %"class.spirv_cross::TypedID.413", align 4
  %7 = alloca %"struct.std::__detail::_Node_iterator.613", align 8
  %8 = alloca %"struct.std::__detail::_Node_iterator.613", align 8
  %9 = alloca %"struct.std::__detail::_Node_iterator.613", align 8
  %10 = alloca %"struct.std::__detail::_Node_iterator.613", align 8
  %11 = alloca %"struct.std::__detail::_Node_iterator.613", align 8
  %12 = alloca %"struct.std::__detail::_Node_iterator.613", align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i8, align 1
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #5
  %19 = tail call noundef zeroext i8 @_ZN11spirv_cross11CompilerMSL18OpCodePreprocessor17get_spv_func_implEN3spv2OpEPKj(ptr noundef nonnull align 8 dereferenceable(137) %0, i32 noundef %1, ptr noundef %2)
  store i8 %19, ptr %5, align 1, !tbaa !5
  %.not = icmp eq i8 %19, 0
  br i1 %.not, label %26, label %20

20:                                               ; preds = %4
  %21 = getelementptr inbounds i8, ptr %0, i64 8
  %22 = load ptr, ptr %21, align 8, !tbaa !9
  %23 = getelementptr inbounds i8, ptr %22, i64 10176
  %24 = call { ptr, i8 } @_ZNSt3setIN11spirv_cross11CompilerMSL11SPVFuncImplESt4lessIS2_ESaIS2_EE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(48) %23, ptr noundef nonnull align 1 dereferenceable(1) %5)
  %25 = getelementptr inbounds i8, ptr %0, i64 128
  store i8 1, ptr %25, align 8, !tbaa !20
  br label %26

26:                                               ; preds = %20, %4
  switch i32 %1, label %.loopexit [
    i32 57, label %27
    i32 5380, label %29
    i32 60, label %31
    i32 99, label %50
    i32 62, label %52
    i32 229, label %54
    i32 230, label %54
    i32 231, label %54
    i32 232, label %54
    i32 233, label %54
    i32 234, label %54
    i32 6035, label %54
    i32 235, label %54
    i32 236, label %54
    i32 237, label %54
    i32 238, label %54
    i32 239, label %54
    i32 240, label %54
    i32 241, label %54
    i32 242, label %54
    i32 228, label %72
    i32 227, label %89
    i32 340, label %104
    i32 343, label %106
    i32 344, label %106
    i32 342, label %108
    i32 68, label %116
    i32 66, label %131
    i32 65, label %131
    i32 67, label %131
    i32 12, label %145
    i32 5381, label %201
  ]

27:                                               ; preds = %26
  %28 = getelementptr inbounds i8, ptr %0, i64 128
  store i8 1, ptr %28, align 8, !tbaa !20
  br label %.loopexit

29:                                               ; preds = %26
  %30 = getelementptr inbounds i8, ptr %0, i64 132
  store i8 1, ptr %30, align 4, !tbaa !21
  br label %.loopexit

31:                                               ; preds = %26
  %32 = getelementptr inbounds i8, ptr %0, i64 8
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  %34 = getelementptr inbounds i8, ptr %33, i64 10036
  %35 = call noundef zeroext i1 @_ZNK11spirv_cross11CompilerMSL7Options20supports_msl_versionEjjj(ptr noundef nonnull align 4 dereferenceable(137) %34, i32 noundef 3, i32 noundef 1, i32 noundef 0)
  br i1 %35, label %.loopexit, label %36

36:                                               ; preds = %31
  %37 = load ptr, ptr %32, align 8, !tbaa !9
  %38 = getelementptr inbounds i8, ptr %2, i64 8
  %39 = load i32, ptr %38, align 4, !tbaa !22
  %40 = call noundef ptr @_ZN11spirv_cross8Compiler26maybe_get_backing_variableEj(ptr noundef nonnull align 8 dereferenceable(3176) %37, i32 noundef %39)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  %.not62 = icmp eq ptr %40, null
  br i1 %.not62, label %44, label %41

41:                                               ; preds = %36
  %42 = getelementptr inbounds i8, ptr %40, i64 8
  %43 = load i32, ptr %42, align 8, !tbaa !22
  store i32 %43, ptr %6, align 4, !tbaa !22
  br label %45

44:                                               ; preds = %36
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE0EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %6, i32 noundef 0)
  br label %45

45:                                               ; preds = %44, %41
  %46 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  %47 = getelementptr inbounds i8, ptr %0, i64 72
  %48 = getelementptr inbounds i8, ptr %2, i64 4
  %49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %47, ptr noundef nonnull align 4 dereferenceable(4) %48)
  store i32 %46, ptr %49, align 4, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  br label %.loopexit

50:                                               ; preds = %26
  %51 = getelementptr inbounds i8, ptr %0, i64 130
  store i8 1, ptr %51, align 2, !tbaa !24
  br label %.loopexit

52:                                               ; preds = %26
  %53 = load i32, ptr %2, align 4, !tbaa !22
  call void @_ZN11spirv_cross11CompilerMSL18OpCodePreprocessor20check_resource_writeEj(ptr noundef nonnull align 8 dereferenceable(137) %0, i32 noundef %53)
  br label %.loopexit

54:                                               ; preds = %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26
  %55 = getelementptr inbounds i8, ptr %0, i64 129
  store i8 1, ptr %55, align 1, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %56 = getelementptr inbounds i8, ptr %0, i64 72
  %57 = getelementptr inbounds i8, ptr %2, i64 8
  %58 = call ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE4findERS5_(ptr noundef nonnull align 8 dereferenceable(56) %56, ptr noundef nonnull align 4 dereferenceable(4) %57)
  store ptr %58, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %59 = call ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %56) #5
  store ptr %59, ptr %8, align 8
  %60 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjjELb0EEES6_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br i1 %60, label %61, label %69

61:                                               ; preds = %54
  %62 = getelementptr inbounds i8, ptr %0, i64 130
  store i8 1, ptr %62, align 2, !tbaa !24
  %63 = getelementptr inbounds i8, ptr %0, i64 8
  %64 = load ptr, ptr %63, align 8, !tbaa !9
  %65 = getelementptr inbounds i8, ptr %64, i64 12024
  %66 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKjjELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %67 = getelementptr inbounds i8, ptr %66, i64 4
  %68 = call { ptr, i8 } @_ZNSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE6insertERKj(ptr noundef nonnull align 8 dereferenceable(56) %65, ptr noundef nonnull align 4 dereferenceable(4) %67)
  br label %71

69:                                               ; preds = %54
  %70 = load i32, ptr %57, align 4, !tbaa !22
  call void @_ZN11spirv_cross11CompilerMSL18OpCodePreprocessor20check_resource_writeEj(ptr noundef nonnull align 8 dereferenceable(137) %0, i32 noundef %70)
  br label %71

71:                                               ; preds = %69, %61
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %.loopexit

72:                                               ; preds = %26
  %73 = getelementptr inbounds i8, ptr %0, i64 129
  store i8 1, ptr %73, align 1, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %74 = getelementptr inbounds i8, ptr %0, i64 72
  %75 = call ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE4findERS5_(ptr noundef nonnull align 8 dereferenceable(56) %74, ptr noundef nonnull align 4 dereferenceable(4) %2)
  store ptr %75, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %76 = call ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %74) #5
  store ptr %76, ptr %10, align 8
  %77 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjjELb0EEES6_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  br i1 %77, label %78, label %86

78:                                               ; preds = %72
  %79 = getelementptr inbounds i8, ptr %0, i64 8
  %80 = load ptr, ptr %79, align 8, !tbaa !9
  %81 = getelementptr inbounds i8, ptr %80, i64 12024
  %82 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKjjELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  %83 = getelementptr inbounds i8, ptr %82, i64 4
  %84 = call { ptr, i8 } @_ZNSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE6insertERKj(ptr noundef nonnull align 8 dereferenceable(56) %81, ptr noundef nonnull align 4 dereferenceable(4) %83)
  %85 = getelementptr inbounds i8, ptr %0, i64 130
  store i8 1, ptr %85, align 2, !tbaa !24
  br label %88

86:                                               ; preds = %72
  %87 = load i32, ptr %2, align 4, !tbaa !22
  call void @_ZN11spirv_cross11CompilerMSL18OpCodePreprocessor20check_resource_writeEj(ptr noundef nonnull align 8 dereferenceable(137) %0, i32 noundef %87)
  br label %88

88:                                               ; preds = %86, %78
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br label %.loopexit

89:                                               ; preds = %26
  %90 = getelementptr inbounds i8, ptr %0, i64 129
  store i8 1, ptr %90, align 1, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  %91 = getelementptr inbounds i8, ptr %0, i64 72
  %92 = getelementptr inbounds i8, ptr %2, i64 8
  %93 = call ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE4findERS5_(ptr noundef nonnull align 8 dereferenceable(56) %91, ptr noundef nonnull align 4 dereferenceable(4) %92)
  store ptr %93, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %94 = call ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %91) #5
  store ptr %94, ptr %12, align 8
  %95 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjjELb0EEES6_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br i1 %95, label %96, label %103

96:                                               ; preds = %89
  %97 = getelementptr inbounds i8, ptr %0, i64 8
  %98 = load ptr, ptr %97, align 8, !tbaa !9
  %99 = getelementptr inbounds i8, ptr %98, i64 12024
  %100 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKjjELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  %101 = getelementptr inbounds i8, ptr %100, i64 4
  %102 = call { ptr, i8 } @_ZNSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE6insertERKj(ptr noundef nonnull align 8 dereferenceable(56) %99, ptr noundef nonnull align 4 dereferenceable(4) %101)
  br label %103

103:                                              ; preds = %96, %89
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  br label %.loopexit

104:                                              ; preds = %26
  %105 = getelementptr inbounds i8, ptr %0, i64 133
  store i8 1, ptr %105, align 1, !tbaa !26
  br label %.loopexit

106:                                              ; preds = %26, %26
  %107 = getelementptr inbounds i8, ptr %0, i64 134
  store i8 1, ptr %107, align 2, !tbaa !27
  br label %.loopexit

108:                                              ; preds = %26
  %109 = getelementptr inbounds i8, ptr %2, i64 12
  %110 = load i32, ptr %109, align 4, !tbaa !22
  %111 = icmp eq i32 %110, 0
  br i1 %111, label %112, label %114

112:                                              ; preds = %108
  %113 = getelementptr inbounds i8, ptr %0, i64 134
  store i8 1, ptr %113, align 2, !tbaa !27
  br label %.loopexit

114:                                              ; preds = %108
  %115 = getelementptr inbounds i8, ptr %0, i64 133
  store i8 1, ptr %115, align 1, !tbaa !26
  br label %.loopexit

116:                                              ; preds = %26
  %117 = getelementptr inbounds i8, ptr %0, i64 8
  %118 = load ptr, ptr %117, align 8, !tbaa !9
  %119 = getelementptr inbounds i8, ptr %2, i64 8
  %120 = load i32, ptr %119, align 4, !tbaa !22
  %121 = call noundef ptr @_ZN11spirv_cross8Compiler26maybe_get_backing_variableEj(ptr noundef nonnull align 8 dereferenceable(3176) %118, i32 noundef %120)
  %.not61 = icmp eq ptr %121, null
  br i1 %.not61, label %.loopexit, label %122

122:                                              ; preds = %116
  %123 = load ptr, ptr %117, align 8, !tbaa !9
  %124 = call noundef zeroext i1 @_ZNK11spirv_cross11CompilerMSL25is_var_runtime_size_arrayERKNS_12SPIRVariableE(ptr noundef nonnull align 8 dereferenceable(12482) %123, ptr noundef nonnull align 8 dereferenceable(176) %121)
  br i1 %124, label %.loopexit, label %125

125:                                              ; preds = %122
  %126 = load ptr, ptr %117, align 8, !tbaa !9
  %127 = getelementptr inbounds i8, ptr %126, i64 11824
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #5
  %128 = getelementptr inbounds i8, ptr %121, i64 8
  %129 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %128)
  store i32 %129, ptr %13, align 4, !tbaa !22
  %130 = call { ptr, i8 } @_ZNSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE6insertEOj(ptr noundef nonnull align 8 dereferenceable(56) %127, ptr noundef nonnull align 4 dereferenceable(4) %13)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #5
  br label %.loopexit

131:                                              ; preds = %26, %26, %26
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #5
  %132 = load i32, ptr %2, align 4, !tbaa !22
  store i32 %132, ptr %14, align 4, !tbaa !22
  %133 = getelementptr inbounds i8, ptr %2, i64 4
  %134 = load i32, ptr %133, align 4, !tbaa !22
  %135 = getelementptr inbounds i8, ptr %2, i64 8
  %136 = load i32, ptr %135, align 4, !tbaa !22
  %137 = getelementptr inbounds i8, ptr %0, i64 8
  %138 = load ptr, ptr %137, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #5
  store i8 1, ptr %15, align 1, !tbaa !28
  %139 = call noundef nonnull align 8 dereferenceable(236) ptr @_ZN11spirv_cross8Compiler3setINS_14SPIRExpressionEJRA1_KcRjbEEERT_jDpOT0_(ptr noundef nonnull align 8 dereferenceable(3176) %138, i32 noundef %134, ptr noundef nonnull align 1 dereferenceable(1) @.str.35, ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 1 dereferenceable(1) %15)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #5
  %140 = load ptr, ptr %137, align 8, !tbaa !9
  call void @_ZN11spirv_cross8Compiler13register_readEjjb(ptr noundef nonnull align 8 dereferenceable(3176) %140, i32 noundef %134, i32 noundef %136, i1 noundef zeroext true)
  %141 = load ptr, ptr %137, align 8, !tbaa !9
  %142 = getelementptr inbounds i8, ptr %141, i64 40
  %143 = zext i32 %134 to i64
  %144 = call noundef nonnull align 8 dereferenceable(21) ptr @_ZN11spirv_cross10VectorViewINS_7VariantEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %142, i64 noundef %143) #5
  call void @_ZN11spirv_cross7Variant22set_allow_type_rewriteEv(ptr noundef nonnull align 8 dereferenceable(21) %144)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #5
  br label %.loopexit

145:                                              ; preds = %26
  %146 = getelementptr inbounds i8, ptr %2, i64 8
  %147 = load i32, ptr %146, align 4, !tbaa !22
  %148 = getelementptr inbounds i8, ptr %0, i64 8
  %149 = load ptr, ptr %148, align 8, !tbaa !9
  %150 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN11spirv_cross8Compiler3getINS_13SPIRExtensionEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %149, i32 noundef %147)
  %151 = getelementptr inbounds i8, ptr %150, i64 12
  %152 = load i32, ptr %151, align 4, !tbaa !29
  %153 = icmp eq i32 %152, 1
  br i1 %153, label %154, label %.loopexit

154:                                              ; preds = %145
  %155 = getelementptr inbounds i8, ptr %2, i64 12
  %156 = load i32, ptr %155, align 4, !tbaa !22
  %.off = add i32 %156, -76
  %switch = icmp ult i32 %.off, 3
  br i1 %switch, label %157, label %.loopexit

157:                                              ; preds = %154
  %158 = load ptr, ptr %148, align 8, !tbaa !9
  %159 = getelementptr inbounds i8, ptr %158, i64 10036
  %160 = call noundef zeroext i1 @_ZNK11spirv_cross11CompilerMSL7Options20supports_msl_versionEjjj(ptr noundef nonnull align 4 dereferenceable(137) %159, i32 noundef 2, i32 noundef 3, i32 noundef 0)
  br i1 %160, label %166, label %161

161:                                              ; preds = %157
  %162 = call ptr @__cxa_allocate_exception(i64 16) #5
  invoke void @_ZN11spirv_cross13CompilerErrorC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %162, ptr noundef nonnull @.str.1752)
          to label %163 unwind label %164

163:                                              ; preds = %161
  call void @__cxa_throw(ptr nonnull %162, ptr nonnull @_ZTIN11spirv_cross13CompilerErrorE, ptr nonnull @_ZNSt13runtime_errorD2Ev) #6
  unreachable

164:                                              ; preds = %161
  %165 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %162) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  resume { ptr, i32 } %165

166:                                              ; preds = %157
  %167 = load ptr, ptr %148, align 8, !tbaa !9
  %168 = getelementptr inbounds i8, ptr %2, i64 16
  %169 = load i32, ptr %168, align 4, !tbaa !22
  %170 = call noundef ptr @_ZN11spirv_cross8Compiler26maybe_get_backing_variableEj(ptr noundef nonnull align 8 dereferenceable(3176) %167, i32 noundef %169)
  %.not60 = icmp eq ptr %170, null
  br i1 %.not60, label %.loopexit, label %171

171:                                              ; preds = %166
  %172 = load ptr, ptr %148, align 8, !tbaa !9
  %173 = getelementptr inbounds i8, ptr %172, i64 12080
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #5
  %174 = getelementptr inbounds i8, ptr %170, i64 8
  %175 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %174)
  store i32 %175, ptr %16, align 4, !tbaa !22
  %176 = call { ptr, i8 } @_ZNSt13unordered_setIjSt4hashIjESt8equal_toIjESaIjEE6insertEOj(ptr noundef nonnull align 8 dereferenceable(56) %173, ptr noundef nonnull align 4 dereferenceable(4) %16)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #5
  %177 = load ptr, ptr %148, align 8, !tbaa !9
  %178 = call noundef nonnull align 8 dereferenceable(336) ptr @_ZN11spirv_cross8Compiler25get_variable_element_typeERKNS_12SPIRVariableE(ptr noundef nonnull align 8 dereferenceable(3176) %177, ptr noundef nonnull align 8 dereferenceable(176) %170)
  %179 = load ptr, ptr %148, align 8, !tbaa !9
  %.sroa.03.0.copyload = load i32, ptr %174, align 8, !tbaa !22
  %180 = call noundef zeroext i1 @_ZNK11spirv_cross8Compiler14has_decorationENS_7TypedIDILNS_5TypesE0EEEN3spv10DecorationE(ptr noundef nonnull align 8 dereferenceable(3176) %179, i32 %.sroa.03.0.copyload, i32 noundef 17)
  br i1 %180, label %181, label %183

181:                                              ; preds = %171
  %182 = getelementptr inbounds i8, ptr %0, i64 135
  store i8 1, ptr %182, align 1, !tbaa !34
  br label %.loopexit

183:                                              ; preds = %171
  %184 = getelementptr inbounds i8, ptr %178, i64 16
  %185 = load i32, ptr %184, align 8, !tbaa !35
  %186 = icmp eq i32 %185, 15
  br i1 %186, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %183
  %187 = getelementptr inbounds i8, ptr %178, i64 136
  %188 = call noundef i64 @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %187) #5
  %.not64 = icmp eq i64 %188, 0
  br i1 %.not64, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %189 = getelementptr inbounds i8, ptr %178, i64 8
  br label %195

190:                                              ; preds = %195
  %191 = add i32 %.063, 1
  %192 = zext i32 %191 to i64
  %193 = call noundef i64 @_ZNK11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %187) #5
  %194 = icmp ugt i64 %193, %192
  br i1 %194, label %195, label %.loopexit, !llvm.loop !56

195:                                              ; preds = %.lr.ph, %190
  %.063 = phi i32 [ 0, %.lr.ph ], [ %191, %190 ]
  %196 = load ptr, ptr %148, align 8, !tbaa !9
  %197 = call i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvNS0_IXT_EEEILS1_1EEEv(ptr noundef nonnull align 4 dereferenceable(4) %189)
  %198 = call noundef zeroext i1 @_ZNK11spirv_cross8Compiler21has_member_decorationENS_7TypedIDILNS_5TypesE1EEEjN3spv10DecorationE(ptr noundef nonnull align 8 dereferenceable(3176) %196, i32 %197, i32 noundef %.063, i32 noundef 17)
  br i1 %198, label %199, label %190

199:                                              ; preds = %195
  %200 = getelementptr inbounds i8, ptr %0, i64 135
  store i8 1, ptr %200, align 1, !tbaa !34
  br label %.loopexit

201:                                              ; preds = %26
  %202 = getelementptr inbounds i8, ptr %0, i64 8
  %203 = load ptr, ptr %202, align 8, !tbaa !9
  %204 = call noundef zeroext i1 @_ZNK11spirv_cross11CompilerMSL38needs_manual_helper_invocation_updatesEv(ptr noundef nonnull align 8 dereferenceable(12482) %203)
  br i1 %204, label %205, label %.loopexit

205:                                              ; preds = %201
  %206 = getelementptr inbounds i8, ptr %0, i64 136
  store i8 1, ptr %206, align 8, !tbaa !58
  br label %.loopexit

.loopexit:                                        ; preds = %190, %.preheader, %145, %166, %199, %183, %181, %154, %116, %125, %122, %26, %201, %205, %112, %114, %31, %45, %131, %106, %104, %103, %88, %71, %52, %50, %29, %27
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #5
  %207 = getelementptr inbounds i8, ptr %0, i64 8
  %208 = load ptr, ptr %207, align 8, !tbaa !9
  %209 = call noundef zeroext i1 @_ZN11spirv_cross8Compiler26instruction_to_result_typeERjS1_N3spv2OpEPKjj(ptr noundef nonnull align 8 dereferenceable(3176) %208, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18, i32 noundef %1, ptr noundef %2, i32 noundef %3)
  br i1 %209, label %210, label %214

210:                                              ; preds = %.loopexit
  %211 = load i32, ptr %17, align 4, !tbaa !22
  %212 = getelementptr inbounds i8, ptr %0, i64 16
  %213 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %212, ptr noundef nonnull align 4 dereferenceable(4) %18)
  store i32 %211, ptr %213, align 4, !tbaa !22
  br label %214

214:                                              ; preds = %210, %.loopexit
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  ret i1 true
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i8 @_ZN11spirv_cross11CompilerMSL18OpCodePreprocessor17get_spv_func_implEN3spv2OpEPKj(ptr noundef nonnull align 8 dereferenceable(137), i32 noundef, ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11spirv_cross11CompilerMSL18OpCodePreprocessor20check_resource_writeEj(ptr noundef nonnull align 8 dereferenceable(137), i32 noundef) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11spirv_cross7Variant22set_allow_type_rewriteEv(ptr noundef nonnull align 8 dereferenceable(21)) local_unnamed_addr #3 align 2

declare noundef zeroext i1 @_ZN11spirv_cross8Compiler26instruction_to_result_typeERjS1_N3spv2OpEPKjj(ptr noundef nonnull align 8 dereferenceable(3176), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

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

!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 = !{!"_ZTSN11spirv_cross11CompilerMSL11SPVFuncImplE", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 8}
!10 = !{!"_ZTSN11spirv_cross11CompilerMSL18OpCodePreprocessorE", !11, i64 0, !12, i64 8, !13, i64 16, !13, i64 72, !19, i64 128, !19, i64 129, !19, i64 130, !19, i64 131, !19, i64 132, !19, i64 133, !19, i64 134, !19, i64 135, !19, i64 136}
!11 = !{!"_ZTSN11spirv_cross8Compiler13OpcodeHandlerE"}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"_ZTSSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE", !14, i64 0}
!14 = !{!"_ZTSSt10_HashtableIjSt4pairIKjjESaIS2_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE", !12, i64 0, !15, i64 8, !16, i64 16, !15, i64 24, !17, i64 32, !12, i64 48}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !12, i64 0}
!17 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !18, i64 0, !15, i64 8}
!18 = !{!"float", !7, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!10, !19, i64 128}
!21 = !{!10, !19, i64 132}
!22 = !{!23, !23, i64 0}
!23 = !{!"int", !7, i64 0}
!24 = !{!10, !19, i64 130}
!25 = !{!10, !19, i64 129}
!26 = !{!10, !19, i64 133}
!27 = !{!10, !19, i64 134}
!28 = !{!19, !19, i64 0}
!29 = !{!30, !33, i64 12}
!30 = !{!"_ZTSN11spirv_cross13SPIRExtensionE", !31, i64 0, !33, i64 12}
!31 = !{!"_ZTSN11spirv_cross8IVariantE", !32, i64 8}
!32 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE0EEE", !23, i64 0}
!33 = !{!"_ZTSN11spirv_cross13SPIRExtension9ExtensionE", !7, i64 0}
!34 = !{!10, !19, i64 135}
!35 = !{!36, !38, i64 16}
!36 = !{!"_ZTSN11spirv_cross8SPIRTypeE", !31, i64 0, !37, i64 12, !38, i64 16, !23, i64 20, !23, i64 24, !23, i64 28, !39, i64 32, !42, i64 88, !23, i64 120, !19, i64 124, !19, i64 125, !45, i64 128, !46, i64 136, !39, i64 192, !49, i64 248, !50, i64 272, !50, i64 276, !54, i64 280}
!37 = !{!"_ZTSN3spv2OpE", !7, i64 0}
!38 = !{!"_ZTSN11spirv_cross8SPIRType8BaseTypeE", !7, i64 0}
!39 = !{!"_ZTSN11spirv_cross11SmallVectorIjLm8EEE", !40, i64 0, !15, i64 16, !41, i64 24}
!40 = !{!"_ZTSN11spirv_cross10VectorViewIjEE", !12, i64 0, !15, i64 8}
!41 = !{!"_ZTSN11spirv_cross13AlignedBufferIjLm8EEE", !7, i64 0}
!42 = !{!"_ZTSN11spirv_cross11SmallVectorIbLm8EEE", !43, i64 0, !15, i64 16, !44, i64 24}
!43 = !{!"_ZTSN11spirv_cross10VectorViewIbEE", !12, i64 0, !15, i64 8}
!44 = !{!"_ZTSN11spirv_cross13AlignedBufferIbLm8EEE", !7, i64 0}
!45 = !{!"_ZTSN3spv12StorageClassE", !7, i64 0}
!46 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE1EEELm8EEE", !47, i64 0, !15, i64 16, !48, i64 24}
!47 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEEE", !12, i64 0, !15, i64 8}
!48 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE1EEELm8EEE", !7, i64 0}
!49 = !{!"_ZTSN11spirv_cross8SPIRType9ImageTypeE", !50, i64 0, !51, i64 4, !19, i64 8, !19, i64 9, !19, i64 10, !23, i64 12, !52, i64 16, !53, i64 20}
!50 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE1EEE", !23, i64 0}
!51 = !{!"_ZTSN3spv3DimE", !7, i64 0}
!52 = !{!"_ZTSN3spv11ImageFormatE", !7, i64 0}
!53 = !{!"_ZTSN3spv15AccessQualifierE", !7, i64 0}
!54 = !{!"_ZTSSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE", !55, i64 0}
!55 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEE", !12, i64 0, !15, i64 8, !16, i64 16, !15, i64 24, !17, i64 32, !12, i64 48}
!56 = distinct !{!56, !57}
!57 = !{!"llvm.loop.mustprogress"}
!58 = !{!10, !19, i64 136}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass