; LLVM IR from rcliftonharvey/dspfilters4juce :: DSPFilters4JUCEDemo/JuceLibraryCode (juce_opengl)

; 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.juce::DepthTestDisabler" = type { i8 }
%"class.juce::Rectangle.56" = type { %"class.juce::Point.57", float, float }
%"class.juce::Point.57" = type { float, float }
%struct.OverlayShaderProgram = type { %"class.juce::ReferenceCountedObject", %"class.juce::OpenGLShaderProgram", [8 x i8], %"struct.juce::OpenGLContext::copyTexture(const Rectangle<int> &, const Rectangle<int> &, const int, const int, bool)::OverlayShaderProgram::Params" }
%"class.juce::ReferenceCountedObject" = type { ptr, %"class.juce::Atomic" }
%"class.juce::Atomic" = type { i32, [4 x i8] }
%"class.juce::OpenGLShaderProgram" = type { ptr, i32, %"class.juce::String" }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"struct.juce::OpenGLContext::copyTexture(const Rectangle<int> &, const Rectangle<int> &, const int, const int, bool)::OverlayShaderProgram::Params" = type { %"struct.juce::OpenGLShaderProgram::Attribute", %"struct.juce::OpenGLShaderProgram::Uniform", %"struct.juce::OpenGLShaderProgram::Uniform", %"struct.juce::OpenGLShaderProgram::Uniform", %"struct.juce::OpenGLShaderProgram::Uniform" }
%"struct.juce::OpenGLShaderProgram::Attribute" = type { i32 }
%"struct.juce::OpenGLShaderProgram::Uniform" = type { i32, ptr }
%"class.juce::OpenGLContext" = type <{ %"struct.juce::OpenGLExtensionFunctions", ptr, ptr, double, %"class.juce::ScopedPointer.1", %"class.juce::OpenGLPixelFormat", [4 x i8], ptr, i32, [4 x i8], i64, i8, i8, i8, [5 x i8] }>
%"struct.juce::OpenGLExtensionFunctions" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%"class.juce::ScopedPointer.1" = type { ptr }
%"class.juce::OpenGLPixelFormat" = type <{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, [3 x i8] }>

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

declare void @glEnable(i32 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce13OpenGLContext11copyTextureERKNS_9RectangleIiEES4_iib(ptr noundef nonnull align 8 dereferenceable(491) %0, ptr noundef nonnull align 4 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(16) %2, i32 noundef %3, i32 noundef %4, i1 noundef zeroext %5) #2 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i8, align 1
  %13 = alloca %"struct.juce::DepthTestDisabler", align 1
  %14 = alloca i16, align 2
  %15 = alloca i16, align 2
  %16 = alloca i16, align 2
  %17 = alloca i16, align 2
  %18 = alloca [8 x i16], align 16
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca %"class.juce::Rectangle.56", align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !9
  %25 = zext i1 %5 to i8
  store i8 %25, ptr %12, align 1, !tbaa !11
  %26 = load ptr, ptr %7, align 8
  %27 = load i32, ptr %10, align 4, !tbaa !9
  %28 = icmp sle i32 %27, 0
  br i1 %28, label %32, label %29

29:                                               ; preds = %6
  %30 = load i32, ptr %11, align 4, !tbaa !9
  %31 = icmp sle i32 %30, 0
  br i1 %31, label %32, label %33

32:                                               ; preds = %29, %6
  br label %145

33:                                               ; preds = %29
  call void @glBlendFunc(i32 noundef 1, i32 noundef 771)
  call void @glEnable(i32 noundef 3042)
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #5
  call void @_ZN4juce17DepthTestDisablerC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  %34 = call noundef zeroext i1 @_ZNK4juce13OpenGLContext19areShadersAvailableEv(ptr noundef nonnull align 8 dereferenceable(491) %26)
  br i1 %34, label %35, label %140

35:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 2, ptr %14) #5
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = call noundef i32 @_ZNK4juce9RectangleIiE4getXEv(ptr noundef nonnull align 4 dereferenceable(16) %36) #5
  %38 = trunc i32 %37 to i16
  store i16 %38, ptr %14, align 2, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 2, ptr %15) #5
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = call noundef i32 @_ZNK4juce9RectangleIiE4getYEv(ptr noundef nonnull align 4 dereferenceable(16) %39) #5
  %41 = trunc i32 %40 to i16
  store i16 %41, ptr %15, align 2, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 2, ptr %16) #5
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = call noundef i32 @_ZNK4juce9RectangleIiE8getRightEv(ptr noundef nonnull align 4 dereferenceable(16) %42) #5
  %44 = trunc i32 %43 to i16
  store i16 %44, ptr %16, align 2, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 2, ptr %17) #5
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = call noundef i32 @_ZNK4juce9RectangleIiE9getBottomEv(ptr noundef nonnull align 4 dereferenceable(16) %45) #5
  %47 = trunc i32 %46 to i16
  store i16 %47, ptr %17, align 2, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  %48 = load i16, ptr %14, align 2, !tbaa !13
  store i16 %48, ptr %18, align 2, !tbaa !13
  %49 = getelementptr inbounds i16, ptr %18, i64 1
  %50 = load i16, ptr %17, align 2, !tbaa !13
  store i16 %50, ptr %49, align 2, !tbaa !13
  %51 = getelementptr inbounds i16, ptr %18, i64 2
  %52 = load i16, ptr %16, align 2, !tbaa !13
  store i16 %52, ptr %51, align 2, !tbaa !13
  %53 = getelementptr inbounds i16, ptr %18, i64 3
  %54 = load i16, ptr %17, align 2, !tbaa !13
  store i16 %54, ptr %53, align 2, !tbaa !13
  %55 = getelementptr inbounds i16, ptr %18, i64 4
  %56 = load i16, ptr %14, align 2, !tbaa !13
  store i16 %56, ptr %55, align 2, !tbaa !13
  %57 = getelementptr inbounds i16, ptr %18, i64 5
  %58 = load i16, ptr %15, align 2, !tbaa !13
  store i16 %58, ptr %57, align 2, !tbaa !13
  %59 = getelementptr inbounds i16, ptr %18, i64 6
  %60 = load i16, ptr %16, align 2, !tbaa !13
  store i16 %60, ptr %59, align 2, !tbaa !13
  %61 = getelementptr inbounds i16, ptr %18, i64 7
  %62 = load i16, ptr %15, align 2, !tbaa !13
  store i16 %62, ptr %61, align 2, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %63 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZZN4juce13OpenGLContext11copyTextureERKNS_9RectangleIiEES4_iibEN20OverlayShaderProgram6selectERS0_(ptr noundef nonnull align 8 dereferenceable(491) %26)
          to label %64 unwind label %122

64:                                               ; preds = %35
  store ptr %63, ptr %19, align 8, !tbaa !5
  %65 = load ptr, ptr %19, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.OverlayShaderProgram, ptr %65, i32 0, i32 3
  %67 = load i32, ptr %10, align 4, !tbaa !9
  %68 = sitofp i32 %67 to float
  %69 = load i32, ptr %11, align 4, !tbaa !9
  %70 = sitofp i32 %69 to float
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #5
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZNK4juce9RectangleIiE7toFloatEv(ptr dead_on_unwind writable sret(%"class.juce::Rectangle.56") align 4 %22, ptr noundef nonnull align 4 dereferenceable(16) %71) #5
  %72 = load i8, ptr %12, align 1, !tbaa !11, !range !15, !noundef !16
  %73 = trunc i8 %72 to i1
  invoke void @_ZZN4juce13OpenGLContext11copyTextureERKNS_9RectangleIiEES4_iibENK20OverlayShaderProgram6Params3setEffRKNS1_IfEEb(ptr noundef nonnull align 8 dereferenceable(72) %66, float noundef %68, float noundef %70, ptr noundef nonnull align 4 dereferenceable(16) %22, i1 noundef zeroext %73)
          to label %74 unwind label %126

74:                                               ; preds = %64
  call void @_ZN4juce9RectangleIfED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %22) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  store i32 0, ptr %23, align 4, !tbaa !9
  %75 = getelementptr inbounds %"class.juce::OpenGLContext", ptr %26, i32 0, i32 0
  %76 = getelementptr inbounds %"struct.juce::OpenGLExtensionFunctions", ptr %75, i32 0, i32 3
  %77 = load ptr, ptr %76, align 8, !tbaa !17
  invoke void %77(i32 noundef 1, ptr noundef %23)
          to label %78 unwind label %130

78:                                               ; preds = %74
  %79 = getelementptr inbounds %"class.juce::OpenGLContext", ptr %26, i32 0, i32 0
  %80 = getelementptr inbounds %"struct.juce::OpenGLExtensionFunctions", ptr %79, i32 0, i32 1
  %81 = load ptr, ptr %80, align 8, !tbaa !25
  %82 = load i32, ptr %23, align 4, !tbaa !9
  invoke void %81(i32 noundef 34962, i32 noundef %82)
          to label %83 unwind label %130

83:                                               ; preds = %78
  %84 = getelementptr inbounds %"class.juce::OpenGLContext", ptr %26, i32 0, i32 0
  %85 = getelementptr inbounds %"struct.juce::OpenGLExtensionFunctions", ptr %84, i32 0, i32 4
  %86 = load ptr, ptr %85, align 8, !tbaa !26
  %87 = getelementptr inbounds [8 x i16], ptr %18, i64 0, i64 0
  invoke void %86(i32 noundef 34962, i64 noundef 16, ptr noundef %87, i32 noundef 35044)
          to label %88 unwind label %130

88:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  %89 = load ptr, ptr %19, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.OverlayShaderProgram, ptr %89, i32 0, i32 3
  %91 = getelementptr inbounds %"struct.juce::OpenGLContext::copyTexture(const Rectangle<int> &, const Rectangle<int> &, const int, const int, bool)::OverlayShaderProgram::Params", ptr %90, i32 0, i32 0
  %92 = getelementptr inbounds %"struct.juce::OpenGLShaderProgram::Attribute", ptr %91, i32 0, i32 0
  %93 = load i32, ptr %92, align 8, !tbaa !27
  store i32 %93, ptr %24, align 4, !tbaa !9
  %94 = getelementptr inbounds %"class.juce::OpenGLContext", ptr %26, i32 0, i32 0
  %95 = getelementptr inbounds %"struct.juce::OpenGLExtensionFunctions", ptr %94, i32 0, i32 21
  %96 = load ptr, ptr %95, align 8, !tbaa !38
  %97 = load i32, ptr %24, align 4, !tbaa !9
  invoke void %96(i32 noundef %97, i32 noundef 2, i32 noundef 5122, i8 noundef zeroext 0, i32 noundef 4, ptr noundef null)
          to label %98 unwind label %134

98:                                               ; preds = %88
  %99 = getelementptr inbounds %"class.juce::OpenGLContext", ptr %26, i32 0, i32 0
  %100 = getelementptr inbounds %"struct.juce::OpenGLExtensionFunctions", ptr %99, i32 0, i32 22
  %101 = load ptr, ptr %100, align 8, !tbaa !39
  %102 = load i32, ptr %24, align 4, !tbaa !9
  invoke void %101(i32 noundef %102)
          to label %103 unwind label %134

103:                                              ; preds = %98
  invoke void @glDrawArrays(i32 noundef 5, i32 noundef 0, i32 noundef 4)
          to label %104 unwind label %134

104:                                              ; preds = %103
  %105 = getelementptr inbounds %"class.juce::OpenGLContext", ptr %26, i32 0, i32 0
  %106 = getelementptr inbounds %"struct.juce::OpenGLExtensionFunctions", ptr %105, i32 0, i32 1
  %107 = load ptr, ptr %106, align 8, !tbaa !25
  invoke void %107(i32 noundef 34962, i32 noundef 0)
          to label %108 unwind label %134

108:                                              ; preds = %104
  %109 = getelementptr inbounds %"class.juce::OpenGLContext", ptr %26, i32 0, i32 0
  %110 = getelementptr inbounds %"struct.juce::OpenGLExtensionFunctions", ptr %109, i32 0, i32 14
  %111 = load ptr, ptr %110, align 8, !tbaa !40
  invoke void %111(i32 noundef 0)
          to label %112 unwind label %134

112:                                              ; preds = %108
  %113 = getelementptr inbounds %"class.juce::OpenGLContext", ptr %26, i32 0, i32 0
  %114 = getelementptr inbounds %"struct.juce::OpenGLExtensionFunctions", ptr %113, i32 0, i32 23
  %115 = load ptr, ptr %114, align 8, !tbaa !41
  %116 = load i32, ptr %24, align 4, !tbaa !9
  invoke void %115(i32 noundef %116)
          to label %117 unwind label %134

117:                                              ; preds = %112
  %118 = getelementptr inbounds %"class.juce::OpenGLContext", ptr %26, i32 0, i32 0
  %119 = getelementptr inbounds %"struct.juce::OpenGLExtensionFunctions", ptr %118, i32 0, i32 2
  %120 = load ptr, ptr %119, align 8, !tbaa !42
  invoke void %120(i32 noundef 1, ptr noundef %23)
          to label %121 unwind label %134

121:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %14) #5
  br label %144

122:                                              ; preds = %35
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %20, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %21, align 4
  br label %139

126:                                              ; preds = %64
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %20, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %21, align 4
  call void @_ZN4juce9RectangleIfED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %22) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  br label %139

130:                                              ; preds = %83, %78, %74
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %20, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %21, align 4
  br label %138

134:                                              ; preds = %117, %112, %108, %104, %103, %98, %88
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %20, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %138

138:                                              ; preds = %134, %130
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %139

139:                                              ; preds = %138, %126, %122
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %14) #5
  call void @_ZN4juce17DepthTestDisablerD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  br label %146

140:                                              ; preds = %33
  br label %141

141:                                              ; preds = %140
  br label %142

142:                                              ; preds = %141
  br label %143

143:                                              ; preds = %142
  br label %144

144:                                              ; preds = %143, %121
  call void @_ZN4juce17DepthTestDisablerD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  br label %145

145:                                              ; preds = %144, %32
  ret void

146:                                              ; preds = %139
  %147 = load ptr, ptr %20, align 8
  %148 = load i32, ptr %21, align 4
  %149 = insertvalue { ptr, i32 } poison, ptr %147, 0
  %150 = insertvalue { ptr, i32 } %149, i32 %148, 1
  resume { ptr, i32 } %150
}

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

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

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

declare void @glBlendFunc(i32 noundef, i32 noundef) #1

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef nonnull align 8 dereferenceable(120) ptr @_ZZN4juce13OpenGLContext11copyTextureERKNS_9RectangleIiEES4_iibEN20OverlayShaderProgram6selectERS0_(ptr noundef nonnull align 8 dereferenceable(491)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZZN4juce13OpenGLContext11copyTextureERKNS_9RectangleIiEES4_iibENK20OverlayShaderProgram6Params3setEffRKNS1_IfEEb(ptr noundef nonnull align 8 dereferenceable(72), float noundef, float noundef, ptr noundef nonnull align 4 dereferenceable(16), i1 noundef zeroext) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce9RectangleIiE7toFloatEv(ptr dead_on_unwind noalias writable sret(%"class.juce::Rectangle.56") align 4, ptr noundef nonnull align 4 dereferenceable(16)) #4 align 2

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

declare void @glDrawArrays(i32 noundef, i32 noundef, i32 noundef) #1

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 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 = { 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 #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 = { 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, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !6, i64 24}
!18 = !{!"_ZTSN4juce13OpenGLContextE", !19, i64 0, !6, i64 384, !6, i64 392, !20, i64 400, !21, i64 408, !22, i64 416, !6, i64 464, !23, i64 472, !24, i64 480, !12, i64 488, !12, i64 489, !12, i64 490}
!19 = !{!"_ZTSN4juce24OpenGLExtensionFunctionsE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368, !6, i64 376}
!20 = !{!"double", !7, i64 0}
!21 = !{!"_ZTSN4juce13ScopedPointerINS_13OpenGLContext10AttachmentEEE", !6, i64 0}
!22 = !{!"_ZTSN4juce17OpenGLPixelFormatE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !7, i64 40}
!23 = !{!"_ZTSN4juce13OpenGLContext13OpenGLVersionE", !7, i64 0}
!24 = !{!"long", !7, i64 0}
!25 = !{!18, !6, i64 8}
!26 = !{!18, !6, i64 32}
!27 = !{!28, !10, i64 48}
!28 = !{!"_ZTSZN4juce13OpenGLContext11copyTextureERKNS_9RectangleIiEES4_iibE20OverlayShaderProgram", !29, i64 0, !31, i64 16, !34, i64 40, !35, i64 48}
!29 = !{!"_ZTSN4juce22ReferenceCountedObjectE", !30, i64 8}
!30 = !{!"_ZTSN4juce6AtomicIiEE", !10, i64 0}
!31 = !{!"_ZTSN4juce19OpenGLShaderProgramE", !6, i64 0, !10, i64 8, !32, i64 16}
!32 = !{!"_ZTSN4juce6StringE", !33, i64 0}
!33 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!34 = !{!"_ZTSZN4juce13OpenGLContext11copyTextureERKNS_9RectangleIiEES4_iibEN20OverlayShaderProgram14ProgramBuilderE"}
!35 = !{!"_ZTSZN4juce13OpenGLContext11copyTextureERKNS_9RectangleIiEES4_iibEN20OverlayShaderProgram6ParamsE", !36, i64 0, !37, i64 8, !37, i64 24, !37, i64 40, !37, i64 56}
!36 = !{!"_ZTSN4juce19OpenGLShaderProgram9AttributeE", !10, i64 0}
!37 = !{!"_ZTSN4juce19OpenGLShaderProgram7UniformE", !10, i64 0, !6, i64 8}
!38 = !{!18, !6, i64 168}
!39 = !{!18, !6, i64 176}
!40 = !{!18, !6, i64 112}
!41 = !{!18, !6, i64 184}
!42 = !{!18, !6, i64 16}


; 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.juce::DepthTestDisabler" = type { i8 }
%"class.juce::Rectangle.56" = type { %"class.juce::Point.57", float, float }
%"class.juce::Point.57" = type { float, float }

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 void @glEnable(i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce13OpenGLContext11copyTextureERKNS_9RectangleIiEES4_iib(ptr noundef nonnull align 8 dereferenceable(491) %0, ptr noundef nonnull align 4 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(16) %2, i32 noundef %3, i32 noundef %4, i1 noundef zeroext %5) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"struct.juce::DepthTestDisabler", align 1
  %8 = alloca [8 x i16], align 16
  %9 = alloca %"class.juce::Rectangle.56", align 4
  %10 = alloca i32, align 4
  %11 = icmp slt i32 %3, 1
  %12 = icmp slt i32 %4, 1
  %or.cond = or i1 %11, %12
  br i1 %or.cond, label %74, label %13

13:                                               ; preds = %6
  tail call void @glBlendFunc(i32 noundef 1, i32 noundef 771)
  tail call void @glEnable(i32 noundef 3042)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #5
  call void @_ZN4juce17DepthTestDisablerC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  %14 = call noundef zeroext i1 @_ZNK4juce13OpenGLContext19areShadersAvailableEv(ptr noundef nonnull align 8 dereferenceable(491) %0)
  br i1 %14, label %15, label %73

15:                                               ; preds = %13
  %16 = call noundef i32 @_ZNK4juce9RectangleIiE4getXEv(ptr noundef nonnull align 4 dereferenceable(16) %1) #5
  %17 = trunc i32 %16 to i16
  %18 = call noundef i32 @_ZNK4juce9RectangleIiE4getYEv(ptr noundef nonnull align 4 dereferenceable(16) %1) #5
  %19 = trunc i32 %18 to i16
  %20 = call noundef i32 @_ZNK4juce9RectangleIiE8getRightEv(ptr noundef nonnull align 4 dereferenceable(16) %1) #5
  %21 = trunc i32 %20 to i16
  %22 = call noundef i32 @_ZNK4juce9RectangleIiE9getBottomEv(ptr noundef nonnull align 4 dereferenceable(16) %1) #5
  %23 = trunc i32 %22 to i16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #5
  store i16 %17, ptr %8, align 16, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %8, i64 2
  store i16 %23, ptr %24, align 2, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %8, i64 4
  store i16 %21, ptr %25, align 4, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %8, i64 6
  store i16 %23, ptr %26, align 2, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %8, i64 8
  store i16 %17, ptr %27, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %8, i64 10
  store i16 %19, ptr %28, align 2, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %8, i64 12
  store i16 %21, ptr %29, align 4, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %8, i64 14
  store i16 %19, ptr %30, align 2, !tbaa !5
  %31 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZZN4juce13OpenGLContext11copyTextureERKNS_9RectangleIiEES4_iibEN20OverlayShaderProgram6selectERS0_(ptr noundef nonnull align 8 dereferenceable(491) %0)
          to label %32 unwind label %65

32:                                               ; preds = %15
  %33 = getelementptr inbounds i8, ptr %31, i64 48
  %34 = uitofp nneg i32 %3 to float
  %35 = uitofp nneg i32 %4 to float
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #5
  call void @_ZNK4juce9RectangleIiE7toFloatEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle.56") align 4 %9, ptr noundef nonnull align 4 dereferenceable(16) %2) #5
  call void @_ZZN4juce13OpenGLContext11copyTextureERKNS_9RectangleIiEES4_iibENK20OverlayShaderProgram6Params3setEffRKNS1_IfEEb(ptr noundef nonnull align 8 dereferenceable(72) %33, float noundef %34, float noundef %35, ptr noundef nonnull align 4 dereferenceable(16) %9, i1 noundef zeroext %5)
  call void @_ZN4juce9RectangleIfED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  %36 = getelementptr inbounds i8, ptr %0, i64 24
  %37 = load ptr, ptr %36, align 8, !tbaa !11
  invoke void %37(i32 noundef 1, ptr noundef nonnull %10)
          to label %38 unwind label %67

38:                                               ; preds = %32
  %39 = getelementptr inbounds i8, ptr %0, i64 8
  %40 = load ptr, ptr %39, align 8, !tbaa !21
  %41 = load i32, ptr %10, align 4, !tbaa !9
  invoke void %40(i32 noundef 34962, i32 noundef %41)
          to label %42 unwind label %67

42:                                               ; preds = %38
  %43 = getelementptr inbounds i8, ptr %0, i64 32
  %44 = load ptr, ptr %43, align 8, !tbaa !22
  invoke void %44(i32 noundef 34962, i64 noundef 16, ptr noundef nonnull %8, i32 noundef 35044)
          to label %45 unwind label %67

45:                                               ; preds = %42
  %46 = load i32, ptr %33, align 8, !tbaa !23
  %47 = getelementptr inbounds i8, ptr %0, i64 168
  %48 = load ptr, ptr %47, align 8, !tbaa !34
  invoke void %48(i32 noundef %46, i32 noundef 2, i32 noundef 5122, i8 noundef zeroext 0, i32 noundef 4, ptr noundef null)
          to label %49 unwind label %69

49:                                               ; preds = %45
  %50 = getelementptr inbounds i8, ptr %0, i64 176
  %51 = load ptr, ptr %50, align 8, !tbaa !35
  invoke void %51(i32 noundef %46)
          to label %52 unwind label %69

52:                                               ; preds = %49
  invoke void @glDrawArrays(i32 noundef 5, i32 noundef 0, i32 noundef 4)
          to label %53 unwind label %69

53:                                               ; preds = %52
  %54 = load ptr, ptr %39, align 8, !tbaa !21
  invoke void %54(i32 noundef 34962, i32 noundef 0)
          to label %55 unwind label %69

55:                                               ; preds = %53
  %56 = getelementptr inbounds i8, ptr %0, i64 112
  %57 = load ptr, ptr %56, align 8, !tbaa !36
  invoke void %57(i32 noundef 0)
          to label %58 unwind label %69

58:                                               ; preds = %55
  %59 = getelementptr inbounds i8, ptr %0, i64 184
  %60 = load ptr, ptr %59, align 8, !tbaa !37
  invoke void %60(i32 noundef %46)
          to label %61 unwind label %69

61:                                               ; preds = %58
  %62 = getelementptr inbounds i8, ptr %0, i64 16
  %63 = load ptr, ptr %62, align 8, !tbaa !38
  invoke void %63(i32 noundef 1, ptr noundef nonnull %10)
          to label %64 unwind label %69

64:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  br label %73

65:                                               ; preds = %15
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %72

67:                                               ; preds = %42, %38, %32
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %71

69:                                               ; preds = %61, %58, %55, %53, %52, %49, %45
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %71

71:                                               ; preds = %69, %67
  %.pn = phi { ptr, i32 } [ %70, %69 ], [ %68, %67 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  br label %72

72:                                               ; preds = %71, %65
  %.pn.pn = phi { ptr, i32 } [ %.pn, %71 ], [ %66, %65 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  call void @_ZN4juce17DepthTestDisablerD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  resume { ptr, i32 } %.pn.pn

73:                                               ; preds = %13, %64
  call void @_ZN4juce17DepthTestDisablerD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  br label %74

74:                                               ; preds = %6, %73
  ret void
}

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

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

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

declare void @glBlendFunc(i32 noundef, i32 noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef nonnull align 8 dereferenceable(120) ptr @_ZZN4juce13OpenGLContext11copyTextureERKNS_9RectangleIiEES4_iibEN20OverlayShaderProgram6selectERS0_(ptr noundef nonnull align 8 dereferenceable(491)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZZN4juce13OpenGLContext11copyTextureERKNS_9RectangleIiEES4_iibENK20OverlayShaderProgram6Params3setEffRKNS1_IfEEb(ptr noundef nonnull align 8 dereferenceable(72), float noundef, float noundef, ptr noundef nonnull align 4 dereferenceable(16), i1 noundef zeroext) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce9RectangleIiE7toFloatEv(ptr dead_on_unwind noalias writable sret(%"class.juce::Rectangle.56") align 4, ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #4 align 2

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

declare void @glDrawArrays(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 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 = { 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 #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 = { 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 = !{!"short", !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, !14, i64 24}
!12 = !{!"_ZTSN4juce13OpenGLContextE", !13, i64 0, !14, i64 384, !14, i64 392, !15, i64 400, !16, i64 408, !17, i64 416, !14, i64 464, !18, i64 472, !19, i64 480, !20, i64 488, !20, i64 489, !20, i64 490}
!13 = !{!"_ZTSN4juce24OpenGLExtensionFunctionsE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !14, i64 72, !14, i64 80, !14, i64 88, !14, i64 96, !14, i64 104, !14, i64 112, !14, i64 120, !14, i64 128, !14, i64 136, !14, i64 144, !14, i64 152, !14, i64 160, !14, i64 168, !14, i64 176, !14, i64 184, !14, i64 192, !14, i64 200, !14, i64 208, !14, i64 216, !14, i64 224, !14, i64 232, !14, i64 240, !14, i64 248, !14, i64 256, !14, i64 264, !14, i64 272, !14, i64 280, !14, i64 288, !14, i64 296, !14, i64 304, !14, i64 312, !14, i64 320, !14, i64 328, !14, i64 336, !14, i64 344, !14, i64 352, !14, i64 360, !14, i64 368, !14, i64 376}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = !{!"_ZTSN4juce13ScopedPointerINS_13OpenGLContext10AttachmentEEE", !14, i64 0}
!17 = !{!"_ZTSN4juce17OpenGLPixelFormatE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !7, i64 40}
!18 = !{!"_ZTSN4juce13OpenGLContext13OpenGLVersionE", !7, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!"bool", !7, i64 0}
!21 = !{!12, !14, i64 8}
!22 = !{!12, !14, i64 32}
!23 = !{!24, !10, i64 48}
!24 = !{!"_ZTSZN4juce13OpenGLContext11copyTextureERKNS_9RectangleIiEES4_iibE20OverlayShaderProgram", !25, i64 0, !27, i64 16, !30, i64 40, !31, i64 48}
!25 = !{!"_ZTSN4juce22ReferenceCountedObjectE", !26, i64 8}
!26 = !{!"_ZTSN4juce6AtomicIiEE", !10, i64 0}
!27 = !{!"_ZTSN4juce19OpenGLShaderProgramE", !14, i64 0, !10, i64 8, !28, i64 16}
!28 = !{!"_ZTSN4juce6StringE", !29, i64 0}
!29 = !{!"_ZTSN4juce16CharPointer_UTF8E", !14, i64 0}
!30 = !{!"_ZTSZN4juce13OpenGLContext11copyTextureERKNS_9RectangleIiEES4_iibEN20OverlayShaderProgram14ProgramBuilderE"}
!31 = !{!"_ZTSZN4juce13OpenGLContext11copyTextureERKNS_9RectangleIiEES4_iibEN20OverlayShaderProgram6ParamsE", !32, i64 0, !33, i64 8, !33, i64 24, !33, i64 40, !33, i64 56}
!32 = !{!"_ZTSN4juce19OpenGLShaderProgram9AttributeE", !10, i64 0}
!33 = !{!"_ZTSN4juce19OpenGLShaderProgram7UniformE", !10, i64 0, !14, i64 8}
!34 = !{!12, !14, i64 168}
!35 = !{!12, !14, i64 176}
!36 = !{!12, !14, i64 112}
!37 = !{!12, !14, i64 184}
!38 = !{!12, !14, i64 16}


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