; 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::ApplicationCommandInfo" = type <{ i32, [4 x i8], %"class.juce::String", %"class.juce::String", %"class.juce::String", %"class.juce::Array.104", i32, [4 x i8] }>
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::Array.104" = type { %"class.juce::ArrayAllocationBase.105", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.105" = type <{ %"class.juce::HeapBlock.106", i32, [4 x i8] }>
%"class.juce::HeapBlock.106" = type { ptr }
%"class.juce::KeyPressMappingSet" = type { %"class.juce::KeyListener", %"class.juce::ChangeBroadcaster", %"class.juce::FocusChangeListener", ptr, %"class.juce::OwnedArray.138", %"class.juce::OwnedArray.143" }
%"class.juce::KeyListener" = type { ptr }
%"class.juce::ChangeBroadcaster" = type { ptr, %"class.juce::ChangeBroadcaster::ChangeBroadcasterCallback", %"class.juce::ListenerList.39" }
%"class.juce::ChangeBroadcaster::ChangeBroadcasterCallback" = type { %"class.juce::AsyncUpdater", ptr }
%"class.juce::AsyncUpdater" = type { ptr, %"class.juce::ReferenceCountedObjectPtr.15" }
%"class.juce::ReferenceCountedObjectPtr.15" = type { ptr }
%"class.juce::ListenerList.39" = type { %"class.juce::Array.40" }
%"class.juce::Array.40" = type { %"class.juce::ArrayAllocationBase.41", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.41" = type <{ %"class.juce::HeapBlock.42", i32, [4 x i8] }>
%"class.juce::HeapBlock.42" = type { ptr }
%"class.juce::FocusChangeListener" = type { ptr }
%"class.juce::OwnedArray.138" = type { %"class.juce::ArrayAllocationBase.139", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.139" = type <{ %"class.juce::HeapBlock.140", i32, [4 x i8] }>
%"class.juce::HeapBlock.140" = type { ptr }
%"class.juce::OwnedArray.143" = type { %"class.juce::ArrayAllocationBase.144", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.144" = type <{ %"class.juce::HeapBlock.145", i32, [4 x i8] }>
%"class.juce::HeapBlock.145" = type { ptr }
%"struct.juce::KeyPressMappingSet::CommandMapping" = type <{ i32, [4 x i8], %"class.juce::Array.104", i8, [7 x i8] }>

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce22ApplicationCommandInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(60)) unnamed_addr #3 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK4juce10OwnedArrayINS_18KeyPressMappingSet14CommandMappingENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce18KeyPressMappingSet13invokeCommandEiRKNS_8KeyPressEbiPNS_9ComponentE(ptr noundef nonnull align 8 dereferenceable(128), i32 noundef, ptr noundef nonnull align 4 dereferenceable(12), i1 noundef zeroext, i32 noundef, ptr noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4juce18KeyPressMappingSet10keyPressedERKNS_8KeyPressEPNS_9ComponentE(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i8, align 1
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"struct.juce::ApplicationCommandInfo", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %16 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #4
  store i8 0, ptr %8, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !11
  br label %17

17:                                               ; preds = %85, %3
  %18 = load i32, ptr %9, align 4, !tbaa !11
  %19 = getelementptr inbounds %"class.juce::KeyPressMappingSet", ptr %16, i32 0, i32 4
  %20 = call noundef i32 @_ZNK4juce10OwnedArrayINS_18KeyPressMappingSet14CommandMappingENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %19) #4
  %21 = icmp slt i32 %18, %20
  br i1 %21, label %23, label %22

22:                                               ; preds = %17
  store i32 2, ptr %10, align 4
  br label %88

23:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %24 = getelementptr inbounds %"class.juce::KeyPressMappingSet", ptr %16, i32 0, i32 4
  %25 = load i32, ptr %9, align 4, !tbaa !11
  %26 = call noundef ptr @_ZNK4juce10OwnedArrayINS_18KeyPressMappingSet14CommandMappingENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %24, i32 noundef %25) #4
  store ptr %26, ptr %11, align 8, !tbaa !5
  %27 = load ptr, ptr %11, align 8, !tbaa !5
  %28 = getelementptr inbounds %"struct.juce::KeyPressMappingSet::CommandMapping", ptr %27, i32 0, i32 2
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = call noundef zeroext i1 @_ZNK4juce5ArrayINS_8KeyPressENS_20DummyCriticalSectionELi0EE8containsERKS1_(ptr noundef nonnull align 8 dereferenceable(20) %28, ptr noundef nonnull align 4 dereferenceable(12) %29)
  br i1 %30, label %31, label %81

31:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %32 = getelementptr inbounds %"class.juce::KeyPressMappingSet", ptr %16, i32 0, i32 3
  %33 = load ptr, ptr %32, align 8, !tbaa !13
  %34 = load ptr, ptr %11, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.juce::KeyPressMappingSet::CommandMapping", ptr %34, i32 0, i32 0
  %36 = load i32, ptr %35, align 8, !tbaa !31
  %37 = call noundef ptr @_ZNK4juce25ApplicationCommandManager15getCommandForIDEi(ptr noundef nonnull align 8 dereferenceable(88) %33, i32 noundef %36) #4
  store ptr %37, ptr %12, align 8, !tbaa !5
  %38 = load ptr, ptr %12, align 8, !tbaa !5
  %39 = icmp ne ptr %38, null
  br i1 %39, label %40, label %77

40:                                               ; preds = %31
  %41 = load ptr, ptr %12, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.juce::ApplicationCommandInfo", ptr %41, i32 0, i32 6
  %43 = load i32, ptr %42, align 8, !tbaa !36
  %44 = and i32 %43, 4
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %46, label %76

46:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 64, ptr %13) #4
  call void @_ZN4juce22ApplicationCommandInfoC1Ei(ptr noundef nonnull align 8 dereferenceable(60) %13, i32 noundef 0) #4
  %47 = getelementptr inbounds %"class.juce::KeyPressMappingSet", ptr %16, i32 0, i32 3
  %48 = load ptr, ptr %47, align 8, !tbaa !13
  %49 = load ptr, ptr %11, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.juce::KeyPressMappingSet::CommandMapping", ptr %49, i32 0, i32 0
  %51 = load i32, ptr %50, align 8, !tbaa !31
  %52 = invoke noundef ptr @_ZN4juce25ApplicationCommandManager19getTargetForCommandEiRNS_22ApplicationCommandInfoE(ptr noundef nonnull align 8 dereferenceable(88) %48, i32 noundef %51, ptr noundef nonnull align 8 dereferenceable(60) %13)
          to label %53 unwind label %67

53:                                               ; preds = %46
  %54 = icmp ne ptr %52, null
  br i1 %54, label %55, label %72

55:                                               ; preds = %53
  %56 = getelementptr inbounds %"struct.juce::ApplicationCommandInfo", ptr %13, i32 0, i32 6
  %57 = load i32, ptr %56, align 8, !tbaa !36
  %58 = and i32 %57, 1
  %59 = icmp eq i32 %58, 0
  br i1 %59, label %60, label %71

60:                                               ; preds = %55
  %61 = load ptr, ptr %11, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.juce::KeyPressMappingSet::CommandMapping", ptr %61, i32 0, i32 0
  %63 = load i32, ptr %62, align 8, !tbaa !31
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZNK4juce18KeyPressMappingSet13invokeCommandEiRKNS_8KeyPressEbiPNS_9ComponentE(ptr noundef nonnull align 8 dereferenceable(128) %16, i32 noundef %63, ptr noundef nonnull align 4 dereferenceable(12) %64, i1 noundef zeroext true, i32 noundef 0, ptr noundef %65)
          to label %66 unwind label %67

66:                                               ; preds = %60
  store i1 true, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %73

67:                                               ; preds = %60, %46
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %14, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %15, align 4
  call void @_ZN4juce22ApplicationCommandInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %13) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #4
  br label %105

71:                                               ; preds = %55
  store i8 1, ptr %8, align 1, !tbaa !9
  br label %72

72:                                               ; preds = %71, %53
  store i32 0, ptr %10, align 4
  br label %73

73:                                               ; preds = %72, %66
  call void @_ZN4juce22ApplicationCommandInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %13) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %13) #4
  %74 = load i32, ptr %10, align 4
  switch i32 %74, label %78 [
    i32 0, label %75
  ]

75:                                               ; preds = %73
  br label %76

76:                                               ; preds = %75, %40
  br label %77

77:                                               ; preds = %76, %31
  store i32 0, ptr %10, align 4
  br label %78

78:                                               ; preds = %77, %73
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  %79 = load i32, ptr %10, align 4
  switch i32 %79, label %82 [
    i32 0, label %80
  ]

80:                                               ; preds = %78
  br label %81

81:                                               ; preds = %80, %23
  store i32 0, ptr %10, align 4
  br label %82

82:                                               ; preds = %81, %78
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  %83 = load i32, ptr %10, align 4
  switch i32 %83, label %88 [
    i32 0, label %84
  ]

84:                                               ; preds = %82
  br label %85

85:                                               ; preds = %84
  %86 = load i32, ptr %9, align 4, !tbaa !11
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %9, align 4, !tbaa !11
  br label %17, !llvm.loop !40

88:                                               ; preds = %82, %22
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  %89 = load i32, ptr %10, align 4
  switch i32 %89, label %103 [
    i32 2, label %90
  ]

90:                                               ; preds = %88
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = icmp ne ptr %91, null
  br i1 %92, label %93, label %102

93:                                               ; preds = %90
  %94 = load i8, ptr %8, align 1, !tbaa !9, !range !42, !noundef !43
  %95 = trunc i8 %94 to i1
  br i1 %95, label %96, label %102

96:                                               ; preds = %93
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  %98 = call noundef nonnull align 8 dereferenceable(281) ptr @_ZNK4juce9Component14getLookAndFeelEv(ptr noundef nonnull align 8 dereferenceable(197) %97) #4
  %99 = load ptr, ptr %98, align 8, !tbaa !44
  %100 = getelementptr inbounds ptr, ptr %99, i64 16
  %101 = load ptr, ptr %100, align 8
  call void %101(ptr noundef nonnull align 8 dereferenceable(281) %98)
  br label %102

102:                                              ; preds = %96, %93, %90
  store i1 false, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %103

103:                                              ; preds = %102, %88
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #4
  %104 = load i1, ptr %4, align 1
  ret i1 %104

105:                                              ; preds = %67
  %106 = load ptr, ptr %14, align 8
  %107 = load i32, ptr %15, align 4
  %108 = insertvalue { ptr, i32 } poison, ptr %106, 0
  %109 = insertvalue { ptr, i32 } %108, i32 %107, 1
  resume { ptr, i32 } %109
}

declare void @_ZN4juce22ApplicationCommandInfoC1Ei(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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 72}
!14 = !{!"_ZTSN4juce18KeyPressMappingSetE", !15, i64 0, !16, i64 8, !24, i64 64, !6, i64 72, !25, i64 80, !28, i64 104}
!15 = !{!"_ZTSN4juce11KeyListenerE"}
!16 = !{!"_ZTSN4juce17ChangeBroadcasterE", !17, i64 8, !20, i64 32}
!17 = !{!"_ZTSN4juce17ChangeBroadcaster25ChangeBroadcasterCallbackE", !18, i64 0, !6, i64 16}
!18 = !{!"_ZTSN4juce12AsyncUpdaterE", !19, i64 8}
!19 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_12AsyncUpdater19AsyncUpdaterMessageEEE", !6, i64 0}
!20 = !{!"_ZTSN4juce12ListenerListINS_14ChangeListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !21, i64 0}
!21 = !{!"_ZTSN4juce5ArrayIPNS_14ChangeListenerENS_20DummyCriticalSectionELi0EEE", !22, i64 0, !12, i64 16}
!22 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_14ChangeListenerENS_20DummyCriticalSectionEEE", !23, i64 0, !12, i64 8}
!23 = !{!"_ZTSN4juce9HeapBlockIPNS_14ChangeListenerELb0EEE", !6, i64 0}
!24 = !{!"_ZTSN4juce19FocusChangeListenerE"}
!25 = !{!"_ZTSN4juce10OwnedArrayINS_18KeyPressMappingSet14CommandMappingENS_20DummyCriticalSectionEEE", !26, i64 0, !12, i64 16}
!26 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_18KeyPressMappingSet14CommandMappingENS_20DummyCriticalSectionEEE", !27, i64 0, !12, i64 8}
!27 = !{!"_ZTSN4juce9HeapBlockIPNS_18KeyPressMappingSet14CommandMappingELb0EEE", !6, i64 0}
!28 = !{!"_ZTSN4juce10OwnedArrayINS_18KeyPressMappingSet12KeyPressTimeENS_20DummyCriticalSectionEEE", !29, i64 0, !12, i64 16}
!29 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_18KeyPressMappingSet12KeyPressTimeENS_20DummyCriticalSectionEEE", !30, i64 0, !12, i64 8}
!30 = !{!"_ZTSN4juce9HeapBlockIPNS_18KeyPressMappingSet12KeyPressTimeELb0EEE", !6, i64 0}
!31 = !{!32, !12, i64 0}
!32 = !{!"_ZTSN4juce18KeyPressMappingSet14CommandMappingE", !12, i64 0, !33, i64 8, !10, i64 32}
!33 = !{!"_ZTSN4juce5ArrayINS_8KeyPressENS_20DummyCriticalSectionELi0EEE", !34, i64 0, !12, i64 16}
!34 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_8KeyPressENS_20DummyCriticalSectionEEE", !35, i64 0, !12, i64 8}
!35 = !{!"_ZTSN4juce9HeapBlockINS_8KeyPressELb0EEE", !6, i64 0}
!36 = !{!37, !12, i64 56}
!37 = !{!"_ZTSN4juce22ApplicationCommandInfoE", !12, i64 0, !38, i64 8, !38, i64 16, !38, i64 24, !33, i64 32, !12, i64 56}
!38 = !{!"_ZTSN4juce6StringE", !39, i64 0}
!39 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!40 = distinct !{!40, !41}
!41 = !{!"llvm.loop.mustprogress"}
!42 = !{i8 0, i8 2}
!43 = !{}
!44 = !{!45, !45, i64 0}
!45 = !{!"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"

%"struct.juce::ApplicationCommandInfo" = type <{ i32, [4 x i8], %"class.juce::String", %"class.juce::String", %"class.juce::String", %"class.juce::Array.104", i32, [4 x i8] }>
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::Array.104" = type { %"class.juce::ArrayAllocationBase.105", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.105" = type <{ %"class.juce::HeapBlock.106", i32, [4 x i8] }>
%"class.juce::HeapBlock.106" = type { ptr }

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN4juce25ApplicationCommandManager19getTargetForCommandEiRNS_22ApplicationCommandInfoE(ptr noundef nonnull align 8 dereferenceable(88), i32 noundef, ptr noundef nonnull align 8 dereferenceable(60)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce22ApplicationCommandInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(60)) unnamed_addr #3 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK4juce10OwnedArrayINS_18KeyPressMappingSet14CommandMappingENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce18KeyPressMappingSet13invokeCommandEiRKNS_8KeyPressEbiPNS_9ComponentE(ptr noundef nonnull align 8 dereferenceable(128), i32 noundef, ptr noundef nonnull align 4 dereferenceable(12), i1 noundef zeroext, i32 noundef, ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4juce18KeyPressMappingSet10keyPressedERKNS_8KeyPressEPNS_9ComponentE(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"struct.juce::ApplicationCommandInfo", align 8
  %5 = getelementptr inbounds i8, ptr %0, i64 80
  %6 = tail call noundef i32 @_ZNK4juce10OwnedArrayINS_18KeyPressMappingSet14CommandMappingENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %5) #4
  %.not4161 = icmp sgt i32 %6, 0
  br i1 %.not4161, label %.lr.ph, label %._crit_edge.thread

.lr.ph:                                           ; preds = %3
  %7 = getelementptr inbounds i8, ptr %0, i64 72
  %8 = getelementptr inbounds i8, ptr %4, i64 56
  br label %9

9:                                                ; preds = %.lr.ph, %.thread
  %.02563 = phi i1 [ false, %.lr.ph ], [ %.63146, %.thread ]
  %.03362 = phi i32 [ 0, %.lr.ph ], [ %34, %.thread ]
  %10 = call noundef ptr @_ZNK4juce10OwnedArrayINS_18KeyPressMappingSet14CommandMappingENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %5, i32 noundef %.03362) #4
  %11 = getelementptr inbounds i8, ptr %10, i64 8
  %12 = call noundef zeroext i1 @_ZNK4juce5ArrayINS_8KeyPressENS_20DummyCriticalSectionELi0EE8containsERKS1_(ptr noundef nonnull align 8 dereferenceable(20) %11, ptr noundef nonnull align 4 dereferenceable(12) %1)
  br i1 %12, label %13, label %.thread

13:                                               ; preds = %9
  %14 = load ptr, ptr %7, align 8, !tbaa !5
  %15 = load i32, ptr %10, align 8, !tbaa !27
  %16 = call noundef ptr @_ZNK4juce25ApplicationCommandManager15getCommandForIDEi(ptr noundef nonnull align 8 dereferenceable(88) %14, i32 noundef %15) #4
  %.not = icmp eq ptr %16, null
  br i1 %.not, label %.thread, label %17

17:                                               ; preds = %13
  %18 = getelementptr inbounds i8, ptr %16, i64 56
  %19 = load i32, ptr %18, align 8, !tbaa !33
  %20 = and i32 %19, 4
  %21 = icmp eq i32 %20, 0
  br i1 %21, label %22, label %.thread

22:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #4
  call void @_ZN4juce22ApplicationCommandInfoC1Ei(ptr noundef nonnull align 8 dereferenceable(60) %4, i32 noundef 0) #4
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = load i32, ptr %10, align 8, !tbaa !27
  %25 = invoke noundef ptr @_ZN4juce25ApplicationCommandManager19getTargetForCommandEiRNS_22ApplicationCommandInfoE(ptr noundef nonnull align 8 dereferenceable(88) %23, i32 noundef %24, ptr noundef nonnull align 8 dereferenceable(60) %4)
          to label %26 unwind label %.loopexit

26:                                               ; preds = %22
  %.not40 = icmp eq ptr %25, null
  br i1 %.not40, label %.thread48, label %27

27:                                               ; preds = %26
  %28 = load i32, ptr %8, align 8, !tbaa !33
  %29 = and i32 %28, 1
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %31, label %.thread48

31:                                               ; preds = %27
  %32 = load i32, ptr %10, align 8, !tbaa !27
  invoke void @_ZNK4juce18KeyPressMappingSet13invokeCommandEiRKNS_8KeyPressEbiPNS_9ComponentE(ptr noundef nonnull align 8 dereferenceable(128) %0, i32 noundef %32, ptr noundef nonnull align 4 dereferenceable(12) %1, i1 noundef zeroext true, i32 noundef 0, ptr noundef %2)
          to label %.thread51 unwind label %.loopexit.split-lp

.loopexit:                                        ; preds = %22
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %33

.loopexit.split-lp:                               ; preds = %31
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %33

33:                                               ; preds = %.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN4juce22ApplicationCommandInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %4) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #4
  resume { ptr, i32 } %lpad.phi

.thread48:                                        ; preds = %27, %26
  %.227.ph = phi i1 [ true, %27 ], [ %.02563, %26 ]
  call void @_ZN4juce22ApplicationCommandInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %4) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #4
  br label %.thread

.thread51:                                        ; preds = %31
  call void @_ZN4juce22ApplicationCommandInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %4) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #4
  br label %._crit_edge.thread

.thread:                                          ; preds = %13, %17, %9, %.thread48
  %.63146 = phi i1 [ %.227.ph, %.thread48 ], [ %.02563, %9 ], [ %.02563, %17 ], [ %.02563, %13 ]
  %34 = add nuw nsw i32 %.03362, 1
  %35 = call noundef i32 @_ZNK4juce10OwnedArrayINS_18KeyPressMappingSet14CommandMappingENS_20DummyCriticalSectionEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(20) %5) #4
  %.not41 = icmp slt i32 %34, %35
  br i1 %.not41, label %9, label %._crit_edge, !llvm.loop !37

._crit_edge:                                      ; preds = %.thread
  %.not42 = icmp ne ptr %2, null
  %brmerge.not = select i1 %.not42, i1 %.63146, i1 false
  br i1 %brmerge.not, label %36, label %._crit_edge.thread

36:                                               ; preds = %._crit_edge
  %37 = call noundef nonnull align 8 dereferenceable(281) ptr @_ZNK4juce9Component14getLookAndFeelEv(ptr noundef nonnull align 8 dereferenceable(197) %2) #4
  %38 = load ptr, ptr %37, align 8, !tbaa !39
  %39 = getelementptr inbounds i8, ptr %38, i64 128
  %40 = load ptr, ptr %39, align 8
  call void %40(ptr noundef nonnull align 8 dereferenceable(281) %37)
  br label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %3, %._crit_edge, %.thread51, %36
  %.not4157 = phi i1 [ false, %._crit_edge ], [ true, %.thread51 ], [ false, %36 ], [ false, %3 ]
  ret i1 %.not4157
}

declare void @_ZN4juce22ApplicationCommandInfoC1Ei(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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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, !12, i64 72}
!6 = !{!"_ZTSN4juce18KeyPressMappingSetE", !7, i64 0, !8, i64 8, !20, i64 64, !12, i64 72, !21, i64 80, !24, i64 104}
!7 = !{!"_ZTSN4juce11KeyListenerE"}
!8 = !{!"_ZTSN4juce17ChangeBroadcasterE", !9, i64 8, !15, i64 32}
!9 = !{!"_ZTSN4juce17ChangeBroadcaster25ChangeBroadcasterCallbackE", !10, i64 0, !12, i64 16}
!10 = !{!"_ZTSN4juce12AsyncUpdaterE", !11, i64 8}
!11 = !{!"_ZTSN4juce25ReferenceCountedObjectPtrINS_12AsyncUpdater19AsyncUpdaterMessageEEE", !12, i64 0}
!12 = !{!"any pointer", !13, i64 0}
!13 = !{!"omnipotent char", !14, i64 0}
!14 = !{!"Simple C++ TBAA"}
!15 = !{!"_ZTSN4juce12ListenerListINS_14ChangeListenerENS_5ArrayIPS1_NS_20DummyCriticalSectionELi0EEEEE", !16, i64 0}
!16 = !{!"_ZTSN4juce5ArrayIPNS_14ChangeListenerENS_20DummyCriticalSectionELi0EEE", !17, i64 0, !19, i64 16}
!17 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_14ChangeListenerENS_20DummyCriticalSectionEEE", !18, i64 0, !19, i64 8}
!18 = !{!"_ZTSN4juce9HeapBlockIPNS_14ChangeListenerELb0EEE", !12, i64 0}
!19 = !{!"int", !13, i64 0}
!20 = !{!"_ZTSN4juce19FocusChangeListenerE"}
!21 = !{!"_ZTSN4juce10OwnedArrayINS_18KeyPressMappingSet14CommandMappingENS_20DummyCriticalSectionEEE", !22, i64 0, !19, i64 16}
!22 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_18KeyPressMappingSet14CommandMappingENS_20DummyCriticalSectionEEE", !23, i64 0, !19, i64 8}
!23 = !{!"_ZTSN4juce9HeapBlockIPNS_18KeyPressMappingSet14CommandMappingELb0EEE", !12, i64 0}
!24 = !{!"_ZTSN4juce10OwnedArrayINS_18KeyPressMappingSet12KeyPressTimeENS_20DummyCriticalSectionEEE", !25, i64 0, !19, i64 16}
!25 = !{!"_ZTSN4juce19ArrayAllocationBaseIPNS_18KeyPressMappingSet12KeyPressTimeENS_20DummyCriticalSectionEEE", !26, i64 0, !19, i64 8}
!26 = !{!"_ZTSN4juce9HeapBlockIPNS_18KeyPressMappingSet12KeyPressTimeELb0EEE", !12, i64 0}
!27 = !{!28, !19, i64 0}
!28 = !{!"_ZTSN4juce18KeyPressMappingSet14CommandMappingE", !19, i64 0, !29, i64 8, !32, i64 32}
!29 = !{!"_ZTSN4juce5ArrayINS_8KeyPressENS_20DummyCriticalSectionELi0EEE", !30, i64 0, !19, i64 16}
!30 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_8KeyPressENS_20DummyCriticalSectionEEE", !31, i64 0, !19, i64 8}
!31 = !{!"_ZTSN4juce9HeapBlockINS_8KeyPressELb0EEE", !12, i64 0}
!32 = !{!"bool", !13, i64 0}
!33 = !{!34, !19, i64 56}
!34 = !{!"_ZTSN4juce22ApplicationCommandInfoE", !19, i64 0, !35, i64 8, !35, i64 16, !35, i64 24, !29, i64 32, !19, i64 56}
!35 = !{!"_ZTSN4juce6StringE", !36, i64 0}
!36 = !{!"_ZTSN4juce16CharPointer_UTF8E", !12, i64 0}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.mustprogress"}
!39 = !{!40, !40, i64 0}
!40 = !{!"vtable pointer", !14, i64 0}


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