; LLVM IR from modlfo/AudioEngine :: AudioEngine/JuceLibraryCode/juce_gui_basics.ll (ZN4juce9Component14exitModalStateEi)

; 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::MouseInputSource" = type { ptr }
%"class.juce::Point.35" = type { float, float }
%"class.juce::Time" = type { i64 }

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

declare noundef ptr @_ZN4juce14MessageManager11getInstanceEv() #4

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZNK4juce14MessageManager22isThisTheMessageThreadEv(ptr noundef nonnull align 8 dereferenceable(72)) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN4juce21ModalComponentManager11getInstanceEv() #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce9Component14exitModalStateEi(ptr noundef nonnull align 8 dereferenceable(197) %0, i32 noundef %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.juce::MouseInputSource", align 8
  %11 = alloca %"class.juce::Point.35", align 4
  %12 = alloca %"class.juce::Time", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  %15 = load ptr, ptr %3, align 8
  %16 = call noundef zeroext i1 @_ZNK4juce9Component16isCurrentlyModalEb(ptr noundef nonnull align 8 dereferenceable(197) %15, i1 noundef zeroext false) #8
  br i1 %16, label %17, label %65

17:                                               ; preds = %2
  %18 = call noundef ptr @_ZN4juce14MessageManager11getInstanceEv()
  %19 = call noundef zeroext i1 @_ZNK4juce14MessageManager22isThisTheMessageThreadEv(ptr noundef nonnull align 8 dereferenceable(72) %18) #8
  br i1 %19, label %20, label %55

20:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  %21 = call noundef ptr @_ZN4juce21ModalComponentManager11getInstanceEv()
  store ptr %21, ptr %5, align 8, !tbaa !5
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = load i32, ptr %4, align 4, !tbaa !9
  call void @_ZN4juce21ModalComponentManager8endModalEPNS_9ComponentEi(ptr noundef nonnull align 8 dereferenceable(48) %22, ptr noundef %15, i32 noundef %23)
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4juce21ModalComponentManager27bringModalComponentsToFrontEb(ptr noundef nonnull align 8 dereferenceable(48) %24, i1 noundef zeroext true)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %25 = call noundef nonnull align 8 dereferenceable(360) ptr @_ZN4juce7Desktop11getInstanceEv()
  %26 = call noundef nonnull align 8 dereferenceable(20) ptr @_ZNK4juce7Desktop15getMouseSourcesEv(ptr noundef nonnull align 8 dereferenceable(360) %25) #8
  store ptr %26, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = call noundef ptr @_ZNK4juce5ArrayINS_16MouseInputSourceENS_20DummyCriticalSectionELi0EE5beginEv(ptr noundef nonnull align 8 dereferenceable(20) %27) #8
  store ptr %28, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = call noundef ptr @_ZNK4juce5ArrayINS_16MouseInputSourceENS_20DummyCriticalSectionELi0EE3endEv(ptr noundef nonnull align 8 dereferenceable(20) %29) #8
  store ptr %30, ptr %8, align 8, !tbaa !5
  br label %31

31:                                               ; preds = %51, %20
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  %34 = icmp ne ptr %32, %33
  br i1 %34, label %36, label %35

35:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  br label %54

36:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = call noundef ptr @_ZNK4juce16MouseInputSource22getComponentUnderMouseEv(ptr noundef nonnull align 8 dereferenceable(8) %37)
  store ptr %38, ptr %9, align 8, !tbaa !5
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %50

41:                                               ; preds = %36
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN4juce16MouseInputSourceC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %43) #8
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK4juce16MouseInputSource17getScreenPositionEv(ptr dead_on_unwind writable sret(%"class.juce::Point.35") align 4 %11, ptr noundef nonnull align 8 dereferenceable(8) %44) #8
  call void @_ZN4juce4Time14getCurrentTimeEv(ptr dead_on_unwind writable sret(%"class.juce::Time") align 8 %12) #8
  invoke void @_ZN4juce9Component18internalMouseEnterENS_16MouseInputSourceENS_5PointIfEENS_4TimeE(ptr noundef nonnull align 8 dereferenceable(197) %42, ptr noundef %10, ptr noundef %11, ptr noundef %12)
          to label %45 unwind label %46

45:                                               ; preds = %41
  call void @_ZN4juce4TimeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  call void @_ZN4juce16MouseInputSourceD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  br label %50

46:                                               ; preds = %41
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %13, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %14, align 4
  call void @_ZN4juce4TimeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  call void @_ZN4juce16MouseInputSourceD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  br label %66

50:                                               ; preds = %45, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  br label %51

51:                                               ; preds = %50
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = getelementptr inbounds %"class.juce::MouseInputSource", ptr %52, i32 1
  store ptr %53, ptr %7, align 8, !tbaa !5
  br label %31, !llvm.loop !11

54:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  br label %64

55:                                               ; preds = %17
  %56 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 32) #9
  %57 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @_ZZN4juce9Component14exitModalStateEiEN21ExitModalStateMessageC2EPS0_i(ptr noundef nonnull align 8 dereferenceable(28) %56, ptr noundef %15, i32 noundef %57)
          to label %58 unwind label %60

58:                                               ; preds = %55
  %59 = call noundef zeroext i1 @_ZN4juce14MessageManager11MessageBase4postEv(ptr noundef nonnull align 8 dereferenceable(16) %56)
  br label %64

60:                                               ; preds = %55
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %13, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %14, align 4
  call void @_ZdlPvm(ptr noundef %56, i64 noundef 32) #10
  br label %66

64:                                               ; preds = %58, %54
  br label %65

65:                                               ; preds = %64, %2
  ret void

66:                                               ; preds = %60, %46
  %67 = load ptr, ptr %13, align 8
  %68 = load i32, ptr %14, align 4
  %69 = insertvalue { ptr, i32 } poison, ptr %67, 0
  %70 = insertvalue { ptr, i32 } %69, i32 %68, 1
  resume { ptr, i32 } %70
}

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

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

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

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

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

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

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

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

; Function Attrs: nounwind
declare void @_ZN4juce4Time14getCurrentTimeEv(ptr dead_on_unwind writable sret(%"class.juce::Time") align 8) #5

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZZN4juce9Component14exitModalStateEiEN21ExitModalStateMessageC2EPS0_i(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef, i32 noundef) unnamed_addr #2 align 2

declare noundef zeroext i1 @_ZN4juce14MessageManager11MessageBase4postEv(ptr noundef nonnull align 8 dereferenceable(16)) #4

declare void @_ZN4juce16MouseInputSourceC1ERKS0_(ptr, ptr)

declare void @_ZN4juce16MouseInputSourceD1Ev(ptr)

attributes #0 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = { 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 = { 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; 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::MouseInputSource" = type { ptr }
%"class.juce::Point.35" = type { float, float }
%"class.juce::Time" = type { i64 }

declare i32 @__gxx_personality_v0(...)

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

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

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

declare noundef ptr @_ZN4juce14MessageManager11getInstanceEv() local_unnamed_addr #3

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZNK4juce14MessageManager22isThisTheMessageThreadEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN4juce21ModalComponentManager11getInstanceEv() local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce9Component14exitModalStateEi(ptr noundef nonnull align 8 dereferenceable(197) %0, i32 noundef %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.juce::MouseInputSource", align 8
  %4 = alloca %"class.juce::Point.35", align 4
  %5 = alloca %"class.juce::Time", align 8
  %6 = tail call noundef zeroext i1 @_ZNK4juce9Component16isCurrentlyModalEb(ptr noundef nonnull align 8 dereferenceable(197) %0, i1 noundef zeroext false) #7
  br i1 %6, label %7, label %.loopexit

7:                                                ; preds = %2
  %8 = tail call noundef ptr @_ZN4juce14MessageManager11getInstanceEv()
  %9 = tail call noundef zeroext i1 @_ZNK4juce14MessageManager22isThisTheMessageThreadEv(ptr noundef nonnull align 8 dereferenceable(72) %8) #7
  br i1 %9, label %10, label %23

10:                                               ; preds = %7
  %11 = tail call noundef ptr @_ZN4juce21ModalComponentManager11getInstanceEv()
  tail call void @_ZN4juce21ModalComponentManager8endModalEPNS_9ComponentEi(ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull %0, i32 noundef %1)
  tail call void @_ZN4juce21ModalComponentManager27bringModalComponentsToFrontEb(ptr noundef nonnull align 8 dereferenceable(48) %11, i1 noundef zeroext true)
  %12 = tail call noundef nonnull align 8 dereferenceable(360) ptr @_ZN4juce7Desktop11getInstanceEv()
  %13 = tail call noundef nonnull align 8 dereferenceable(20) ptr @_ZNK4juce7Desktop15getMouseSourcesEv(ptr noundef nonnull align 8 dereferenceable(360) %12) #7
  %14 = tail call noundef ptr @_ZNK4juce5ArrayINS_16MouseInputSourceENS_20DummyCriticalSectionELi0EE5beginEv(ptr noundef nonnull align 8 dereferenceable(20) %13) #7
  %15 = tail call noundef ptr @_ZNK4juce5ArrayINS_16MouseInputSourceENS_20DummyCriticalSectionELi0EE3endEv(ptr noundef nonnull align 8 dereferenceable(20) %13) #7
  %.not21 = icmp eq ptr %14, %15
  br i1 %.not21, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %10, %21
  %.01722 = phi ptr [ %22, %21 ], [ %14, %10 ]
  %16 = call noundef ptr @_ZNK4juce16MouseInputSource22getComponentUnderMouseEv(ptr noundef nonnull align 8 dereferenceable(8) %.01722)
  %.not19 = icmp eq ptr %16, null
  br i1 %.not19, label %21, label %17

17:                                               ; preds = %.lr.ph
  call void @_ZN4juce16MouseInputSourceC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %.01722) #7
  call void @_ZNK4juce16MouseInputSource17getScreenPositionEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Point.35") align 4 %4, ptr noundef nonnull align 8 dereferenceable(8) %.01722) #7
  call void @_ZN4juce4Time14getCurrentTimeEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Time") align 8 %5) #7
  invoke void @_ZN4juce9Component18internalMouseEnterENS_16MouseInputSourceENS_5PointIfEENS_4TimeE(ptr noundef nonnull align 8 dereferenceable(197) %16, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5)
          to label %18 unwind label %19

18:                                               ; preds = %17
  call void @_ZN4juce4TimeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  call void @_ZN4juce16MouseInputSourceD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  br label %21

19:                                               ; preds = %17
  %20 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce4TimeD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  call void @_ZN4juce16MouseInputSourceD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  br label %29

21:                                               ; preds = %18, %.lr.ph
  %22 = getelementptr inbounds i8, ptr %.01722, i64 8
  %.not = icmp eq ptr %22, %15
  br i1 %.not, label %.loopexit, label %.lr.ph, !llvm.loop !5

23:                                               ; preds = %7
  %24 = tail call noalias noundef nonnull dereferenceable(32) ptr @_Znwm(i64 noundef 32) #8
  invoke void @_ZZN4juce9Component14exitModalStateEiEN21ExitModalStateMessageC2EPS0_i(ptr noundef nonnull align 8 dereferenceable(28) %24, ptr noundef nonnull %0, i32 noundef %1)
          to label %25 unwind label %27

25:                                               ; preds = %23
  %26 = tail call noundef zeroext i1 @_ZN4juce14MessageManager11MessageBase4postEv(ptr noundef nonnull align 8 dereferenceable(16) %24)
  br label %.loopexit

27:                                               ; preds = %23
  %28 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %24, i64 noundef 32) #9
  br label %29

.loopexit:                                        ; preds = %21, %10, %25, %2
  ret void

29:                                               ; preds = %27, %19
  %.pn = phi { ptr, i32 } [ %20, %19 ], [ %28, %27 ]
  resume { ptr, i32 } %.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce21ModalComponentManager8endModalEPNS_9ComponentEi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, i32 noundef) local_unnamed_addr #1 align 2

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

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

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

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

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

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

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

; Function Attrs: nounwind
declare void @_ZN4juce4Time14getCurrentTimeEv(ptr dead_on_unwind writable sret(%"class.juce::Time") align 8) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZZN4juce9Component14exitModalStateEiEN21ExitModalStateMessageC2EPS0_i(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef, i32 noundef) unnamed_addr #1 align 2

declare noundef zeroext i1 @_ZN4juce14MessageManager11MessageBase4postEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

declare void @_ZN4juce16MouseInputSourceC1ERKS0_(ptr, ptr) local_unnamed_addr

declare void @_ZN4juce16MouseInputSourceD1Ev(ptr) local_unnamed_addr

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


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