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

%"class.spirv_cross::TypedID.164" = type { i32 }
%"struct.spirv_cross::Compiler::CombinedImageSamplerHandler" = type { %"struct.spirv_cross::Compiler::OpcodeHandler", ptr, %"class.std::stack", %"class.std::stack.282" }
%"struct.spirv_cross::Compiler::OpcodeHandler" = type { ptr }
%"class.std::stack" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::unordered_map<unsigned int, unsigned int>, std::allocator<std::unordered_map<unsigned int, unsigned int>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::unordered_map<unsigned int, unsigned int>, std::allocator<std::unordered_map<unsigned int, unsigned int>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::unordered_map<unsigned int, unsigned int>, std::allocator<std::unordered_map<unsigned int, unsigned int>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::unordered_map<unsigned int, unsigned int>, std::allocator<std::unordered_map<unsigned int, unsigned int>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.std::stack.282" = type { %"class.std::deque.283" }
%"class.std::deque.283" = type { %"class.std::_Deque_base.284" }
%"class.std::_Deque_base.284" = type { %"struct.std::_Deque_base<spirv_cross::SPIRFunction *, std::allocator<spirv_cross::SPIRFunction *>>::_Deque_impl" }
%"struct.std::_Deque_base<spirv_cross::SPIRFunction *, std::allocator<spirv_cross::SPIRFunction *>>::_Deque_impl" = type { %"struct.std::_Deque_base<spirv_cross::SPIRFunction *, std::allocator<spirv_cross::SPIRFunction *>>::_Deque_impl_data" }
%"struct.std::_Deque_base<spirv_cross::SPIRFunction *, std::allocator<spirv_cross::SPIRFunction *>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator.288", %"struct.std::_Deque_iterator.288" }
%"struct.std::_Deque_iterator.288" = type { ptr, ptr, ptr, ptr }
%"struct.spirv_cross::SPIRFunction" = type <{ %"struct.spirv_cross::IVariant.base", %"class.spirv_cross::TypedID.163", %"class.spirv_cross::TypedID.163", [4 x i8], %"class.spirv_cross::SmallVector.223", %"class.spirv_cross::SmallVector.223", %"class.spirv_cross::SmallVector.220", %"class.spirv_cross::TypedID.165", [4 x i8], %"class.spirv_cross::SmallVector.226", %"class.spirv_cross::SmallVector.229", %"struct.spirv_cross::SPIRFunction::EntryLine", %"class.spirv_cross::SmallVector.232", %"class.spirv_cross::SmallVector.232", %"class.spirv_cross::SmallVector.7", i8, i8, i8, [5 x i8] }>
%"struct.spirv_cross::IVariant.base" = type <{ ptr, %"class.spirv_cross::TypedID.162" }>
%"class.spirv_cross::TypedID.162" = type { i32 }
%"class.spirv_cross::TypedID.163" = type { i32 }
%"class.spirv_cross::SmallVector.223" = type { %"class.spirv_cross::VectorView.224", i64, %"class.spirv_cross::AlignedBuffer.225" }
%"class.spirv_cross::VectorView.224" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.225" = type { [160 x i8] }
%"class.spirv_cross::SmallVector.220" = type { %"class.spirv_cross::VectorView.221", i64, %"class.spirv_cross::AlignedBuffer.222" }
%"class.spirv_cross::VectorView.221" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.222" = type { [32 x i8] }
%"class.spirv_cross::TypedID.165" = type { i32 }
%"class.spirv_cross::SmallVector.226" = type { %"class.spirv_cross::VectorView.227", i64, %"class.spirv_cross::AlignedBuffer.228" }
%"class.spirv_cross::VectorView.227" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.228" = type { [32 x i8] }
%"class.spirv_cross::SmallVector.229" = type { %"class.spirv_cross::VectorView.230", i64, %"class.spirv_cross::AlignedBuffer.231" }
%"class.spirv_cross::VectorView.230" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.231" = type { [128 x i8] }
%"struct.spirv_cross::SPIRFunction::EntryLine" = type { i32, i32 }
%"class.spirv_cross::SmallVector.232" = type <{ %"class.spirv_cross::VectorView.233", i64, [8 x i8] }>
%"class.spirv_cross::VectorView.233" = type { ptr, 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] }
%"struct.spirv_cross::SPIRFunction::CombinedImageSamplerParameter" = type <{ %"class.spirv_cross::TypedID.164", %"class.spirv_cross::TypedID.164", %"class.spirv_cross::TypedID.164", i8, i8, i8, i8 }>
%"struct.spirv_cross::IVariant" = type <{ ptr, %"class.spirv_cross::TypedID.162", [4 x i8] }>

; 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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11spirv_cross8Compiler27CombinedImageSamplerHandler20pop_remap_parametersEv(ptr noundef nonnull align 8 dereferenceable(176)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11spirv_cross8Compiler27CombinedImageSamplerHandler18end_function_scopeEPKjj(ptr noundef nonnull align 8 dereferenceable(176) %0, ptr noundef %1, i32 noundef %2) unnamed_addr #2 align 2 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"class.spirv_cross::TypedID.164", align 4
  %17 = alloca %"class.spirv_cross::TypedID.164", align 4
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"class.spirv_cross::TypedID.164", align 4
  %21 = alloca %"class.spirv_cross::TypedID.164", align 4
  %22 = alloca %"class.spirv_cross::TypedID.164", align 4
  %23 = alloca %"class.spirv_cross::TypedID.164", align 4
  %24 = alloca %"class.spirv_cross::TypedID.164", align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  %25 = load ptr, ptr %5, align 8
  %26 = load i32, ptr %7, align 4, !tbaa !9
  %27 = icmp ult i32 %26, 3
  br i1 %27, label %28, label %29

28:                                               ; preds = %3
  store i1 false, ptr %4, align 1
  br label %142

29:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %30 = getelementptr inbounds %"struct.spirv_cross::Compiler::CombinedImageSamplerHandler", ptr %25, i32 0, i32 1
  %31 = load ptr, ptr %30, align 8, !tbaa !11
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = getelementptr inbounds i32, ptr %32, i64 2
  %34 = load i32, ptr %33, align 4, !tbaa !9
  %35 = call noundef nonnull align 8 dereferenceable(795) ptr @_ZN11spirv_cross8Compiler3getINS_12SPIRFunctionEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %31, i32 noundef %34)
  store ptr %35, ptr %8, align 8, !tbaa !5
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds i32, ptr %36, i64 3
  store ptr %37, ptr %6, align 8, !tbaa !5
  call void @_ZN11spirv_cross8Compiler27CombinedImageSamplerHandler20pop_remap_parametersEv(ptr noundef nonnull align 8 dereferenceable(176) %25)
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction", ptr %38, i32 0, i32 17
  store i8 0, ptr %39, align 2, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %40 = getelementptr inbounds %"struct.spirv_cross::Compiler::CombinedImageSamplerHandler", ptr %25, i32 0, i32 3
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5stackIPN11spirv_cross12SPIRFunctionESt5dequeIS2_SaIS2_EEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %40)
  %42 = load ptr, ptr %41, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction", ptr %42, i32 0, i32 10
  store ptr %43, ptr %9, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.spirv_cross::Compiler::CombinedImageSamplerHandler", ptr %25, i32 0, i32 3
  call void @_ZNSt5stackIPN11spirv_cross12SPIRFunctionESt5dequeIS2_SaIS2_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %44)
  %45 = getelementptr inbounds %"struct.spirv_cross::Compiler::CombinedImageSamplerHandler", ptr %25, i32 0, i32 3
  %46 = call noundef zeroext i1 @_ZNKSt5stackIPN11spirv_cross12SPIRFunctionESt5dequeIS2_SaIS2_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %45)
  br i1 %46, label %47, label %48

47:                                               ; preds = %29
  store i1 true, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %141

48:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %49 = getelementptr inbounds %"struct.spirv_cross::Compiler::CombinedImageSamplerHandler", ptr %25, i32 0, i32 3
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5stackIPN11spirv_cross12SPIRFunctionESt5dequeIS2_SaIS2_EEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %49)
  %51 = load ptr, ptr %50, align 8, !tbaa !5
  store ptr %51, ptr %11, align 8, !tbaa !5
  %52 = load ptr, ptr %11, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction", ptr %52, i32 0, i32 17
  %54 = load i8, ptr %53, align 2, !tbaa !27, !range !53, !noundef !54
  %55 = trunc i8 %54 to i1
  br i1 %55, label %56, label %140

56:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %57, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %58 = load ptr, ptr %12, align 8, !tbaa !5
  %59 = call noundef ptr @_ZN11spirv_cross10VectorViewINS_12SPIRFunction29CombinedImageSamplerParameterEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %58) #4
  store ptr %59, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %60 = load ptr, ptr %12, align 8, !tbaa !5
  %61 = call noundef ptr @_ZN11spirv_cross10VectorViewINS_12SPIRFunction29CombinedImageSamplerParameterEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %60) #4
  store ptr %61, ptr %14, align 8, !tbaa !5
  br label %62

62:                                               ; preds = %136, %56
  %63 = load ptr, ptr %13, align 8, !tbaa !5
  %64 = load ptr, ptr %14, align 8, !tbaa !5
  %65 = icmp ne ptr %63, %64
  br i1 %65, label %67, label %66

66:                                               ; preds = %62
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %139

67:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %68 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %68, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %69 = load ptr, ptr %15, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction::CombinedImageSamplerParameter", ptr %69, i32 0, i32 3
  %71 = load i8, ptr %70, align 4, !tbaa !55, !range !53, !noundef !54
  %72 = trunc i8 %71 to i1
  br i1 %72, label %73, label %76

73:                                               ; preds = %67
  %74 = load ptr, ptr %15, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction::CombinedImageSamplerParameter", ptr %74, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %75, i64 4, i1 false), !tbaa.struct !58
  br label %84

76:                                               ; preds = %67
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = load ptr, ptr %15, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction::CombinedImageSamplerParameter", ptr %78, i32 0, i32 1
  %80 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE2EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %79)
  %81 = zext i32 %80 to i64
  %82 = getelementptr inbounds i32, ptr %77, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !9
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE2EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %16, i32 noundef %83)
  br label %84

84:                                               ; preds = %76, %73
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %85 = load ptr, ptr %15, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction::CombinedImageSamplerParameter", ptr %85, i32 0, i32 4
  %87 = load i8, ptr %86, align 1, !tbaa !59, !range !53, !noundef !54
  %88 = trunc i8 %87 to i1
  br i1 %88, label %89, label %92

89:                                               ; preds = %84
  %90 = load ptr, ptr %15, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction::CombinedImageSamplerParameter", ptr %90, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %91, i64 4, i1 false), !tbaa.struct !58
  br label %100

92:                                               ; preds = %84
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = load ptr, ptr %15, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction::CombinedImageSamplerParameter", ptr %94, i32 0, i32 2
  %96 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE2EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %95)
  %97 = zext i32 %96 to i64
  %98 = getelementptr inbounds i32, ptr %93, i64 %97
  %99 = load i32, ptr %98, align 4, !tbaa !9
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE2EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %17, i32 noundef %99)
  br label %100

100:                                              ; preds = %92, %89
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %101 = getelementptr inbounds %"struct.spirv_cross::Compiler::CombinedImageSamplerHandler", ptr %25, i32 0, i32 1
  %102 = load ptr, ptr %101, align 8, !tbaa !11
  %103 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE2EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %16)
  %104 = call noundef ptr @_ZN11spirv_cross8Compiler26maybe_get_backing_variableEj(ptr noundef nonnull align 8 dereferenceable(3176) %102, i32 noundef %103)
  store ptr %104, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %105 = getelementptr inbounds %"struct.spirv_cross::Compiler::CombinedImageSamplerHandler", ptr %25, i32 0, i32 1
  %106 = load ptr, ptr %105, align 8, !tbaa !11
  %107 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE2EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %17)
  %108 = call noundef ptr @_ZN11spirv_cross8Compiler26maybe_get_backing_variableEj(ptr noundef nonnull align 8 dereferenceable(3176) %106, i32 noundef %107)
  store ptr %108, ptr %19, align 8, !tbaa !5
  %109 = load ptr, ptr %18, align 8, !tbaa !5
  %110 = icmp ne ptr %109, null
  br i1 %110, label %111, label %116

111:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %112 = load ptr, ptr %18, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.spirv_cross::IVariant", ptr %112, i32 0, i32 1
  %114 = call i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvNS0_IXT_EEEILS1_2EEEv(ptr noundef nonnull align 4 dereferenceable(4) %113)
  %115 = getelementptr inbounds %"class.spirv_cross::TypedID.164", ptr %20, i32 0, i32 0
  store i32 %114, ptr %115, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %20, i64 4, i1 false), !tbaa.struct !58
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %116

116:                                              ; preds = %111, %100
  %117 = load ptr, ptr %19, align 8, !tbaa !5
  %118 = icmp ne ptr %117, null
  br i1 %118, label %119, label %124

119:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  %120 = load ptr, ptr %19, align 8, !tbaa !5
  %121 = getelementptr inbounds %"struct.spirv_cross::IVariant", ptr %120, i32 0, i32 1
  %122 = call i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvNS0_IXT_EEEILS1_2EEEv(ptr noundef nonnull align 4 dereferenceable(4) %121)
  %123 = getelementptr inbounds %"class.spirv_cross::TypedID.164", ptr %21, i32 0, i32 0
  store i32 %122, ptr %123, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %21, i64 4, i1 false), !tbaa.struct !58
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  br label %124

124:                                              ; preds = %119, %116
  %125 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE2EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %22, i32 noundef 0)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %16, i64 4, i1 false), !tbaa.struct !58
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %17, i64 4, i1 false), !tbaa.struct !58
  %126 = load ptr, ptr %15, align 8, !tbaa !5
  %127 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction::CombinedImageSamplerParameter", ptr %126, i32 0, i32 5
  %128 = load i8, ptr %127, align 2, !tbaa !60, !range !53, !noundef !54
  %129 = trunc i8 %128 to i1
  %130 = getelementptr inbounds %"class.spirv_cross::TypedID.164", ptr %22, i32 0, i32 0
  %131 = load i32, ptr %130, align 4
  %132 = getelementptr inbounds %"class.spirv_cross::TypedID.164", ptr %23, i32 0, i32 0
  %133 = load i32, ptr %132, align 4
  %134 = getelementptr inbounds %"class.spirv_cross::TypedID.164", ptr %24, i32 0, i32 0
  %135 = load i32, ptr %134, align 4
  call void @_ZN11spirv_cross8Compiler27CombinedImageSamplerHandler31register_combined_image_samplerERNS_12SPIRFunctionENS_7TypedIDILNS_5TypesE2EEES6_S6_b(ptr noundef nonnull align 8 dereferenceable(176) %25, ptr noundef nonnull align 8 dereferenceable(795) %125, i32 %131, i32 %133, i32 %135, i1 noundef zeroext %129)
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %136

136:                                              ; preds = %124
  %137 = load ptr, ptr %13, align 8, !tbaa !5
  %138 = getelementptr inbounds %"struct.spirv_cross::SPIRFunction::CombinedImageSamplerParameter", ptr %137, i32 1
  store ptr %138, ptr %13, align 8, !tbaa !5
  br label %62

139:                                              ; preds = %66
  br label %140

140:                                              ; preds = %139, %48
  store i1 true, ptr %4, align 1
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %141

141:                                              ; preds = %140, %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %142

142:                                              ; preds = %141, %28
  %143 = load i1, ptr %4, align 1
  ret i1 %143
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11spirv_cross8Compiler27CombinedImageSamplerHandler31register_combined_image_samplerERNS_12SPIRFunctionENS_7TypedIDILNS_5TypesE2EEES6_S6_b(ptr noundef nonnull align 8 dereferenceable(176), ptr noundef nonnull align 8 dereferenceable(795), i32, i32, i32, i1 noundef zeroext) #2 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 8}
!12 = !{!"_ZTSN11spirv_cross8Compiler27CombinedImageSamplerHandlerE", !13, i64 0, !6, i64 8, !14, i64 16, !21, i64 96}
!13 = !{!"_ZTSN11spirv_cross8Compiler13OpcodeHandlerE"}
!14 = !{!"_ZTSSt5stackISt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEESt5dequeIS9_SaIS9_EEE", !15, i64 0}
!15 = !{!"_ZTSSt5dequeISt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEESaIS9_EE", !16, i64 0}
!16 = !{!"_ZTSSt11_Deque_baseISt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEESaIS9_EE", !17, i64 0}
!17 = !{!"_ZTSNSt11_Deque_baseISt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEESaIS9_EE11_Deque_implE", !18, i64 0}
!18 = !{!"_ZTSNSt11_Deque_baseISt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEESaIS9_EE16_Deque_impl_dataE", !6, i64 0, !19, i64 8, !20, i64 16, !20, i64 48}
!19 = !{!"long", !7, i64 0}
!20 = !{!"_ZTSSt15_Deque_iteratorISt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEERS9_PS9_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!21 = !{!"_ZTSSt5stackIPN11spirv_cross12SPIRFunctionESt5dequeIS2_SaIS2_EEE", !22, i64 0}
!22 = !{!"_ZTSSt5dequeIPN11spirv_cross12SPIRFunctionESaIS2_EE", !23, i64 0}
!23 = !{!"_ZTSSt11_Deque_baseIPN11spirv_cross12SPIRFunctionESaIS2_EE", !24, i64 0}
!24 = !{!"_ZTSNSt11_Deque_baseIPN11spirv_cross12SPIRFunctionESaIS2_EE11_Deque_implE", !25, i64 0}
!25 = !{!"_ZTSNSt11_Deque_baseIPN11spirv_cross12SPIRFunctionESaIS2_EE16_Deque_impl_dataE", !6, i64 0, !19, i64 8, !26, i64 16, !26, i64 48}
!26 = !{!"_ZTSSt15_Deque_iteratorIPN11spirv_cross12SPIRFunctionERS2_PS2_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!27 = !{!28, !52, i64 794}
!28 = !{!"_ZTSN11spirv_cross12SPIRFunctionE", !29, i64 0, !31, i64 12, !31, i64 16, !32, i64 24, !32, i64 208, !35, i64 392, !38, i64 448, !39, i64 456, !42, i64 512, !45, i64 664, !46, i64 672, !46, i64 704, !49, i64 736, !52, i64 792, !52, i64 793, !52, i64 794}
!29 = !{!"_ZTSN11spirv_cross8IVariantE", !30, i64 8}
!30 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE0EEE", !10, i64 0}
!31 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE1EEE", !10, i64 0}
!32 = !{!"_ZTSN11spirv_cross11SmallVectorINS_12SPIRFunction9ParameterELm8EEE", !33, i64 0, !19, i64 16, !34, i64 24}
!33 = !{!"_ZTSN11spirv_cross10VectorViewINS_12SPIRFunction9ParameterEEE", !6, i64 0, !19, i64 8}
!34 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_12SPIRFunction9ParameterELm8EEE", !7, i64 0}
!35 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE2EEELm8EEE", !36, i64 0, !19, i64 16, !37, i64 24}
!36 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE2EEEEE", !6, i64 0, !19, i64 8}
!37 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE2EEELm8EEE", !7, i64 0}
!38 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE6EEE", !10, i64 0}
!39 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE6EEELm8EEE", !40, i64 0, !19, i64 16, !41, i64 24}
!40 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE6EEEEE", !6, i64 0, !19, i64 8}
!41 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE6EEELm8EEE", !7, i64 0}
!42 = !{!"_ZTSN11spirv_cross11SmallVectorINS_12SPIRFunction29CombinedImageSamplerParameterELm8EEE", !43, i64 0, !19, i64 16, !44, i64 24}
!43 = !{!"_ZTSN11spirv_cross10VectorViewINS_12SPIRFunction29CombinedImageSamplerParameterEEE", !6, i64 0, !19, i64 8}
!44 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_12SPIRFunction29CombinedImageSamplerParameterELm8EEE", !7, i64 0}
!45 = !{!"_ZTSN11spirv_cross12SPIRFunction9EntryLineE", !10, i64 0, !10, i64 4}
!46 = !{!"_ZTSN11spirv_cross11SmallVectorISt8functionIFvvEELm0EEE", !47, i64 0, !19, i64 16, !48, i64 24}
!47 = !{!"_ZTSN11spirv_cross10VectorViewISt8functionIFvvEEEE", !6, i64 0, !19, i64 8}
!48 = !{!"_ZTSN11spirv_cross13AlignedBufferISt8functionIFvvEELm0EEE"}
!49 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE0EEELm8EEE", !50, i64 0, !19, i64 16, !51, i64 24}
!50 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE0EEEEE", !6, i64 0, !19, i64 8}
!51 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE0EEELm8EEE", !7, i64 0}
!52 = !{!"bool", !7, i64 0}
!53 = !{i8 0, i8 2}
!54 = !{}
!55 = !{!56, !52, i64 12}
!56 = !{!"_ZTSN11spirv_cross12SPIRFunction29CombinedImageSamplerParameterE", !57, i64 0, !57, i64 4, !57, i64 8, !52, i64 12, !52, i64 13, !52, i64 14}
!57 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE2EEE", !10, i64 0}
!58 = !{i64 0, i64 4, !9}
!59 = !{!56, !52, i64 13}
!60 = !{!56, !52, i64 14}


; 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.164" = type { i32 }

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11spirv_cross8Compiler27CombinedImageSamplerHandler20pop_remap_parametersEv(ptr noundef nonnull align 8 dereferenceable(176)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11spirv_cross8Compiler27CombinedImageSamplerHandler18end_function_scopeEPKjj(ptr noundef nonnull align 8 dereferenceable(176) %0, ptr nocapture noundef readonly %1, i32 noundef %2) unnamed_addr #1 align 2 {
  %4 = alloca %"class.spirv_cross::TypedID.164", align 4
  %5 = alloca %"class.spirv_cross::TypedID.164", align 4
  %6 = alloca %"class.spirv_cross::TypedID.164", align 4
  %7 = icmp ugt i32 %2, 2
  br i1 %7, label %8, label %.loopexit

8:                                                ; preds = %3
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %1, i64 8
  %12 = load i32, ptr %11, align 4, !tbaa !24
  %13 = tail call noundef nonnull align 8 dereferenceable(795) ptr @_ZN11spirv_cross8Compiler3getINS_12SPIRFunctionEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %10, i32 noundef %12)
  %14 = getelementptr inbounds i8, ptr %1, i64 12
  tail call void @_ZN11spirv_cross8Compiler27CombinedImageSamplerHandler20pop_remap_parametersEv(ptr noundef nonnull align 8 dereferenceable(176) %0)
  %15 = getelementptr inbounds i8, ptr %13, i64 794
  store i8 0, ptr %15, align 2, !tbaa !26
  %16 = getelementptr inbounds i8, ptr %0, i64 96
  %17 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5stackIPN11spirv_cross12SPIRFunctionESt5dequeIS2_SaIS2_EEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %16)
  %18 = load ptr, ptr %17, align 8, !tbaa !52
  %19 = getelementptr inbounds i8, ptr %18, i64 512
  tail call void @_ZNSt5stackIPN11spirv_cross12SPIRFunctionESt5dequeIS2_SaIS2_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %16)
  %20 = tail call noundef zeroext i1 @_ZNKSt5stackIPN11spirv_cross12SPIRFunctionESt5dequeIS2_SaIS2_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %16)
  br i1 %20, label %.loopexit, label %21

21:                                               ; preds = %8
  %22 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5stackIPN11spirv_cross12SPIRFunctionESt5dequeIS2_SaIS2_EEE3topEv(ptr noundef nonnull align 8 dereferenceable(80) %16)
  %23 = load ptr, ptr %22, align 8, !tbaa !52
  %24 = getelementptr inbounds i8, ptr %23, i64 794
  %25 = load i8, ptr %24, align 2, !tbaa !26, !range !53, !noundef !54
  %26 = trunc nuw i8 %25 to i1
  br i1 %26, label %27, label %.loopexit

27:                                               ; preds = %21
  %28 = tail call noundef ptr @_ZN11spirv_cross10VectorViewINS_12SPIRFunction29CombinedImageSamplerParameterEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %19) #3
  %29 = tail call noundef ptr @_ZN11spirv_cross10VectorViewINS_12SPIRFunction29CombinedImageSamplerParameterEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %19) #3
  %.not34 = icmp eq ptr %28, %29
  br i1 %.not34, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %27, %67
  %.03035 = phi ptr [ %72, %67 ], [ %28, %27 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
  %30 = getelementptr inbounds i8, ptr %.03035, i64 12
  %31 = load i8, ptr %30, align 4, !tbaa !55, !range !53, !noundef !54
  %32 = trunc nuw i8 %31 to i1
  %33 = getelementptr inbounds i8, ptr %.03035, i64 4
  br i1 %32, label %34, label %36

34:                                               ; preds = %.lr.ph
  %35 = load i32, ptr %33, align 4, !tbaa !24
  store i32 %35, ptr %4, align 4, !tbaa !24
  br label %41

36:                                               ; preds = %.lr.ph
  %37 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE2EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %33)
  %38 = zext i32 %37 to i64
  %39 = getelementptr inbounds i32, ptr %14, i64 %38
  %40 = load i32, ptr %39, align 4, !tbaa !24
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE2EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %40)
  br label %41

41:                                               ; preds = %36, %34
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
  %42 = getelementptr inbounds i8, ptr %.03035, i64 13
  %43 = load i8, ptr %42, align 1, !tbaa !58, !range !53, !noundef !54
  %44 = trunc nuw i8 %43 to i1
  %45 = getelementptr inbounds i8, ptr %.03035, i64 8
  br i1 %44, label %46, label %48

46:                                               ; preds = %41
  %47 = load i32, ptr %45, align 4, !tbaa !24
  store i32 %47, ptr %5, align 4, !tbaa !24
  br label %53

48:                                               ; preds = %41
  %49 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE2EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %45)
  %50 = zext i32 %49 to i64
  %51 = getelementptr inbounds i32, ptr %14, i64 %50
  %52 = load i32, ptr %51, align 4, !tbaa !24
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE2EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %5, i32 noundef %52)
  br label %53

53:                                               ; preds = %48, %46
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE2EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %4)
  %56 = call noundef ptr @_ZN11spirv_cross8Compiler26maybe_get_backing_variableEj(ptr noundef nonnull align 8 dereferenceable(3176) %54, i32 noundef %55)
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = call noundef i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE2EEcvjEv(ptr noundef nonnull align 4 dereferenceable(4) %5)
  %59 = call noundef ptr @_ZN11spirv_cross8Compiler26maybe_get_backing_variableEj(ptr noundef nonnull align 8 dereferenceable(3176) %57, i32 noundef %58)
  %.not32 = icmp eq ptr %56, null
  br i1 %.not32, label %63, label %60

60:                                               ; preds = %53
  %61 = getelementptr inbounds i8, ptr %56, i64 8
  %62 = call i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvNS0_IXT_EEEILS1_2EEEv(ptr noundef nonnull align 4 dereferenceable(4) %61)
  store i32 %62, ptr %4, align 4, !tbaa !24
  br label %63

63:                                               ; preds = %60, %53
  %.not33 = icmp eq ptr %59, null
  br i1 %.not33, label %67, label %64

64:                                               ; preds = %63
  %65 = getelementptr inbounds i8, ptr %59, i64 8
  %66 = call i32 @_ZNK11spirv_cross7TypedIDILNS_5TypesE0EEcvNS0_IXT_EEEILS1_2EEEv(ptr noundef nonnull align 4 dereferenceable(4) %65)
  store i32 %66, ptr %5, align 4, !tbaa !24
  br label %67

67:                                               ; preds = %64, %63
  call void @_ZN11spirv_cross7TypedIDILNS_5TypesE2EEC2Ej(ptr noundef nonnull align 4 dereferenceable(4) %6, i32 noundef 0)
  %.sroa.01.0.copyload = load i32, ptr %4, align 4, !tbaa !24
  %.sroa.0.0.copyload = load i32, ptr %5, align 4, !tbaa !24
  %68 = getelementptr inbounds i8, ptr %.03035, i64 14
  %69 = load i8, ptr %68, align 2, !tbaa !59, !range !53, !noundef !54
  %70 = trunc nuw i8 %69 to i1
  %71 = load i32, ptr %6, align 4
  call void @_ZN11spirv_cross8Compiler27CombinedImageSamplerHandler31register_combined_image_samplerERNS_12SPIRFunctionENS_7TypedIDILNS_5TypesE2EEES6_S6_b(ptr noundef nonnull align 8 dereferenceable(176) %0, ptr noundef nonnull align 8 dereferenceable(795) %23, i32 %71, i32 %.sroa.01.0.copyload, i32 %.sroa.0.0.copyload, i1 noundef zeroext %70)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
  %72 = getelementptr inbounds i8, ptr %.03035, i64 16
  %.not = icmp eq ptr %72, %29
  br i1 %.not, label %.loopexit, label %.lr.ph

.loopexit:                                        ; preds = %67, %27, %8, %21, %3
  ret i1 %7
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11spirv_cross8Compiler27CombinedImageSamplerHandler31register_combined_image_samplerERNS_12SPIRFunctionENS_7TypedIDILNS_5TypesE2EEES6_S6_b(ptr noundef nonnull align 8 dereferenceable(176), ptr noundef nonnull align 8 dereferenceable(795), i32, i32, i32, i1 noundef zeroext) local_unnamed_addr #1 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 = { 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, !8, i64 8}
!6 = !{!"_ZTSN11spirv_cross8Compiler27CombinedImageSamplerHandlerE", !7, i64 0, !8, i64 8, !11, i64 16, !18, i64 96}
!7 = !{!"_ZTSN11spirv_cross8Compiler13OpcodeHandlerE"}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSSt5stackISt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEESt5dequeIS9_SaIS9_EEE", !12, i64 0}
!12 = !{!"_ZTSSt5dequeISt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEESaIS9_EE", !13, i64 0}
!13 = !{!"_ZTSSt11_Deque_baseISt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEESaIS9_EE", !14, i64 0}
!14 = !{!"_ZTSNSt11_Deque_baseISt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEESaIS9_EE11_Deque_implE", !15, i64 0}
!15 = !{!"_ZTSNSt11_Deque_baseISt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEESaIS9_EE16_Deque_impl_dataE", !8, i64 0, !16, i64 8, !17, i64 16, !17, i64 48}
!16 = !{!"long", !9, i64 0}
!17 = !{!"_ZTSSt15_Deque_iteratorISt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEERS9_PS9_E", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24}
!18 = !{!"_ZTSSt5stackIPN11spirv_cross12SPIRFunctionESt5dequeIS2_SaIS2_EEE", !19, i64 0}
!19 = !{!"_ZTSSt5dequeIPN11spirv_cross12SPIRFunctionESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSSt11_Deque_baseIPN11spirv_cross12SPIRFunctionESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSNSt11_Deque_baseIPN11spirv_cross12SPIRFunctionESaIS2_EE11_Deque_implE", !22, i64 0}
!22 = !{!"_ZTSNSt11_Deque_baseIPN11spirv_cross12SPIRFunctionESaIS2_EE16_Deque_impl_dataE", !8, i64 0, !16, i64 8, !23, i64 16, !23, i64 48}
!23 = !{!"_ZTSSt15_Deque_iteratorIPN11spirv_cross12SPIRFunctionERS2_PS2_E", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24}
!24 = !{!25, !25, i64 0}
!25 = !{!"int", !9, i64 0}
!26 = !{!27, !51, i64 794}
!27 = !{!"_ZTSN11spirv_cross12SPIRFunctionE", !28, i64 0, !30, i64 12, !30, i64 16, !31, i64 24, !31, i64 208, !34, i64 392, !37, i64 448, !38, i64 456, !41, i64 512, !44, i64 664, !45, i64 672, !45, i64 704, !48, i64 736, !51, i64 792, !51, i64 793, !51, i64 794}
!28 = !{!"_ZTSN11spirv_cross8IVariantE", !29, i64 8}
!29 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE0EEE", !25, i64 0}
!30 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE1EEE", !25, i64 0}
!31 = !{!"_ZTSN11spirv_cross11SmallVectorINS_12SPIRFunction9ParameterELm8EEE", !32, i64 0, !16, i64 16, !33, i64 24}
!32 = !{!"_ZTSN11spirv_cross10VectorViewINS_12SPIRFunction9ParameterEEE", !8, i64 0, !16, i64 8}
!33 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_12SPIRFunction9ParameterELm8EEE", !9, i64 0}
!34 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE2EEELm8EEE", !35, i64 0, !16, i64 16, !36, i64 24}
!35 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE2EEEEE", !8, i64 0, !16, i64 8}
!36 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE2EEELm8EEE", !9, i64 0}
!37 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE6EEE", !25, i64 0}
!38 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE6EEELm8EEE", !39, i64 0, !16, i64 16, !40, i64 24}
!39 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE6EEEEE", !8, i64 0, !16, i64 8}
!40 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE6EEELm8EEE", !9, i64 0}
!41 = !{!"_ZTSN11spirv_cross11SmallVectorINS_12SPIRFunction29CombinedImageSamplerParameterELm8EEE", !42, i64 0, !16, i64 16, !43, i64 24}
!42 = !{!"_ZTSN11spirv_cross10VectorViewINS_12SPIRFunction29CombinedImageSamplerParameterEEE", !8, i64 0, !16, i64 8}
!43 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_12SPIRFunction29CombinedImageSamplerParameterELm8EEE", !9, i64 0}
!44 = !{!"_ZTSN11spirv_cross12SPIRFunction9EntryLineE", !25, i64 0, !25, i64 4}
!45 = !{!"_ZTSN11spirv_cross11SmallVectorISt8functionIFvvEELm0EEE", !46, i64 0, !16, i64 16, !47, i64 24}
!46 = !{!"_ZTSN11spirv_cross10VectorViewISt8functionIFvvEEEE", !8, i64 0, !16, i64 8}
!47 = !{!"_ZTSN11spirv_cross13AlignedBufferISt8functionIFvvEELm0EEE"}
!48 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE0EEELm8EEE", !49, i64 0, !16, i64 16, !50, i64 24}
!49 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE0EEEEE", !8, i64 0, !16, i64 8}
!50 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE0EEELm8EEE", !9, i64 0}
!51 = !{!"bool", !9, i64 0}
!52 = !{!8, !8, i64 0}
!53 = !{i8 0, i8 2}
!54 = !{}
!55 = !{!56, !51, i64 12}
!56 = !{!"_ZTSN11spirv_cross12SPIRFunction29CombinedImageSamplerParameterE", !57, i64 0, !57, i64 4, !57, i64 8, !51, i64 12, !51, i64 13, !51, i64 14}
!57 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE2EEE", !25, i64 0}
!58 = !{!56, !51, i64 13}
!59 = !{!56, !51, i64 14}


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