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

%"struct.juce::KeyPressHelpers::ModifierDescription" = type { ptr, i32 }
%"struct.juce::KeyPressHelpers::KeyNameAndCode" = type { ptr, i32 }
%"class.juce::KeyPress" = type { i32, %"class.juce::ModifierKeys", i32 }
%"class.juce::ModifierKeys" = type { i32 }
%"class.juce::StringRef" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }

@_ZN4juce15KeyPressHelpersL13modifierNamesE = external hidden constant [9 x %"struct.juce::KeyPressHelpers::ModifierDescription"], align 16
@_ZN4juce15KeyPressHelpersL12translationsE = external hidden constant [19 x %"struct.juce::KeyPressHelpers::KeyNameAndCode"], align 16
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [23 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0

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

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

; Function Attrs: nounwind
declare void @_ZN4juce9StringRefC1EPKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce8KeyPress21createFromDescriptionERKNS_6StringE(ptr dead_on_unwind noalias writable sret(%"class.juce::KeyPress") align 4 %0, ptr noundef nonnull align 8 dereferenceable(8) %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.juce::StringRef", align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.juce::StringRef", align 8
  %12 = alloca %"class.juce::String", align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.juce::StringRef", align 8
  %15 = alloca %"class.juce::String", align 8
  %16 = alloca %"class.juce::String", align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %"class.juce::String", align 8
  %21 = alloca %"class.juce::String", align 8
  %22 = alloca %"class.juce::StringRef", align 8
  %23 = alloca %"class.juce::StringRef", align 8
  %24 = alloca %"class.juce::ModifierKeys", align 4
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %25

25:                                               ; preds = %47, %2
  %26 = load i32, ptr %6, align 4, !tbaa !9
  %27 = call noundef i32 @_ZN4juce18numElementsInArrayIKNS_15KeyPressHelpers19ModifierDescriptionELi9EEEiRAT0__T_(ptr noundef nonnull align 8 dereferenceable(144) @_ZN4juce15KeyPressHelpersL13modifierNamesE)
  %28 = icmp slt i32 %26, %27
  br i1 %28, label %30, label %29

29:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %50

30:                                               ; preds = %25
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = load i32, ptr %6, align 4, !tbaa !9
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [9 x %"struct.juce::KeyPressHelpers::ModifierDescription"], ptr @_ZN4juce15KeyPressHelpersL13modifierNamesE, i64 0, i64 %33
  %35 = getelementptr inbounds %"struct.juce::KeyPressHelpers::ModifierDescription", ptr %34, i32 0, i32 0
  %36 = load ptr, ptr %35, align 16, !tbaa !11
  call void @_ZN4juce9StringRefC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef %36) #5
  %37 = call noundef zeroext i1 @_ZNK4juce6String27containsWholeWordIgnoreCaseENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef %7) #5
  br i1 %37, label %38, label %46

38:                                               ; preds = %30
  %39 = load i32, ptr %6, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [9 x %"struct.juce::KeyPressHelpers::ModifierDescription"], ptr @_ZN4juce15KeyPressHelpersL13modifierNamesE, i64 0, i64 %40
  %42 = getelementptr inbounds %"struct.juce::KeyPressHelpers::ModifierDescription", ptr %41, i32 0, i32 1
  %43 = load i32, ptr %42, align 8, !tbaa !13
  %44 = load i32, ptr %5, align 4, !tbaa !9
  %45 = or i32 %44, %43
  store i32 %45, ptr %5, align 4, !tbaa !9
  br label %46

46:                                               ; preds = %38, %30
  br label %47

47:                                               ; preds = %46
  %48 = load i32, ptr %6, align 4, !tbaa !9
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %6, align 4, !tbaa !9
  br label %25, !llvm.loop !14

50:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %71, %50
  %52 = load i32, ptr %9, align 4, !tbaa !9
  %53 = call noundef i32 @_ZN4juce18numElementsInArrayIKNS_15KeyPressHelpers14KeyNameAndCodeELi19EEEiRAT0__T_(ptr noundef nonnull align 8 dereferenceable(304) @_ZN4juce15KeyPressHelpersL12translationsE)
  %54 = icmp slt i32 %52, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  store i32 5, ptr %10, align 4
  br label %74

56:                                               ; preds = %51
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %58 = load i32, ptr %9, align 4, !tbaa !9
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [19 x %"struct.juce::KeyPressHelpers::KeyNameAndCode"], ptr @_ZN4juce15KeyPressHelpersL12translationsE, i64 0, i64 %59
  %61 = getelementptr inbounds %"struct.juce::KeyPressHelpers::KeyNameAndCode", ptr %60, i32 0, i32 0
  %62 = load ptr, ptr %61, align 16, !tbaa !16
  call void @_ZN4juce6StringC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef %62)
  call void @_ZN4juce9StringRefC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  %63 = call noundef zeroext i1 @_ZNK4juce6String27containsWholeWordIgnoreCaseENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef %11) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br i1 %63, label %64, label %70

64:                                               ; preds = %56
  %65 = load i32, ptr %9, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [19 x %"struct.juce::KeyPressHelpers::KeyNameAndCode"], ptr @_ZN4juce15KeyPressHelpersL12translationsE, i64 0, i64 %66
  %68 = getelementptr inbounds %"struct.juce::KeyPressHelpers::KeyNameAndCode", ptr %67, i32 0, i32 1
  %69 = load i32, ptr %68, align 8, !tbaa !18
  store i32 %69, ptr %8, align 4, !tbaa !9
  store i32 5, ptr %10, align 4
  br label %74

70:                                               ; preds = %56
  br label %71

71:                                               ; preds = %70
  %72 = load i32, ptr %9, align 4, !tbaa !9
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %9, align 4, !tbaa !9
  br label %51, !llvm.loop !19

74:                                               ; preds = %64, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %75

75:                                               ; preds = %74
  %76 = load i32, ptr %8, align 4, !tbaa !9
  %77 = icmp eq i32 %76, 0
  br i1 %77, label %78, label %81

78:                                               ; preds = %75
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = call noundef i32 @_ZN4juce15KeyPressHelpersL16getNumpadKeyCodeERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %79)
  store i32 %80, ptr %8, align 4, !tbaa !9
  br label %81

81:                                               ; preds = %78, %75
  %82 = load i32, ptr %8, align 4, !tbaa !9
  %83 = icmp eq i32 %82, 0
  br i1 %83, label %84, label %131

84:                                               ; preds = %81
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = call noundef zeroext i1 @_ZNK4juce6String12containsCharEw(ptr noundef nonnull align 8 dereferenceable(8) %85, i32 noundef signext 35) #5
  br i1 %86, label %110, label %87

87:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 1, ptr %13, align 4, !tbaa !9
  br label %88

88:                                               ; preds = %106, %87
  %89 = load i32, ptr %13, align 4, !tbaa !9
  %90 = icmp sle i32 %89, 12
  br i1 %90, label %92, label %91

91:                                               ; preds = %88
  store i32 8, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %109

92:                                               ; preds = %88
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %94 = load i32, ptr %13, align 4, !tbaa !9
  call void @_ZN4juce6StringC1Ei(ptr noundef nonnull align 8 dereferenceable(8) %16, i32 noundef %94)
  invoke void @_ZN4juceplEPKcRKNS_6StringE(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %15, ptr noundef @.str.5, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %95 unwind label %101

95:                                               ; preds = %92
  call void @_ZN4juce9StringRefC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  %96 = call noundef zeroext i1 @_ZNK4juce6String27containsWholeWordIgnoreCaseENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(8) %93, ptr noundef %14) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br i1 %96, label %97, label %105

97:                                               ; preds = %95
  %98 = load i32, ptr %13, align 4, !tbaa !9
  %99 = add nsw i32 268435646, %98
  %100 = sub nsw i32 %99, 1
  store i32 %100, ptr %8, align 4, !tbaa !9
  br label %105

101:                                              ; preds = %92
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %17, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %18, align 4
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %134

105:                                              ; preds = %97, %95
  br label %106

106:                                              ; preds = %105
  %107 = load i32, ptr %13, align 4, !tbaa !9
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %13, align 4, !tbaa !9
  br label %88, !llvm.loop !20

109:                                              ; preds = %91
  br label %110

110:                                              ; preds = %109, %84
  %111 = load i32, ptr %8, align 4, !tbaa !9
  %112 = icmp eq i32 %111, 0
  br i1 %112, label %113, label %130

113:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN4juce9StringRefC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef @.str.6) #5
  call void @_ZNK4juce6String21fromFirstOccurrenceOfENS_9StringRefEbb(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %21, ptr noundef nonnull align 8 dereferenceable(8) %114, ptr noundef %22, i1 noundef zeroext false, i1 noundef zeroext false)
  call void @_ZN4juce9StringRefC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef @.str.7) #5
  invoke void @_ZNK4juce6String16retainCharactersENS_9StringRefE(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %20, ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef %23)
          to label %115 unwind label %121

115:                                              ; preds = %113
  %116 = call noundef i32 @_ZNK4juce6String13getHexValue32Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  store i32 %116, ptr %19, align 4, !tbaa !9
  %117 = load i32, ptr %19, align 4, !tbaa !9
  %118 = icmp sgt i32 %117, 0
  br i1 %118, label %119, label %125

119:                                              ; preds = %115
  %120 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %120, ptr %8, align 4, !tbaa !9
  br label %129

121:                                              ; preds = %113
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %17, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %18, align 4
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %134

125:                                              ; preds = %115
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = call noundef signext i32 @_ZNK4juce6String16getLastCharacterEv(ptr noundef nonnull align 8 dereferenceable(8) %126) #5
  %128 = call noundef signext i32 @_ZN4juce18CharacterFunctions11toUpperCaseEw(i32 noundef signext %127) #5
  store i32 %128, ptr %8, align 4, !tbaa !9
  br label %129

129:                                              ; preds = %125, %119
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %130

130:                                              ; preds = %129, %110
  br label %131

131:                                              ; preds = %130, %81
  %132 = load i32, ptr %8, align 4, !tbaa !9
  %133 = load i32, ptr %5, align 4, !tbaa !9
  call void @_ZN4juce12ModifierKeysC1Ei(ptr noundef nonnull align 4 dereferenceable(4) %24, i32 noundef %133) #5
  call void @_ZN4juce8KeyPressC1EiNS_12ModifierKeysEw(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %132, ptr noundef %24, i32 noundef signext 0) #5
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  ret void

134:                                              ; preds = %121, %101
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %135

135:                                              ; preds = %134
  %136 = load ptr, ptr %17, align 8
  %137 = load i32, ptr %18, align 4
  %138 = insertvalue { ptr, i32 } poison, ptr %136, 0
  %139 = insertvalue { ptr, i32 } %138, i32 %137, 1
  resume { ptr, i32 } %139
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce18numElementsInArrayIKNS_15KeyPressHelpers19ModifierDescriptionELi9EEEiRAT0__T_(ptr noundef nonnull align 8 dereferenceable(144)) #3

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZNK4juce6String27containsWholeWordIgnoreCaseENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce18numElementsInArrayIKNS_15KeyPressHelpers14KeyNameAndCodeELi19EEEiRAT0__T_(ptr noundef nonnull align 8 dereferenceable(304)) #3

declare void @_ZN4juce6StringC1EPKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #4

; Function Attrs: nounwind
declare void @_ZN4juce9StringRefC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN4juce15KeyPressHelpersL16getNumpadKeyCodeERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZNK4juce6String12containsCharEw(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef signext) #0

declare void @_ZN4juceplEPKcRKNS_6StringE(ptr dead_on_unwind writable sret(%"class.juce::String") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) #4

declare void @_ZN4juce6StringC1Ei(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) unnamed_addr #4

declare void @_ZNK4juce6String21fromFirstOccurrenceOfENS_9StringRefEbb(ptr dead_on_unwind writable sret(%"class.juce::String") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i1 noundef zeroext, i1 noundef zeroext) #4

declare void @_ZNK4juce6String16retainCharactersENS_9StringRefE(ptr dead_on_unwind writable sret(%"class.juce::String") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4

; Function Attrs: nounwind
declare noundef i32 @_ZNK4juce6String13getHexValue32Ev(ptr noundef nonnull align 8 dereferenceable(8)) #0

; Function Attrs: nounwind
declare noundef signext i32 @_ZN4juce18CharacterFunctions11toUpperCaseEw(i32 noundef signext) #0

; Function Attrs: nounwind
declare noundef signext i32 @_ZNK4juce6String16getLastCharacterEv(ptr noundef nonnull align 8 dereferenceable(8)) #0

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

declare void @_ZN4juce12ModifierKeysC1Ei(ptr, i32)

attributes #0 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync 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 = { "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, !6, i64 0}
!12 = !{!"_ZTSN4juce15KeyPressHelpers19ModifierDescriptionE", !6, i64 0, !10, i64 8}
!13 = !{!12, !10, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !6, i64 0}
!17 = !{!"_ZTSN4juce15KeyPressHelpers14KeyNameAndCodeE", !6, i64 0, !10, i64 8}
!18 = !{!17, !10, i64 8}
!19 = distinct !{!19, !15}
!20 = distinct !{!20, !15}


; 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::KeyPressHelpers::ModifierDescription" = type { ptr, i32 }
%"struct.juce::KeyPressHelpers::KeyNameAndCode" = type { ptr, i32 }
%"class.juce::KeyPress" = type { i32, %"class.juce::ModifierKeys", i32 }
%"class.juce::ModifierKeys" = type { i32 }
%"class.juce::StringRef" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }

@_ZN4juce15KeyPressHelpersL13modifierNamesE = external hidden constant [9 x %"struct.juce::KeyPressHelpers::ModifierDescription"], align 16
@_ZN4juce15KeyPressHelpersL12translationsE = external hidden constant [19 x %"struct.juce::KeyPressHelpers::KeyNameAndCode"], align 16
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [23 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0

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

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

; Function Attrs: nounwind
declare void @_ZN4juce9StringRefC1EPKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce8KeyPress21createFromDescriptionERKNS_6StringE(ptr dead_on_unwind noalias writable sret(%"class.juce::KeyPress") align 4 %0, ptr noundef nonnull align 8 dereferenceable(8) %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.juce::StringRef", align 8
  %4 = alloca %"class.juce::StringRef", align 8
  %5 = alloca %"class.juce::String", align 8
  %6 = alloca %"class.juce::StringRef", align 8
  %7 = alloca %"class.juce::String", align 8
  %8 = alloca %"class.juce::String", align 8
  %9 = alloca %"class.juce::String", align 8
  %10 = alloca %"class.juce::String", align 8
  %11 = alloca %"class.juce::StringRef", align 8
  %12 = alloca %"class.juce::StringRef", align 8
  %13 = alloca %"class.juce::ModifierKeys", align 4
  %14 = tail call noundef i32 @_ZN4juce18numElementsInArrayIKNS_15KeyPressHelpers19ModifierDescriptionELi9EEEiRAT0__T_(ptr noundef nonnull align 8 dereferenceable(144) @_ZN4juce15KeyPressHelpersL13modifierNamesE)
  %15 = icmp sgt i32 %14, 0
  br i1 %15, label %.lr.ph, label %.preheader42

.preheader42:                                     ; preds = %25, %2
  %.0.lcssa = phi i32 [ 0, %2 ], [ %.1, %25 ]
  %16 = call noundef i32 @_ZN4juce18numElementsInArrayIKNS_15KeyPressHelpers14KeyNameAndCodeELi19EEEiRAT0__T_(ptr noundef nonnull align 8 dereferenceable(304) @_ZN4juce15KeyPressHelpersL12translationsE)
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %.lr.ph47, label %.thread

.lr.ph:                                           ; preds = %2, %25
  %indvars.iv = phi i64 [ %indvars.iv.next, %25 ], [ 0, %2 ]
  %.045 = phi i32 [ %.1, %25 ], [ 0, %2 ]
  %18 = getelementptr inbounds [9 x %"struct.juce::KeyPressHelpers::ModifierDescription"], ptr @_ZN4juce15KeyPressHelpersL13modifierNamesE, i64 0, i64 %indvars.iv
  %19 = load ptr, ptr %18, align 16, !tbaa !5
  call void @_ZN4juce9StringRefC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef %19) #5
  %20 = call noundef zeroext i1 @_ZNK4juce6String27containsWholeWordIgnoreCaseENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %3) #5
  br i1 %20, label %21, label %25

21:                                               ; preds = %.lr.ph
  %22 = getelementptr inbounds i8, ptr %18, i64 8
  %23 = load i32, ptr %22, align 8, !tbaa !11
  %24 = or i32 %23, %.045
  br label %25

25:                                               ; preds = %.lr.ph, %21
  %.1 = phi i32 [ %24, %21 ], [ %.045, %.lr.ph ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %26 = call noundef i32 @_ZN4juce18numElementsInArrayIKNS_15KeyPressHelpers19ModifierDescriptionELi9EEEiRAT0__T_(ptr noundef nonnull align 8 dereferenceable(144) @_ZN4juce15KeyPressHelpersL13modifierNamesE)
  %27 = sext i32 %26 to i64
  %28 = icmp slt i64 %indvars.iv.next, %27
  br i1 %28, label %.lr.ph, label %.preheader42, !llvm.loop !12

29:                                               ; preds = %.lr.ph47
  %indvars.iv.next53 = add nuw nsw i64 %indvars.iv52, 1
  %30 = call noundef i32 @_ZN4juce18numElementsInArrayIKNS_15KeyPressHelpers14KeyNameAndCodeELi19EEEiRAT0__T_(ptr noundef nonnull align 8 dereferenceable(304) @_ZN4juce15KeyPressHelpersL12translationsE)
  %31 = sext i32 %30 to i64
  %32 = icmp slt i64 %indvars.iv.next53, %31
  br i1 %32, label %.lr.ph47, label %.thread, !llvm.loop !14

.lr.ph47:                                         ; preds = %.preheader42, %29
  %indvars.iv52 = phi i64 [ %indvars.iv.next53, %29 ], [ 0, %.preheader42 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %33 = getelementptr inbounds [19 x %"struct.juce::KeyPressHelpers::KeyNameAndCode"], ptr @_ZN4juce15KeyPressHelpersL12translationsE, i64 0, i64 %indvars.iv52
  %34 = load ptr, ptr %33, align 16, !tbaa !15
  call void @_ZN4juce6StringC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef %34)
  call void @_ZN4juce9StringRefC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %35 = call noundef zeroext i1 @_ZNK4juce6String27containsWholeWordIgnoreCaseENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %4) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  br i1 %35, label %36, label %29

36:                                               ; preds = %.lr.ph47
  %37 = getelementptr inbounds i8, ptr %33, i64 8
  %38 = load i32, ptr %37, align 8, !tbaa !17
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %.thread, label %.thread38

.thread:                                          ; preds = %29, %.preheader42, %36
  %40 = call noundef i32 @_ZN4juce15KeyPressHelpersL16getNumpadKeyCodeERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %1)
  %41 = icmp eq i32 %40, 0
  br i1 %41, label %42, label %.thread38

42:                                               ; preds = %.thread
  %43 = call noundef zeroext i1 @_ZNK4juce6String12containsCharEw(ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef signext 35) #5
  br i1 %43, label %.thread40, label %.preheader.preheader

.preheader.preheader:                             ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  call void @_ZN4juce6StringC1Ei(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef 1)
  invoke void @_ZN4juceplEPKcRKNS_6StringE(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %7, ptr noundef nonnull @.str.5, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %.preheader.1 unwind label %58

.preheader.1:                                     ; preds = %.preheader.preheader
  call void @_ZN4juce9StringRefC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %44 = call noundef zeroext i1 @_ZNK4juce6String27containsWholeWordIgnoreCaseENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %6) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  call void @_ZN4juce6StringC1Ei(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef 2)
  invoke void @_ZN4juceplEPKcRKNS_6StringE(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %7, ptr noundef nonnull @.str.5, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %.preheader.2 unwind label %58

.preheader.2:                                     ; preds = %.preheader.1
  call void @_ZN4juce9StringRefC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %45 = call noundef zeroext i1 @_ZNK4juce6String27containsWholeWordIgnoreCaseENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %6) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  call void @_ZN4juce6StringC1Ei(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef 3)
  invoke void @_ZN4juceplEPKcRKNS_6StringE(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %7, ptr noundef nonnull @.str.5, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %.preheader.3 unwind label %58

.preheader.3:                                     ; preds = %.preheader.2
  call void @_ZN4juce9StringRefC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %46 = call noundef zeroext i1 @_ZNK4juce6String27containsWholeWordIgnoreCaseENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %6) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  call void @_ZN4juce6StringC1Ei(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef 4)
  invoke void @_ZN4juceplEPKcRKNS_6StringE(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %7, ptr noundef nonnull @.str.5, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %.preheader.4 unwind label %58

.preheader.4:                                     ; preds = %.preheader.3
  call void @_ZN4juce9StringRefC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %47 = call noundef zeroext i1 @_ZNK4juce6String27containsWholeWordIgnoreCaseENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %6) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  call void @_ZN4juce6StringC1Ei(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef 5)
  invoke void @_ZN4juceplEPKcRKNS_6StringE(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %7, ptr noundef nonnull @.str.5, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %.preheader.5 unwind label %58

.preheader.5:                                     ; preds = %.preheader.4
  call void @_ZN4juce9StringRefC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %48 = call noundef zeroext i1 @_ZNK4juce6String27containsWholeWordIgnoreCaseENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %6) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  call void @_ZN4juce6StringC1Ei(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef 6)
  invoke void @_ZN4juceplEPKcRKNS_6StringE(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %7, ptr noundef nonnull @.str.5, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %.preheader.6 unwind label %58

.preheader.6:                                     ; preds = %.preheader.5
  call void @_ZN4juce9StringRefC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %49 = call noundef zeroext i1 @_ZNK4juce6String27containsWholeWordIgnoreCaseENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %6) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  call void @_ZN4juce6StringC1Ei(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef 7)
  invoke void @_ZN4juceplEPKcRKNS_6StringE(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %7, ptr noundef nonnull @.str.5, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %.preheader.7 unwind label %58

.preheader.7:                                     ; preds = %.preheader.6
  call void @_ZN4juce9StringRefC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %50 = call noundef zeroext i1 @_ZNK4juce6String27containsWholeWordIgnoreCaseENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %6) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  call void @_ZN4juce6StringC1Ei(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef 8)
  invoke void @_ZN4juceplEPKcRKNS_6StringE(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %7, ptr noundef nonnull @.str.5, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %.preheader.8 unwind label %58

.preheader.8:                                     ; preds = %.preheader.7
  call void @_ZN4juce9StringRefC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %51 = call noundef zeroext i1 @_ZNK4juce6String27containsWholeWordIgnoreCaseENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %6) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  call void @_ZN4juce6StringC1Ei(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef 9)
  invoke void @_ZN4juceplEPKcRKNS_6StringE(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %7, ptr noundef nonnull @.str.5, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %.preheader.9 unwind label %58

.preheader.9:                                     ; preds = %.preheader.8
  call void @_ZN4juce9StringRefC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %52 = call noundef zeroext i1 @_ZNK4juce6String27containsWholeWordIgnoreCaseENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %6) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  call void @_ZN4juce6StringC1Ei(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef 10)
  invoke void @_ZN4juceplEPKcRKNS_6StringE(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %7, ptr noundef nonnull @.str.5, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %.preheader.10 unwind label %58

.preheader.10:                                    ; preds = %.preheader.9
  call void @_ZN4juce9StringRefC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %53 = call noundef zeroext i1 @_ZNK4juce6String27containsWholeWordIgnoreCaseENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %6) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  call void @_ZN4juce6StringC1Ei(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef 11)
  invoke void @_ZN4juceplEPKcRKNS_6StringE(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %7, ptr noundef nonnull @.str.5, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %.preheader.11 unwind label %58

.preheader.11:                                    ; preds = %.preheader.10
  call void @_ZN4juce9StringRefC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %54 = call noundef zeroext i1 @_ZNK4juce6String27containsWholeWordIgnoreCaseENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %6) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  call void @_ZN4juce6StringC1Ei(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef 12)
  invoke void @_ZN4juceplEPKcRKNS_6StringE(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %7, ptr noundef nonnull @.str.5, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %55 unwind label %58

55:                                               ; preds = %.preheader.11
  %spec.select = select i1 %44, i32 268435646, i32 0
  %spec.select.1 = select i1 %45, i32 268435647, i32 %spec.select
  %spec.select.2 = select i1 %46, i32 268435648, i32 %spec.select.1
  %spec.select.3 = select i1 %47, i32 268435649, i32 %spec.select.2
  %spec.select.4 = select i1 %48, i32 268435650, i32 %spec.select.3
  %spec.select.5 = select i1 %49, i32 268435651, i32 %spec.select.4
  %spec.select.6 = select i1 %50, i32 268435652, i32 %spec.select.5
  %spec.select.7 = select i1 %51, i32 268435653, i32 %spec.select.6
  %spec.select.8 = select i1 %52, i32 268435654, i32 %spec.select.7
  %spec.select.9 = select i1 %53, i32 268435655, i32 %spec.select.8
  %spec.select.10 = select i1 %54, i32 268435656, i32 %spec.select.9
  call void @_ZN4juce9StringRefC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %56 = call noundef zeroext i1 @_ZNK4juce6String27containsWholeWordIgnoreCaseENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %6) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  %spec.select.11 = select i1 %56, i32 268435657, i32 %spec.select.10
  %57 = icmp eq i32 %spec.select.11, 0
  br i1 %57, label %.thread40, label %.thread38

58:                                               ; preds = %.preheader.11, %.preheader.10, %.preheader.9, %.preheader.8, %.preheader.7, %.preheader.6, %.preheader.5, %.preheader.4, %.preheader.3, %.preheader.2, %.preheader.1, %.preheader.preheader
  %59 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %68

.thread40:                                        ; preds = %42, %55
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  call void @_ZN4juce9StringRefC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull @.str.6) #5
  call void @_ZNK4juce6String21fromFirstOccurrenceOfENS_9StringRefEbb(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %10, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %11, i1 noundef zeroext false, i1 noundef zeroext false)
  call void @_ZN4juce9StringRefC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull @.str.7) #5
  invoke void @_ZNK4juce6String16retainCharactersENS_9StringRefE(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %9, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull %12)
          to label %60 unwind label %63

60:                                               ; preds = %.thread40
  %61 = call noundef i32 @_ZNK4juce6String13getHexValue32Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  %62 = icmp sgt i32 %61, 0
  br i1 %62, label %.thread38, label %65

63:                                               ; preds = %.thread40
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br label %68

65:                                               ; preds = %60
  %66 = call noundef signext i32 @_ZNK4juce6String16getLastCharacterEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #5
  %67 = call noundef signext i32 @_ZN4juce18CharacterFunctions11toUpperCaseEw(i32 noundef signext %66) #5
  br label %.thread38

.thread38:                                        ; preds = %36, %65, %60, %55, %.thread
  %.6 = phi i32 [ %spec.select.11, %55 ], [ %40, %.thread ], [ %67, %65 ], [ %61, %60 ], [ %38, %36 ]
  call void @_ZN4juce12ModifierKeysC1Ei(ptr noundef nonnull align 4 dereferenceable(4) %13, i32 noundef %.0.lcssa) #5
  call void @_ZN4juce8KeyPressC1EiNS_12ModifierKeysEw(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef %.6, ptr noundef nonnull %13, i32 noundef signext 0) #5
  ret void

68:                                               ; preds = %63, %58
  %.pn = phi { ptr, i32 } [ %64, %63 ], [ %59, %58 ]
  resume { ptr, i32 } %.pn
}

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

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZNK4juce6String27containsWholeWordIgnoreCaseENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0

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

declare void @_ZN4juce6StringC1EPKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #4

; Function Attrs: nounwind
declare void @_ZN4juce9StringRefC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0

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

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZNK4juce6String12containsCharEw(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef signext) local_unnamed_addr #0

declare void @_ZN4juceplEPKcRKNS_6StringE(ptr dead_on_unwind writable sret(%"class.juce::String") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

declare void @_ZN4juce6StringC1Ei(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) unnamed_addr #4

declare void @_ZNK4juce6String21fromFirstOccurrenceOfENS_9StringRefEbb(ptr dead_on_unwind writable sret(%"class.juce::String") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i1 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #4

declare void @_ZNK4juce6String16retainCharactersENS_9StringRefE(ptr dead_on_unwind writable sret(%"class.juce::String") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind
declare noundef i32 @_ZNK4juce6String13getHexValue32Ev(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0

; Function Attrs: nounwind
declare noundef signext i32 @_ZN4juce18CharacterFunctions11toUpperCaseEw(i32 noundef signext) local_unnamed_addr #0

; Function Attrs: nounwind
declare noundef signext i32 @_ZNK4juce6String16getLastCharacterEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0

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

declare void @_ZN4juce12ModifierKeysC1Ei(ptr, i32) local_unnamed_addr

attributes #0 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync 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 = { "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, !7, i64 0}
!6 = !{!"_ZTSN4juce15KeyPressHelpers19ModifierDescriptionE", !7, i64 0, !10, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = !{!16, !7, i64 0}
!16 = !{!"_ZTSN4juce15KeyPressHelpers14KeyNameAndCodeE", !7, i64 0, !10, i64 8}
!17 = !{!16, !10, i64 8}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass