; 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::KeyPress" = type { i32, %"class.juce::ModifierKeys", i32 }
%"class.juce::ModifierKeys" = type { i32 }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #2

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

; 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)) #3 align 2

; Function Attrs: nounwind
declare noundef signext i32 @_ZN4juce18CharacterFunctions11toLowerCaseEw(i32 noundef signext) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce11AlertWindow9addButtonERKNS_6StringEiRKNS_8KeyPressES6_(ptr noundef nonnull align 8 dereferenceable(577), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN4juce14LookAndFeel_V217createAlertWindowERKNS_6StringES3_S3_S3_S3_NS_11AlertWindow13AlertIconTypeEiPNS_9ComponentE(ptr noundef nonnull align 8 dereferenceable(304) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef %6, i32 noundef %7, ptr noundef %8) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca %"class.juce::KeyPress", align 4
  %23 = alloca %"class.juce::KeyPress", align 4
  %24 = alloca %"class.juce::KeyPress", align 4
  %25 = alloca %"class.juce::ModifierKeys", align 4
  %26 = alloca %"class.juce::KeyPress", align 4
  %27 = alloca %"class.juce::ModifierKeys", align 4
  %28 = alloca %"class.juce::KeyPress", align 4
  %29 = alloca %"class.juce::KeyPress", align 4
  %30 = alloca %"class.juce::KeyPress", align 4
  %31 = alloca %"class.juce::KeyPress", align 4
  %32 = alloca %"class.juce::KeyPress", align 4
  %33 = alloca %"class.juce::KeyPress", align 4
  %34 = alloca %"class.juce::KeyPress", align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store ptr %2, ptr %12, align 8, !tbaa !5
  store ptr %3, ptr %13, align 8, !tbaa !5
  store ptr %4, ptr %14, align 8, !tbaa !5
  store ptr %5, ptr %15, align 8, !tbaa !5
  store i32 %6, ptr %16, align 4, !tbaa !9
  store i32 %7, ptr %17, align 4, !tbaa !11
  store ptr %8, ptr %18, align 8, !tbaa !5
  %35 = load ptr, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %36 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 584) #7
  %37 = load ptr, ptr %11, align 8, !tbaa !5
  %38 = load ptr, ptr %12, align 8, !tbaa !5
  %39 = load i32, ptr %16, align 4, !tbaa !9
  %40 = load ptr, ptr %18, align 8, !tbaa !5
  invoke void @_ZN4juce11AlertWindowC1ERKNS_6StringES3_NS0_13AlertIconTypeEPNS_9ComponentE(ptr noundef nonnull align 8 dereferenceable(577) %36, ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull align 8 dereferenceable(8) %38, i32 noundef %39, ptr noundef %40)
          to label %41 unwind label %47

41:                                               ; preds = %9
  store ptr %36, ptr %19, align 8, !tbaa !5
  %42 = load i32, ptr %17, align 4, !tbaa !11
  %43 = icmp eq i32 %42, 1
  br i1 %43, label %44, label %51

44:                                               ; preds = %41
  %45 = load ptr, ptr %19, align 8, !tbaa !5
  %46 = load ptr, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %22) #6
  call void @_ZN4juce8KeyPressC1Ei(ptr noundef nonnull align 4 dereferenceable(12) %22, i32 noundef 27) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %23) #6
  call void @_ZN4juce8KeyPressC1Ei(ptr noundef nonnull align 4 dereferenceable(12) %23, i32 noundef 13) #6
  call void @_ZN4juce11AlertWindow9addButtonERKNS_6StringEiRKNS_8KeyPressES6_(ptr noundef nonnull align 8 dereferenceable(577) %45, ptr noundef nonnull align 8 dereferenceable(8) %46, i32 noundef 0, ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(12) %23)
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #6
  br label %81

47:                                               ; preds = %9
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %20, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %21, align 4
  call void @_ZdlPvm(ptr noundef %36, i64 noundef 584) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %83

51:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 12, ptr %24) #6
  %52 = load ptr, ptr %13, align 8, !tbaa !5
  %53 = call noundef signext i32 @_ZNK4juce6StringixEi(ptr noundef nonnull align 8 dereferenceable(8) %52, i32 noundef 0) #6
  %54 = call noundef signext i32 @_ZN4juce18CharacterFunctions11toLowerCaseEw(i32 noundef signext %53) #6
  call void @_ZN4juce12ModifierKeysC1Ei(ptr noundef nonnull align 4 dereferenceable(4) %25, i32 noundef 0) #6
  call void @_ZN4juce8KeyPressC1EiNS_12ModifierKeysEw(ptr noundef nonnull align 4 dereferenceable(12) %24, i32 noundef %54, ptr noundef %25, i32 noundef signext 0) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %26) #6
  %55 = load ptr, ptr %14, align 8, !tbaa !5
  %56 = call noundef signext i32 @_ZNK4juce6StringixEi(ptr noundef nonnull align 8 dereferenceable(8) %55, i32 noundef 0) #6
  %57 = call noundef signext i32 @_ZN4juce18CharacterFunctions11toLowerCaseEw(i32 noundef signext %56) #6
  call void @_ZN4juce12ModifierKeysC1Ei(ptr noundef nonnull align 4 dereferenceable(4) %27, i32 noundef 0) #6
  call void @_ZN4juce8KeyPressC1EiNS_12ModifierKeysEw(ptr noundef nonnull align 4 dereferenceable(12) %26, i32 noundef %57, ptr noundef %27, i32 noundef signext 0) #6
  %58 = call noundef zeroext i1 @_ZNK4juce8KeyPresseqERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %24, ptr noundef nonnull align 4 dereferenceable(12) %26) #6
  br i1 %58, label %59, label %61

59:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 12, ptr %28) #6
  call void @_ZN4juce8KeyPressC1Ev(ptr noundef nonnull align 4 dereferenceable(12) %28) #6
  %60 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN4juce8KeyPressaSERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %26, ptr noundef nonnull align 4 dereferenceable(12) %28) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %28) #6
  br label %61

61:                                               ; preds = %59, %51
  %62 = load i32, ptr %17, align 4, !tbaa !11
  %63 = icmp eq i32 %62, 2
  br i1 %63, label %64, label %69

64:                                               ; preds = %61
  %65 = load ptr, ptr %19, align 8, !tbaa !5
  %66 = load ptr, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %29) #6
  call void @_ZN4juce8KeyPressC1Ei(ptr noundef nonnull align 4 dereferenceable(12) %29, i32 noundef 13) #6
  call void @_ZN4juce11AlertWindow9addButtonERKNS_6StringEiRKNS_8KeyPressES6_(ptr noundef nonnull align 8 dereferenceable(577) %65, ptr noundef nonnull align 8 dereferenceable(8) %66, i32 noundef 1, ptr noundef nonnull align 4 dereferenceable(12) %29, ptr noundef nonnull align 4 dereferenceable(12) %24)
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #6
  %67 = load ptr, ptr %19, align 8, !tbaa !5
  %68 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %30) #6
  call void @_ZN4juce8KeyPressC1Ei(ptr noundef nonnull align 4 dereferenceable(12) %30, i32 noundef 27) #6
  call void @_ZN4juce11AlertWindow9addButtonERKNS_6StringEiRKNS_8KeyPressES6_(ptr noundef nonnull align 8 dereferenceable(577) %67, ptr noundef nonnull align 8 dereferenceable(8) %68, i32 noundef 0, ptr noundef nonnull align 4 dereferenceable(12) %30, ptr noundef nonnull align 4 dereferenceable(12) %26)
  call void @llvm.lifetime.end.p0(i64 12, ptr %30) #6
  br label %80

69:                                               ; preds = %61
  %70 = load i32, ptr %17, align 4, !tbaa !11
  %71 = icmp eq i32 %70, 3
  br i1 %71, label %72, label %79

72:                                               ; preds = %69
  %73 = load ptr, ptr %19, align 8, !tbaa !5
  %74 = load ptr, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %31) #6
  call void @_ZN4juce8KeyPressC1Ev(ptr noundef nonnull align 4 dereferenceable(12) %31) #6
  call void @_ZN4juce11AlertWindow9addButtonERKNS_6StringEiRKNS_8KeyPressES6_(ptr noundef nonnull align 8 dereferenceable(577) %73, ptr noundef nonnull align 8 dereferenceable(8) %74, i32 noundef 1, ptr noundef nonnull align 4 dereferenceable(12) %24, ptr noundef nonnull align 4 dereferenceable(12) %31)
  call void @llvm.lifetime.end.p0(i64 12, ptr %31) #6
  %75 = load ptr, ptr %19, align 8, !tbaa !5
  %76 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %32) #6
  call void @_ZN4juce8KeyPressC1Ev(ptr noundef nonnull align 4 dereferenceable(12) %32) #6
  call void @_ZN4juce11AlertWindow9addButtonERKNS_6StringEiRKNS_8KeyPressES6_(ptr noundef nonnull align 8 dereferenceable(577) %75, ptr noundef nonnull align 8 dereferenceable(8) %76, i32 noundef 2, ptr noundef nonnull align 4 dereferenceable(12) %26, ptr noundef nonnull align 4 dereferenceable(12) %32)
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #6
  %77 = load ptr, ptr %19, align 8, !tbaa !5
  %78 = load ptr, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %33) #6
  call void @_ZN4juce8KeyPressC1Ei(ptr noundef nonnull align 4 dereferenceable(12) %33, i32 noundef 27) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %34) #6
  call void @_ZN4juce8KeyPressC1Ev(ptr noundef nonnull align 4 dereferenceable(12) %34) #6
  call void @_ZN4juce11AlertWindow9addButtonERKNS_6StringEiRKNS_8KeyPressES6_(ptr noundef nonnull align 8 dereferenceable(577) %77, ptr noundef nonnull align 8 dereferenceable(8) %78, i32 noundef 0, ptr noundef nonnull align 4 dereferenceable(12) %33, ptr noundef nonnull align 4 dereferenceable(12) %34)
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %33) #6
  br label %79

79:                                               ; preds = %72, %69
  br label %80

80:                                               ; preds = %79, %64
  call void @llvm.lifetime.end.p0(i64 12, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #6
  br label %81

81:                                               ; preds = %80, %44
  %82 = load ptr, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  ret ptr %82

83:                                               ; preds = %47
  %84 = load ptr, ptr %20, align 8
  %85 = load i32, ptr %21, align 4
  %86 = insertvalue { ptr, i32 } poison, ptr %84, 0
  %87 = insertvalue { ptr, i32 } %86, i32 %85, 1
  resume { ptr, i32 } %87
}

; Function Attrs: nounwind
declare noundef signext i32 @_ZNK4juce6StringixEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4

declare void @_ZN4juce8KeyPressC1Ev(ptr)

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

declare void @_ZN4juce8KeyPressC1Ei(ptr, i32)

declare void @_ZN4juce12ModifierKeysC1Ei(ptr, i32)

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

attributes #0 = { nobuiltin 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 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind "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 = { 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 #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin 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 = !{!"_ZTSN4juce11AlertWindow13AlertIconTypeE", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, 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::KeyPress" = type { i32, %"class.juce::ModifierKeys", i32 }
%"class.juce::ModifierKeys" = type { i32 }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN4juce8KeyPressaSERKS0_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #3 align 2

; 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 #3 align 2

; Function Attrs: nounwind
declare noundef signext i32 @_ZN4juce18CharacterFunctions11toLowerCaseEw(i32 noundef signext) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce11AlertWindow9addButtonERKNS_6StringEiRKNS_8KeyPressES6_(ptr noundef nonnull align 8 dereferenceable(577), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull ptr @_ZN4juce14LookAndFeel_V217createAlertWindowERKNS_6StringES3_S3_S3_S3_NS_11AlertWindow13AlertIconTypeEiPNS_9ComponentE(ptr nocapture noundef nonnull readnone align 8 dereferenceable(304) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef %6, i32 noundef %7, ptr noundef %8) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %10 = alloca %"class.juce::KeyPress", align 4
  %11 = alloca %"class.juce::KeyPress", align 4
  %12 = alloca %"class.juce::KeyPress", align 4
  %13 = alloca %"class.juce::ModifierKeys", align 4
  %14 = alloca %"class.juce::KeyPress", align 4
  %15 = alloca %"class.juce::ModifierKeys", align 4
  %16 = alloca %"class.juce::KeyPress", align 4
  %17 = alloca %"class.juce::KeyPress", align 4
  %18 = alloca %"class.juce::KeyPress", align 4
  %19 = alloca %"class.juce::KeyPress", align 4
  %20 = alloca %"class.juce::KeyPress", align 4
  %21 = alloca %"class.juce::KeyPress", align 4
  %22 = alloca %"class.juce::KeyPress", align 4
  %23 = tail call noalias noundef nonnull dereferenceable(584) ptr @_Znwm(i64 noundef 584) #6
  invoke void @_ZN4juce11AlertWindowC1ERKNS_6StringES3_NS0_13AlertIconTypeEPNS_9ComponentE(ptr noundef nonnull align 8 dereferenceable(577) %23, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef %6, ptr noundef %8)
          to label %24 unwind label %27

24:                                               ; preds = %9
  %25 = icmp eq i32 %7, 1
  br i1 %25, label %26, label %29

26:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #7
  call void @_ZN4juce8KeyPressC1Ei(ptr noundef nonnull align 4 dereferenceable(12) %10, i32 noundef 27) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #7
  call void @_ZN4juce8KeyPressC1Ei(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 13) #7
  call void @_ZN4juce11AlertWindow9addButtonERKNS_6StringEiRKNS_8KeyPressES6_(ptr noundef nonnull align 8 dereferenceable(577) %23, ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef 0, ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %11)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #7
  br label %41

27:                                               ; preds = %9
  %28 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %23, i64 noundef 584) #8
  resume { ptr, i32 } %28

29:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #7
  %30 = tail call noundef signext i32 @_ZNK4juce6StringixEi(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef 0) #7
  %31 = tail call noundef signext i32 @_ZN4juce18CharacterFunctions11toLowerCaseEw(i32 noundef signext %30) #7
  call void @_ZN4juce12ModifierKeysC1Ei(ptr noundef nonnull align 4 dereferenceable(4) %13, i32 noundef 0) #7
  call void @_ZN4juce8KeyPressC1EiNS_12ModifierKeysEw(ptr noundef nonnull align 4 dereferenceable(12) %12, i32 noundef %31, ptr noundef nonnull %13, i32 noundef signext 0) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #7
  %32 = call noundef signext i32 @_ZNK4juce6StringixEi(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef 0) #7
  %33 = call noundef signext i32 @_ZN4juce18CharacterFunctions11toLowerCaseEw(i32 noundef signext %32) #7
  call void @_ZN4juce12ModifierKeysC1Ei(ptr noundef nonnull align 4 dereferenceable(4) %15, i32 noundef 0) #7
  call void @_ZN4juce8KeyPressC1EiNS_12ModifierKeysEw(ptr noundef nonnull align 4 dereferenceable(12) %14, i32 noundef %33, ptr noundef nonnull %15, i32 noundef signext 0) #7
  %34 = call noundef zeroext i1 @_ZNK4juce8KeyPresseqERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %14) #7
  br i1 %34, label %35, label %37

35:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %16) #7
  call void @_ZN4juce8KeyPressC1Ev(ptr noundef nonnull align 4 dereferenceable(12) %16) #7
  %36 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN4juce8KeyPressaSERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef nonnull align 4 dereferenceable(12) %16) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #7
  br label %37

37:                                               ; preds = %35, %29
  switch i32 %7, label %40 [
    i32 2, label %38
    i32 3, label %39
  ]

38:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %17) #7
  call void @_ZN4juce8KeyPressC1Ei(ptr noundef nonnull align 4 dereferenceable(12) %17, i32 noundef 13) #7
  call void @_ZN4juce11AlertWindow9addButtonERKNS_6StringEiRKNS_8KeyPressES6_(ptr noundef nonnull align 8 dereferenceable(577) %23, ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef 1, ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %12)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %18) #7
  call void @_ZN4juce8KeyPressC1Ei(ptr noundef nonnull align 4 dereferenceable(12) %18, i32 noundef 27) #7
  call void @_ZN4juce11AlertWindow9addButtonERKNS_6StringEiRKNS_8KeyPressES6_(ptr noundef nonnull align 8 dereferenceable(577) %23, ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef 0, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(12) %14)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #7
  br label %40

39:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %19) #7
  call void @_ZN4juce8KeyPressC1Ev(ptr noundef nonnull align 4 dereferenceable(12) %19) #7
  call void @_ZN4juce11AlertWindow9addButtonERKNS_6StringEiRKNS_8KeyPressES6_(ptr noundef nonnull align 8 dereferenceable(577) %23, ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef 1, ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %19)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %19) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %20) #7
  call void @_ZN4juce8KeyPressC1Ev(ptr noundef nonnull align 4 dereferenceable(12) %20) #7
  call void @_ZN4juce11AlertWindow9addButtonERKNS_6StringEiRKNS_8KeyPressES6_(ptr noundef nonnull align 8 dereferenceable(577) %23, ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef 2, ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef nonnull align 4 dereferenceable(12) %20)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %20) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %21) #7
  call void @_ZN4juce8KeyPressC1Ei(ptr noundef nonnull align 4 dereferenceable(12) %21, i32 noundef 27) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %22) #7
  call void @_ZN4juce8KeyPressC1Ev(ptr noundef nonnull align 4 dereferenceable(12) %22) #7
  call void @_ZN4juce11AlertWindow9addButtonERKNS_6StringEiRKNS_8KeyPressES6_(ptr noundef nonnull align 8 dereferenceable(577) %23, ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef 0, ptr noundef nonnull align 4 dereferenceable(12) %21, ptr noundef nonnull align 4 dereferenceable(12) %22)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %21) #7
  br label %40

40:                                               ; preds = %37, %39, %38
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #7
  br label %41

41:                                               ; preds = %40, %26
  ret ptr %23
}

; Function Attrs: nounwind
declare noundef signext i32 @_ZNK4juce6StringixEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #4

declare void @_ZN4juce8KeyPressC1Ev(ptr) local_unnamed_addr

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

declare void @_ZN4juce8KeyPressC1Ei(ptr, i32) local_unnamed_addr

declare void @_ZN4juce12ModifierKeysC1Ei(ptr, i32) local_unnamed_addr

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

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


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