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

; 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.spirv_cross::ShaderResources" = type { %"class.spirv_cross::SmallVector.240", %"class.spirv_cross::SmallVector.240", %"class.spirv_cross::SmallVector.240", %"class.spirv_cross::SmallVector.240", %"class.spirv_cross::SmallVector.240", %"class.spirv_cross::SmallVector.240", %"class.spirv_cross::SmallVector.240", %"class.spirv_cross::SmallVector.240", %"class.spirv_cross::SmallVector.240", %"class.spirv_cross::SmallVector.240", %"class.spirv_cross::SmallVector.240", %"class.spirv_cross::SmallVector.240", %"class.spirv_cross::SmallVector.240", %"class.spirv_cross::SmallVector.240", %"class.spirv_cross::SmallVector.243", %"class.spirv_cross::SmallVector.243" }
%"class.spirv_cross::SmallVector.240" = type { %"class.spirv_cross::VectorView.241", i64, %"class.spirv_cross::AlignedBuffer.242" }
%"class.spirv_cross::VectorView.241" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.242" = type { [384 x i8] }
%"class.spirv_cross::SmallVector.243" = type { %"class.spirv_cross::VectorView.244", i64, %"class.spirv_cross::AlignedBuffer.245" }
%"class.spirv_cross::VectorView.244" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.245" = type { [448 x i8] }
%class.anon.251 = type { ptr, ptr, ptr, ptr }
%"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 }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"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.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.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::__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::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.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_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.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.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 }

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK11spirv_cross8Compiler20get_shader_resourcesEPKSt13unordered_setINS_7TypedIDILNS_5TypesE2EEESt4hashIS4_ESt8equal_toIS4_ESaIS4_EE(ptr dead_on_unwind noalias writable sret(%"struct.spirv_cross::ShaderResources") align 8 %0, ptr noundef nonnull align 8 dereferenceable(3176) %1, ptr noundef %2) #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i1, align 1
  %8 = alloca i8, align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %class.anon.251, align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %12 = load ptr, ptr %5, align 8
  store i1 false, ptr %7, align 1
  call void @_ZN11spirv_cross15ShaderResourcesC2Ev(ptr noundef nonnull align 8 dereferenceable(6656) %0) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #3
  %13 = invoke noundef zeroext i1 @_ZNK11spirv_cross8Compiler44reflection_ssbo_instance_name_is_significantEv(ptr noundef nonnull align 8 dereferenceable(3176) %12)
          to label %14 unwind label %23

14:                                               ; preds = %3
  %15 = zext i1 %13 to i8
  store i8 %15, ptr %8, align 1, !tbaa !9
  %16 = getelementptr inbounds %"class.spirv_cross::Compiler", ptr %12, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #3
  %17 = getelementptr inbounds %class.anon.251, ptr %11, i32 0, i32 0
  store ptr %12, ptr %17, align 8, !tbaa !11
  %18 = getelementptr inbounds %class.anon.251, ptr %11, i32 0, i32 1
  store ptr %6, ptr %18, align 8, !tbaa !5
  %19 = getelementptr inbounds %class.anon.251, ptr %11, i32 0, i32 2
  store ptr %0, ptr %19, align 8, !tbaa !5
  %20 = getelementptr inbounds %class.anon.251, ptr %11, i32 0, i32 3
  store ptr %8, ptr %20, align 8, !tbaa !5
  invoke void @"_ZNK11spirv_cross8ParsedIR17for_each_typed_idINS_12SPIRVariableEZNKS_8Compiler20get_shader_resourcesEPKSt13unordered_setINS_7TypedIDILNS_5TypesE2EEESt4hashIS7_ESt8equal_toIS7_ESaIS7_EEE3$_0EEvRKT0_"(ptr noundef nonnull align 8 dereferenceable(1920) %16, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %21 unwind label %27

21:                                               ; preds = %14
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #3
  store i1 true, ptr %7, align 1
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #3
  %22 = load i1, ptr %7, align 1
  br i1 %22, label %33, label %32

23:                                               ; preds = %3
  %24 = landingpad { ptr, i32 }
          cleanup
  %25 = extractvalue { ptr, i32 } %24, 0
  store ptr %25, ptr %9, align 8
  %26 = extractvalue { ptr, i32 } %24, 1
  store i32 %26, ptr %10, align 4
  br label %31

27:                                               ; preds = %14
  %28 = landingpad { ptr, i32 }
          cleanup
  %29 = extractvalue { ptr, i32 } %28, 0
  store ptr %29, ptr %9, align 8
  %30 = extractvalue { ptr, i32 } %28, 1
  store i32 %30, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #3
  br label %31

31:                                               ; preds = %27, %23
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #3
  call void @_ZN11spirv_cross15ShaderResourcesD2Ev(ptr noundef nonnull align 8 dereferenceable(6656) %0) #3
  br label %34

32:                                               ; preds = %21
  call void @_ZN11spirv_cross15ShaderResourcesD2Ev(ptr noundef nonnull align 8 dereferenceable(6656) %0) #3
  br label %33

33:                                               ; preds = %32, %21
  ret void

34:                                               ; preds = %31
  %35 = load ptr, ptr %9, align 8
  %36 = load i32, ptr %10, align 4
  %37 = insertvalue { ptr, i32 } poison, ptr %35, 0
  %38 = insertvalue { ptr, i32 } %37, i32 %36, 1
  resume { ptr, i32 } %38
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK11spirv_cross8Compiler44reflection_ssbo_instance_name_is_significantEv(ptr noundef nonnull align 8 dereferenceable(3176)) #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK11spirv_cross8ParsedIR17for_each_typed_idINS_12SPIRVariableEZNKS_8Compiler20get_shader_resourcesEPKSt13unordered_setINS_7TypedIDILNS_5TypesE2EEESt4hashIS7_ESt8equal_toIS7_ESaIS7_EEE3$_0EEvRKT0_"(ptr noundef nonnull align 8 dereferenceable(1920), ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSZNK11spirv_cross8Compiler20get_shader_resourcesEPKSt13unordered_setINS_7TypedIDILNS_5TypesE2EEESt4hashIS4_ESt8equal_toIS4_ESaIS4_EEE3$_0", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.spirv_cross::ShaderResources" = type { %"class.spirv_cross::SmallVector.240", %"class.spirv_cross::SmallVector.240", %"class.spirv_cross::SmallVector.240", %"class.spirv_cross::SmallVector.240", %"class.spirv_cross::SmallVector.240", %"class.spirv_cross::SmallVector.240", %"class.spirv_cross::SmallVector.240", %"class.spirv_cross::SmallVector.240", %"class.spirv_cross::SmallVector.240", %"class.spirv_cross::SmallVector.240", %"class.spirv_cross::SmallVector.240", %"class.spirv_cross::SmallVector.240", %"class.spirv_cross::SmallVector.240", %"class.spirv_cross::SmallVector.240", %"class.spirv_cross::SmallVector.243", %"class.spirv_cross::SmallVector.243" }
%"class.spirv_cross::SmallVector.240" = type { %"class.spirv_cross::VectorView.241", i64, %"class.spirv_cross::AlignedBuffer.242" }
%"class.spirv_cross::VectorView.241" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.242" = type { [384 x i8] }
%"class.spirv_cross::SmallVector.243" = type { %"class.spirv_cross::VectorView.244", i64, %"class.spirv_cross::AlignedBuffer.245" }
%"class.spirv_cross::VectorView.244" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.245" = type { [448 x i8] }
%class.anon.251 = type { ptr, ptr, ptr, ptr }

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK11spirv_cross8Compiler20get_shader_resourcesEPKSt13unordered_setINS_7TypedIDILNS_5TypesE2EEESt4hashIS4_ESt8equal_toIS4_ESaIS4_EE(ptr dead_on_unwind noalias nonnull writable sret(%"struct.spirv_cross::ShaderResources") align 8 %0, ptr noundef nonnull align 8 dereferenceable(3176) %1, ptr noundef %2) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca %class.anon.251, align 8
  store ptr %2, ptr %4, align 8, !tbaa !5
  tail call void @_ZN11spirv_cross15ShaderResourcesC2Ev(ptr noundef nonnull align 8 dereferenceable(6656) %0) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #3
  %7 = invoke noundef zeroext i1 @_ZNK11spirv_cross8Compiler44reflection_ssbo_instance_name_is_significantEv(ptr noundef nonnull align 8 dereferenceable(3176) %1)
          to label %8 unwind label %15

8:                                                ; preds = %3
  %9 = zext i1 %7 to i8
  store i8 %9, ptr %5, align 1, !tbaa !9
  %10 = getelementptr inbounds i8, ptr %1, i64 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #3
  store ptr %1, ptr %6, align 8, !tbaa !11
  %11 = getelementptr inbounds i8, ptr %6, i64 8
  store ptr %4, ptr %11, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %6, i64 16
  store ptr %0, ptr %12, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %6, i64 24
  store ptr %5, ptr %13, align 8, !tbaa !5
  invoke void @"_ZNK11spirv_cross8ParsedIR17for_each_typed_idINS_12SPIRVariableEZNKS_8Compiler20get_shader_resourcesEPKSt13unordered_setINS_7TypedIDILNS_5TypesE2EEESt4hashIS7_ESt8equal_toIS7_ESaIS7_EEE3$_0EEvRKT0_"(ptr noundef nonnull align 8 dereferenceable(1920) %10, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %14 unwind label %17

14:                                               ; preds = %8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #3
  ret void

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

17:                                               ; preds = %8
  %18 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #3
  br label %19

19:                                               ; preds = %17, %15
  %.pn = phi { ptr, i32 } [ %18, %17 ], [ %16, %15 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #3
  call void @_ZN11spirv_cross15ShaderResourcesD2Ev(ptr noundef nonnull align 8 dereferenceable(6656) %0) #3
  resume { ptr, i32 } %.pn
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK11spirv_cross8Compiler44reflection_ssbo_instance_name_is_significantEv(ptr noundef nonnull align 8 dereferenceable(3176)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK11spirv_cross8ParsedIR17for_each_typed_idINS_12SPIRVariableEZNKS_8Compiler20get_shader_resourcesEPKSt13unordered_setINS_7TypedIDILNS_5TypesE2EEESt4hashIS7_ESt8equal_toIS7_ESaIS7_EEE3$_0EEvRKT0_"(ptr noundef nonnull align 8 dereferenceable(1920), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSZNK11spirv_cross8Compiler20get_shader_resourcesEPKSt13unordered_setINS_7TypedIDILNS_5TypesE2EEESt4hashIS4_ESt8equal_toIS4_ESaIS4_EEE3$_0", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass