; 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::File" = type { %"class.juce::String" }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::StringArray" = type { %"class.juce::Array.150" }
%"class.juce::Array.150" = type { %"class.juce::ArrayAllocationBase.151", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.151" = type <{ %"class.juce::HeapBlock.152", i32, [4 x i8] }>
%"class.juce::HeapBlock.152" = type { ptr }
%"class.juce::ChildProcess" = type { %"class.juce::ScopedPointer.557" }
%"class.juce::ScopedPointer.557" = type { ptr }
%"class.juce::StringRef" = type { %"class.juce::CharPointer_UTF8" }

@.str.264 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.265 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.266 = external hidden unnamed_addr constant [2 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce11StringArrayixEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #0

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

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

declare void @_ZNK4juce4File12getChildFileENS_9StringRefE(ptr dead_on_unwind writable sret(%"class.juce::File") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4

declare void @_ZN4juce4File26getCurrentWorkingDirectoryEv(ptr dead_on_unwind writable sret(%"class.juce::File") align 8) #4

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

declare void @_ZN4juce11StringArray3addERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce11FileChooser18showPlatformDialogERNS_5ArrayINS_4FileENS_20DummyCriticalSectionELi0EEERKNS_6StringERKS2_S8_bbbbbbPNS_20FilePreviewComponentE(ptr noundef nonnull align 8 dereferenceable(20) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3, i1 noundef zeroext %4, i1 noundef zeroext %5, i1 noundef zeroext %6, i1 noundef zeroext %7, i1 noundef zeroext %8, i1 noundef zeroext %9, ptr noundef %10) #5 align 2 personality ptr @__gxx_personality_v0 {
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i8, align 1
  %17 = alloca i8, align 1
  %18 = alloca i8, align 1
  %19 = alloca i8, align 1
  %20 = alloca i8, align 1
  %21 = alloca i8, align 1
  %22 = alloca ptr, align 8
  %23 = alloca %"class.juce::File", align 8
  %24 = alloca %"class.juce::StringArray", align 8
  %25 = alloca %"class.juce::String", align 8
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca %"class.juce::ChildProcess", align 8
  %29 = alloca %"class.juce::String", align 8
  %30 = alloca %"class.juce::String", align 8
  %31 = alloca %"class.juce::StringArray", align 8
  %32 = alloca %"class.juce::StringRef", align 8
  %33 = alloca %"class.juce::StringRef", align 8
  %34 = alloca %"class.juce::StringRef", align 8
  %35 = alloca i32, align 4
  %36 = alloca %"class.juce::File", align 8
  %37 = alloca %"class.juce::File", align 8
  %38 = alloca %"class.juce::StringRef", align 8
  store ptr %0, ptr %12, align 8, !tbaa !5
  store ptr %1, ptr %13, align 8, !tbaa !5
  store ptr %2, ptr %14, align 8, !tbaa !5
  store ptr %3, ptr %15, align 8, !tbaa !5
  %39 = zext i1 %4 to i8
  store i8 %39, ptr %16, align 1, !tbaa !9
  %40 = zext i1 %5 to i8
  store i8 %40, ptr %17, align 1, !tbaa !9
  %41 = zext i1 %6 to i8
  store i8 %41, ptr %18, align 1, !tbaa !9
  %42 = zext i1 %7 to i8
  store i8 %42, ptr %19, align 1, !tbaa !9
  %43 = zext i1 %8 to i8
  store i8 %43, ptr %20, align 1, !tbaa !9
  %44 = zext i1 %9 to i8
  store i8 %44, ptr %21, align 1, !tbaa !9
  store ptr %10, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  call void @_ZN4juce4File26getCurrentWorkingDirectoryEv(ptr dead_on_unwind writable sret(%"class.juce::File") align 8 %23)
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #6
  call void @_ZN4juce11StringArrayC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  call void @_ZN4juce6StringC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  %45 = invoke noundef zeroext i1 @_ZN4juceL14exeIsAvailableEPKc(ptr noundef @.str.265)
          to label %46 unwind label %64

46:                                               ; preds = %11
  br i1 %45, label %47, label %68

47:                                               ; preds = %46
  %48 = invoke noundef zeroext i1 @_ZN4juceL16isKdeFullSessionEv()
          to label %49 unwind label %64

49:                                               ; preds = %47
  br i1 %48, label %53, label %50

50:                                               ; preds = %49
  %51 = invoke noundef zeroext i1 @_ZN4juceL14exeIsAvailableEPKc(ptr noundef @.str.264)
          to label %52 unwind label %64

52:                                               ; preds = %50
  br i1 %51, label %68, label %53

53:                                               ; preds = %52, %49
  %54 = load ptr, ptr %13, align 8, !tbaa !5
  %55 = load ptr, ptr %14, align 8, !tbaa !5
  %56 = load ptr, ptr %15, align 8, !tbaa !5
  %57 = load i8, ptr %16, align 1, !tbaa !9, !range !11, !noundef !12
  %58 = trunc i8 %57 to i1
  %59 = load i8, ptr %18, align 1, !tbaa !9, !range !11, !noundef !12
  %60 = trunc i8 %59 to i1
  %61 = load i8, ptr %21, align 1, !tbaa !9, !range !11, !noundef !12
  %62 = trunc i8 %61 to i1
  invoke void @_ZN4juceL14addKDialogArgsERNS_11StringArrayERNS_6StringERKS2_RKNS_4FileES5_bbb(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull align 8 dereferenceable(8) %56, i1 noundef zeroext %58, i1 noundef zeroext %60, i1 noundef zeroext %62)
          to label %63 unwind label %64

63:                                               ; preds = %53
  br label %79

64:                                               ; preds = %68, %53, %50, %47, %11
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %26, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %27, align 4
  br label %162

68:                                               ; preds = %52, %46
  %69 = load ptr, ptr %13, align 8, !tbaa !5
  %70 = load ptr, ptr %14, align 8, !tbaa !5
  %71 = load ptr, ptr %15, align 8, !tbaa !5
  %72 = load i8, ptr %16, align 1, !tbaa !9, !range !11, !noundef !12
  %73 = trunc i8 %72 to i1
  %74 = load i8, ptr %18, align 1, !tbaa !9, !range !11, !noundef !12
  %75 = trunc i8 %74 to i1
  %76 = load i8, ptr %21, align 1, !tbaa !9, !range !11, !noundef !12
  %77 = trunc i8 %76 to i1
  invoke void @_ZN4juceL13addZenityArgsERNS_11StringArrayERNS_6StringERKS2_RKNS_4FileES5_bbb(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef nonnull align 8 dereferenceable(8) %70, ptr noundef nonnull align 8 dereferenceable(8) %71, i1 noundef zeroext %73, i1 noundef zeroext %75, i1 noundef zeroext %77)
          to label %78 unwind label %64

78:                                               ; preds = %68
  br label %79

79:                                               ; preds = %78, %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  invoke void @_ZN4juce12ChildProcessC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %28)
          to label %80 unwind label %93

80:                                               ; preds = %79
  %81 = invoke noundef zeroext i1 @_ZN4juce12ChildProcess5startERKNS_11StringArrayEi(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(24) %24, i32 noundef 1)
          to label %82 unwind label %97

82:                                               ; preds = %80
  br i1 %81, label %83, label %157

83:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  invoke void @_ZN4juce12ChildProcess20readAllProcessOutputEv(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %30, ptr noundef nonnull align 8 dereferenceable(8) %28)
          to label %84 unwind label %101

84:                                               ; preds = %83
  invoke void @_ZNK4juce6String4trimEv(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %29, ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %85 unwind label %105

85:                                               ; preds = %84
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  %86 = call noundef zeroext i1 @_ZNK4juce6String10isNotEmptyEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #6
  br i1 %86, label %87, label %148

87:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 24, ptr %31) #6
  call void @_ZN4juce11StringArrayC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  %88 = load i8, ptr %21, align 1, !tbaa !9, !range !11, !noundef !12
  %89 = trunc i8 %88 to i1
  br i1 %89, label %90, label %114

90:                                               ; preds = %87
  call void @_ZN4juce9StringRefC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %29) #6
  call void @_ZN4juce9StringRefC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  call void @_ZN4juce9StringRefC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef @.str.266) #6
  %91 = invoke noundef i32 @_ZN4juce11StringArray9addTokensENS_9StringRefES1_S1_(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef %32, ptr noundef %33, ptr noundef %34)
          to label %92 unwind label %110

92:                                               ; preds = %90
  br label %116

93:                                               ; preds = %79
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %26, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %27, align 4
  br label %161

97:                                               ; preds = %157, %80
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %26, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %27, align 4
  br label %160

101:                                              ; preds = %83
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %26, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %27, align 4
  br label %109

105:                                              ; preds = %84
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %26, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %27, align 4
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %30) #6
  br label %109

109:                                              ; preds = %105, %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  br label %156

110:                                              ; preds = %114, %90
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %26, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %27, align 4
  br label %147

114:                                              ; preds = %87
  invoke void @_ZN4juce11StringArray3addERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 8 dereferenceable(8) %29)
          to label %115 unwind label %110

115:                                              ; preds = %114
  br label %116

116:                                              ; preds = %115, %92
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #6
  store i32 0, ptr %35, align 4, !tbaa !13
  br label %117

117:                                              ; preds = %129, %116
  %118 = load i32, ptr %35, align 4, !tbaa !13
  %119 = call noundef i32 @_ZNK4juce11StringArray4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  %120 = icmp slt i32 %118, %119
  br i1 %120, label %122, label %121

121:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  br label %146

122:                                              ; preds = %117
  %123 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #6
  invoke void @_ZN4juce4File26getCurrentWorkingDirectoryEv(ptr dead_on_unwind writable sret(%"class.juce::File") align 8 %37)
          to label %124 unwind label %132

124:                                              ; preds = %122
  %125 = load i32, ptr %35, align 4, !tbaa !13
  %126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce11StringArrayixEi(ptr noundef nonnull align 8 dereferenceable(24) %31, i32 noundef %125) #6
  call void @_ZN4juce9StringRefC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull align 8 dereferenceable(8) %126) #6
  invoke void @_ZNK4juce4File12getChildFileENS_9StringRefE(ptr dead_on_unwind writable sret(%"class.juce::File") align 8 %36, ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef %38)
          to label %127 unwind label %136

127:                                              ; preds = %124
  invoke void @_ZN4juce5ArrayINS_4FileENS_20DummyCriticalSectionELi0EE3addEOS1_(ptr noundef nonnull align 8 dereferenceable(20) %123, ptr noundef nonnull align 8 dereferenceable(8) %36)
          to label %128 unwind label %140

128:                                              ; preds = %127
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %36) #6
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %37) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  br label %129

129:                                              ; preds = %128
  %130 = load i32, ptr %35, align 4, !tbaa !13
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %35, align 4, !tbaa !13
  br label %117, !llvm.loop !15

132:                                              ; preds = %122
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %26, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %27, align 4
  br label %145

136:                                              ; preds = %124
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %26, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %27, align 4
  br label %144

140:                                              ; preds = %127
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %26, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %27, align 4
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %36) #6
  br label %144

144:                                              ; preds = %140, %136
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %37) #6
  br label %145

145:                                              ; preds = %144, %132
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  br label %147

146:                                              ; preds = %121
  call void @_ZN4juce11StringArrayD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #6
  br label %148

147:                                              ; preds = %145, %110
  call void @_ZN4juce11StringArrayD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #6
  br label %155

148:                                              ; preds = %146, %85
  %149 = invoke noundef zeroext i1 @_ZNK4juce12ChildProcess22waitForProcessToFinishEi(ptr noundef nonnull align 8 dereferenceable(8) %28, i32 noundef 60000)
          to label %150 unwind label %151

150:                                              ; preds = %148
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  br label %157

151:                                              ; preds = %148
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %26, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %27, align 4
  br label %155

155:                                              ; preds = %151, %147
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %29) #6
  br label %156

156:                                              ; preds = %155, %109
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  br label %160

157:                                              ; preds = %150, %82
  %158 = invoke noundef zeroext i1 @_ZNK4juce4File28setAsCurrentWorkingDirectoryEv(ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %159 unwind label %97

159:                                              ; preds = %157
  call void @_ZN4juce12ChildProcessD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @_ZN4juce11StringArrayD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #6
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  ret void

160:                                              ; preds = %156, %97
  call void @_ZN4juce12ChildProcessD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #6
  br label %161

161:                                              ; preds = %160, %93
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %162

162:                                              ; preds = %161, %64
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @_ZN4juce11StringArrayD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #6
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %163

163:                                              ; preds = %162
  %164 = load ptr, ptr %26, align 8
  %165 = load i32, ptr %27, align 4
  %166 = insertvalue { ptr, i32 } poison, ptr %164, 0
  %167 = insertvalue { ptr, i32 } %166, i32 %165, 1
  resume { ptr, i32 } %167
}

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN4juceL14exeIsAvailableEPKc(ptr noundef) #5

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN4juceL16isKdeFullSessionEv() #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN4juceL14addKDialogArgsERNS_11StringArrayERNS_6StringERKS2_RKNS_4FileES5_bbb(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext) #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN4juceL13addZenityArgsERNS_11StringArrayERNS_6StringERKS2_RKNS_4FileES5_bbb(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext) #5

declare void @_ZN4juce12ChildProcessC1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

declare noundef zeroext i1 @_ZN4juce12ChildProcess5startERKNS_11StringArrayEi(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #4

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

declare noundef i32 @_ZN4juce11StringArray9addTokensENS_9StringRefES1_S1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ptr noundef) #4

declare noundef zeroext i1 @_ZNK4juce12ChildProcess22waitForProcessToFinishEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4

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

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

attributes #0 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"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::File" = type { %"class.juce::String" }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::StringArray" = type { %"class.juce::Array.150" }
%"class.juce::Array.150" = type { %"class.juce::ArrayAllocationBase.151", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.151" = type <{ %"class.juce::HeapBlock.152", i32, [4 x i8] }>
%"class.juce::HeapBlock.152" = type { ptr }
%"class.juce::ChildProcess" = type { %"class.juce::ScopedPointer.557" }
%"class.juce::ScopedPointer.557" = type { ptr }
%"class.juce::StringRef" = type { %"class.juce::CharPointer_UTF8" }

@.str.264 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.265 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.266 = external hidden unnamed_addr constant [2 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce11StringArrayixEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #0

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

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

declare void @_ZNK4juce4File12getChildFileENS_9StringRefE(ptr dead_on_unwind writable sret(%"class.juce::File") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4

declare void @_ZN4juce4File26getCurrentWorkingDirectoryEv(ptr dead_on_unwind writable sret(%"class.juce::File") align 8) local_unnamed_addr #4

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

declare void @_ZN4juce11StringArray3addERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce11FileChooser18showPlatformDialogERNS_5ArrayINS_4FileENS_20DummyCriticalSectionELi0EEERKNS_6StringERKS2_S8_bbbbbbPNS_20FilePreviewComponentE(ptr noundef nonnull align 8 dereferenceable(20) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3, i1 noundef zeroext %4, i1 noundef zeroext %5, i1 noundef zeroext %6, i1 noundef zeroext %7, i1 noundef zeroext %8, i1 noundef zeroext %9, ptr nocapture noundef readnone %10) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %12 = alloca %"class.juce::File", align 8
  %13 = alloca %"class.juce::StringArray", align 8
  %14 = alloca %"class.juce::String", align 8
  %15 = alloca %"class.juce::ChildProcess", align 8
  %16 = alloca %"class.juce::String", align 8
  %17 = alloca %"class.juce::String", align 8
  %18 = alloca %"class.juce::StringArray", align 8
  %19 = alloca %"class.juce::StringRef", align 8
  %20 = alloca %"class.juce::StringRef", align 8
  %21 = alloca %"class.juce::StringRef", align 8
  %22 = alloca %"class.juce::File", align 8
  %23 = alloca %"class.juce::File", align 8
  %24 = alloca %"class.juce::StringRef", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  call void @_ZN4juce4File26getCurrentWorkingDirectoryEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::File") align 8 %12)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #6
  call void @_ZN4juce11StringArrayC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  call void @_ZN4juce6StringC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  %25 = invoke noundef zeroext i1 @_ZN4juceL14exeIsAvailableEPKc(ptr noundef nonnull @.str.265)
          to label %26 unwind label %34

26:                                               ; preds = %11
  br i1 %25, label %27, label %36

27:                                               ; preds = %26
  %28 = invoke noundef zeroext i1 @_ZN4juceL16isKdeFullSessionEv()
          to label %29 unwind label %34

29:                                               ; preds = %27
  br i1 %28, label %33, label %30

30:                                               ; preds = %29
  %31 = invoke noundef zeroext i1 @_ZN4juceL14exeIsAvailableEPKc(ptr noundef nonnull @.str.264)
          to label %32 unwind label %34

32:                                               ; preds = %30
  br i1 %31, label %36, label %33

33:                                               ; preds = %32, %29
  invoke void @_ZN4juceL14addKDialogArgsERNS_11StringArrayERNS_6StringERKS2_RKNS_4FileES5_bbb(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3, i1 noundef zeroext %4, i1 noundef zeroext %6, i1 noundef zeroext %9)
          to label %37 unwind label %34

34:                                               ; preds = %36, %33, %30, %27, %11
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %91

36:                                               ; preds = %32, %26
  invoke void @_ZN4juceL13addZenityArgsERNS_11StringArrayERNS_6StringERKS2_RKNS_4FileES5_bbb(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3, i1 noundef zeroext %4, i1 noundef zeroext %6, i1 noundef zeroext %9)
          to label %37 unwind label %34

37:                                               ; preds = %36, %33
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  invoke void @_ZN4juce12ChildProcessC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %38 unwind label %48

38:                                               ; preds = %37
  %39 = invoke noundef zeroext i1 @_ZN4juce12ChildProcess5startERKNS_11StringArrayEi(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef 1)
          to label %40 unwind label %50

40:                                               ; preds = %38
  br i1 %39, label %41, label %86

41:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #6
  invoke void @_ZN4juce12ChildProcess20readAllProcessOutputEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %17, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %42 unwind label %52

42:                                               ; preds = %41
  invoke void @_ZNK4juce6String4trimEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %16, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %43 unwind label %54

43:                                               ; preds = %42
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  %44 = call noundef zeroext i1 @_ZNK4juce6String10isNotEmptyEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  br i1 %44, label %45, label %79

45:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #6
  call void @_ZN4juce11StringArrayC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  br i1 %9, label %46, label %59

46:                                               ; preds = %45
  call void @_ZN4juce9StringRefC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  call void @_ZN4juce9StringRefC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  call void @_ZN4juce9StringRefC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull @.str.266) #6
  %47 = invoke noundef i32 @_ZN4juce11StringArray9addTokensENS_9StringRefES1_S1_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull %19, ptr noundef nonnull %20, ptr noundef nonnull %21)
          to label %60 unwind label %57

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

50:                                               ; preds = %86, %38
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %89

52:                                               ; preds = %41
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %56

54:                                               ; preds = %42
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  br label %56

56:                                               ; preds = %54, %52
  %.pn = phi { ptr, i32 } [ %55, %54 ], [ %53, %52 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  br label %85

57:                                               ; preds = %59, %46
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %78

59:                                               ; preds = %45
  invoke void @_ZN4juce11StringArray3addERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %60 unwind label %57

60:                                               ; preds = %59, %46
  %61 = call noundef i32 @_ZNK4juce11StringArray4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %62 = icmp sgt i32 %61, 0
  br i1 %62, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %66, %60
  call void @_ZN4juce11StringArrayD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #6
  br label %79

.lr.ph:                                           ; preds = %60, %66
  %.038 = phi i32 [ %67, %66 ], [ 0, %60 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #6
  invoke void @_ZN4juce4File26getCurrentWorkingDirectoryEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::File") align 8 %23)
          to label %63 unwind label %70

63:                                               ; preds = %.lr.ph
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce11StringArrayixEi(ptr noundef nonnull align 8 dereferenceable(24) %18, i32 noundef %.038) #6
  call void @_ZN4juce9StringRefC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %64) #6
  invoke void @_ZNK4juce4File12getChildFileENS_9StringRefE(ptr dead_on_unwind nonnull writable sret(%"class.juce::File") align 8 %22, ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull %24)
          to label %65 unwind label %72

65:                                               ; preds = %63
  invoke void @_ZN4juce5ArrayINS_4FileENS_20DummyCriticalSectionELi0EE3addEOS1_(ptr noundef nonnull align 8 dereferenceable(20) %0, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %66 unwind label %74

66:                                               ; preds = %65
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #6
  %67 = add nuw nsw i32 %.038, 1
  %68 = call noundef i32 @_ZNK4juce11StringArray4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %69 = icmp slt i32 %67, %68
  br i1 %69, label %.lr.ph, label %._crit_edge, !llvm.loop !5

70:                                               ; preds = %.lr.ph
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %77

72:                                               ; preds = %63
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %76

74:                                               ; preds = %65
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  br label %76

76:                                               ; preds = %74, %72
  %.pn29 = phi { ptr, i32 } [ %75, %74 ], [ %73, %72 ]
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #6
  br label %77

77:                                               ; preds = %76, %70
  %.pn29.pn = phi { ptr, i32 } [ %.pn29, %76 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #6
  br label %78

78:                                               ; preds = %77, %57
  %.pn29.pn.pn = phi { ptr, i32 } [ %.pn29.pn, %77 ], [ %58, %57 ]
  call void @_ZN4juce11StringArrayD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #6
  br label %84

79:                                               ; preds = %._crit_edge, %43
  %80 = invoke noundef zeroext i1 @_ZNK4juce12ChildProcess22waitForProcessToFinishEi(ptr noundef nonnull align 8 dereferenceable(8) %15, i32 noundef 60000)
          to label %81 unwind label %82

81:                                               ; preds = %79
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  br label %86

82:                                               ; preds = %79
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %84

84:                                               ; preds = %82, %78
  %.pn29.pn.pn.pn = phi { ptr, i32 } [ %.pn29.pn.pn, %78 ], [ %83, %82 ]
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  br label %85

85:                                               ; preds = %84, %56
  %.pn29.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn29.pn.pn.pn, %84 ], [ %.pn, %56 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  br label %89

86:                                               ; preds = %81, %40
  %87 = invoke noundef zeroext i1 @_ZNK4juce4File28setAsCurrentWorkingDirectoryEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %88 unwind label %50

88:                                               ; preds = %86
  call void @_ZN4juce12ChildProcessD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @_ZN4juce11StringArrayD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #6
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  ret void

89:                                               ; preds = %85, %50
  %.pn29.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn29.pn.pn.pn.pn, %85 ], [ %51, %50 ]
  call void @_ZN4juce12ChildProcessD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  br label %90

90:                                               ; preds = %89, %48
  %.pn29.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn29.pn.pn.pn.pn.pn, %89 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  br label %91

91:                                               ; preds = %90, %34
  %.pn29.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn29.pn.pn.pn.pn.pn.pn, %90 ], [ %35, %34 ]
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @_ZN4juce11StringArrayD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #6
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  resume { ptr, i32 } %.pn29.pn.pn.pn.pn.pn.pn.pn
}

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN4juceL14exeIsAvailableEPKc(ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN4juceL16isKdeFullSessionEv() local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN4juceL14addKDialogArgsERNS_11StringArrayERNS_6StringERKS2_RKNS_4FileES5_bbb(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN4juceL13addZenityArgsERNS_11StringArrayERNS_6StringERKS2_RKNS_4FileES5_bbb(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #5

declare void @_ZN4juce12ChildProcessC1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

declare noundef zeroext i1 @_ZN4juce12ChildProcess5startERKNS_11StringArrayEi(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #4

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

declare noundef i32 @_ZN4juce11StringArray9addTokensENS_9StringRefES1_S1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare noundef zeroext i1 @_ZNK4juce12ChildProcess22waitForProcessToFinishEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #4

declare noundef zeroext i1 @_ZNK4juce4File28setAsCurrentWorkingDirectoryEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

attributes #0 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass