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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.juce::File" = type { %"class.juce::String" }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

declare noundef zeroext i1 @_ZNK4juce4FileeqERKS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

declare noundef zeroext i1 @_ZNK4juce4File6existsEv(ptr noundef nonnull align 8 dereferenceable(8)) #3

declare void @_ZN4juce9PopupMenu7addItemEiRKNS_6StringEbb(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext, i1 noundef zeroext) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce23RecentlyOpenedFilesList7getFileEi(ptr dead_on_unwind noalias writable sret(%"class.juce::File") align 8, ptr noundef nonnull align 8 dereferenceable(28), i32 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN4juce23RecentlyOpenedFilesList20createPopupMenuItemsERNS_9PopupMenuEibbPPKNS_4FileE(ptr noundef nonnull align 8 dereferenceable(28) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %2, i1 noundef zeroext %3, i1 noundef zeroext %4, ptr noundef %5) #4 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"class.juce::File", align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i8, align 1
  %20 = alloca ptr, align 8
  %21 = alloca %"class.juce::String", align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  %22 = zext i1 %3 to i8
  store i8 %22, ptr %10, align 1, !tbaa !11
  %23 = zext i1 %4 to i8
  store i8 %23, ptr %11, align 1, !tbaa !11
  store ptr %5, ptr %12, align 8, !tbaa !5
  %24 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %25

25:                                               ; preds = %97, %6
  %26 = load i32, ptr %14, align 4, !tbaa !9
  %27 = call noundef i32 @_ZNK4juce23RecentlyOpenedFilesList11getNumFilesEv(ptr noundef nonnull align 8 dereferenceable(28) %24)
  %28 = icmp slt i32 %26, %27
  br i1 %28, label %30, label %29

29:                                               ; preds = %25
  store i32 2, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %101

30:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %31 = load i32, ptr %14, align 4, !tbaa !9
  call void @_ZNK4juce23RecentlyOpenedFilesList7getFileEi(ptr dead_on_unwind writable sret(%"class.juce::File") align 8 %16, ptr noundef nonnull align 8 dereferenceable(28) %24, i32 noundef %31)
  %32 = load i8, ptr %11, align 1, !tbaa !11, !range !13, !noundef !14
  %33 = trunc i8 %32 to i1
  br i1 %33, label %34, label %37

34:                                               ; preds = %30
  %35 = invoke noundef zeroext i1 @_ZNK4juce4File6existsEv(ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %36 unwind label %47

36:                                               ; preds = %34
  br i1 %35, label %37, label %96

37:                                               ; preds = %36, %30
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #5
  store i8 0, ptr %19, align 1, !tbaa !11
  %38 = load ptr, ptr %12, align 8, !tbaa !5
  %39 = icmp ne ptr %38, null
  br i1 %39, label %40, label %67

40:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %41 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %41, ptr %20, align 8, !tbaa !5
  br label %42

42:                                               ; preds = %62, %40
  %43 = load ptr, ptr %20, align 8, !tbaa !5
  %44 = load ptr, ptr %43, align 8, !tbaa !5
  %45 = icmp ne ptr %44, null
  br i1 %45, label %51, label %46

46:                                               ; preds = %42
  store i32 5, ptr %15, align 4
  br label %65

47:                                               ; preds = %34
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %17, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %18, align 4
  br label %100

51:                                               ; preds = %42
  %52 = load ptr, ptr %20, align 8, !tbaa !5
  %53 = load ptr, ptr %52, align 8, !tbaa !5
  %54 = invoke noundef zeroext i1 @_ZNK4juce4FileeqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %53)
          to label %55 unwind label %57

55:                                               ; preds = %51
  br i1 %54, label %56, label %61

56:                                               ; preds = %55
  store i8 1, ptr %19, align 1, !tbaa !11
  store i32 5, ptr %15, align 4
  br label %65

57:                                               ; preds = %51
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %17, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %95

61:                                               ; preds = %55
  br label %62

62:                                               ; preds = %61
  %63 = load ptr, ptr %20, align 8, !tbaa !5
  %64 = getelementptr inbounds ptr, ptr %63, i32 1
  store ptr %64, ptr %20, align 8, !tbaa !5
  br label %42, !llvm.loop !15

65:                                               ; preds = %56, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %66

66:                                               ; preds = %65
  br label %67

67:                                               ; preds = %66, %37
  %68 = load i8, ptr %19, align 1, !tbaa !11, !range !13, !noundef !14
  %69 = trunc i8 %68 to i1
  br i1 %69, label %94, label %70

70:                                               ; preds = %67
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = load i32, ptr %9, align 4, !tbaa !9
  %73 = load i32, ptr %14, align 4, !tbaa !9
  %74 = add nsw i32 %72, %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %75 = load i8, ptr %10, align 1, !tbaa !11, !range !13, !noundef !14
  %76 = trunc i8 %75 to i1
  br i1 %76, label %77, label %79

77:                                               ; preds = %70
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce4File15getFullPathNameEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  call void @_ZN4juce6StringC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %78) #5
  br label %81

79:                                               ; preds = %70
  invoke void @_ZNK4juce4File11getFileNameEv(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %21, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %80 unwind label %85

80:                                               ; preds = %79
  br label %81

81:                                               ; preds = %80, %77
  invoke void @_ZN4juce9PopupMenu7addItemEiRKNS_6StringEbb(ptr noundef nonnull align 8 dereferenceable(32) %71, i32 noundef %74, ptr noundef nonnull align 8 dereferenceable(8) %21, i1 noundef zeroext true, i1 noundef zeroext false)
          to label %82 unwind label %89

82:                                               ; preds = %81
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  %83 = load i32, ptr %13, align 4, !tbaa !9
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %13, align 4, !tbaa !9
  br label %94

85:                                               ; preds = %79
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %17, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %18, align 4
  br label %93

89:                                               ; preds = %81
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %17, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %18, align 4
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #5
  br label %93

93:                                               ; preds = %89, %85
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %95

94:                                               ; preds = %82, %67
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #5
  br label %96

95:                                               ; preds = %93, %57
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #5
  br label %100

96:                                               ; preds = %94, %36
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %97

97:                                               ; preds = %96
  %98 = load i32, ptr %14, align 4, !tbaa !9
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %14, align 4, !tbaa !9
  br label %25, !llvm.loop !17

100:                                              ; preds = %95, %47
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %103

101:                                              ; preds = %29
  %102 = load i32, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  ret i32 %102

103:                                              ; preds = %100
  %104 = load ptr, ptr %17, align 8
  %105 = load i32, ptr %18, align 4
  %106 = insertvalue { ptr, i32 } poison, ptr %104, 0
  %107 = insertvalue { ptr, i32 } %106, i32 %105, 1
  resume { ptr, i32 } %107
}

declare void @_ZNK4juce4File11getFileNameEv(ptr dead_on_unwind writable sret(%"class.juce::String") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #3

attributes #0 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #5 = { 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 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


; 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::File" = type { %"class.juce::String" }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }

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

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

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

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

declare i32 @__gxx_personality_v0(...)

; 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 nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce4File15getFullPathNameEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

declare noundef zeroext i1 @_ZNK4juce4FileeqERKS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

declare void @_ZN4juce9PopupMenu7addItemEiRKNS_6StringEbb(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN4juce23RecentlyOpenedFilesList20createPopupMenuItemsERNS_9PopupMenuEibbPPKNS_4FileE(ptr noundef nonnull align 8 dereferenceable(28) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %2, i1 noundef zeroext %3, i1 noundef zeroext %4, ptr noundef readonly %5) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.juce::File", align 8
  %8 = alloca %"class.juce::String", align 8
  %9 = tail call noundef i32 @_ZNK4juce23RecentlyOpenedFilesList11getNumFilesEv(ptr noundef nonnull align 8 dereferenceable(28) %0)
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %.lr.ph45, label %._crit_edge

.lr.ph45:                                         ; preds = %6
  %.not = icmp eq ptr %5, null
  br i1 %.not, label %.lr.ph45.split.us, label %.lr.ph45.split

.lr.ph45.split.us:                                ; preds = %.lr.ph45, %21
  %.02444.us = phi i32 [ %22, %21 ], [ 0, %.lr.ph45 ]
  %.02542.us = phi i32 [ %.227.us, %21 ], [ 0, %.lr.ph45 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  call void @_ZNK4juce23RecentlyOpenedFilesList7getFileEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::File") align 8 %7, ptr noundef nonnull align 8 dereferenceable(28) %0, i32 noundef %.02444.us)
  br i1 %4, label %11, label %.critedge.us

11:                                               ; preds = %.lr.ph45.split.us
  %12 = invoke noundef zeroext i1 @_ZNK4juce4File6existsEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %13 unwind label %.split.us

13:                                               ; preds = %11
  br i1 %12, label %.critedge.us, label %21

.critedge.us:                                     ; preds = %13, %.lr.ph45.split.us
  %14 = add nsw i32 %.02444.us, %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  br i1 %3, label %16, label %15

15:                                               ; preds = %.critedge.us
  invoke void @_ZNK4juce4File11getFileNameEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %8, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %18 unwind label %.split47.us

16:                                               ; preds = %.critedge.us
  %17 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce4File15getFullPathNameEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @_ZN4juce6StringC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  br label %18

18:                                               ; preds = %16, %15
  invoke void @_ZN4juce9PopupMenu7addItemEiRKNS_6StringEbb(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %14, ptr noundef nonnull align 8 dereferenceable(8) %8, i1 noundef zeroext true, i1 noundef zeroext false)
          to label %19 unwind label %.split50.us

19:                                               ; preds = %18
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  %20 = add nsw i32 %.02542.us, 1
  br label %21

21:                                               ; preds = %19, %13
  %.227.us = phi i32 [ %.02542.us, %13 ], [ %20, %19 ]
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  %22 = add nuw nsw i32 %.02444.us, 1
  %23 = call noundef i32 @_ZNK4juce23RecentlyOpenedFilesList11getNumFilesEv(ptr noundef nonnull align 8 dereferenceable(28) %0)
  %24 = icmp slt i32 %22, %23
  br i1 %24, label %.lr.ph45.split.us, label %._crit_edge, !llvm.loop !5

.split.us:                                        ; preds = %11
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %.split

.split47.us:                                      ; preds = %15
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %.split47

.split50.us:                                      ; preds = %18
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %.split50

.lr.ph45.split:                                   ; preds = %.lr.ph45
  br i1 %3, label %.lr.ph45.split.split.us, label %.lr.ph45.split.split

.lr.ph45.split.split.us:                          ; preds = %.lr.ph45.split, %.loopexit.us
  %.02444.us53 = phi i32 [ %40, %.loopexit.us ], [ 0, %.lr.ph45.split ]
  %.02542.us54 = phi i32 [ %.227.us55, %.loopexit.us ], [ 0, %.lr.ph45.split ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  call void @_ZNK4juce23RecentlyOpenedFilesList7getFileEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::File") align 8 %7, ptr noundef nonnull align 8 dereferenceable(28) %0, i32 noundef %.02444.us53)
  br i1 %4, label %28, label %.preheader.us

28:                                               ; preds = %.lr.ph45.split.split.us
  %29 = invoke noundef zeroext i1 @_ZNK4juce4File6existsEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %30 unwind label %.split.split.us

30:                                               ; preds = %28
  br i1 %29, label %.preheader.us, label %.loopexit.us

.preheader.us:                                    ; preds = %30, %.lr.ph45.split.split.us
  %31 = load ptr, ptr %5, align 8, !tbaa !7
  %.not30.not40.us = icmp eq ptr %31, null
  br i1 %.not30.not40.us, label %.critedge.loopexit.us, label %.lr.ph.us

32:                                               ; preds = %37
  %33 = getelementptr inbounds i8, ptr %.041.us, i64 8
  %34 = load ptr, ptr %33, align 8, !tbaa !7
  %.not30.not.us = icmp eq ptr %34, null
  br i1 %.not30.not.us, label %.critedge.loopexit.us, label %.lr.ph.us, !llvm.loop !11

.lr.ph.us:                                        ; preds = %.preheader.us, %32
  %35 = phi ptr [ %34, %32 ], [ %31, %.preheader.us ]
  %.041.us = phi ptr [ %33, %32 ], [ %5, %.preheader.us ]
  %36 = invoke noundef zeroext i1 @_ZNK4juce4FileeqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %35)
          to label %37 unwind label %.split58.us

37:                                               ; preds = %.lr.ph.us
  br i1 %36, label %.loopexit.us, label %32

38:                                               ; preds = %.critedge.loopexit.us
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  %39 = add nsw i32 %.02542.us54, 1
  br label %.loopexit.us

.loopexit.us:                                     ; preds = %37, %38, %30
  %.227.us55 = phi i32 [ %.02542.us54, %30 ], [ %39, %38 ], [ %.02542.us54, %37 ]
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  %40 = add nuw nsw i32 %.02444.us53, 1
  %41 = call noundef i32 @_ZNK4juce23RecentlyOpenedFilesList11getNumFilesEv(ptr noundef nonnull align 8 dereferenceable(28) %0)
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %.lr.ph45.split.split.us, label %._crit_edge, !llvm.loop !5

.critedge.loopexit.us:                            ; preds = %32, %.preheader.us
  %43 = add nsw i32 %.02444.us53, %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce4File15getFullPathNameEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @_ZN4juce6StringC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %44) #5
  invoke void @_ZN4juce9PopupMenu7addItemEiRKNS_6StringEbb(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %43, ptr noundef nonnull align 8 dereferenceable(8) %8, i1 noundef zeroext true, i1 noundef zeroext false)
          to label %38 unwind label %.split50.split.us

.split.split.us:                                  ; preds = %28
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %.split

.split58.us:                                      ; preds = %.lr.ph.us
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %.split

.split50.split.us:                                ; preds = %.critedge.loopexit.us
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %.split50

.lr.ph45.split.split:                             ; preds = %.lr.ph45.split
  br i1 %4, label %.lr.ph45.split.split.split.us, label %.preheader

.lr.ph45.split.split.split.us:                    ; preds = %.lr.ph45.split.split, %.loopexit.us71
  %.02444.us63 = phi i32 [ %61, %.loopexit.us71 ], [ 0, %.lr.ph45.split.split ]
  %.02542.us64 = phi i32 [ %.227.us69, %.loopexit.us71 ], [ 0, %.lr.ph45.split.split ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  call void @_ZNK4juce23RecentlyOpenedFilesList7getFileEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::File") align 8 %7, ptr noundef nonnull align 8 dereferenceable(28) %0, i32 noundef %.02444.us63)
  %48 = invoke noundef zeroext i1 @_ZNK4juce4File6existsEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %49 unwind label %.split.split.split.us

49:                                               ; preds = %.lr.ph45.split.split.split.us
  br i1 %48, label %.preheader.us65, label %.loopexit.us71

.preheader.us65:                                  ; preds = %49
  %50 = load ptr, ptr %5, align 8, !tbaa !7
  %.not30.not40.us66 = icmp eq ptr %50, null
  br i1 %.not30.not40.us66, label %.critedge.loopexit.us70, label %.lr.ph.us72

51:                                               ; preds = %56
  %52 = getelementptr inbounds i8, ptr %.041.us68, i64 8
  %53 = load ptr, ptr %52, align 8, !tbaa !7
  %.not30.not.us67 = icmp eq ptr %53, null
  br i1 %.not30.not.us67, label %.critedge.loopexit.us70, label %.lr.ph.us72, !llvm.loop !11

.lr.ph.us72:                                      ; preds = %.preheader.us65, %51
  %54 = phi ptr [ %53, %51 ], [ %50, %.preheader.us65 ]
  %.041.us68 = phi ptr [ %52, %51 ], [ %5, %.preheader.us65 ]
  %55 = invoke noundef zeroext i1 @_ZNK4juce4FileeqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %54)
          to label %56 unwind label %.split58.split.us

56:                                               ; preds = %.lr.ph.us72
  br i1 %55, label %.loopexit.us71, label %51

57:                                               ; preds = %.critedge.loopexit.us70
  %58 = add nsw i32 %.02444.us63, %2
  invoke void @_ZN4juce9PopupMenu7addItemEiRKNS_6StringEbb(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %58, ptr noundef nonnull align 8 dereferenceable(8) %8, i1 noundef zeroext true, i1 noundef zeroext false)
          to label %59 unwind label %.split50.split.split.us

59:                                               ; preds = %57
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  %60 = add nsw i32 %.02542.us64, 1
  br label %.loopexit.us71

.loopexit.us71:                                   ; preds = %56, %59, %49
  %.227.us69 = phi i32 [ %.02542.us64, %49 ], [ %60, %59 ], [ %.02542.us64, %56 ]
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  %61 = add nuw nsw i32 %.02444.us63, 1
  %62 = call noundef i32 @_ZNK4juce23RecentlyOpenedFilesList11getNumFilesEv(ptr noundef nonnull align 8 dereferenceable(28) %0)
  %63 = icmp slt i32 %61, %62
  br i1 %63, label %.lr.ph45.split.split.split.us, label %._crit_edge, !llvm.loop !5

.critedge.loopexit.us70:                          ; preds = %51, %.preheader.us65
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  invoke void @_ZNK4juce4File11getFileNameEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %8, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %57 unwind label %.split47.split.us

.split.split.split.us:                            ; preds = %.lr.ph45.split.split.split.us
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %.split

.split58.split.us:                                ; preds = %.lr.ph.us72
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %.split

.split50.split.split.us:                          ; preds = %57
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %.split50

.split47.split.us:                                ; preds = %.critedge.loopexit.us70
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %.split47

._crit_edge:                                      ; preds = %.loopexit, %.loopexit.us71, %.loopexit.us, %21, %6
  %.025.lcssa = phi i32 [ 0, %6 ], [ %.227.us, %21 ], [ %.227.us55, %.loopexit.us ], [ %.227.us69, %.loopexit.us71 ], [ %.227, %.loopexit ]
  ret i32 %.025.lcssa

.preheader:                                       ; preds = %.lr.ph45.split.split, %.loopexit
  %.02444 = phi i32 [ %82, %.loopexit ], [ 0, %.lr.ph45.split.split ]
  %.02542 = phi i32 [ %.227, %.loopexit ], [ 0, %.lr.ph45.split.split ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  call void @_ZNK4juce23RecentlyOpenedFilesList7getFileEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::File") align 8 %7, ptr noundef nonnull align 8 dereferenceable(28) %0, i32 noundef %.02444)
  %68 = load ptr, ptr %5, align 8, !tbaa !7
  %.not30.not40 = icmp eq ptr %68, null
  br i1 %.not30.not40, label %.critedge.loopexit, label %.lr.ph

69:                                               ; preds = %74
  %70 = getelementptr inbounds i8, ptr %.041, i64 8
  %71 = load ptr, ptr %70, align 8, !tbaa !7
  %.not30.not = icmp eq ptr %71, null
  br i1 %.not30.not, label %.critedge.loopexit, label %.lr.ph, !llvm.loop !11

.lr.ph:                                           ; preds = %.preheader, %69
  %72 = phi ptr [ %71, %69 ], [ %68, %.preheader ]
  %.041 = phi ptr [ %70, %69 ], [ %5, %.preheader ]
  %73 = invoke noundef zeroext i1 @_ZNK4juce4FileeqERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %72)
          to label %74 unwind label %.split58.split

74:                                               ; preds = %.lr.ph
  br i1 %73, label %.loopexit, label %69

.split58.split:                                   ; preds = %.lr.ph
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %.split

.critedge.loopexit:                               ; preds = %69, %.preheader
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  invoke void @_ZNK4juce4File11getFileNameEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %8, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %76 unwind label %.split47.split

76:                                               ; preds = %.critedge.loopexit
  %77 = add nsw i32 %.02444, %2
  invoke void @_ZN4juce9PopupMenu7addItemEiRKNS_6StringEbb(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %77, ptr noundef nonnull align 8 dereferenceable(8) %8, i1 noundef zeroext true, i1 noundef zeroext false)
          to label %78 unwind label %.split50.split.split

78:                                               ; preds = %76
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  %79 = add nsw i32 %.02542, 1
  br label %.loopexit

.split47.split:                                   ; preds = %.critedge.loopexit
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %.split47

.split50.split.split:                             ; preds = %76
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %.split50

.split50:                                         ; preds = %.split50.split.us, %.split50.split.split.us, %.split50.split.split, %.split50.us
  %.us-phi51 = phi { ptr, i32 } [ %27, %.split50.us ], [ %47, %.split50.split.us ], [ %81, %.split50.split.split ], [ %66, %.split50.split.split.us ]
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  br label %.split47

.split47:                                         ; preds = %.split47.us, %.split47.split.us, %.split47.split, %.split50
  %.pn = phi { ptr, i32 } [ %.us-phi51, %.split50 ], [ %26, %.split47.us ], [ %80, %.split47.split ], [ %67, %.split47.split.us ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br label %.split

.loopexit:                                        ; preds = %74, %78
  %.227 = phi i32 [ %79, %78 ], [ %.02542, %74 ]
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  %82 = add nuw nsw i32 %.02444, 1
  %83 = call noundef i32 @_ZNK4juce23RecentlyOpenedFilesList11getNumFilesEv(ptr noundef nonnull align 8 dereferenceable(28) %0)
  %84 = icmp slt i32 %82, %83
  br i1 %84, label %.preheader, label %._crit_edge, !llvm.loop !5

.split:                                           ; preds = %.split58.us, %.split58.split.us, %.split58.split, %.split.us, %.split.split.us, %.split.split.split.us, %.split47
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn, %.split47 ], [ %25, %.split.us ], [ %64, %.split.split.split.us ], [ %45, %.split.split.us ], [ %46, %.split58.us ], [ %75, %.split58.split ], [ %65, %.split58.split.us ]
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  resume { ptr, i32 } %.pn.pn.pn
}

declare void @_ZNK4juce4File11getFileNameEv(ptr dead_on_unwind writable sret(%"class.juce::String") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

attributes #0 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #5 = { 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 = !{!8, !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = distinct !{!11, !6}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass