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

; 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::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::Colour" = type { %"class.juce::PixelARGB" }
%"class.juce::PixelARGB" = type { %union.anon.92 }
%union.anon.92 = type { i32 }
%"class.juce::KeyMappingEditorComponent" = type { %"class.juce::Component.base", ptr, %"class.juce::TreeView", %"class.juce::TextButton", %"class.juce::ScopedPointer.197" }
%"class.juce::Component.base" = type <{ %"class.juce::MouseListener", %"class.juce::String", %"class.juce::String", ptr, %"class.juce::Rectangle", %"class.juce::ScopedPointer", %"class.juce::ScopedPointer.37", %"class.juce::Array.38", ptr, %"class.juce::MouseCursor", ptr, %"class.juce::ScopedPointer.43", %"class.juce::ScopedPointer.44", %"class.juce::ScopedPointer.45", %"class.juce::ListenerList.46", %"class.juce::NamedValueSet", %"class.juce::WeakReference<juce::Component>::Master", %union.anon, i8 }>
%"class.juce::MouseListener" = type { ptr }
%"class.juce::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::Point" = type { i32, i32 }
%"class.juce::ScopedPointer" = type { ptr }
%"class.juce::ScopedPointer.37" = type { ptr }
%"class.juce::Array.38" = type { %"class.juce::ArrayAllocationBase.39", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.39" = type <{ %"class.juce::HeapBlock.40", i32, [4 x i8] }>
%"class.juce::HeapBlock.40" = type { ptr }
%"class.juce::MouseCursor" = type { ptr }
%"class.juce::ScopedPointer.43" = type { ptr }
%"class.juce::ScopedPointer.44" = type { ptr }
%"class.juce::ScopedPointer.45" = type { ptr }
%"class.juce::ListenerList.46" = type { %"class.juce::Array.47" }
%"class.juce::Array.47" = type { %"class.juce::ArrayAllocationBase.48", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.48" = type <{ %"class.juce::HeapBlock.49", i32, [4 x i8] }>
%"class.juce::HeapBlock.49" = type { ptr }
%"class.juce::NamedValueSet" = type { %"class.juce::Array.52" }
%"class.juce::Array.52" = type { %"class.juce::ArrayAllocationBase.53", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.53" = type <{ %"class.juce::HeapBlock.54", i32, [4 x i8] }>
%"class.juce::HeapBlock.54" = type { ptr }
%"class.juce::WeakReference<juce::Component>::Master" = type { %"class.juce::ReferenceCountedObjectPtr.57" }
%"class.juce::ReferenceCountedObjectPtr.57" = type { ptr }
%union.anon = type { i32 }
%"class.juce::TreeView" = type <{ %"class.juce::Component.base", [3 x i8], %"class.juce::SettableTooltipClient", %"class.juce::FileDragAndDropTarget", %"class.juce::DragAndDropTarget", %"class.juce::ScopedPointer.179", %"class.juce::CriticalSection", ptr, %"class.juce::ScopedPointer.180", %"class.juce::ScopedPointer.181", i32, i8, i8, i8, i8, i8, [7 x i8] }>
%"class.juce::SettableTooltipClient" = type { %"class.juce::TooltipClient", %"class.juce::String" }
%"class.juce::TooltipClient" = type { ptr }
%"class.juce::FileDragAndDropTarget" = type { ptr }
%"class.juce::DragAndDropTarget" = type { ptr }
%"class.juce::ScopedPointer.179" = type { ptr }
%"class.juce::CriticalSection" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.juce::ScopedPointer.180" = type { ptr }
%"class.juce::ScopedPointer.181" = type { ptr }
%"class.juce::TextButton" = type { %"class.juce::Button.base", i8 }
%"class.juce::Button.base" = type <{ %"class.juce::Component.base", [3 x i8], %"class.juce::SettableTooltipClient", %"class.juce::Array.121", %"class.juce::WeakReference.182", %"class.juce::String", %"class.juce::ListenerList.183", %"class.juce::ScopedPointer.189", i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, %"class.juce::Value", i8, i8, i8, i8, i8, i8, i8 }>
%"class.juce::Array.121" = type { %"class.juce::ArrayAllocationBase.122", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.122" = type <{ %"class.juce::HeapBlock.123", i32, [4 x i8] }>
%"class.juce::HeapBlock.123" = type { ptr }
%"class.juce::WeakReference.182" = type { %"class.juce::ReferenceCountedObjectPtr.57" }
%"class.juce::ListenerList.183" = type { %"class.juce::Array.184" }
%"class.juce::Array.184" = type { %"class.juce::ArrayAllocationBase.185", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.185" = type <{ %"class.juce::HeapBlock.186", i32, [4 x i8] }>
%"class.juce::HeapBlock.186" = type { ptr }
%"class.juce::ScopedPointer.189" = type { ptr }
%"class.juce::Value" = type { %"class.juce::ReferenceCountedObjectPtr.190", %"class.juce::ListenerList.191" }
%"class.juce::ReferenceCountedObjectPtr.190" = type { ptr }
%"class.juce::ListenerList.191" = type { %"class.juce::Array.192" }
%"class.juce::Array.192" = type { %"class.juce::ArrayAllocationBase.193", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.193" = type <{ %"class.juce::HeapBlock.194", i32, [4 x i8] }>
%"class.juce::HeapBlock.194" = type { ptr }
%"class.juce::ScopedPointer.197" = type { ptr }

@_ZTVN4juce25KeyMappingEditorComponentE = external dso_local unnamed_addr constant { [50 x ptr] }, align 8
@.str.50 = external hidden unnamed_addr constant [18 x i8], align 1

; 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

declare i32 @__gxx_personality_v0(...)

declare void @_ZN4juce9translateEPKc(ptr dead_on_unwind writable sret(%"class.juce::String") align 8, ptr noundef) #2

; 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 @_ZN4juce6StringC1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #3

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #4

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

declare void @_ZN4juce9Component17addAndMakeVisibleERS0_i(ptr noundef nonnull align 8 dereferenceable(197), ptr noundef nonnull align 8 dereferenceable(197), i32 noundef) #2

declare void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1, ptr noundef nonnull align 8 dereferenceable(197), i32 noundef, i1 noundef zeroext) #2

; Function Attrs: nounwind
declare void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4)) unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce25KeyMappingEditorComponentC2ERNS_18KeyPressMappingSetEb(ptr noundef nonnull align 8 dereferenceable(912) %0, ptr noundef nonnull align 8 dereferenceable(128) %1, i1 noundef zeroext %2) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca %"class.juce::String", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.juce::String", align 8
  %11 = alloca %"class.juce::Colour", align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %12 = zext i1 %2 to i8
  store i8 %12, ptr %6, align 1, !tbaa !9
  %13 = load ptr, ptr %4, align 8
  call void @_ZN4juce9ComponentC2Ev(ptr noundef nonnull align 8 dereferenceable(197) %13) #8
  store ptr getelementptr inbounds inrange(-16, 384) ({ [50 x ptr] }, ptr @_ZTVN4juce25KeyMappingEditorComponentE, i32 0, i32 0, i32 2), ptr %13, align 8, !tbaa !11
  %14 = getelementptr inbounds %"class.juce::KeyMappingEditorComponent", ptr %13, i32 0, i32 1
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %15, ptr %14, align 8, !tbaa !5
  %16 = getelementptr inbounds %"class.juce::KeyMappingEditorComponent", ptr %13, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  call void @_ZN4juce6StringC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  invoke void @_ZN4juce8TreeViewC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(313) %16, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %17 unwind label %42

17:                                               ; preds = %3
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  %18 = getelementptr inbounds %"class.juce::KeyMappingEditorComponent", ptr %13, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  invoke void @_ZN4juce9translateEPKc(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %10, ptr noundef @.str.50)
          to label %19 unwind label %46

19:                                               ; preds = %17
  invoke void @_ZN4juce10TextButtonC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(375) %18, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %20 unwind label %50

20:                                               ; preds = %19
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  %21 = getelementptr inbounds %"class.juce::KeyMappingEditorComponent", ptr %13, i32 0, i32 4
  call void @_ZN4juce13ScopedPointerINS_25KeyMappingEditorComponent12TopLevelItemEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #8
  %22 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 104) #9
          to label %23 unwind label %55

23:                                               ; preds = %20
  invoke void @_ZN4juce25KeyMappingEditorComponent12TopLevelItemC2ERS0_(ptr noundef nonnull align 8 dereferenceable(104) %22, ptr noundef nonnull align 8 dereferenceable(912) %13)
          to label %24 unwind label %59

24:                                               ; preds = %23
  %25 = getelementptr inbounds %"class.juce::KeyMappingEditorComponent", ptr %13, i32 0, i32 4
  %26 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_25KeyMappingEditorComponent12TopLevelItemEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef %22)
          to label %27 unwind label %55

27:                                               ; preds = %24
  %28 = load i8, ptr %6, align 1, !tbaa !9, !range !13, !noundef !14
  %29 = trunc i8 %28 to i1
  br i1 %29, label %30, label %63

30:                                               ; preds = %27
  %31 = getelementptr inbounds %"class.juce::KeyMappingEditorComponent", ptr %13, i32 0, i32 3
  invoke void @_ZN4juce9Component17addAndMakeVisibleERS0_i(ptr noundef nonnull align 8 dereferenceable(197) %13, ptr noundef nonnull align 8 dereferenceable(197) %31, i32 noundef -1)
          to label %32 unwind label %55

32:                                               ; preds = %30
  %33 = getelementptr inbounds %"class.juce::KeyMappingEditorComponent", ptr %13, i32 0, i32 3
  %34 = getelementptr inbounds %"class.juce::KeyMappingEditorComponent", ptr %13, i32 0, i32 4
  %35 = call noundef ptr @_ZNK4juce13ScopedPointerINS_25KeyMappingEditorComponent12TopLevelItemEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %34) #8
  %36 = icmp eq ptr %35, null
  br i1 %36, label %39, label %37

37:                                               ; preds = %32
  %38 = getelementptr inbounds i8, ptr %35, i64 80
  br label %39

39:                                               ; preds = %37, %32
  %40 = phi ptr [ %38, %37 ], [ null, %32 ]
  invoke void @_ZN4juce6Button11addListenerEPNS0_8ListenerE(ptr noundef nonnull align 8 dereferenceable(375) %33, ptr noundef %40)
          to label %41 unwind label %55

41:                                               ; preds = %39
  br label %63

42:                                               ; preds = %3
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %8, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %9, align 4
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  br label %85

46:                                               ; preds = %17
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %8, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %9, align 4
  br label %54

50:                                               ; preds = %19
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %8, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %9, align 4
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  br label %54

54:                                               ; preds = %50, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %84

55:                                               ; preds = %76, %72, %70, %68, %65, %63, %39, %30, %24, %20
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %8, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %9, align 4
  br label %83

59:                                               ; preds = %23
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %8, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %22, i64 noundef 104) #10
  br label %83

63:                                               ; preds = %41, %27
  %64 = getelementptr inbounds %"class.juce::KeyMappingEditorComponent", ptr %13, i32 0, i32 2
  invoke void @_ZN4juce9Component17addAndMakeVisibleERS0_i(ptr noundef nonnull align 8 dereferenceable(197) %13, ptr noundef nonnull align 8 dereferenceable(197) %64, i32 noundef -1)
          to label %65 unwind label %55

65:                                               ; preds = %63
  %66 = getelementptr inbounds %"class.juce::KeyMappingEditorComponent", ptr %13, i32 0, i32 2
  invoke void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %11, ptr noundef nonnull align 8 dereferenceable(197) %13, i32 noundef 16821504, i1 noundef zeroext false)
          to label %67 unwind label %55

67:                                               ; preds = %65
  invoke void @_ZN4juce9Component9setColourEiNS_6ColourE(ptr noundef nonnull align 8 dereferenceable(197) %66, i32 noundef 16778496, ptr noundef %11)
          to label %68 unwind label %79

68:                                               ; preds = %67
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %11) #8
  %69 = getelementptr inbounds %"class.juce::KeyMappingEditorComponent", ptr %13, i32 0, i32 2
  invoke void @_ZN4juce8TreeView18setRootItemVisibleEb(ptr noundef nonnull align 8 dereferenceable(313) %69, i1 noundef zeroext false)
          to label %70 unwind label %55

70:                                               ; preds = %68
  %71 = getelementptr inbounds %"class.juce::KeyMappingEditorComponent", ptr %13, i32 0, i32 2
  invoke void @_ZN4juce8TreeView18setDefaultOpennessEb(ptr noundef nonnull align 8 dereferenceable(313) %71, i1 noundef zeroext true)
          to label %72 unwind label %55

72:                                               ; preds = %70
  %73 = getelementptr inbounds %"class.juce::KeyMappingEditorComponent", ptr %13, i32 0, i32 2
  %74 = getelementptr inbounds %"class.juce::KeyMappingEditorComponent", ptr %13, i32 0, i32 4
  %75 = call noundef ptr @_ZNK4juce13ScopedPointerINS_25KeyMappingEditorComponent12TopLevelItemEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %74) #8
  invoke void @_ZN4juce8TreeView11setRootItemEPNS_12TreeViewItemE(ptr noundef nonnull align 8 dereferenceable(313) %73, ptr noundef %75)
          to label %76 unwind label %55

76:                                               ; preds = %72
  %77 = getelementptr inbounds %"class.juce::KeyMappingEditorComponent", ptr %13, i32 0, i32 2
  invoke void @_ZN4juce8TreeView13setIndentSizeEi(ptr noundef nonnull align 8 dereferenceable(313) %77, i32 noundef 12)
          to label %78 unwind label %55

78:                                               ; preds = %76
  ret void

79:                                               ; preds = %67
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %8, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %9, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %11) #8
  br label %83

83:                                               ; preds = %79, %59, %55
  call void @_ZN4juce13ScopedPointerINS_25KeyMappingEditorComponent12TopLevelItemEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #8
  call void @_ZN4juce10TextButtonD1Ev(ptr noundef nonnull align 8 dereferenceable(375) %18) #8
  br label %84

84:                                               ; preds = %83, %54
  call void @_ZN4juce8TreeViewD1Ev(ptr noundef nonnull align 8 dereferenceable(313) %16) #8
  br label %85

85:                                               ; preds = %84, %42
  call void @_ZN4juce9ComponentD2Ev(ptr noundef nonnull align 8 dereferenceable(197) %13) #8
  br label %86

86:                                               ; preds = %85
  %87 = load ptr, ptr %8, align 8
  %88 = load i32, ptr %9, align 4
  %89 = insertvalue { ptr, i32 } poison, ptr %87, 0
  %90 = insertvalue { ptr, i32 } %89, i32 %88, 1
  resume { ptr, i32 } %90
}

declare void @_ZN4juce8TreeViewC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(313), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2

declare void @_ZN4juce10TextButtonC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(375), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce25KeyMappingEditorComponent12TopLevelItemC2ERS0_(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(912)) unnamed_addr #5 align 2

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

declare void @_ZN4juce6Button11addListenerEPNS0_8ListenerE(ptr noundef nonnull align 8 dereferenceable(375), ptr noundef) #2

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

declare void @_ZN4juce9Component9setColourEiNS_6ColourE(ptr noundef nonnull align 8 dereferenceable(197), i32 noundef, ptr noundef) #2

declare void @_ZN4juce8TreeView18setRootItemVisibleEb(ptr noundef nonnull align 8 dereferenceable(313), i1 noundef zeroext) #2

declare void @_ZN4juce8TreeView18setDefaultOpennessEb(ptr noundef nonnull align 8 dereferenceable(313), i1 noundef zeroext) #2

declare void @_ZN4juce8TreeView11setRootItemEPNS_12TreeViewItemE(ptr noundef nonnull align 8 dereferenceable(313), ptr noundef) #2

declare void @_ZN4juce8TreeView13setIndentSizeEi(ptr noundef nonnull align 8 dereferenceable(313), i32 noundef) #2

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

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

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

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

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 = { "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 = { 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 #4 = { 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 #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 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}


; 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::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::Colour" = type { %"class.juce::PixelARGB" }
%"class.juce::PixelARGB" = type { %union.anon.92 }
%union.anon.92 = type { i32 }

@_ZTVN4juce25KeyMappingEditorComponentE = external dso_local unnamed_addr constant { [50 x ptr] }, align 8
@.str.50 = external hidden unnamed_addr constant [18 x i8], align 1

; 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

declare i32 @__gxx_personality_v0(...)

declare void @_ZN4juce9translateEPKc(ptr dead_on_unwind writable sret(%"class.juce::String") align 8, ptr noundef) local_unnamed_addr #2

; 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 @_ZN4juce6StringC1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #3

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #4

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

declare void @_ZN4juce9Component17addAndMakeVisibleERS0_i(ptr noundef nonnull align 8 dereferenceable(197), ptr noundef nonnull align 8 dereferenceable(197), i32 noundef) local_unnamed_addr #2

declare void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1, ptr noundef nonnull align 8 dereferenceable(197), i32 noundef, i1 noundef zeroext) local_unnamed_addr #2

; Function Attrs: nounwind
declare void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4)) unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce25KeyMappingEditorComponentC2ERNS_18KeyPressMappingSetEb(ptr noundef nonnull align 8 dereferenceable(912) %0, ptr noundef nonnull align 8 dereferenceable(128) %1, i1 noundef zeroext %2) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.juce::String", align 8
  %5 = alloca %"class.juce::String", align 8
  %6 = alloca %"class.juce::Colour", align 1
  tail call void @_ZN4juce9ComponentC2Ev(ptr noundef nonnull align 8 dereferenceable(197) %0) #8
  store ptr getelementptr inbounds inrange(-16, 384) (i8, ptr @_ZTVN4juce25KeyMappingEditorComponentE, i64 16), ptr %0, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 200
  store ptr %1, ptr %7, align 8, !tbaa !8
  %8 = getelementptr inbounds i8, ptr %0, i64 208
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  call void @_ZN4juce6StringC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  invoke void @_ZN4juce8TreeViewC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(313) %8, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %9 unwind label %23

9:                                                ; preds = %3
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  %10 = getelementptr inbounds i8, ptr %0, i64 528
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  invoke void @_ZN4juce9translateEPKc(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %5, ptr noundef nonnull @.str.50)
          to label %11 unwind label %25

11:                                               ; preds = %9
  invoke void @_ZN4juce10TextButtonC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(375) %10, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %12 unwind label %27

12:                                               ; preds = %11
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  %13 = getelementptr inbounds i8, ptr %0, i64 904
  call void @_ZN4juce13ScopedPointerINS_25KeyMappingEditorComponent12TopLevelItemEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  %14 = invoke noalias noundef nonnull dereferenceable(104) ptr @_Znwm(i64 noundef 104) #9
          to label %15 unwind label %30

15:                                               ; preds = %12
  invoke void @_ZN4juce25KeyMappingEditorComponent12TopLevelItemC2ERS0_(ptr noundef nonnull align 8 dereferenceable(104) %14, ptr noundef nonnull align 8 dereferenceable(912) %0)
          to label %16 unwind label %32

16:                                               ; preds = %15
  %17 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_25KeyMappingEditorComponent12TopLevelItemEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull %14)
  br i1 %2, label %18, label %34

18:                                               ; preds = %16
  invoke void @_ZN4juce9Component17addAndMakeVisibleERS0_i(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef nonnull align 8 dereferenceable(197) %10, i32 noundef -1)
          to label %19 unwind label %30

19:                                               ; preds = %18
  %20 = call noundef ptr @_ZNK4juce13ScopedPointerINS_25KeyMappingEditorComponent12TopLevelItemEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  %21 = icmp eq ptr %20, null
  %22 = getelementptr inbounds i8, ptr %20, i64 80
  %spec.select = select i1 %21, ptr null, ptr %22
  invoke void @_ZN4juce6Button11addListenerEPNS0_8ListenerE(ptr noundef nonnull align 8 dereferenceable(375) %10, ptr noundef %spec.select)
          to label %34 unwind label %30

23:                                               ; preds = %3
  %24 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  br label %47

25:                                               ; preds = %9
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %29

27:                                               ; preds = %11
  %28 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  br label %29

29:                                               ; preds = %27, %25
  %.pn = phi { ptr, i32 } [ %28, %27 ], [ %26, %25 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  br label %46

30:                                               ; preds = %41, %39, %38, %37, %35, %34, %19, %18, %12
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %45

32:                                               ; preds = %15
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %14, i64 noundef 104) #10
  br label %45

34:                                               ; preds = %19, %16
  invoke void @_ZN4juce9Component17addAndMakeVisibleERS0_i(ptr noundef nonnull align 8 dereferenceable(197) %0, ptr noundef nonnull align 8 dereferenceable(197) %8, i32 noundef -1)
          to label %35 unwind label %30

35:                                               ; preds = %34
  invoke void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %6, ptr noundef nonnull align 8 dereferenceable(197) %0, i32 noundef 16821504, i1 noundef zeroext false)
          to label %36 unwind label %30

36:                                               ; preds = %35
  invoke void @_ZN4juce9Component9setColourEiNS_6ColourE(ptr noundef nonnull align 8 dereferenceable(197) %8, i32 noundef 16778496, ptr noundef nonnull %6)
          to label %37 unwind label %43

37:                                               ; preds = %36
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %6) #8
  invoke void @_ZN4juce8TreeView18setRootItemVisibleEb(ptr noundef nonnull align 8 dereferenceable(313) %8, i1 noundef zeroext false)
          to label %38 unwind label %30

38:                                               ; preds = %37
  invoke void @_ZN4juce8TreeView18setDefaultOpennessEb(ptr noundef nonnull align 8 dereferenceable(313) %8, i1 noundef zeroext true)
          to label %39 unwind label %30

39:                                               ; preds = %38
  %40 = call noundef ptr @_ZNK4juce13ScopedPointerINS_25KeyMappingEditorComponent12TopLevelItemEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  invoke void @_ZN4juce8TreeView11setRootItemEPNS_12TreeViewItemE(ptr noundef nonnull align 8 dereferenceable(313) %8, ptr noundef %40)
          to label %41 unwind label %30

41:                                               ; preds = %39
  invoke void @_ZN4juce8TreeView13setIndentSizeEi(ptr noundef nonnull align 8 dereferenceable(313) %8, i32 noundef 12)
          to label %42 unwind label %30

42:                                               ; preds = %41
  ret void

43:                                               ; preds = %36
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %6) #8
  br label %45

45:                                               ; preds = %43, %32, %30
  %.pn9 = phi { ptr, i32 } [ %31, %30 ], [ %44, %43 ], [ %33, %32 ]
  call void @_ZN4juce13ScopedPointerINS_25KeyMappingEditorComponent12TopLevelItemEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  call void @_ZN4juce10TextButtonD1Ev(ptr noundef nonnull align 8 dereferenceable(375) %10) #8
  br label %46

46:                                               ; preds = %45, %29
  %.pn9.pn = phi { ptr, i32 } [ %.pn9, %45 ], [ %.pn, %29 ]
  call void @_ZN4juce8TreeViewD1Ev(ptr noundef nonnull align 8 dereferenceable(313) %8) #8
  br label %47

47:                                               ; preds = %46, %23
  %.pn9.pn.pn = phi { ptr, i32 } [ %.pn9.pn, %46 ], [ %24, %23 ]
  call void @_ZN4juce9ComponentD2Ev(ptr noundef nonnull align 8 dereferenceable(197) %0) #8
  resume { ptr, i32 } %.pn9.pn.pn
}

declare void @_ZN4juce8TreeViewC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(313), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2

declare void @_ZN4juce10TextButtonC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(375), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce25KeyMappingEditorComponent12TopLevelItemC2ERS0_(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(912)) unnamed_addr #5 align 2

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

declare void @_ZN4juce6Button11addListenerEPNS0_8ListenerE(ptr noundef nonnull align 8 dereferenceable(375), ptr noundef) local_unnamed_addr #2

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

declare void @_ZN4juce9Component9setColourEiNS_6ColourE(ptr noundef nonnull align 8 dereferenceable(197), i32 noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN4juce8TreeView18setRootItemVisibleEb(ptr noundef nonnull align 8 dereferenceable(313), i1 noundef zeroext) local_unnamed_addr #2

declare void @_ZN4juce8TreeView18setDefaultOpennessEb(ptr noundef nonnull align 8 dereferenceable(313), i1 noundef zeroext) local_unnamed_addr #2

declare void @_ZN4juce8TreeView11setRootItemEPNS_12TreeViewItemE(ptr noundef nonnull align 8 dereferenceable(313), ptr noundef) local_unnamed_addr #2

declare void @_ZN4juce8TreeView13setIndentSizeEi(ptr noundef nonnull align 8 dereferenceable(313), i32 noundef) local_unnamed_addr #2

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

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

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

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

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 = { "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 = { 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 #4 = { 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 #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 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}


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