; 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::Identifier" = type { %"class.juce::String" }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::ValueTree" = type { %"class.juce::ReferenceCountedObjectPtr.174", %"class.juce::ListenerList.175" }
%"class.juce::ReferenceCountedObjectPtr.174" = type { ptr }
%"class.juce::ListenerList.175" = type { %"class.juce::Array.176" }
%"class.juce::Array.176" = type { %"class.juce::ArrayAllocationBase.177", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.177" = type <{ %"class.juce::HeapBlock.178", i32, [4 x i8] }>
%"class.juce::HeapBlock.178" = type { ptr }
%"class.juce::DrawablePath::ValueTreeWrapper" = type { %"class.juce::DrawableShape::FillAndStrokeState" }
%"class.juce::DrawableShape::FillAndStrokeState" = type { %"class.juce::Drawable::ValueTreeWrapperBase" }
%"class.juce::Drawable::ValueTreeWrapperBase" = type { %"class.juce::ValueTree" }
%"class.juce::RelativePointPath" = type <{ %"class.juce::OwnedArray.201", i8, i8, [6 x i8] }>
%"class.juce::OwnedArray.201" = type { %"class.juce::ArrayAllocationBase.202", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.202" = type <{ %"class.juce::HeapBlock.203", i32, [4 x i8] }>
%"class.juce::HeapBlock.203" = type { ptr }
%"class.juce::DrawablePath" = type { %"class.juce::DrawableShape", %"class.juce::ScopedPointer.200" }
%"class.juce::DrawableShape" = type { %"class.juce::Drawable", %"class.juce::PathStrokeType", [4 x i8], %"class.juce::Array.196", %"class.juce::Path", %"class.juce::Path", %"class.juce::DrawableShape::RelativeFillType", %"class.juce::DrawableShape::RelativeFillType", %"class.juce::ScopedPointer.199", %"class.juce::ScopedPointer.199" }
%"class.juce::Drawable" = type { %"class.juce::Component.base", %"class.juce::Point" }
%"class.juce::Component.base" = type <{ %"class.juce::MouseListener", %"class.juce::String", %"class.juce::String", ptr, %"class.juce::Rectangle", %"class.juce::ScopedPointer", %"class.juce::ScopedPointer.0", %"class.juce::Array", ptr, %"class.juce::MouseCursor", ptr, %"class.juce::ScopedPointer.1", %"class.juce::ScopedPointer.2", %"class.juce::ScopedPointer.3", %"class.juce::ListenerList", %"class.juce::NamedValueSet", %"class.juce::WeakReference<juce::Component>::Master", %union.anon, i8 }>
%"class.juce::MouseListener" = type { ptr }
%"class.juce::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::ScopedPointer" = type { ptr }
%"class.juce::ScopedPointer.0" = type { ptr }
%"class.juce::Array" = type { %"class.juce::ArrayAllocationBase", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase" = type <{ %"class.juce::HeapBlock", i32, [4 x i8] }>
%"class.juce::HeapBlock" = type { ptr }
%"class.juce::MouseCursor" = type { ptr }
%"class.juce::ScopedPointer.1" = type { ptr }
%"class.juce::ScopedPointer.2" = type { ptr }
%"class.juce::ScopedPointer.3" = type { ptr }
%"class.juce::ListenerList" = type { %"class.juce::Array.4" }
%"class.juce::Array.4" = type { %"class.juce::ArrayAllocationBase.5", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.5" = type <{ %"class.juce::HeapBlock.6", i32, [4 x i8] }>
%"class.juce::HeapBlock.6" = type { ptr }
%"class.juce::NamedValueSet" = type { %"class.juce::Array.9" }
%"class.juce::Array.9" = type { %"class.juce::ArrayAllocationBase.10", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.10" = type <{ %"class.juce::HeapBlock.11", i32, [4 x i8] }>
%"class.juce::HeapBlock.11" = type { ptr }
%"class.juce::WeakReference<juce::Component>::Master" = type { %"class.juce::ReferenceCountedObjectPtr" }
%"class.juce::ReferenceCountedObjectPtr" = type { ptr }
%union.anon = type { i32 }
%"class.juce::Point" = type { i32, i32 }
%"class.juce::PathStrokeType" = type { float, i32, i32 }
%"class.juce::Array.196" = type { %"class.juce::ArrayAllocationBase.123", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.123" = type <{ %"class.juce::HeapBlock.124", i32, [4 x i8] }>
%"class.juce::HeapBlock.124" = type { ptr }
%"class.juce::Path" = type <{ %"class.juce::ArrayAllocationBase.123", i64, %"struct.juce::Path::PathBounds", i8, [7 x i8] }>
%"struct.juce::Path::PathBounds" = type { float, float, float, float }
%"class.juce::DrawableShape::RelativeFillType" = type { %"class.juce::FillType", %"class.juce::RelativePoint", %"class.juce::RelativePoint", %"class.juce::RelativePoint" }
%"class.juce::FillType" = type { %"class.juce::Colour", %"class.juce::ScopedPointer.198", %"class.juce::Image", %"class.juce::AffineTransform" }
%"class.juce::Colour" = type { %"class.juce::PixelARGB" }
%"class.juce::PixelARGB" = type { %union.anon.77 }
%union.anon.77 = type { i32 }
%"class.juce::ScopedPointer.198" = type { ptr }
%"class.juce::Image" = type { %"class.juce::ReferenceCountedObjectPtr.48" }
%"class.juce::ReferenceCountedObjectPtr.48" = type { ptr }
%"class.juce::AffineTransform" = type { float, float, float, float, float, float }
%"class.juce::RelativePoint" = type { %"class.juce::RelativeCoordinate", %"class.juce::RelativeCoordinate" }
%"class.juce::RelativeCoordinate" = type { %"class.juce::Expression" }
%"class.juce::Expression" = type { %"class.juce::ReferenceCountedObjectPtr.59" }
%"class.juce::ReferenceCountedObjectPtr.59" = type { ptr }
%"class.juce::ScopedPointer.199" = type { ptr }
%"class.juce::ScopedPointer.200" = type { ptr }

@_ZN4juce12DrawablePath13valueTreeTypeE = external dso_local global %"class.juce::Identifier", align 8

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(8) ptr @_ZNK4juce9Component14getComponentIDEv(ptr noundef nonnull align 8 dereferenceable(197)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce8Drawable20ValueTreeWrapperBase5setIDERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: nounwind
declare void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce12DrawablePath16ValueTreeWrapper8readFromERKNS_17RelativePointPathEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(26), ptr noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4juce12DrawablePath15createValueTreeEPNS_16ComponentBuilder13ImageProviderE(ptr dead_on_unwind noalias writable sret(%"class.juce::ValueTree") align 8 %0, ptr noundef nonnull align 8 dereferenceable(560) %1, ptr noundef %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i1, align 1
  %8 = alloca %"class.juce::DrawablePath::ValueTreeWrapper", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.juce::RelativePointPath", align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %12 = load ptr, ptr %5, align 8
  store i1 false, ptr %7, align 1
  call void @_ZN4juce9ValueTreeC1ERKNS_10IdentifierE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce12DrawablePath13valueTreeTypeE)
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #6
  invoke void @_ZN4juce12DrawablePath16ValueTreeWrapperC1ERKNS_9ValueTreeE(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %13 unwind label %25

13:                                               ; preds = %3
  %14 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce9Component14getComponentIDEv(ptr noundef nonnull align 8 dereferenceable(197) %12) #6
  invoke void @_ZN4juce8Drawable20ValueTreeWrapperBase5setIDERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %15 unwind label %29

15:                                               ; preds = %13
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNK4juce13DrawableShape7writeToERNS0_18FillAndStrokeStateEPNS_16ComponentBuilder13ImageProviderEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(552) %12, ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef %16, ptr noundef null)
          to label %17 unwind label %29

17:                                               ; preds = %15
  %18 = getelementptr inbounds %"class.juce::DrawablePath", ptr %12, i32 0, i32 1
  %19 = call noundef ptr @_ZNK4juce13ScopedPointerINS_17RelativePointPathEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  %20 = icmp ne ptr %19, null
  br i1 %20, label %21, label %33

21:                                               ; preds = %17
  %22 = getelementptr inbounds %"class.juce::DrawablePath", ptr %12, i32 0, i32 1
  %23 = call noundef nonnull align 8 dereferenceable(26) ptr @_ZNK4juce13ScopedPointerINS_17RelativePointPathEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  invoke void @_ZN4juce12DrawablePath16ValueTreeWrapper8readFromERKNS_17RelativePointPathEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(26) %23, ptr noundef null)
          to label %24 unwind label %29

24:                                               ; preds = %21
  br label %46

25:                                               ; preds = %3
  %26 = landingpad { ptr, i32 }
          cleanup
  %27 = extractvalue { ptr, i32 } %26, 0
  store ptr %27, ptr %9, align 8
  %28 = extractvalue { ptr, i32 } %26, 1
  store i32 %28, ptr %10, align 4
  br label %49

29:                                               ; preds = %21, %15, %13
  %30 = landingpad { ptr, i32 }
          cleanup
  %31 = extractvalue { ptr, i32 } %30, 0
  store ptr %31, ptr %9, align 8
  %32 = extractvalue { ptr, i32 } %30, 1
  store i32 %32, ptr %10, align 4
  br label %48

33:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #6
  %34 = getelementptr inbounds %"class.juce::DrawableShape", ptr %12, i32 0, i32 4
  invoke void @_ZN4juce17RelativePointPathC1ERKNS_4PathE(ptr noundef nonnull align 8 dereferenceable(26) %11, ptr noundef nonnull align 8 dereferenceable(41) %34)
          to label %35 unwind label %37

35:                                               ; preds = %33
  invoke void @_ZN4juce12DrawablePath16ValueTreeWrapper8readFromERKNS_17RelativePointPathEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(26) %11, ptr noundef null)
          to label %36 unwind label %41

36:                                               ; preds = %35
  call void @_ZN4juce17RelativePointPathD1Ev(ptr noundef nonnull align 8 dereferenceable(26) %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #6
  br label %46

37:                                               ; preds = %33
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %9, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %10, align 4
  br label %45

41:                                               ; preds = %35
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %9, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %10, align 4
  call void @_ZN4juce17RelativePointPathD1Ev(ptr noundef nonnull align 8 dereferenceable(26) %11) #6
  br label %45

45:                                               ; preds = %41, %37
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #6
  br label %48

46:                                               ; preds = %36, %24
  store i1 true, ptr %7, align 1
  call void @_ZN4juce8Drawable20ValueTreeWrapperBaseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #6
  %47 = load i1, ptr %7, align 1
  br i1 %47, label %51, label %50

48:                                               ; preds = %45, %29
  call void @_ZN4juce8Drawable20ValueTreeWrapperBaseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  br label %49

49:                                               ; preds = %48, %25
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #6
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #6
  br label %52

50:                                               ; preds = %46
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #6
  br label %51

51:                                               ; preds = %50, %46
  ret void

52:                                               ; preds = %49
  %53 = load ptr, ptr %9, align 8
  %54 = load i32, ptr %10, align 4
  %55 = insertvalue { ptr, i32 } poison, ptr %53, 0
  %56 = insertvalue { ptr, i32 } %55, i32 %54, 1
  resume { ptr, i32 } %56
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce13DrawableShape7writeToERNS0_18FillAndStrokeStateEPNS_16ComponentBuilder13ImageProviderEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(552), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef) #2 align 2

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

declare void @_ZN4juce12DrawablePath16ValueTreeWrapperC1ERKNS_9ValueTreeE(ptr, ptr)

declare void @_ZN4juce17RelativePointPathC1ERKNS_4PathE(ptr, ptr)

declare void @_ZN4juce17RelativePointPathD1Ev(ptr)

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 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { 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"}


; 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::Identifier" = type { %"class.juce::String" }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::ValueTree" = type { %"class.juce::ReferenceCountedObjectPtr.174", %"class.juce::ListenerList.175" }
%"class.juce::ReferenceCountedObjectPtr.174" = type { ptr }
%"class.juce::ListenerList.175" = type { %"class.juce::Array.176" }
%"class.juce::Array.176" = type { %"class.juce::ArrayAllocationBase.177", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.177" = type <{ %"class.juce::HeapBlock.178", i32, [4 x i8] }>
%"class.juce::HeapBlock.178" = type { ptr }
%"class.juce::DrawablePath::ValueTreeWrapper" = type { %"class.juce::DrawableShape::FillAndStrokeState" }
%"class.juce::DrawableShape::FillAndStrokeState" = type { %"class.juce::Drawable::ValueTreeWrapperBase" }
%"class.juce::Drawable::ValueTreeWrapperBase" = type { %"class.juce::ValueTree" }
%"class.juce::RelativePointPath" = type <{ %"class.juce::OwnedArray.201", i8, i8, [6 x i8] }>
%"class.juce::OwnedArray.201" = type { %"class.juce::ArrayAllocationBase.202", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.202" = type <{ %"class.juce::HeapBlock.203", i32, [4 x i8] }>
%"class.juce::HeapBlock.203" = type { ptr }

@_ZN4juce12DrawablePath13valueTreeTypeE = external dso_local global %"class.juce::Identifier", align 8

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(8) ptr @_ZNK4juce9Component14getComponentIDEv(ptr noundef nonnull align 8 dereferenceable(197)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce8Drawable20ValueTreeWrapperBase5setIDERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: nounwind
declare void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce12DrawablePath16ValueTreeWrapper8readFromERKNS_17RelativePointPathEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(26), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4juce12DrawablePath15createValueTreeEPNS_16ComponentBuilder13ImageProviderE(ptr dead_on_unwind noalias nonnull writable sret(%"class.juce::ValueTree") align 8 %0, ptr noundef nonnull align 8 dereferenceable(560) %1, ptr noundef %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.juce::DrawablePath::ValueTreeWrapper", align 8
  %5 = alloca %"class.juce::RelativePointPath", align 8
  tail call void @_ZN4juce9ValueTreeC1ERKNS_10IdentifierE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(8) @_ZN4juce12DrawablePath13valueTreeTypeE)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  invoke void @_ZN4juce12DrawablePath16ValueTreeWrapperC1ERKNS_9ValueTreeE(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %6 unwind label %14

6:                                                ; preds = %3
  %7 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce9Component14getComponentIDEv(ptr noundef nonnull align 8 dereferenceable(197) %1) #6
  invoke void @_ZN4juce8Drawable20ValueTreeWrapperBase5setIDERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %8 unwind label %16

8:                                                ; preds = %6
  invoke void @_ZNK4juce13DrawableShape7writeToERNS0_18FillAndStrokeStateEPNS_16ComponentBuilder13ImageProviderEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(552) %1, ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef %2, ptr noundef null)
          to label %9 unwind label %16

9:                                                ; preds = %8
  %10 = getelementptr inbounds i8, ptr %1, i64 552
  %11 = call noundef ptr @_ZNK4juce13ScopedPointerINS_17RelativePointPathEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  %.not = icmp eq ptr %11, null
  br i1 %.not, label %18, label %12

12:                                               ; preds = %9
  %13 = call noundef nonnull align 8 dereferenceable(26) ptr @_ZNK4juce13ScopedPointerINS_17RelativePointPathEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  invoke void @_ZN4juce12DrawablePath16ValueTreeWrapper8readFromERKNS_17RelativePointPathEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(26) %13, ptr noundef null)
          to label %27 unwind label %16

14:                                               ; preds = %3
  %15 = landingpad { ptr, i32 }
          cleanup
  br label %29

16:                                               ; preds = %12, %8, %6
  %17 = landingpad { ptr, i32 }
          cleanup
  br label %28

18:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  %19 = getelementptr inbounds i8, ptr %1, i64 248
  invoke void @_ZN4juce17RelativePointPathC1ERKNS_4PathE(ptr noundef nonnull align 8 dereferenceable(26) %5, ptr noundef nonnull align 8 dereferenceable(41) %19)
          to label %20 unwind label %22

20:                                               ; preds = %18
  invoke void @_ZN4juce12DrawablePath16ValueTreeWrapper8readFromERKNS_17RelativePointPathEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(26) %5, ptr noundef null)
          to label %21 unwind label %24

21:                                               ; preds = %20
  call void @_ZN4juce17RelativePointPathD1Ev(ptr noundef nonnull align 8 dereferenceable(26) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  br label %27

22:                                               ; preds = %18
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %26

24:                                               ; preds = %20
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce17RelativePointPathD1Ev(ptr noundef nonnull align 8 dereferenceable(26) %5) #6
  br label %26

26:                                               ; preds = %24, %22
  %.pn = phi { ptr, i32 } [ %25, %24 ], [ %23, %22 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  br label %28

27:                                               ; preds = %12, %21
  call void @_ZN4juce8Drawable20ValueTreeWrapperBaseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  ret void

28:                                               ; preds = %26, %16
  %.pn8 = phi { ptr, i32 } [ %17, %16 ], [ %.pn, %26 ]
  call void @_ZN4juce8Drawable20ValueTreeWrapperBaseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  br label %29

29:                                               ; preds = %28, %14
  %.pn8.pn = phi { ptr, i32 } [ %.pn8, %28 ], [ %15, %14 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @_ZN4juce9ValueTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #6
  resume { ptr, i32 } %.pn8.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce13DrawableShape7writeToERNS0_18FillAndStrokeStateEPNS_16ComponentBuilder13ImageProviderEPNS_11UndoManagerE(ptr noundef nonnull align 8 dereferenceable(552), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef) local_unnamed_addr #2 align 2

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

declare void @_ZN4juce12DrawablePath16ValueTreeWrapperC1ERKNS_9ValueTreeE(ptr, ptr) local_unnamed_addr

declare void @_ZN4juce17RelativePointPathC1ERKNS_4PathE(ptr, ptr) local_unnamed_addr

declare void @_ZN4juce17RelativePointPathD1Ev(ptr) 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 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { 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: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass