; 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::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::Point" = type { i32, i32 }
%"class.juce::Image" = type { %"class.juce::ReferenceCountedObjectPtr.48" }
%"class.juce::ReferenceCountedObjectPtr.48" = type { ptr }
%"class.juce::Point.35" = type { float, float }
%"class.juce::Random" = type { i64 }
%"class.juce::DragAndDropContainer" = type { ptr, %"class.juce::ScopedPointer.97" }
%"class.juce::ScopedPointer.97" = type { ptr }
%"class.juce::DragAndDropContainer::DragImageComponent" = type { %"class.juce::Component.base", %"class.juce::Timer", %"class.juce::DragAndDropTarget::SourceDetails", %"class.juce::Image", ptr, %"class.juce::WeakReference", %"class.juce::WeakReference", %"class.juce::Point", i8, %"class.juce::Time" }
%"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::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"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::Timer" = type { ptr, i32, i32, ptr, ptr }
%"class.juce::DragAndDropTarget::SourceDetails" = type { %"class.juce::var", %"class.juce::WeakReference", %"class.juce::Point" }
%"class.juce::var" = type { ptr, %"union.juce::var::ValueUnion" }
%"union.juce::var::ValueUnion" = type { i64 }
%"class.juce::WeakReference" = type { %"class.juce::ReferenceCountedObjectPtr" }
%"class.juce::Time" = type { i64 }

@_ZTIN4juce20DragAndDropContainerE = external dso_local constant { ptr, ptr }, align 8
@_ZTIN4juce9ComponentE = external dso_local constant { ptr, ptr, ptr }, align 8

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(360) ptr @_ZN4juce7Desktop11getInstanceEv() #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce5PointIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9Component9setOpaqueEb(ptr noundef nonnull align 8 dereferenceable(197), i1 noundef zeroext) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce5PointIiEC2Ev(ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce9Component14getLocalBoundsEv(ptr dead_on_unwind noalias writable sret(%"class.juce::Rectangle") align 4, ptr noundef nonnull align 8 dereferenceable(197)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce9RectangleIiE9getCentreEv(ptr dead_on_unwind noalias writable sret(%"class.juce::Point") align 4, ptr noundef nonnull align 4 dereferenceable(16)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce9Component13getLocalPointEPKS0_NS_5PointIiEE(ptr dead_on_unwind noalias writable sret(%"class.juce::Point") align 4, ptr noundef nonnull align 8 dereferenceable(197), ptr noundef, ptr noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce10roundToIntIdEEiT_(double noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9Component17addChildComponentEPS0_i(ptr noundef nonnull align 8 dereferenceable(197), ptr noundef, i32 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9Component15enterModalStateEbPNS_21ModalComponentManager8CallbackEb(ptr noundef nonnull align 8 dereferenceable(197), i1 noundef zeroext, ptr noundef, i1 noundef zeroext) #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9Component23createComponentSnapshotERKNS_9RectangleIiEEbf(ptr dead_on_unwind noalias writable sret(%"class.juce::Image") align 8, ptr noundef nonnull align 8 dereferenceable(197), ptr noundef nonnull align 4 dereferenceable(16), i1 noundef zeroext, float noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce5PointIiEngEv(ptr dead_on_unwind noalias writable sret(%"class.juce::Point") align 4, ptr noundef nonnull align 4 dereferenceable(8)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce16MouseInputSource24getLastMouseDownPositionEv(ptr dead_on_unwind noalias writable sret(%"class.juce::Point.35") align 4, ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce16MouseInputSource10isDraggingEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce5PointIfE10roundToIntEv(ptr dead_on_unwind noalias writable sret(%"class.juce::Point") align 4, ptr noundef nonnull align 4 dereferenceable(8)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK4juce7Desktop22getDraggingMouseSourceEi(ptr noundef nonnull align 8 dereferenceable(360), i32 noundef) #0 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce20DragAndDropContainer13startDraggingERKNS_3varEPNS_9ComponentENS_5ImageEbPKNS_5PointIiEE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %2, ptr noundef %3, i1 noundef zeroext %4, ptr noundef %5) #3 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i8, align 1
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.juce::Point", align 4
  %16 = alloca %"class.juce::Point.35", align 4
  %17 = alloca %"class.juce::Point", align 4
  %18 = alloca %"class.juce::Image", align 8
  %19 = alloca %"class.juce::Image", align 8
  %20 = alloca %"class.juce::Rectangle", align 4
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca %"class.juce::Point", align 4
  %26 = alloca %"class.juce::Point", align 4
  %27 = alloca %"class.juce::Point", align 4
  %28 = alloca %"class.juce::Rectangle", align 4
  %29 = alloca %"class.juce::Point", align 4
  %30 = alloca %"class.juce::Random", align 8
  %31 = alloca i32, align 4
  %32 = alloca double, align 8
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca float, align 4
  %37 = alloca %"class.juce::Point", align 4
  %38 = alloca %"class.juce::Rectangle", align 4
  %39 = alloca %"class.juce::Point", align 4
  %40 = alloca %"class.juce::Rectangle", align 4
  %41 = alloca %"class.juce::Point", align 4
  %42 = alloca %"class.juce::Point", align 4
  %43 = alloca ptr, align 8
  %44 = alloca %"class.juce::Point", align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  %45 = zext i1 %4 to i8
  store i8 %45, ptr %11, align 1, !tbaa !9
  store ptr %5, ptr %12, align 8, !tbaa !5
  %46 = load ptr, ptr %7, align 8
  %47 = getelementptr inbounds %"class.juce::DragAndDropContainer", ptr %46, i32 0, i32 1
  %48 = call noundef ptr @_ZNK4juce13ScopedPointerINS_20DragAndDropContainer18DragImageComponentEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %47) #10
  %49 = icmp eq ptr %48, null
  br i1 %49, label %50, label %213

50:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #10
  %51 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN4juce7Desktop11getInstanceEv()
  %52 = call noundef ptr @_ZNK4juce7Desktop22getDraggingMouseSourceEi(ptr noundef nonnull align 8 dereferenceable(360) %51, i32 noundef 0) #10
  store ptr %52, ptr %13, align 8, !tbaa !5
  %53 = load ptr, ptr %13, align 8, !tbaa !5
  %54 = icmp eq ptr %53, null
  br i1 %54, label %58, label %55

55:                                               ; preds = %50
  %56 = load ptr, ptr %13, align 8, !tbaa !5
  %57 = call noundef zeroext i1 @_ZNK4juce16MouseInputSource10isDraggingEv(ptr noundef nonnull align 8 dereferenceable(8) %56) #10
  br i1 %57, label %62, label %58

58:                                               ; preds = %55, %50
  br label %59

59:                                               ; preds = %58
  br label %60

60:                                               ; preds = %59
  br label %61

61:                                               ; preds = %60
  store i32 1, ptr %14, align 4
  br label %209

62:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #10
  %63 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZNK4juce16MouseInputSource24getLastMouseDownPositionEv(ptr dead_on_unwind writable sret(%"class.juce::Point.35") align 4 %16, ptr noundef nonnull align 8 dereferenceable(8) %63) #10
  call void @_ZNK4juce5PointIfE10roundToIntEv(ptr dead_on_unwind writable sret(%"class.juce::Point") align 4 %15, ptr noundef nonnull align 4 dereferenceable(8) %16) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #10
  call void @_ZN4juce5PointIiEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %17) #10
  %64 = call noundef zeroext i1 @_ZNK4juce5Image6isNullEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  br i1 %64, label %65, label %141

65:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #10
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #10
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZNK4juce9Component14getLocalBoundsEv(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %20, ptr noundef nonnull align 8 dereferenceable(197) %67) #10
  invoke void @_ZN4juce9Component23createComponentSnapshotERKNS_9RectangleIiEEbf(ptr dead_on_unwind writable sret(%"class.juce::Image") align 8 %19, ptr noundef nonnull align 8 dereferenceable(197) %66, ptr noundef nonnull align 4 dereferenceable(16) %20, i1 noundef zeroext true, float noundef 1.000000e+00)
          to label %68 unwind label %78

68:                                               ; preds = %65
  invoke void @_ZNK4juce5Image17convertedToFormatENS0_11PixelFormatE(ptr dead_on_unwind writable sret(%"class.juce::Image") align 8 %18, ptr noundef nonnull align 8 dereferenceable(8) %19, i32 noundef 2)
          to label %69 unwind label %82

69:                                               ; preds = %68
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce5ImageaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %18) #10
  call void @_ZN4juce5ImageD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #10
  call void @_ZN4juce5ImageD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #10
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %20) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #10
  call void @_ZN4juce5Image17multiplyAllAlphasEf(ptr noundef nonnull align 8 dereferenceable(8) %3, float noundef 0x3FE3333340000000)
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #10
  store i32 150, ptr %23, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #10
  store i32 400, ptr %24, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #10
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN4juce5PointIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %26, ptr noundef nonnull align 4 dereferenceable(8) %15) #10
  call void @_ZNK4juce9Component13getLocalPointEPKS0_NS_5PointIiEE(ptr dead_on_unwind writable sret(%"class.juce::Point") align 4 %25, ptr noundef nonnull align 8 dereferenceable(197) %71, ptr noundef null, ptr noundef %26)
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #10
  call void @_ZNK4juce5Image9getBoundsEv(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %28, ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  call void @_ZN4juce5PointIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %29, ptr noundef nonnull align 4 dereferenceable(8) %25) #10
  call void @_ZNK4juce9RectangleIiE19getConstrainedPointENS_5PointIiEE(ptr dead_on_unwind writable sret(%"class.juce::Point") align 4 %27, ptr noundef nonnull align 4 dereferenceable(16) %28, ptr noundef %29) #10
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %28) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #10
  call void @_ZN4juce6RandomC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %30)
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #10
  %72 = call noundef i32 @_ZNK4juce5Image9getHeightEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  store i32 %72, ptr %31, align 4, !tbaa !11
  br label %73

73:                                               ; preds = %138, %69
  %74 = load i32, ptr %31, align 4, !tbaa !11
  %75 = add nsw i32 %74, -1
  store i32 %75, ptr %31, align 4, !tbaa !11
  %76 = icmp sge i32 %75, 0
  br i1 %76, label %87, label %77

77:                                               ; preds = %73
  store i32 4, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #10
  br label %139

78:                                               ; preds = %65
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %21, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %22, align 4
  br label %86

82:                                               ; preds = %68
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %21, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %22, align 4
  call void @_ZN4juce5ImageD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #10
  br label %86

86:                                               ; preds = %82, %78
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %20) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #10
  br label %212

87:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #10
  %88 = load i32, ptr %31, align 4, !tbaa !11
  %89 = call noundef i32 @_ZNK4juce5PointIiE4getYEv(ptr noundef nonnull align 4 dereferenceable(8) %27) #10
  %90 = sub nsw i32 %88, %89
  %91 = load i32, ptr %31, align 4, !tbaa !11
  %92 = call noundef i32 @_ZNK4juce5PointIiE4getYEv(ptr noundef nonnull align 4 dereferenceable(8) %27) #10
  %93 = sub nsw i32 %91, %92
  %94 = mul nsw i32 %90, %93
  %95 = sitofp i32 %94 to double
  store double %95, ptr %32, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #10
  %96 = call noundef i32 @_ZNK4juce5Image8getWidthEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  store i32 %96, ptr %33, align 4, !tbaa !11
  br label %97

97:                                               ; preds = %137, %87
  %98 = load i32, ptr %33, align 4, !tbaa !11
  %99 = add nsw i32 %98, -1
  store i32 %99, ptr %33, align 4, !tbaa !11
  %100 = icmp sge i32 %99, 0
  br i1 %100, label %102, label %101

101:                                              ; preds = %97
  store i32 6, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #10
  br label %138

102:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #10
  %103 = load i32, ptr %33, align 4, !tbaa !11
  %104 = call noundef i32 @_ZNK4juce5PointIiE4getXEv(ptr noundef nonnull align 4 dereferenceable(8) %27) #10
  %105 = sub nsw i32 %103, %104
  store i32 %105, ptr %34, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #10
  %106 = load i32, ptr %34, align 4, !tbaa !11
  %107 = load i32, ptr %34, align 4, !tbaa !11
  %108 = mul nsw i32 %106, %107
  %109 = sitofp i32 %108 to double
  %110 = load double, ptr %32, align 8, !tbaa !13
  %111 = fadd double %109, %110
  %112 = call double @sqrt(double noundef %111) #10
  %113 = call noundef i32 @_ZN4juce10roundToIntIdEEiT_(double noundef %112) #10
  store i32 %113, ptr %35, align 4, !tbaa !11
  %114 = load i32, ptr %35, align 4, !tbaa !11
  %115 = icmp sgt i32 %114, 150
  br i1 %115, label %116, label %137

116:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #10
  %117 = load i32, ptr %35, align 4, !tbaa !11
  %118 = icmp sgt i32 %117, 400
  br i1 %118, label %119, label %120

119:                                              ; preds = %116
  br label %127

120:                                              ; preds = %116
  %121 = load i32, ptr %35, align 4, !tbaa !11
  %122 = sub nsw i32 400, %121
  %123 = sitofp i32 %122 to float
  %124 = fdiv float %123, 2.500000e+02
  %125 = call noundef float @_ZN4juce6Random9nextFloatEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #10
  %126 = call float @llvm.fmuladd.f32(float %125, float 0x3F80624DE0000000, float %124)
  br label %127

127:                                              ; preds = %120, %119
  %128 = phi float [ 0.000000e+00, %119 ], [ %126, %120 ]
  store float %128, ptr %36, align 4, !tbaa !15
  %129 = load i32, ptr %33, align 4, !tbaa !11
  %130 = load i32, ptr %31, align 4, !tbaa !11
  %131 = load float, ptr %36, align 4, !tbaa !15
  invoke void @_ZN4juce5Image15multiplyAlphaAtEiif(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef %129, i32 noundef %130, float noundef %131)
          to label %132 unwind label %133

132:                                              ; preds = %127
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #10
  br label %137

133:                                              ; preds = %127
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %21, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #10
  call void @_ZN4juce6RandomD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %30) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #10
  br label %212

137:                                              ; preds = %132, %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #10
  br label %97, !llvm.loop !17

138:                                              ; preds = %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #10
  br label %73, !llvm.loop !19

139:                                              ; preds = %77
  %140 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN4juce5PointIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %27) #10
  call void @_ZN4juce6RandomD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %30) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #10
  br label %150

141:                                              ; preds = %62
  %142 = load ptr, ptr %12, align 8, !tbaa !5
  %143 = icmp eq ptr %142, null
  br i1 %143, label %144, label %146

144:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #10
  call void @_ZNK4juce5Image9getBoundsEv(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %38, ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  call void @_ZNK4juce9RectangleIiE9getCentreEv(ptr dead_on_unwind writable sret(%"class.juce::Point") align 4 %37, ptr noundef nonnull align 4 dereferenceable(16) %38) #10
  %145 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN4juce5PointIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %37) #10
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %38) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #10
  br label %149

146:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #10
  call void @_ZNK4juce5Image9getBoundsEv(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %40, ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  %147 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZNK4juce5PointIiEngEv(ptr dead_on_unwind writable sret(%"class.juce::Point") align 4 %41, ptr noundef nonnull align 4 dereferenceable(8) %147) #10
  call void @_ZNK4juce9RectangleIiE19getConstrainedPointENS_5PointIiEE(ptr dead_on_unwind writable sret(%"class.juce::Point") align 4 %39, ptr noundef nonnull align 4 dereferenceable(16) %40, ptr noundef %41) #10
  %148 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN4juce5PointIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %39) #10
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %40) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #10
  br label %149

149:                                              ; preds = %146, %144
  br label %150

150:                                              ; preds = %149, %139
  %151 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 320) #11
  %152 = load ptr, ptr %8, align 8, !tbaa !5
  %153 = load ptr, ptr %9, align 8, !tbaa !5
  %154 = load ptr, ptr %13, align 8, !tbaa !5
  %155 = call noundef ptr @_ZNK4juce16MouseInputSource22getComponentUnderMouseEv(ptr noundef nonnull align 8 dereferenceable(8) %154)
  call void @_ZN4juce5PointIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %42, ptr noundef nonnull align 4 dereferenceable(8) %17) #10
  invoke void @_ZN4juce20DragAndDropContainer18DragImageComponentC2ERKNS_5ImageERKNS_3varEPNS_9ComponentES9_RS0_NS_5PointIiEE(ptr noundef nonnull align 8 dereferenceable(320) %151, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(16) %152, ptr noundef %153, ptr noundef %155, ptr noundef nonnull align 8 dereferenceable(16) %46, ptr noundef %42)
          to label %156 unwind label %166

156:                                              ; preds = %150
  %157 = getelementptr inbounds %"class.juce::DragAndDropContainer", ptr %46, i32 0, i32 1
  %158 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_20DragAndDropContainer18DragImageComponentEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %157, ptr noundef %151)
  %159 = load i8, ptr %11, align 1, !tbaa !9, !range !20, !noundef !21
  %160 = trunc i8 %159 to i1
  br i1 %160, label %161, label %176

161:                                              ; preds = %156
  %162 = call noundef zeroext i1 @_ZN4juce7Desktop28canUseSemiTransparentWindowsEv() #10
  br i1 %162, label %170, label %163

163:                                              ; preds = %161
  %164 = getelementptr inbounds %"class.juce::DragAndDropContainer", ptr %46, i32 0, i32 1
  %165 = call noundef ptr @_ZNK4juce13ScopedPointerINS_20DragAndDropContainer18DragImageComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %164) #10
  call void @_ZN4juce9Component9setOpaqueEb(ptr noundef nonnull align 8 dereferenceable(197) %165, i1 noundef zeroext true)
  br label %170

166:                                              ; preds = %150
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %21, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %22, align 4
  call void @_ZdlPvm(ptr noundef %151, i64 noundef 320) #12
  br label %212

170:                                              ; preds = %163, %161
  %171 = getelementptr inbounds %"class.juce::DragAndDropContainer", ptr %46, i32 0, i32 1
  %172 = call noundef ptr @_ZNK4juce13ScopedPointerINS_20DragAndDropContainer18DragImageComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %171) #10
  %173 = load ptr, ptr %172, align 8, !tbaa !22
  %174 = getelementptr inbounds ptr, ptr %173, i64 13
  %175 = load ptr, ptr %174, align 8
  call void %175(ptr noundef nonnull align 8 dereferenceable(197) %172, i32 noundef 1030, ptr noundef null)
  br label %197

176:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #10
  %177 = icmp eq ptr %46, null
  br i1 %177, label %180, label %178

178:                                              ; preds = %176
  %179 = call ptr @__dynamic_cast(ptr %46, ptr @_ZTIN4juce20DragAndDropContainerE, ptr @_ZTIN4juce9ComponentE, i64 -2) #10
  br label %181

180:                                              ; preds = %176
  br label %181

181:                                              ; preds = %180, %178
  %182 = phi ptr [ %179, %178 ], [ null, %180 ]
  store ptr %182, ptr %43, align 8, !tbaa !5
  %183 = load ptr, ptr %43, align 8, !tbaa !5
  %184 = icmp ne ptr %183, null
  br i1 %184, label %185, label %189

185:                                              ; preds = %181
  %186 = load ptr, ptr %43, align 8, !tbaa !5
  %187 = getelementptr inbounds %"class.juce::DragAndDropContainer", ptr %46, i32 0, i32 1
  %188 = call noundef ptr @_ZNK4juce13ScopedPointerINS_20DragAndDropContainer18DragImageComponentEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %187) #10
  call void @_ZN4juce9Component17addChildComponentEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %186, ptr noundef %188, i32 noundef -1)
  br label %193

189:                                              ; preds = %181
  br label %190

190:                                              ; preds = %189
  br label %191

191:                                              ; preds = %190
  br label %192

192:                                              ; preds = %191
  store i32 1, ptr %14, align 4
  br label %194

193:                                              ; preds = %185
  store i32 0, ptr %14, align 4
  br label %194

194:                                              ; preds = %193, %192
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #10
  %195 = load i32, ptr %14, align 4
  switch i32 %195, label %208 [
    i32 0, label %196
  ]

196:                                              ; preds = %194
  br label %197

197:                                              ; preds = %196, %170
  %198 = getelementptr inbounds %"class.juce::DragAndDropContainer", ptr %46, i32 0, i32 1
  %199 = call noundef ptr @_ZNK4juce13ScopedPointerINS_20DragAndDropContainer18DragImageComponentEE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %198) #10
  call void @_ZN4juce5PointIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %44, ptr noundef nonnull align 4 dereferenceable(8) %15) #10
  call void @_ZN4juce20DragAndDropContainer18DragImageComponent14updateLocationEbNS_5PointIiEE(ptr noundef nonnull align 8 dereferenceable(320) %199, i1 noundef zeroext false, ptr noundef %44)
  %200 = getelementptr inbounds %"class.juce::DragAndDropContainer", ptr %46, i32 0, i32 1
  %201 = call noundef ptr @_ZNK4juce13ScopedPointerINS_20DragAndDropContainer18DragImageComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %200) #10
  call void @_ZN4juce9Component15enterModalStateEbPNS_21ModalComponentManager8CallbackEb(ptr noundef nonnull align 8 dereferenceable(197) %201, i1 noundef zeroext true, ptr noundef null, i1 noundef zeroext false)
  %202 = getelementptr inbounds %"class.juce::DragAndDropContainer", ptr %46, i32 0, i32 1
  %203 = call noundef ptr @_ZNK4juce13ScopedPointerINS_20DragAndDropContainer18DragImageComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %202) #10
  %204 = getelementptr inbounds %"class.juce::DragAndDropContainer::DragImageComponent", ptr %203, i32 0, i32 2
  %205 = load ptr, ptr %46, align 8, !tbaa !22
  %206 = getelementptr inbounds ptr, ptr %205, i64 4
  %207 = load ptr, ptr %206, align 8
  call void %207(ptr noundef nonnull align 8 dereferenceable(16) %46, ptr noundef nonnull align 8 dereferenceable(32) %204)
  store i32 0, ptr %14, align 4
  br label %208

208:                                              ; preds = %197, %194
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  br label %209

209:                                              ; preds = %208, %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  %210 = load i32, ptr %14, align 4
  switch i32 %210, label %219 [
    i32 0, label %211
    i32 1, label %213
  ]

211:                                              ; preds = %209
  br label %213

212:                                              ; preds = %166, %133, %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  br label %214

213:                                              ; preds = %211, %209, %6
  ret void

214:                                              ; preds = %212
  %215 = load ptr, ptr %21, align 8
  %216 = load i32, ptr %22, align 4
  %217 = insertvalue { ptr, i32 } poison, ptr %215, 0
  %218 = insertvalue { ptr, i32 } %217, i32 %216, 1
  resume { ptr, i32 } %218

219:                                              ; preds = %209
  unreachable
}

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

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

declare void @_ZNK4juce5Image17convertedToFormatENS0_11PixelFormatE(ptr dead_on_unwind writable sret(%"class.juce::Image") align 8, ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #7

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce5ImageaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

declare void @_ZN4juce5Image17multiplyAllAlphasEf(ptr noundef nonnull align 8 dereferenceable(8), float noundef) #7

; Function Attrs: nounwind
declare void @_ZNK4juce5Image9getBoundsEv(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4, ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce9RectangleIiE19getConstrainedPointENS_5PointIiEE(ptr dead_on_unwind noalias writable sret(%"class.juce::Point") align 4, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef) #0 align 2

declare void @_ZN4juce6RandomC1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #7

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

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

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

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #5

; Function Attrs: nounwind
declare noundef float @_ZN4juce6Random9nextFloatEv(ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #8

declare void @_ZN4juce5Image15multiplyAlphaAtEiif(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef, float noundef) #7

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce20DragAndDropContainer18DragImageComponentC2ERKNS_5ImageERKNS_3varEPNS_9ComponentES9_RS0_NS_5PointIiEE(ptr noundef nonnull align 8 dereferenceable(320), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4juce7Desktop28canUseSemiTransparentWindowsEv() #0 align 2

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

; Function Attrs: nounwind willreturn memory(read)
declare ptr @__dynamic_cast(ptr, ptr, ptr, i64) #9

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce20DragAndDropContainer18DragImageComponent14updateLocationEbNS_5PointIiEE(ptr noundef nonnull align 8 dereferenceable(320), i1 noundef zeroext, ptr noundef) #3 align 2

attributes #0 = { 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 #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 #5 = { 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 #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 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { nounwind }
attributes #11 = { builtin allocsize(0) }
attributes #12 = { 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 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!23, !23, i64 0}
!23 = !{!"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"

%"class.juce::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::Point" = type { i32, i32 }
%"class.juce::Image" = type { %"class.juce::ReferenceCountedObjectPtr.48" }
%"class.juce::ReferenceCountedObjectPtr.48" = type { ptr }
%"class.juce::Point.35" = type { float, float }
%"class.juce::Random" = type { i64 }

@_ZTIN4juce20DragAndDropContainerE = external dso_local constant { ptr, ptr }, align 8
@_ZTIN4juce9ComponentE = external dso_local constant { ptr, ptr, ptr }, align 8

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(360) ptr @_ZN4juce7Desktop11getInstanceEv() local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce5PointIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9Component9setOpaqueEb(ptr noundef nonnull align 8 dereferenceable(197), i1 noundef zeroext) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce5PointIiEC2Ev(ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce9Component14getLocalBoundsEv(ptr dead_on_unwind noalias writable sret(%"class.juce::Rectangle") align 4, ptr noundef nonnull align 8 dereferenceable(197)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce9RectangleIiE9getCentreEv(ptr dead_on_unwind noalias writable sret(%"class.juce::Point") align 4, ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce9Component13getLocalPointEPKS0_NS_5PointIiEE(ptr dead_on_unwind noalias writable sret(%"class.juce::Point") align 4, ptr noundef nonnull align 8 dereferenceable(197), ptr noundef, ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce10roundToIntIdEEiT_(double noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9Component17addChildComponentEPS0_i(ptr noundef nonnull align 8 dereferenceable(197), ptr noundef, i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9Component15enterModalStateEbPNS_21ModalComponentManager8CallbackEb(ptr noundef nonnull align 8 dereferenceable(197), i1 noundef zeroext, ptr noundef, i1 noundef zeroext) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce9Component23createComponentSnapshotERKNS_9RectangleIiEEbf(ptr dead_on_unwind noalias writable sret(%"class.juce::Image") align 8, ptr noundef nonnull align 8 dereferenceable(197), ptr noundef nonnull align 4 dereferenceable(16), i1 noundef zeroext, float noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce5PointIiEngEv(ptr dead_on_unwind noalias writable sret(%"class.juce::Point") align 4, ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce16MouseInputSource24getLastMouseDownPositionEv(ptr dead_on_unwind noalias writable sret(%"class.juce::Point.35") align 4, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce16MouseInputSource10isDraggingEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce5PointIfE10roundToIntEv(ptr dead_on_unwind noalias writable sret(%"class.juce::Point") align 4, ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK4juce7Desktop22getDraggingMouseSourceEi(ptr noundef nonnull align 8 dereferenceable(360), i32 noundef) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce20DragAndDropContainer13startDraggingERKNS_3varEPNS_9ComponentENS_5ImageEbPKNS_5PointIiEE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %2, ptr noundef %3, i1 noundef zeroext %4, ptr noundef %5) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.juce::Point", align 4
  %8 = alloca %"class.juce::Point.35", align 4
  %9 = alloca %"class.juce::Point", align 4
  %10 = alloca %"class.juce::Image", align 8
  %11 = alloca %"class.juce::Image", align 8
  %12 = alloca %"class.juce::Rectangle", align 4
  %13 = alloca %"class.juce::Point", align 4
  %14 = alloca %"class.juce::Point", align 4
  %15 = alloca %"class.juce::Point", align 4
  %16 = alloca %"class.juce::Rectangle", align 4
  %17 = alloca %"class.juce::Point", align 4
  %18 = alloca %"class.juce::Random", align 8
  %19 = alloca %"class.juce::Point", align 4
  %20 = alloca %"class.juce::Rectangle", align 4
  %21 = alloca %"class.juce::Point", align 4
  %22 = alloca %"class.juce::Rectangle", align 4
  %23 = alloca %"class.juce::Point", align 4
  %24 = alloca %"class.juce::Point", align 4
  %25 = alloca %"class.juce::Point", align 4
  %26 = getelementptr inbounds i8, ptr %0, i64 8
  %27 = tail call noundef ptr @_ZNK4juce13ScopedPointerINS_20DragAndDropContainer18DragImageComponentEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #11
  %28 = icmp eq ptr %27, null
  br i1 %28, label %29, label %117

29:                                               ; preds = %6
  %30 = tail call noundef nonnull align 8 dereferenceable(360) ptr @_ZN4juce7Desktop11getInstanceEv()
  %31 = tail call noundef ptr @_ZNK4juce7Desktop22getDraggingMouseSourceEi(ptr noundef nonnull align 8 dereferenceable(360) %30, i32 noundef 0) #11
  %32 = icmp eq ptr %31, null
  br i1 %32, label %117, label %33

33:                                               ; preds = %29
  %34 = tail call noundef zeroext i1 @_ZNK4juce16MouseInputSource10isDraggingEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #11
  br i1 %34, label %35, label %117

35:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #11
  call void @_ZNK4juce16MouseInputSource24getLastMouseDownPositionEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point.35") align 4 %8, ptr noundef nonnull align 8 dereferenceable(8) %31) #11
  call void @_ZNK4juce5PointIfE10roundToIntEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point") align 4 %7, ptr noundef nonnull align 4 dereferenceable(8) %8) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #11
  call void @_ZN4juce5PointIiEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %9) #11
  %36 = call noundef zeroext i1 @_ZNK4juce5Image6isNullEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #11
  br i1 %36, label %37, label %82

37:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #11
  call void @_ZNK4juce9Component14getLocalBoundsEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %12, ptr noundef nonnull align 8 dereferenceable(197) %2) #11
  invoke void @_ZN4juce9Component23createComponentSnapshotERKNS_9RectangleIiEEbf(ptr dead_on_unwind nonnull writable sret(%"class.juce::Image") align 8 %11, ptr noundef nonnull align 8 dereferenceable(197) %2, ptr noundef nonnull align 4 dereferenceable(16) %12, i1 noundef zeroext true, float noundef 1.000000e+00)
          to label %38 unwind label %45

38:                                               ; preds = %37
  invoke void @_ZNK4juce5Image17convertedToFormatENS0_11PixelFormatE(ptr dead_on_unwind nonnull writable sret(%"class.juce::Image") align 8 %10, ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef 2)
          to label %39 unwind label %47

39:                                               ; preds = %38
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce5ImageaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %10) #11
  call void @_ZN4juce5ImageD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #11
  call void @_ZN4juce5ImageD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #11
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %12) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #11
  call void @_ZN4juce5Image17multiplyAllAlphasEf(ptr noundef nonnull align 8 dereferenceable(8) %3, float noundef 0x3FE3333340000000)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #11
  call void @_ZN4juce5PointIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %7) #11
  call void @_ZNK4juce9Component13getLocalPointEPKS0_NS_5PointIiEE(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point") align 4 %13, ptr noundef nonnull align 8 dereferenceable(197) %2, ptr noundef null, ptr noundef nonnull %14)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #11
  call void @_ZNK4juce5Image9getBoundsEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %16, ptr noundef nonnull align 8 dereferenceable(8) %3) #11
  call void @_ZN4juce5PointIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %13) #11
  call void @_ZNK4juce9RectangleIiE19getConstrainedPointENS_5PointIiEE(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point") align 4 %15, ptr noundef nonnull align 4 dereferenceable(16) %16, ptr noundef nonnull %17) #11
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %16) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #11
  call void @_ZN4juce6RandomC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %18)
  %41 = call noundef i32 @_ZNK4juce5Image9getHeightEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #11
  %42 = icmp sgt i32 %41, 0
  br i1 %42, label %.lr.ph45, label %._crit_edge

.loopexit:                                        ; preds = %80, %.lr.ph45
  %43 = icmp sgt i32 %.in, 1
  br i1 %43, label %.lr.ph45, label %._crit_edge, !llvm.loop !5

._crit_edge:                                      ; preds = %.loopexit, %39
  %44 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN4juce5PointIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %15) #11
  call void @_ZN4juce6RandomD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #11
  br label %88

45:                                               ; preds = %37
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %49

47:                                               ; preds = %38
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce5ImageD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #11
  br label %49

49:                                               ; preds = %47, %45
  %.pn = phi { ptr, i32 } [ %48, %47 ], [ %46, %45 ]
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %12) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #11
  br label %116

.lr.ph45:                                         ; preds = %39, %.loopexit
  %.in = phi i32 [ %50, %.loopexit ], [ %41, %39 ]
  %50 = add nsw i32 %.in, -1
  %51 = call noundef i32 @_ZNK4juce5PointIiE4getYEv(ptr noundef nonnull align 4 dereferenceable(8) %15) #11
  %52 = sub nsw i32 %50, %51
  %53 = call noundef i32 @_ZNK4juce5PointIiE4getYEv(ptr noundef nonnull align 4 dereferenceable(8) %15) #11
  %54 = sub nsw i32 %50, %53
  %55 = mul nsw i32 %54, %52
  %56 = sitofp i32 %55 to double
  %57 = call noundef i32 @_ZNK4juce5Image8getWidthEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #11
  %58 = icmp sgt i32 %57, 0
  br i1 %58, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %.lr.ph45, %80
  %.in46 = phi i32 [ %59, %80 ], [ %57, %.lr.ph45 ]
  %59 = add nsw i32 %.in46, -1
  %60 = call noundef i32 @_ZNK4juce5PointIiE4getXEv(ptr noundef nonnull align 4 dereferenceable(8) %15) #11
  %61 = sub nsw i32 %59, %60
  %62 = mul nsw i32 %61, %61
  %63 = uitofp nneg i32 %62 to double
  %64 = fadd double %56, %63
  %65 = call double @sqrt(double noundef %64) #11
  %66 = call noundef i32 @_ZN4juce10roundToIntIdEEiT_(double noundef %65) #11
  %67 = icmp sgt i32 %66, 150
  br i1 %67, label %68, label %80

68:                                               ; preds = %.lr.ph
  %69 = icmp ugt i32 %66, 400
  br i1 %69, label %76, label %70

70:                                               ; preds = %68
  %71 = sub nuw nsw i32 400, %66
  %72 = uitofp nneg i32 %71 to float
  %73 = fdiv float %72, 2.500000e+02
  %74 = call noundef float @_ZN4juce6Random9nextFloatEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #11
  %75 = call float @llvm.fmuladd.f32(float %74, float 0x3F80624DE0000000, float %73)
  br label %76

76:                                               ; preds = %68, %70
  %77 = phi float [ %75, %70 ], [ 0.000000e+00, %68 ]
  invoke void @_ZN4juce5Image15multiplyAlphaAtEiif(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef %59, i32 noundef %50, float noundef %77)
          to label %80 unwind label %78

78:                                               ; preds = %76
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6RandomD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #11
  br label %116

80:                                               ; preds = %76, %.lr.ph
  %81 = icmp ugt i32 %.in46, 1
  br i1 %81, label %.lr.ph, label %.loopexit, !llvm.loop !7

82:                                               ; preds = %35
  %83 = icmp eq ptr %5, null
  br i1 %83, label %84, label %86

84:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #11
  call void @_ZNK4juce5Image9getBoundsEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %20, ptr noundef nonnull align 8 dereferenceable(8) %3) #11
  call void @_ZNK4juce9RectangleIiE9getCentreEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point") align 4 %19, ptr noundef nonnull align 4 dereferenceable(16) %20) #11
  %85 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN4juce5PointIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %19) #11
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %20) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #11
  br label %88

86:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #11
  call void @_ZNK4juce5Image9getBoundsEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %22, ptr noundef nonnull align 8 dereferenceable(8) %3) #11
  call void @_ZNK4juce5PointIiEngEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point") align 4 %23, ptr noundef nonnull align 4 dereferenceable(8) %5) #11
  call void @_ZNK4juce9RectangleIiE19getConstrainedPointENS_5PointIiEE(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point") align 4 %21, ptr noundef nonnull align 4 dereferenceable(16) %22, ptr noundef nonnull %23) #11
  %87 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN4juce5PointIiEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %21) #11
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %22) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #11
  br label %88

88:                                               ; preds = %84, %86, %._crit_edge
  %89 = call noalias noundef nonnull dereferenceable(320) ptr @_Znwm(i64 noundef 320) #12
  %90 = call noundef ptr @_ZNK4juce16MouseInputSource22getComponentUnderMouseEv(ptr noundef nonnull align 8 dereferenceable(8) %31)
  call void @_ZN4juce5PointIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(8) %9) #11
  invoke void @_ZN4juce20DragAndDropContainer18DragImageComponentC2ERKNS_5ImageERKNS_3varEPNS_9ComponentES9_RS0_NS_5PointIiEE(ptr noundef nonnull align 8 dereferenceable(320) %89, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %2, ptr noundef %90, ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull %24)
          to label %91 unwind label %97

91:                                               ; preds = %88
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_20DragAndDropContainer18DragImageComponentEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull %89)
  br i1 %4, label %93, label %104

93:                                               ; preds = %91
  %94 = call noundef zeroext i1 @_ZN4juce7Desktop28canUseSemiTransparentWindowsEv() #11
  br i1 %94, label %99, label %95

95:                                               ; preds = %93
  %96 = call noundef ptr @_ZNK4juce13ScopedPointerINS_20DragAndDropContainer18DragImageComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #11
  call void @_ZN4juce9Component9setOpaqueEb(ptr noundef nonnull align 8 dereferenceable(197) %96, i1 noundef zeroext true)
  br label %99

97:                                               ; preds = %88
  %98 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %89, i64 noundef 320) #13
  br label %116

99:                                               ; preds = %95, %93
  %100 = call noundef ptr @_ZNK4juce13ScopedPointerINS_20DragAndDropContainer18DragImageComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #11
  %101 = load ptr, ptr %100, align 8, !tbaa !8
  %102 = getelementptr inbounds i8, ptr %101, i64 104
  %103 = load ptr, ptr %102, align 8
  call void %103(ptr noundef nonnull align 8 dereferenceable(197) %100, i32 noundef 1030, ptr noundef null)
  br label %108

104:                                              ; preds = %91
  %105 = call ptr @__dynamic_cast(ptr nonnull %0, ptr nonnull @_ZTIN4juce20DragAndDropContainerE, ptr nonnull @_ZTIN4juce9ComponentE, i64 -2) #11
  %.not.not = icmp eq ptr %105, null
  br i1 %.not.not, label %.critedge, label %106

106:                                              ; preds = %104
  %107 = call noundef ptr @_ZNK4juce13ScopedPointerINS_20DragAndDropContainer18DragImageComponentEEcvPS2_Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #11
  call void @_ZN4juce9Component17addChildComponentEPS0_i(ptr noundef nonnull align 8 dereferenceable(197) %105, ptr noundef %107, i32 noundef -1)
  br label %108

108:                                              ; preds = %106, %99
  %109 = call noundef ptr @_ZNK4juce13ScopedPointerINS_20DragAndDropContainer18DragImageComponentEE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #11
  call void @_ZN4juce5PointIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(8) %7) #11
  call void @_ZN4juce20DragAndDropContainer18DragImageComponent14updateLocationEbNS_5PointIiEE(ptr noundef nonnull align 8 dereferenceable(320) %109, i1 noundef zeroext false, ptr noundef nonnull %25)
  %110 = call noundef ptr @_ZNK4juce13ScopedPointerINS_20DragAndDropContainer18DragImageComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #11
  call void @_ZN4juce9Component15enterModalStateEbPNS_21ModalComponentManager8CallbackEb(ptr noundef nonnull align 8 dereferenceable(197) %110, i1 noundef zeroext true, ptr noundef null, i1 noundef zeroext false)
  %111 = call noundef ptr @_ZNK4juce13ScopedPointerINS_20DragAndDropContainer18DragImageComponentEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #11
  %112 = getelementptr inbounds i8, ptr %111, i64 232
  %113 = load ptr, ptr %0, align 8, !tbaa !8
  %114 = getelementptr inbounds i8, ptr %113, i64 32
  %115 = load ptr, ptr %114, align 8
  call void %115(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(32) %112)
  br label %.critedge

.critedge:                                        ; preds = %104, %108
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #11
  br label %117

116:                                              ; preds = %97, %78, %49
  %.pn43 = phi { ptr, i32 } [ %79, %78 ], [ %98, %97 ], [ %.pn, %49 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #11
  resume { ptr, i32 } %.pn43

117:                                              ; preds = %.critedge, %29, %33, %6
  ret void
}

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

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

declare void @_ZNK4juce5Image17convertedToFormatENS0_11PixelFormatE(ptr dead_on_unwind writable sret(%"class.juce::Image") align 8, ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #7

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce5ImageaSEOS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

declare void @_ZN4juce5Image17multiplyAllAlphasEf(ptr noundef nonnull align 8 dereferenceable(8), float noundef) local_unnamed_addr #7

; Function Attrs: nounwind
declare void @_ZNK4juce5Image9getBoundsEv(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce9RectangleIiE19getConstrainedPointENS_5PointIiEE(ptr dead_on_unwind noalias writable sret(%"class.juce::Point") align 4, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef) local_unnamed_addr #0 align 2

declare void @_ZN4juce6RandomC1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #7

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

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #8

; Function Attrs: nounwind
declare noundef float @_ZN4juce6Random9nextFloatEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #9

declare void @_ZN4juce5Image15multiplyAlphaAtEiif(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef, float noundef) local_unnamed_addr #7

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce20DragAndDropContainer18DragImageComponentC2ERKNS_5ImageERKNS_3varEPNS_9ComponentES9_RS0_NS_5PointIiEE(ptr noundef nonnull align 8 dereferenceable(320), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4juce7Desktop28canUseSemiTransparentWindowsEv() local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(read)
declare ptr @__dynamic_cast(ptr, ptr, ptr, i64) local_unnamed_addr #10

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce20DragAndDropContainer18DragImageComponent14updateLocationEbNS_5PointIiEE(ptr noundef nonnull align 8 dereferenceable(320), i1 noundef zeroext, ptr noundef) local_unnamed_addr #3 align 2

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 #5 = { 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 #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 = { "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 = { mustprogress nofree nounwind willreturn memory(write) "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 #9 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #10 = { mustprogress nofree nounwind willreturn memory(read) }
attributes #11 = { nounwind }
attributes #12 = { builtin allocsize(0) }
attributes #13 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = !{!9, !9, i64 0}
!9 = !{!"vtable pointer", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}


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