; LLVM IR from modlfo/AudioEngine :: AudioEngine/JuceLibraryCode (juce_gui_basics)

; 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.juce::ModifierKeys" = type { i32 }
%"class.juce::KeyPress" = type { i32, %"class.juce::ModifierKeys", i32 }
%"class.juce::ListBox" = type { %"class.juce::Component.base", %"class.juce::SettableTooltipClient", ptr, %"class.juce::ScopedPointer.286", %"class.juce::ScopedPointer.159", %"class.juce::ScopedPointer.287", i32, i32, i32, i32, i32, i8, i8, i8, i8, %"class.juce::SparseSet" }
%"class.juce::Component.base" = type <{ %"class.juce::MouseListener", %"class.juce::String", %"class.juce::String", ptr, %"class.juce::Rectangle", %"class.juce::ScopedPointer", %"class.juce::ScopedPointer.0", %"class.juce::Array", ptr, %"class.juce::MouseCursor", ptr, %"class.juce::ScopedPointer.1", %"class.juce::ScopedPointer.2", %"class.juce::ScopedPointer.3", %"class.juce::ListenerList", %"class.juce::NamedValueSet", %"class.juce::WeakReference<juce::Component>::Master", %union.anon, i8 }>
%"class.juce::MouseListener" = type { ptr }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::Point" = type { i32, i32 }
%"class.juce::ScopedPointer" = type { ptr }
%"class.juce::ScopedPointer.0" = type { ptr }
%"class.juce::Array" = type { %"class.juce::ArrayAllocationBase", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase" = type <{ %"class.juce::HeapBlock", i32, [4 x i8] }>
%"class.juce::HeapBlock" = type { ptr }
%"class.juce::MouseCursor" = type { ptr }
%"class.juce::ScopedPointer.1" = type { ptr }
%"class.juce::ScopedPointer.2" = type { ptr }
%"class.juce::ScopedPointer.3" = type { ptr }
%"class.juce::ListenerList" = type { %"class.juce::Array.4" }
%"class.juce::Array.4" = type { %"class.juce::ArrayAllocationBase.5", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.5" = type <{ %"class.juce::HeapBlock.6", i32, [4 x i8] }>
%"class.juce::HeapBlock.6" = type { ptr }
%"class.juce::NamedValueSet" = type { %"class.juce::Array.9" }
%"class.juce::Array.9" = type { %"class.juce::ArrayAllocationBase.10", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.10" = type <{ %"class.juce::HeapBlock.11", i32, [4 x i8] }>
%"class.juce::HeapBlock.11" = type { ptr }
%"class.juce::WeakReference<juce::Component>::Master" = type { %"class.juce::ReferenceCountedObjectPtr" }
%"class.juce::ReferenceCountedObjectPtr" = type { ptr }
%union.anon = type { i32 }
%"class.juce::SettableTooltipClient" = type { %"class.juce::TooltipClient", %"class.juce::String" }
%"class.juce::TooltipClient" = type { ptr }
%"class.juce::ScopedPointer.286" = type { ptr }
%"class.juce::ScopedPointer.159" = type { ptr }
%"class.juce::ScopedPointer.287" = type { ptr }
%"class.juce::SparseSet" = type { %"class.juce::Array.288" }
%"class.juce::Array.288" = type { %"class.juce::ArrayAllocationBase.289", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.289" = type <{ %"class.juce::HeapBlock.290", i32, [4 x i8] }>
%"class.juce::HeapBlock.290" = type { ptr }

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce8KeyPresseqERKS0_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce8KeyPress12getModifiersEv(ptr dead_on_unwind noalias writable sret(%"class.juce::ModifierKeys") align 4, ptr noundef nonnull align 4 dereferenceable(12)) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNSt14numeric_limitsIiE3maxEv() #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce7ListBox13isRowSelectedEi(ptr noundef nonnull align 8 dereferenceable(296), i32 noundef) #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4juce7ListBox10keyPressedERKNS_8KeyPressE(ptr noundef nonnull align 8 dereferenceable(296) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) unnamed_addr #3 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i8, align 1
  %8 = alloca %"class.juce::ModifierKeys", align 4
  %9 = alloca %"class.juce::KeyPress", align 4
  %10 = alloca %"class.juce::ModifierKeys", align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %12 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %13 = getelementptr inbounds %"class.juce::ListBox", ptr %12, i32 0, i32 3
  %14 = call noundef ptr @_ZNK4juce13ScopedPointerINS_7ListBox12ListViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #4
  %15 = call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %14) #4
  %16 = call noundef i32 @_ZNK4juce7ListBox12getRowHeightEv(ptr noundef nonnull align 8 dereferenceable(296) %12) #4
  %17 = sdiv i32 %15, %16
  store i32 %17, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #4
  %18 = getelementptr inbounds %"class.juce::ListBox", ptr %12, i32 0, i32 11
  %19 = load i8, ptr %18, align 4, !tbaa !11, !range !48, !noundef !49
  %20 = trunc i8 %19 to i1
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  br i1 %20, label %21, label %28

21:                                               ; preds = %2
  %22 = getelementptr inbounds %"class.juce::ListBox", ptr %12, i32 0, i32 10
  %23 = load i32, ptr %22, align 8, !tbaa !50
  %24 = icmp sge i32 %23, 0
  br i1 %24, label %25, label %28

25:                                               ; preds = %21
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK4juce8KeyPress12getModifiersEv(ptr dead_on_unwind writable sret(%"class.juce::ModifierKeys") align 4 %8, ptr noundef nonnull align 4 dereferenceable(12) %26) #4
  %27 = call noundef zeroext i1 @_ZNK4juce12ModifierKeys11isShiftDownEv(ptr noundef nonnull align 4 dereferenceable(4) %8) #4
  br label %28

28:                                               ; preds = %25, %21, %2
  %29 = phi i1 [ false, %21 ], [ false, %2 ], [ %27, %25 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  %30 = zext i1 %29 to i8
  store i8 %30, ptr %7, align 1, !tbaa !51
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = call noundef zeroext i1 @_ZNK4juce8KeyPress9isKeyCodeEi(ptr noundef nonnull align 4 dereferenceable(12) %31, i32 noundef 268435538) #4
  br i1 %32, label %33, label %48

33:                                               ; preds = %28
  %34 = load i8, ptr %7, align 1, !tbaa !51, !range !48, !noundef !49
  %35 = trunc i8 %34 to i1
  br i1 %35, label %36, label %42

36:                                               ; preds = %33
  %37 = getelementptr inbounds %"class.juce::ListBox", ptr %12, i32 0, i32 10
  %38 = load i32, ptr %37, align 8, !tbaa !50
  %39 = getelementptr inbounds %"class.juce::ListBox", ptr %12, i32 0, i32 10
  %40 = load i32, ptr %39, align 8, !tbaa !50
  %41 = sub nsw i32 %40, 1
  call void @_ZN4juce7ListBox17selectRangeOfRowsEiib(ptr noundef nonnull align 8 dereferenceable(296) %12, i32 noundef %38, i32 noundef %41, i1 noundef zeroext false)
  br label %47

42:                                               ; preds = %33
  %43 = getelementptr inbounds %"class.juce::ListBox", ptr %12, i32 0, i32 10
  %44 = load i32, ptr %43, align 8, !tbaa !50
  %45 = sub nsw i32 %44, 1
  %46 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %45)
  call void @_ZN4juce7ListBox9selectRowEibb(ptr noundef nonnull align 8 dereferenceable(296) %12, i32 noundef %46, i1 noundef zeroext false, i1 noundef zeroext true)
  br label %47

47:                                               ; preds = %42, %36
  br label %206

48:                                               ; preds = %28
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = call noundef zeroext i1 @_ZNK4juce8KeyPress9isKeyCodeEi(ptr noundef nonnull align 4 dereferenceable(12) %49, i32 noundef 268435540) #4
  br i1 %50, label %51, label %70

51:                                               ; preds = %48
  %52 = load i8, ptr %7, align 1, !tbaa !51, !range !48, !noundef !49
  %53 = trunc i8 %52 to i1
  br i1 %53, label %54, label %60

54:                                               ; preds = %51
  %55 = getelementptr inbounds %"class.juce::ListBox", ptr %12, i32 0, i32 10
  %56 = load i32, ptr %55, align 8, !tbaa !50
  %57 = getelementptr inbounds %"class.juce::ListBox", ptr %12, i32 0, i32 10
  %58 = load i32, ptr %57, align 8, !tbaa !50
  %59 = add nsw i32 %58, 1
  call void @_ZN4juce7ListBox17selectRangeOfRowsEiib(ptr noundef nonnull align 8 dereferenceable(296) %12, i32 noundef %56, i32 noundef %59, i1 noundef zeroext false)
  br label %69

60:                                               ; preds = %51
  %61 = getelementptr inbounds %"class.juce::ListBox", ptr %12, i32 0, i32 6
  %62 = load i32, ptr %61, align 8, !tbaa !52
  %63 = sub nsw i32 %62, 1
  %64 = getelementptr inbounds %"class.juce::ListBox", ptr %12, i32 0, i32 10
  %65 = load i32, ptr %64, align 8, !tbaa !50
  %66 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %65)
  %67 = add nsw i32 %66, 1
  %68 = call noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef %63, i32 noundef %67)
  call void @_ZN4juce7ListBox9selectRowEibb(ptr noundef nonnull align 8 dereferenceable(296) %12, i32 noundef %68, i1 noundef zeroext false, i1 noundef zeroext true)
  br label %69

69:                                               ; preds = %60, %54
  br label %205

70:                                               ; preds = %48
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = call noundef zeroext i1 @_ZNK4juce8KeyPress9isKeyCodeEi(ptr noundef nonnull align 4 dereferenceable(12) %71, i32 noundef 268435541) #4
  br i1 %72, label %73, label %91

73:                                               ; preds = %70
  %74 = load i8, ptr %7, align 1, !tbaa !51, !range !48, !noundef !49
  %75 = trunc i8 %74 to i1
  br i1 %75, label %76, label %83

76:                                               ; preds = %73
  %77 = getelementptr inbounds %"class.juce::ListBox", ptr %12, i32 0, i32 10
  %78 = load i32, ptr %77, align 8, !tbaa !50
  %79 = getelementptr inbounds %"class.juce::ListBox", ptr %12, i32 0, i32 10
  %80 = load i32, ptr %79, align 8, !tbaa !50
  %81 = load i32, ptr %6, align 4, !tbaa !9
  %82 = sub nsw i32 %80, %81
  call void @_ZN4juce7ListBox17selectRangeOfRowsEiib(ptr noundef nonnull align 8 dereferenceable(296) %12, i32 noundef %78, i32 noundef %82, i1 noundef zeroext false)
  br label %90

83:                                               ; preds = %73
  %84 = getelementptr inbounds %"class.juce::ListBox", ptr %12, i32 0, i32 10
  %85 = load i32, ptr %84, align 8, !tbaa !50
  %86 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %85)
  %87 = load i32, ptr %6, align 4, !tbaa !9
  %88 = sub nsw i32 %86, %87
  %89 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %88)
  call void @_ZN4juce7ListBox9selectRowEibb(ptr noundef nonnull align 8 dereferenceable(296) %12, i32 noundef %89, i1 noundef zeroext false, i1 noundef zeroext true)
  br label %90

90:                                               ; preds = %83, %76
  br label %204

91:                                               ; preds = %70
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = call noundef zeroext i1 @_ZNK4juce8KeyPress9isKeyCodeEi(ptr noundef nonnull align 4 dereferenceable(12) %92, i32 noundef 268435542) #4
  br i1 %93, label %94, label %115

94:                                               ; preds = %91
  %95 = load i8, ptr %7, align 1, !tbaa !51, !range !48, !noundef !49
  %96 = trunc i8 %95 to i1
  br i1 %96, label %97, label %104

97:                                               ; preds = %94
  %98 = getelementptr inbounds %"class.juce::ListBox", ptr %12, i32 0, i32 10
  %99 = load i32, ptr %98, align 8, !tbaa !50
  %100 = getelementptr inbounds %"class.juce::ListBox", ptr %12, i32 0, i32 10
  %101 = load i32, ptr %100, align 8, !tbaa !50
  %102 = load i32, ptr %6, align 4, !tbaa !9
  %103 = add nsw i32 %101, %102
  call void @_ZN4juce7ListBox17selectRangeOfRowsEiib(ptr noundef nonnull align 8 dereferenceable(296) %12, i32 noundef %99, i32 noundef %103, i1 noundef zeroext false)
  br label %114

104:                                              ; preds = %94
  %105 = getelementptr inbounds %"class.juce::ListBox", ptr %12, i32 0, i32 6
  %106 = load i32, ptr %105, align 8, !tbaa !52
  %107 = sub nsw i32 %106, 1
  %108 = getelementptr inbounds %"class.juce::ListBox", ptr %12, i32 0, i32 10
  %109 = load i32, ptr %108, align 8, !tbaa !50
  %110 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %109)
  %111 = load i32, ptr %6, align 4, !tbaa !9
  %112 = add nsw i32 %110, %111
  %113 = call noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef %107, i32 noundef %112)
  call void @_ZN4juce7ListBox9selectRowEibb(ptr noundef nonnull align 8 dereferenceable(296) %12, i32 noundef %113, i1 noundef zeroext false, i1 noundef zeroext true)
  br label %114

114:                                              ; preds = %104, %97
  br label %203

115:                                              ; preds = %91
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = call noundef zeroext i1 @_ZNK4juce8KeyPress9isKeyCodeEi(ptr noundef nonnull align 4 dereferenceable(12) %116, i32 noundef 268435536) #4
  br i1 %117, label %118, label %126

118:                                              ; preds = %115
  %119 = load i8, ptr %7, align 1, !tbaa !51, !range !48, !noundef !49
  %120 = trunc i8 %119 to i1
  br i1 %120, label %121, label %124

121:                                              ; preds = %118
  %122 = getelementptr inbounds %"class.juce::ListBox", ptr %12, i32 0, i32 10
  %123 = load i32, ptr %122, align 8, !tbaa !50
  call void @_ZN4juce7ListBox17selectRangeOfRowsEiib(ptr noundef nonnull align 8 dereferenceable(296) %12, i32 noundef %123, i32 noundef 0, i1 noundef zeroext false)
  br label %125

124:                                              ; preds = %118
  call void @_ZN4juce7ListBox9selectRowEibb(ptr noundef nonnull align 8 dereferenceable(296) %12, i32 noundef 0, i1 noundef zeroext false, i1 noundef zeroext true)
  br label %125

125:                                              ; preds = %124, %121
  br label %202

126:                                              ; preds = %115
  %127 = load ptr, ptr %5, align 8, !tbaa !5
  %128 = call noundef zeroext i1 @_ZNK4juce8KeyPress9isKeyCodeEi(ptr noundef nonnull align 4 dereferenceable(12) %127, i32 noundef 268435543) #4
  br i1 %128, label %129, label %143

129:                                              ; preds = %126
  %130 = load i8, ptr %7, align 1, !tbaa !51, !range !48, !noundef !49
  %131 = trunc i8 %130 to i1
  br i1 %131, label %132, label %138

132:                                              ; preds = %129
  %133 = getelementptr inbounds %"class.juce::ListBox", ptr %12, i32 0, i32 10
  %134 = load i32, ptr %133, align 8, !tbaa !50
  %135 = getelementptr inbounds %"class.juce::ListBox", ptr %12, i32 0, i32 6
  %136 = load i32, ptr %135, align 8, !tbaa !52
  %137 = sub nsw i32 %136, 1
  call void @_ZN4juce7ListBox17selectRangeOfRowsEiib(ptr noundef nonnull align 8 dereferenceable(296) %12, i32 noundef %134, i32 noundef %137, i1 noundef zeroext false)
  br label %142

138:                                              ; preds = %129
  %139 = getelementptr inbounds %"class.juce::ListBox", ptr %12, i32 0, i32 6
  %140 = load i32, ptr %139, align 8, !tbaa !52
  %141 = sub nsw i32 %140, 1
  call void @_ZN4juce7ListBox9selectRowEibb(ptr noundef nonnull align 8 dereferenceable(296) %12, i32 noundef %141, i1 noundef zeroext false, i1 noundef zeroext true)
  br label %142

142:                                              ; preds = %138, %132
  br label %201

143:                                              ; preds = %126
  %144 = load ptr, ptr %5, align 8, !tbaa !5
  %145 = call noundef zeroext i1 @_ZNK4juce8KeyPress9isKeyCodeEi(ptr noundef nonnull align 4 dereferenceable(12) %144, i32 noundef 13) #4
  br i1 %145, label %146, label %163

146:                                              ; preds = %143
  %147 = getelementptr inbounds %"class.juce::ListBox", ptr %12, i32 0, i32 10
  %148 = load i32, ptr %147, align 8, !tbaa !50
  %149 = call noundef zeroext i1 @_ZNK4juce7ListBox13isRowSelectedEi(ptr noundef nonnull align 8 dereferenceable(296) %12, i32 noundef %148)
  br i1 %149, label %150, label %163

150:                                              ; preds = %146
  %151 = getelementptr inbounds %"class.juce::ListBox", ptr %12, i32 0, i32 2
  %152 = load ptr, ptr %151, align 8, !tbaa !53
  %153 = icmp ne ptr %152, null
  br i1 %153, label %154, label %162

154:                                              ; preds = %150
  %155 = getelementptr inbounds %"class.juce::ListBox", ptr %12, i32 0, i32 2
  %156 = load ptr, ptr %155, align 8, !tbaa !53
  %157 = getelementptr inbounds %"class.juce::ListBox", ptr %12, i32 0, i32 10
  %158 = load i32, ptr %157, align 8, !tbaa !50
  %159 = load ptr, ptr %156, align 8, !tbaa !54
  %160 = getelementptr inbounds ptr, ptr %159, i64 10
  %161 = load ptr, ptr %160, align 8
  call void %161(ptr noundef nonnull align 8 dereferenceable(8) %156, i32 noundef %158)
  br label %162

162:                                              ; preds = %154, %150
  br label %200

163:                                              ; preds = %146, %143
  %164 = load ptr, ptr %5, align 8, !tbaa !5
  %165 = call noundef zeroext i1 @_ZNK4juce8KeyPress9isKeyCodeEi(ptr noundef nonnull align 4 dereferenceable(12) %164, i32 noundef 268435711) #4
  br i1 %165, label %169, label %166

166:                                              ; preds = %163
  %167 = load ptr, ptr %5, align 8, !tbaa !5
  %168 = call noundef zeroext i1 @_ZNK4juce8KeyPress9isKeyCodeEi(ptr noundef nonnull align 4 dereferenceable(12) %167, i32 noundef 8) #4
  br i1 %168, label %169, label %186

169:                                              ; preds = %166, %163
  %170 = getelementptr inbounds %"class.juce::ListBox", ptr %12, i32 0, i32 10
  %171 = load i32, ptr %170, align 8, !tbaa !50
  %172 = call noundef zeroext i1 @_ZNK4juce7ListBox13isRowSelectedEi(ptr noundef nonnull align 8 dereferenceable(296) %12, i32 noundef %171)
  br i1 %172, label %173, label %186

173:                                              ; preds = %169
  %174 = getelementptr inbounds %"class.juce::ListBox", ptr %12, i32 0, i32 2
  %175 = load ptr, ptr %174, align 8, !tbaa !53
  %176 = icmp ne ptr %175, null
  br i1 %176, label %177, label %185

177:                                              ; preds = %173
  %178 = getelementptr inbounds %"class.juce::ListBox", ptr %12, i32 0, i32 2
  %179 = load ptr, ptr %178, align 8, !tbaa !53
  %180 = getelementptr inbounds %"class.juce::ListBox", ptr %12, i32 0, i32 10
  %181 = load i32, ptr %180, align 8, !tbaa !50
  %182 = load ptr, ptr %179, align 8, !tbaa !54
  %183 = getelementptr inbounds ptr, ptr %182, i64 9
  %184 = load ptr, ptr %183, align 8
  call void %184(ptr noundef nonnull align 8 dereferenceable(8) %179, i32 noundef %181)
  br label %185

185:                                              ; preds = %177, %173
  br label %199

186:                                              ; preds = %169, %166
  %187 = getelementptr inbounds %"class.juce::ListBox", ptr %12, i32 0, i32 11
  %188 = load i8, ptr %187, align 4, !tbaa !11, !range !48, !noundef !49
  %189 = trunc i8 %188 to i1
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #4
  br i1 %189, label %190, label %193

190:                                              ; preds = %186
  %191 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4juce12ModifierKeysC1Ei(ptr noundef nonnull align 4 dereferenceable(4) %10, i32 noundef 2) #4
  call void @_ZN4juce8KeyPressC1EiNS_12ModifierKeysEw(ptr noundef nonnull align 4 dereferenceable(12) %9, i32 noundef 97, ptr noundef %10, i32 noundef signext 0) #4
  %192 = call noundef zeroext i1 @_ZNK4juce8KeyPresseqERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %191, ptr noundef nonnull align 4 dereferenceable(12) %9) #4
  br label %193

193:                                              ; preds = %190, %186
  %194 = phi i1 [ false, %186 ], [ %192, %190 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #4
  br i1 %194, label %195, label %197

195:                                              ; preds = %193
  %196 = call noundef i32 @_ZNSt14numeric_limitsIiE3maxEv() #4
  call void @_ZN4juce7ListBox17selectRangeOfRowsEiib(ptr noundef nonnull align 8 dereferenceable(296) %12, i32 noundef 0, i32 noundef %196, i1 noundef zeroext false)
  br label %198

197:                                              ; preds = %193
  store i1 false, ptr %3, align 1
  store i32 1, ptr %11, align 4
  br label %207

198:                                              ; preds = %195
  br label %199

199:                                              ; preds = %198, %185
  br label %200

200:                                              ; preds = %199, %162
  br label %201

201:                                              ; preds = %200, %142
  br label %202

202:                                              ; preds = %201, %125
  br label %203

203:                                              ; preds = %202, %114
  br label %204

204:                                              ; preds = %203, %90
  br label %205

205:                                              ; preds = %204, %69
  br label %206

206:                                              ; preds = %205, %47
  store i1 true, ptr %3, align 1
  store i32 1, ptr %11, align 4
  br label %207

207:                                              ; preds = %206, %197
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  %208 = load i1, ptr %3, align 1
  ret i1 %208
}

declare void @_ZN4juce8KeyPressC1EiNS_12ModifierKeysEw(ptr, i32, ptr, i32)

declare void @_ZN4juce12ModifierKeysC1Ei(ptr, i32)

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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, !43, i64 268}
!12 = !{!"_ZTSN4juce7ListBoxE", !13, i64 0, !38, i64 200, !6, i64 216, !40, i64 224, !41, i64 232, !42, i64 240, !10, i64 248, !10, i64 252, !10, i64 256, !10, i64 260, !10, i64 264, !43, i64 268, !43, i64 269, !43, i64 270, !43, i64 271, !44, i64 272}
!13 = !{!"_ZTSN4juce9ComponentE", !14, i64 0, !15, i64 8, !15, i64 16, !6, i64 24, !17, i64 32, !19, i64 48, !20, i64 56, !21, i64 64, !6, i64 88, !24, i64 96, !6, i64 104, !25, i64 112, !26, i64 120, !27, i64 128, !28, i64 136, !32, i64 160, !36, i64 184, !7, i64 192, !7, i64 196}
!14 = !{!"_ZTSN4juce13MouseListenerE"}
!15 = !{!"_ZTSN4juce6StringE", !16, i64 0}
!16 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!17 = !{!"_ZTSN4juce9RectangleIiEE", !18, i64 0, !10, i64 8, !10, i64 12}
!18 = !{!"_ZTSN4juce5PointIiEE", !10, i64 0, !10, i64 4}
!19 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !6, i64 0}
!20 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !6, i64 0}
!21 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !22, i64 0, !10, i64 16}
!22 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !23, i64 0, !10, i64 8}
!23 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !6, i64 0}
!24 = !{!"_ZTSN4juce11MouseCursorE", !6, i64 0}
!25 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !6, i64 0}
!26 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !6, i64 0}
!27 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !6, i64 0}
!28 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !29, i64 0}
!29 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !30, i64 0, !10, i64 16}
!30 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !31, i64 0, !10, i64 8}
!31 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !6, i64 0}
!32 = !{!"_ZTSN4juce13NamedValueSetE", !33, i64 0}
!33 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !34, i64 0, !10, i64 16}
!34 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !35, i64 0, !10, i64 8}
!35 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !6, i64 0}
!36 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !37, i64 0}
!37 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !6, i64 0}
!38 = !{!"_ZTSN4juce21SettableTooltipClientE", !39, i64 0, !15, i64 8}
!39 = !{!"_ZTSN4juce13TooltipClientE"}
!40 = !{!"_ZTSN4juce13ScopedPointerINS_7ListBox12ListViewportEEE", !6, i64 0}
!41 = !{!"_ZTSN4juce13ScopedPointerINS_9ComponentEEE", !6, i64 0}
!42 = !{!"_ZTSN4juce13ScopedPointerINS_13MouseListenerEEE", !6, i64 0}
!43 = !{!"bool", !7, i64 0}
!44 = !{!"_ZTSN4juce9SparseSetIiEE", !45, i64 0}
!45 = !{!"_ZTSN4juce5ArrayIiNS_20DummyCriticalSectionELi0EEE", !46, i64 0, !10, i64 16}
!46 = !{!"_ZTSN4juce19ArrayAllocationBaseIiNS_20DummyCriticalSectionEEE", !47, i64 0, !10, i64 8}
!47 = !{!"_ZTSN4juce9HeapBlockIiLb0EEE", !6, i64 0}
!48 = !{i8 0, i8 2}
!49 = !{}
!50 = !{!12, !10, i64 264}
!51 = !{!43, !43, i64 0}
!52 = !{!12, !10, i64 248}
!53 = !{!12, !6, i64 216}
!54 = !{!55, !55, i64 0}
!55 = !{!"vtable pointer", !8, i64 0}


; 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.juce::ModifierKeys" = type { i32 }
%"class.juce::KeyPress" = type { i32, %"class.juce::ModifierKeys", 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 nounwind uwtable
declare dso_local noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef, i32 noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce8KeyPresseqERKS0_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce7ListBox9selectRowEibb(ptr noundef nonnull align 8 dereferenceable(296), i32 noundef, i1 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNSt14numeric_limitsIiE3maxEv() local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce7ListBox13isRowSelectedEi(ptr noundef nonnull align 8 dereferenceable(296), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce7ListBox17selectRangeOfRowsEiib(ptr noundef nonnull align 8 dereferenceable(296), i32 noundef, i32 noundef, i1 noundef zeroext) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4juce7ListBox10keyPressedERKNS_8KeyPressE(ptr noundef nonnull align 8 dereferenceable(296) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) unnamed_addr #3 align 2 {
  %3 = alloca %"class.juce::ModifierKeys", align 4
  %4 = alloca %"class.juce::KeyPress", align 4
  %5 = alloca %"class.juce::ModifierKeys", align 4
  %6 = getelementptr inbounds i8, ptr %0, i64 224
  %7 = tail call noundef ptr @_ZNK4juce13ScopedPointerINS_7ListBox12ListViewportEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  %8 = tail call noundef i32 @_ZNK4juce9Component9getHeightEv(ptr noundef nonnull align 8 dereferenceable(197) %7) #4
  %9 = tail call noundef i32 @_ZNK4juce7ListBox12getRowHeightEv(ptr noundef nonnull align 8 dereferenceable(296) %0) #4
  %10 = sdiv i32 %8, %9
  %11 = getelementptr inbounds i8, ptr %0, i64 268
  %12 = load i8, ptr %11, align 4, !tbaa !5, !range !46, !noundef !47
  %13 = trunc nuw i8 %12 to i1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  %14 = getelementptr inbounds i8, ptr %0, i64 264
  %15 = load i32, ptr %14, align 8
  %16 = icmp sgt i32 %15, -1
  %or.cond = select i1 %13, i1 %16, i1 false
  br i1 %or.cond, label %17, label %.thread

17:                                               ; preds = %2
  call void @_ZNK4juce8KeyPress12getModifiersEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::ModifierKeys") align 4 %3, ptr noundef nonnull align 4 dereferenceable(12) %1) #4
  %18 = call noundef zeroext i1 @_ZNK4juce12ModifierKeys11isShiftDownEv(ptr noundef nonnull align 4 dereferenceable(4) %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  %19 = call noundef zeroext i1 @_ZNK4juce8KeyPress9isKeyCodeEi(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 268435538) #4
  br i1 %19, label %21, label %28

.thread:                                          ; preds = %2
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  %20 = tail call noundef zeroext i1 @_ZNK4juce8KeyPress9isKeyCodeEi(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 268435538) #4
  br i1 %20, label %.thread27, label %.thread28

21:                                               ; preds = %17
  br i1 %18, label %22, label %.thread27

22:                                               ; preds = %21
  %23 = load i32, ptr %14, align 8, !tbaa !48
  %24 = add nsw i32 %23, -1
  call void @_ZN4juce7ListBox17selectRangeOfRowsEiib(ptr noundef nonnull align 8 dereferenceable(296) %0, i32 noundef %23, i32 noundef %24, i1 noundef zeroext false)
  br label %120

.thread27:                                        ; preds = %.thread, %21
  %25 = load i32, ptr %14, align 8, !tbaa !48
  %26 = add nsw i32 %25, -1
  %27 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %26)
  call void @_ZN4juce7ListBox9selectRowEibb(ptr noundef nonnull align 8 dereferenceable(296) %0, i32 noundef %27, i1 noundef zeroext false, i1 noundef zeroext true)
  br label %120

28:                                               ; preds = %17
  %29 = call noundef zeroext i1 @_ZNK4juce8KeyPress9isKeyCodeEi(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 268435540) #4
  br i1 %29, label %31, label %42

.thread28:                                        ; preds = %.thread
  %30 = tail call noundef zeroext i1 @_ZNK4juce8KeyPress9isKeyCodeEi(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 268435540) #4
  br i1 %30, label %.thread29, label %.thread30

31:                                               ; preds = %28
  br i1 %18, label %32, label %.thread29

32:                                               ; preds = %31
  %33 = load i32, ptr %14, align 8, !tbaa !48
  %34 = add nsw i32 %33, 1
  call void @_ZN4juce7ListBox17selectRangeOfRowsEiib(ptr noundef nonnull align 8 dereferenceable(296) %0, i32 noundef %33, i32 noundef %34, i1 noundef zeroext false)
  br label %120

.thread29:                                        ; preds = %.thread28, %31
  %35 = getelementptr inbounds i8, ptr %0, i64 248
  %36 = load i32, ptr %35, align 8, !tbaa !49
  %37 = add nsw i32 %36, -1
  %38 = load i32, ptr %14, align 8, !tbaa !48
  %39 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %38)
  %40 = add nsw i32 %39, 1
  %41 = call noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef %37, i32 noundef %40)
  call void @_ZN4juce7ListBox9selectRowEibb(ptr noundef nonnull align 8 dereferenceable(296) %0, i32 noundef %41, i1 noundef zeroext false, i1 noundef zeroext true)
  br label %120

42:                                               ; preds = %28
  %43 = call noundef zeroext i1 @_ZNK4juce8KeyPress9isKeyCodeEi(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 268435541) #4
  br i1 %43, label %45, label %53

.thread30:                                        ; preds = %.thread28
  %44 = tail call noundef zeroext i1 @_ZNK4juce8KeyPress9isKeyCodeEi(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 268435541) #4
  br i1 %44, label %.thread31, label %.thread32

45:                                               ; preds = %42
  br i1 %18, label %46, label %.thread31

46:                                               ; preds = %45
  %47 = load i32, ptr %14, align 8, !tbaa !48
  %48 = sub nsw i32 %47, %10
  call void @_ZN4juce7ListBox17selectRangeOfRowsEiib(ptr noundef nonnull align 8 dereferenceable(296) %0, i32 noundef %47, i32 noundef %48, i1 noundef zeroext false)
  br label %120

.thread31:                                        ; preds = %.thread30, %45
  %49 = load i32, ptr %14, align 8, !tbaa !48
  %50 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %49)
  %51 = sub nsw i32 %50, %10
  %52 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %51)
  call void @_ZN4juce7ListBox9selectRowEibb(ptr noundef nonnull align 8 dereferenceable(296) %0, i32 noundef %52, i1 noundef zeroext false, i1 noundef zeroext true)
  br label %120

53:                                               ; preds = %42
  %54 = call noundef zeroext i1 @_ZNK4juce8KeyPress9isKeyCodeEi(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 268435542) #4
  br i1 %54, label %56, label %67

.thread32:                                        ; preds = %.thread30
  %55 = tail call noundef zeroext i1 @_ZNK4juce8KeyPress9isKeyCodeEi(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 268435542) #4
  br i1 %55, label %.thread33, label %.thread34

56:                                               ; preds = %53
  br i1 %18, label %57, label %.thread33

57:                                               ; preds = %56
  %58 = load i32, ptr %14, align 8, !tbaa !48
  %59 = add nsw i32 %58, %10
  call void @_ZN4juce7ListBox17selectRangeOfRowsEiib(ptr noundef nonnull align 8 dereferenceable(296) %0, i32 noundef %58, i32 noundef %59, i1 noundef zeroext false)
  br label %120

.thread33:                                        ; preds = %.thread32, %56
  %60 = getelementptr inbounds i8, ptr %0, i64 248
  %61 = load i32, ptr %60, align 8, !tbaa !49
  %62 = add nsw i32 %61, -1
  %63 = load i32, ptr %14, align 8, !tbaa !48
  %64 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %63)
  %65 = add nsw i32 %64, %10
  %66 = call noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef %62, i32 noundef %65)
  call void @_ZN4juce7ListBox9selectRowEibb(ptr noundef nonnull align 8 dereferenceable(296) %0, i32 noundef %66, i1 noundef zeroext false, i1 noundef zeroext true)
  br label %120

67:                                               ; preds = %53
  %68 = call noundef zeroext i1 @_ZNK4juce8KeyPress9isKeyCodeEi(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 268435536) #4
  br i1 %68, label %70, label %73

.thread34:                                        ; preds = %.thread32
  %69 = tail call noundef zeroext i1 @_ZNK4juce8KeyPress9isKeyCodeEi(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 268435536) #4
  br i1 %69, label %.thread35, label %.thread36

70:                                               ; preds = %67
  br i1 %18, label %71, label %.thread35

71:                                               ; preds = %70
  %72 = load i32, ptr %14, align 8, !tbaa !48
  call void @_ZN4juce7ListBox17selectRangeOfRowsEiib(ptr noundef nonnull align 8 dereferenceable(296) %0, i32 noundef %72, i32 noundef 0, i1 noundef zeroext false)
  br label %120

.thread35:                                        ; preds = %.thread34, %70
  call void @_ZN4juce7ListBox9selectRowEibb(ptr noundef nonnull align 8 dereferenceable(296) %0, i32 noundef 0, i1 noundef zeroext false, i1 noundef zeroext true)
  br label %120

73:                                               ; preds = %67
  %74 = call noundef zeroext i1 @_ZNK4juce8KeyPress9isKeyCodeEi(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 268435543) #4
  br i1 %74, label %76, label %85

.thread36:                                        ; preds = %.thread34
  %75 = tail call noundef zeroext i1 @_ZNK4juce8KeyPress9isKeyCodeEi(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 268435543) #4
  br i1 %75, label %.thread37, label %85

76:                                               ; preds = %73
  br i1 %18, label %77, label %.thread37

77:                                               ; preds = %76
  %78 = load i32, ptr %14, align 8, !tbaa !48
  %79 = getelementptr inbounds i8, ptr %0, i64 248
  %80 = load i32, ptr %79, align 8, !tbaa !49
  %81 = add nsw i32 %80, -1
  call void @_ZN4juce7ListBox17selectRangeOfRowsEiib(ptr noundef nonnull align 8 dereferenceable(296) %0, i32 noundef %78, i32 noundef %81, i1 noundef zeroext false)
  br label %120

.thread37:                                        ; preds = %.thread36, %76
  %82 = getelementptr inbounds i8, ptr %0, i64 248
  %83 = load i32, ptr %82, align 8, !tbaa !49
  %84 = add nsw i32 %83, -1
  call void @_ZN4juce7ListBox9selectRowEibb(ptr noundef nonnull align 8 dereferenceable(296) %0, i32 noundef %84, i1 noundef zeroext false, i1 noundef zeroext true)
  br label %120

85:                                               ; preds = %.thread36, %73
  %86 = call noundef zeroext i1 @_ZNK4juce8KeyPress9isKeyCodeEi(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 13) #4
  br i1 %86, label %87, label %98

87:                                               ; preds = %85
  %88 = load i32, ptr %14, align 8, !tbaa !48
  %89 = call noundef zeroext i1 @_ZNK4juce7ListBox13isRowSelectedEi(ptr noundef nonnull align 8 dereferenceable(296) %0, i32 noundef %88)
  br i1 %89, label %90, label %98

90:                                               ; preds = %87
  %91 = getelementptr inbounds i8, ptr %0, i64 216
  %92 = load ptr, ptr %91, align 8, !tbaa !50
  %.not24 = icmp eq ptr %92, null
  br i1 %.not24, label %120, label %93

93:                                               ; preds = %90
  %94 = load i32, ptr %14, align 8, !tbaa !48
  %95 = load ptr, ptr %92, align 8, !tbaa !51
  %96 = getelementptr inbounds i8, ptr %95, i64 80
  %97 = load ptr, ptr %96, align 8
  call void %97(ptr noundef nonnull align 8 dereferenceable(8) %92, i32 noundef %94)
  br label %120

98:                                               ; preds = %87, %85
  %99 = call noundef zeroext i1 @_ZNK4juce8KeyPress9isKeyCodeEi(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 268435711) #4
  br i1 %99, label %102, label %100

100:                                              ; preds = %98
  %101 = call noundef zeroext i1 @_ZNK4juce8KeyPress9isKeyCodeEi(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 8) #4
  br i1 %101, label %102, label %113

102:                                              ; preds = %100, %98
  %103 = load i32, ptr %14, align 8, !tbaa !48
  %104 = call noundef zeroext i1 @_ZNK4juce7ListBox13isRowSelectedEi(ptr noundef nonnull align 8 dereferenceable(296) %0, i32 noundef %103)
  br i1 %104, label %105, label %113

105:                                              ; preds = %102
  %106 = getelementptr inbounds i8, ptr %0, i64 216
  %107 = load ptr, ptr %106, align 8, !tbaa !50
  %.not = icmp eq ptr %107, null
  br i1 %.not, label %120, label %108

108:                                              ; preds = %105
  %109 = load i32, ptr %14, align 8, !tbaa !48
  %110 = load ptr, ptr %107, align 8, !tbaa !51
  %111 = getelementptr inbounds i8, ptr %110, i64 72
  %112 = load ptr, ptr %111, align 8
  call void %112(ptr noundef nonnull align 8 dereferenceable(8) %107, i32 noundef %109)
  br label %120

113:                                              ; preds = %102, %100
  %114 = load i8, ptr %11, align 4, !tbaa !5, !range !46, !noundef !47
  %115 = trunc nuw i8 %114 to i1
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #4
  br i1 %115, label %116, label %.critedge

116:                                              ; preds = %113
  call void @_ZN4juce12ModifierKeysC1Ei(ptr noundef nonnull align 4 dereferenceable(4) %5, i32 noundef 2) #4
  call void @_ZN4juce8KeyPressC1EiNS_12ModifierKeysEw(ptr noundef nonnull align 4 dereferenceable(12) %4, i32 noundef 97, ptr noundef nonnull %5, i32 noundef signext 0) #4
  %117 = call noundef zeroext i1 @_ZNK4juce8KeyPresseqERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %4) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #4
  br i1 %117, label %118, label %120

118:                                              ; preds = %116
  %119 = call noundef i32 @_ZNSt14numeric_limitsIiE3maxEv() #4
  call void @_ZN4juce7ListBox17selectRangeOfRowsEiib(ptr noundef nonnull align 8 dereferenceable(296) %0, i32 noundef 0, i32 noundef %119, i1 noundef zeroext false)
  br label %120

.critedge:                                        ; preds = %113
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #4
  br label %120

120:                                              ; preds = %.thread27, %22, %.thread31, %46, %.thread35, %71, %93, %90, %105, %108, %118, %77, %.thread37, %57, %.thread33, %32, %.thread29, %116, %.critedge
  %.0 = phi i1 [ false, %.critedge ], [ false, %116 ], [ true, %.thread29 ], [ true, %32 ], [ true, %.thread33 ], [ true, %57 ], [ true, %.thread37 ], [ true, %77 ], [ true, %118 ], [ true, %108 ], [ true, %105 ], [ true, %90 ], [ true, %93 ], [ true, %71 ], [ true, %.thread35 ], [ true, %46 ], [ true, %.thread31 ], [ true, %22 ], [ true, %.thread27 ]
  ret i1 %.0
}

declare void @_ZN4juce8KeyPressC1EiNS_12ModifierKeysEw(ptr, i32, ptr, i32) local_unnamed_addr

declare void @_ZN4juce12ModifierKeysC1Ei(ptr, i32) local_unnamed_addr

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !41, i64 268}
!6 = !{!"_ZTSN4juce7ListBoxE", !7, i64 0, !36, i64 200, !11, i64 216, !38, i64 224, !39, i64 232, !40, i64 240, !16, i64 248, !16, i64 252, !16, i64 256, !16, i64 260, !16, i64 264, !41, i64 268, !41, i64 269, !41, i64 270, !41, i64 271, !42, i64 272}
!7 = !{!"_ZTSN4juce9ComponentE", !8, i64 0, !9, i64 8, !9, i64 16, !11, i64 24, !14, i64 32, !17, i64 48, !18, i64 56, !19, i64 64, !11, i64 88, !22, i64 96, !11, i64 104, !23, i64 112, !24, i64 120, !25, i64 128, !26, i64 136, !30, i64 160, !34, i64 184, !12, i64 192, !12, i64 196}
!8 = !{!"_ZTSN4juce13MouseListenerE"}
!9 = !{!"_ZTSN4juce6StringE", !10, i64 0}
!10 = !{!"_ZTSN4juce16CharPointer_UTF8E", !11, i64 0}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTSN4juce9RectangleIiEE", !15, i64 0, !16, i64 8, !16, i64 12}
!15 = !{!"_ZTSN4juce5PointIiEE", !16, i64 0, !16, i64 4}
!16 = !{!"int", !12, i64 0}
!17 = !{!"_ZTSN4juce13ScopedPointerINS_9Component10PositionerEEE", !11, i64 0}
!18 = !{!"_ZTSN4juce13ScopedPointerINS_15AffineTransformEEE", !11, i64 0}
!19 = !{!"_ZTSN4juce5ArrayIPNS_9ComponentENS_20DummyCriticalSectionELi0EEE", !20, i64 0, !16, i64 16}
!20 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_9ComponentENS_20DummyCriticalSectionEEE", !21, i64 0, !16, i64 8}
!21 = !{!"_ZTSN4juce9HeapBlockIPNS_9ComponentELb0EEE", !11, i64 0}
!22 = !{!"_ZTSN4juce11MouseCursorE", !11, i64 0}
!23 = !{!"_ZTSN4juce13ScopedPointerINS_20CachedComponentImageEEE", !11, i64 0}
!24 = !{!"_ZTSN4juce13ScopedPointerINS_9Component17MouseListenerListEEE", !11, i64 0}
!25 = !{!"_ZTSN4juce13ScopedPointerINS_5ArrayIPNS_11KeyListenerENS_20DummyCriticalSectionELi0EEEEE", !11, i64 0}
!26 = !{!"_ZTSN4juce12ListenerListINS_17ComponentListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !27, i64 0}
!27 = !{!"_ZTSN4juce5ArrayIPNS_17ComponentListenerENS_20DummyCriticalSectionELi0EEE", !28, i64 0, !16, i64 16}
!28 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_17ComponentListenerENS_20DummyCriticalSectionEEE", !29, i64 0, !16, i64 8}
!29 = !{!"_ZTSN4juce9HeapBlockIPNS_17ComponentListenerELb0EEE", !11, i64 0}
!30 = !{!"_ZTSN4juce13NamedValueSetE", !31, i64 0}
!31 = !{!"_ZTSN4juce5ArrayINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionELi0EEE", !32, i64 0, !16, i64 16}
!32 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_13NamedValueSet10NamedValueENS_20DummyCriticalSectionEEE", !33, i64 0, !16, i64 8}
!33 = !{!"_ZTSN4juce9HeapBlockINS_13NamedValueSet10NamedValueELb0EEE", !11, i64 0}
!34 = !{!"_ZTSN4juce13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE6MasterE", !35, i64 0}
!35 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_13WeakReferenceINS_9ComponentENS_22ReferenceCountedObjectEE13SharedPointerEEE", !11, i64 0}
!36 = !{!"_ZTSN4juce21SettableTooltipClientE", !37, i64 0, !9, i64 8}
!37 = !{!"_ZTSN4juce13TooltipClientE"}
!38 = !{!"_ZTSN4juce13ScopedPointerINS_7ListBox12ListViewportEEE", !11, i64 0}
!39 = !{!"_ZTSN4juce13ScopedPointerINS_9ComponentEEE", !11, i64 0}
!40 = !{!"_ZTSN4juce13ScopedPointerINS_13MouseListenerEEE", !11, i64 0}
!41 = !{!"bool", !12, i64 0}
!42 = !{!"_ZTSN4juce9SparseSetIiEE", !43, i64 0}
!43 = !{!"_ZTSN4juce5ArrayIiNS_20DummyCriticalSectionELi0EEE", !44, i64 0, !16, i64 16}
!44 = !{!"_ZTSN4juce19ArrayAllocationBaseIiNS_20DummyCriticalSectionEEE", !45, i64 0, !16, i64 8}
!45 = !{!"_ZTSN4juce9HeapBlockIiLb0EEE", !11, i64 0}
!46 = !{i8 0, i8 2}
!47 = !{}
!48 = !{!6, !16, i64 264}
!49 = !{!6, !16, i64 248}
!50 = !{!6, !11, i64 216}
!51 = !{!52, !52, i64 0}
!52 = !{!"vtable pointer", !13, i64 0}


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