; LLVM IR from christoskaramou/PhasmaEngine :: PhasmaEditor/Include/TinyFileDialogs (tinyfiledialogs)

; 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"

@tinyfd_verbose = external dso_local global i32, align 4
@tinyfd_silent = external dso_local global i32, align 4
@tinyfd_response = external dso_local global [1024 x i8], align 16
@.str.8 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [16 x i8], align 1
@_ZL12gPython2Name = external hidden global [16 x i8], align 16
@.str.74 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [16 x i8], align 1
@_ZL12gPython3Name = external hidden global [16 x i8], align 16
@.str.120 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.301 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.302 = external hidden unnamed_addr constant [15 x i8], align 1
@_ZZ19tinyfd_colorChooserE5lBuff = external hidden global [128 x i8], align 16
@.str.321 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.322 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.323 = external hidden unnamed_addr constant [118 x i8], align 1
@.str.324 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.325 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.326 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.327 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.328 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.329 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.330 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.331 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.332 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.333 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.334 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.335 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.336 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.337 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.338 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.339 = external hidden unnamed_addr constant [111 x i8], align 1
@.str.340 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.341 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.342 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.343 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.344 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.345 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.346 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.347 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.348 = external hidden unnamed_addr constant [20 x i8], align 1

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #1

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL16osascriptPresentv() #3

declare i32 @printf(ptr noundef, ...) #4

declare noalias ptr @popen(ptr noundef, ptr noundef) #4

declare i32 @pclose(ptr noundef) #4

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL12osx9orBetterv() #3

; Function Attrs: nounwind
declare ptr @strcat(ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL14kdialogPresentv() #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL17matedialogPresentv() #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL20shellementaryPresentv() #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL12qarmaPresentv() #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL14zenity3Presentv() #3

; Function Attrs: nounwind
declare ptr @getenv(ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL14xdialogPresentv() #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL15tkinter2Presentv() #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL17isTerminalRunningv() #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL8isDarwinv() #5

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL15tkinter3Presentv() #3

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #2

declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local ptr @tinyfd_inputBox(ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local ptr @tinyfd_colorChooser(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #3 {
  %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 [128 x i8], align 16
  %11 = alloca [1024 x i8], align 16
  %12 = alloca [8 x i8], align 1
  %13 = alloca ptr, align 8
  %14 = alloca [3 x i8], align 1
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 128, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 1024, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 3, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !9
  store i8 0, ptr @_ZZ19tinyfd_colorChooserE5lBuff, align 16, !tbaa !11
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = icmp ne ptr %22, null
  br i1 %23, label %24, label %28

24:                                               ; preds = %4
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = getelementptr inbounds [3 x i8], ptr %14, i64 0, i64 0
  call void @_ZL7Hex2RGBPKcPh(ptr noundef %25, ptr noundef %26)
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %27, ptr %13, align 8, !tbaa !5
  br label %44

28:                                               ; preds = %4
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %29, i64 0
  %31 = load i8, ptr %30, align 1, !tbaa !11
  %32 = getelementptr inbounds [3 x i8], ptr %14, i64 0, i64 0
  store i8 %31, ptr %32, align 1, !tbaa !11
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %33, i64 1
  %35 = load i8, ptr %34, align 1, !tbaa !11
  %36 = getelementptr inbounds [3 x i8], ptr %14, i64 0, i64 1
  store i8 %35, ptr %36, align 1, !tbaa !11
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %37, i64 2
  %39 = load i8, ptr %38, align 1, !tbaa !11
  %40 = getelementptr inbounds [3 x i8], ptr %14, i64 0, i64 2
  store i8 %39, ptr %40, align 1, !tbaa !11
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = getelementptr inbounds [8 x i8], ptr %12, i64 0, i64 0
  call void @_ZL7RGB2HexPKhPc(ptr noundef %41, ptr noundef %42)
  %43 = getelementptr inbounds [8 x i8], ptr %12, i64 0, i64 0
  store ptr %43, ptr %13, align 8, !tbaa !5
  br label %44

44:                                               ; preds = %28, %24
  %45 = call noundef i32 @_ZL16osascriptPresentv()
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %47, label %123

47:                                               ; preds = %44
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = icmp ne ptr %48, null
  br i1 %49, label %50, label %56

50:                                               ; preds = %47
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = call i32 @strcmp(ptr noundef %51, ptr noundef @.str.10) #7
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %56, label %54

54:                                               ; preds = %50
  %55 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.11) #6
  store ptr inttoptr (i64 1 to ptr), ptr %5, align 8
  store i32 1, ptr %21, align 4
  br label %575

56:                                               ; preds = %50, %47
  store i32 1, ptr %19, align 4, !tbaa !9
  %57 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %58 = call ptr @strcpy(ptr noundef %57, ptr noundef @.str.321) #6
  %59 = call noundef i32 @_ZL12osx9orBetterv()
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %66, label %61

61:                                               ; preds = %56
  %62 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %63 = call ptr @strcat(ptr noundef %62, ptr noundef @.str.13) #6
  %64 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %65 = call ptr @strcat(ptr noundef %64, ptr noundef @.str.322) #6
  br label %69

66:                                               ; preds = %56
  %67 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %68 = call ptr @strcat(ptr noundef %67, ptr noundef @.str.323) #6
  br label %69

69:                                               ; preds = %66, %61
  %70 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
  %71 = getelementptr inbounds [3 x i8], ptr %14, i64 0, i64 0
  %72 = load i8, ptr %71, align 1, !tbaa !11
  %73 = zext i8 %72 to i32
  %74 = mul nsw i32 256, %73
  %75 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %70, ptr noundef @.str.324, i32 noundef %74) #6
  %76 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %77 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
  %78 = call ptr @strcat(ptr noundef %76, ptr noundef %77) #6
  %79 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %80 = call ptr @strcat(ptr noundef %79, ptr noundef @.str.325) #6
  %81 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
  %82 = getelementptr inbounds [3 x i8], ptr %14, i64 0, i64 1
  %83 = load i8, ptr %82, align 1, !tbaa !11
  %84 = zext i8 %83 to i32
  %85 = mul nsw i32 256, %84
  %86 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %81, ptr noundef @.str.324, i32 noundef %85) #6
  %87 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %88 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
  %89 = call ptr @strcat(ptr noundef %87, ptr noundef %88) #6
  %90 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %91 = call ptr @strcat(ptr noundef %90, ptr noundef @.str.325) #6
  %92 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
  %93 = getelementptr inbounds [3 x i8], ptr %14, i64 0, i64 2
  %94 = load i8, ptr %93, align 1, !tbaa !11
  %95 = zext i8 %94 to i32
  %96 = mul nsw i32 256, %95
  %97 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %92, ptr noundef @.str.324, i32 noundef %96) #6
  %98 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %99 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
  %100 = call ptr @strcat(ptr noundef %98, ptr noundef %99) #6
  %101 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %102 = call ptr @strcat(ptr noundef %101, ptr noundef @.str.326) #6
  %103 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %104 = call ptr @strcat(ptr noundef %103, ptr noundef @.str.327) #6
  %105 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %106 = call ptr @strcat(ptr noundef %105, ptr noundef @.str.328) #6
  %107 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %108 = call ptr @strcat(ptr noundef %107, ptr noundef @.str.329) #6
  %109 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %110 = call ptr @strcat(ptr noundef %109, ptr noundef @.str.301) #6
  %111 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %112 = call ptr @strcat(ptr noundef %111, ptr noundef @.str.302) #6
  %113 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %114 = call ptr @strcat(ptr noundef %113, ptr noundef @.str.37) #6
  %115 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %116 = call ptr @strcat(ptr noundef %115, ptr noundef @.str.39) #6
  %117 = call noundef i32 @_ZL12osx9orBetterv()
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %122, label %119

119:                                              ; preds = %69
  %120 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %121 = call ptr @strcat(ptr noundef %120, ptr noundef @.str.40) #6
  br label %122

122:                                              ; preds = %119, %69
  br label %476

123:                                              ; preds = %44
  %124 = call noundef i32 @_ZL14kdialogPresentv()
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %126, label %165

126:                                              ; preds = %123
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = icmp ne ptr %127, null
  br i1 %128, label %129, label %135

129:                                              ; preds = %126
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = call i32 @strcmp(ptr noundef %130, ptr noundef @.str.10) #7
  %132 = icmp ne i32 %131, 0
  br i1 %132, label %135, label %133

133:                                              ; preds = %129
  %134 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.41) #6
  store ptr inttoptr (i64 1 to ptr), ptr %5, align 8
  store i32 1, ptr %21, align 4
  br label %575

135:                                              ; preds = %129, %126
  %136 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %137 = call ptr @strcpy(ptr noundef %136, ptr noundef @.str.41) #6
  %138 = call noundef i32 @_ZL14kdialogPresentv()
  %139 = icmp eq i32 %138, 2
  br i1 %139, label %140, label %143

140:                                              ; preds = %135
  %141 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %142 = call ptr @strcat(ptr noundef %141, ptr noundef @.str.42) #6
  br label %143

143:                                              ; preds = %140, %135
  %144 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %145 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %146 = call i64 @strlen(ptr noundef %145) #7
  %147 = getelementptr inbounds i8, ptr %144, i64 %146
  %148 = load ptr, ptr %13, align 8, !tbaa !5
  %149 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %147, ptr noundef @.str.330, ptr noundef %148) #6
  %150 = load ptr, ptr %6, align 8, !tbaa !5
  %151 = icmp ne ptr %150, null
  br i1 %151, label %152, label %164

152:                                              ; preds = %143
  %153 = load ptr, ptr %6, align 8, !tbaa !5
  %154 = call i64 @strlen(ptr noundef %153) #7
  %155 = icmp ne i64 %154, 0
  br i1 %155, label %156, label %164

156:                                              ; preds = %152
  %157 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %158 = call ptr @strcat(ptr noundef %157, ptr noundef @.str.49) #6
  %159 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %160 = load ptr, ptr %6, align 8, !tbaa !5
  %161 = call ptr @strcat(ptr noundef %159, ptr noundef %160) #6
  %162 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %163 = call ptr @strcat(ptr noundef %162, ptr noundef @.str.47) #6
  br label %164

164:                                              ; preds = %156, %152, %143
  br label %475

165:                                              ; preds = %123
  %166 = call noundef i32 @_ZL14zenity3Presentv()
  %167 = icmp ne i32 %166, 0
  br i1 %167, label %177, label %168

168:                                              ; preds = %165
  %169 = call noundef i32 @_ZL17matedialogPresentv()
  %170 = icmp ne i32 %169, 0
  br i1 %170, label %177, label %171

171:                                              ; preds = %168
  %172 = call noundef i32 @_ZL20shellementaryPresentv()
  %173 = icmp ne i32 %172, 0
  br i1 %173, label %177, label %174

174:                                              ; preds = %171
  %175 = call noundef i32 @_ZL12qarmaPresentv()
  %176 = icmp ne i32 %175, 0
  br i1 %176, label %177, label %281

177:                                              ; preds = %174, %171, %168, %165
  store i32 1, ptr %18, align 4, !tbaa !9
  %178 = call noundef i32 @_ZL14zenity3Presentv()
  %179 = icmp ne i32 %178, 0
  br i1 %179, label %180, label %201

180:                                              ; preds = %177
  %181 = load ptr, ptr %6, align 8, !tbaa !5
  %182 = icmp ne ptr %181, null
  br i1 %182, label %183, label %189

183:                                              ; preds = %180
  %184 = load ptr, ptr %6, align 8, !tbaa !5
  %185 = call i32 @strcmp(ptr noundef %184, ptr noundef @.str.10) #7
  %186 = icmp ne i32 %185, 0
  br i1 %186, label %189, label %187

187:                                              ; preds = %183
  %188 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.331) #6
  store ptr inttoptr (i64 1 to ptr), ptr %5, align 8
  store i32 1, ptr %21, align 4
  br label %575

189:                                              ; preds = %183, %180
  %190 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %191 = call ptr @strcpy(ptr noundef %190, ptr noundef @.str.52) #6
  %192 = call noundef i32 @_ZL14zenity3Presentv()
  %193 = icmp sge i32 %192, 4
  br i1 %193, label %194, label %200

194:                                              ; preds = %189
  %195 = call ptr @getenv(ptr noundef @.str.54) #6
  %196 = icmp ne ptr %195, null
  br i1 %196, label %200, label %197

197:                                              ; preds = %194
  %198 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %199 = call ptr @strcat(ptr noundef %198, ptr noundef @.str.55) #6
  br label %200

200:                                              ; preds = %197, %194, %189
  br label %251

201:                                              ; preds = %177
  %202 = call noundef i32 @_ZL17matedialogPresentv()
  %203 = icmp ne i32 %202, 0
  br i1 %203, label %204, label %216

204:                                              ; preds = %201
  %205 = load ptr, ptr %6, align 8, !tbaa !5
  %206 = icmp ne ptr %205, null
  br i1 %206, label %207, label %213

207:                                              ; preds = %204
  %208 = load ptr, ptr %6, align 8, !tbaa !5
  %209 = call i32 @strcmp(ptr noundef %208, ptr noundef @.str.10) #7
  %210 = icmp ne i32 %209, 0
  br i1 %210, label %213, label %211

211:                                              ; preds = %207
  %212 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.56) #6
  store ptr inttoptr (i64 1 to ptr), ptr %5, align 8
  store i32 1, ptr %21, align 4
  br label %575

213:                                              ; preds = %207, %204
  %214 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %215 = call ptr @strcpy(ptr noundef %214, ptr noundef @.str.56) #6
  br label %250

216:                                              ; preds = %201
  %217 = call noundef i32 @_ZL20shellementaryPresentv()
  %218 = icmp ne i32 %217, 0
  br i1 %218, label %219, label %231

219:                                              ; preds = %216
  %220 = load ptr, ptr %6, align 8, !tbaa !5
  %221 = icmp ne ptr %220, null
  br i1 %221, label %222, label %228

222:                                              ; preds = %219
  %223 = load ptr, ptr %6, align 8, !tbaa !5
  %224 = call i32 @strcmp(ptr noundef %223, ptr noundef @.str.10) #7
  %225 = icmp ne i32 %224, 0
  br i1 %225, label %228, label %226

226:                                              ; preds = %222
  %227 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.58) #6
  store ptr inttoptr (i64 1 to ptr), ptr %5, align 8
  store i32 1, ptr %21, align 4
  br label %575

228:                                              ; preds = %222, %219
  %229 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %230 = call ptr @strcpy(ptr noundef %229, ptr noundef @.str.58) #6
  br label %249

231:                                              ; preds = %216
  %232 = load ptr, ptr %6, align 8, !tbaa !5
  %233 = icmp ne ptr %232, null
  br i1 %233, label %234, label %240

234:                                              ; preds = %231
  %235 = load ptr, ptr %6, align 8, !tbaa !5
  %236 = call i32 @strcmp(ptr noundef %235, ptr noundef @.str.10) #7
  %237 = icmp ne i32 %236, 0
  br i1 %237, label %240, label %238

238:                                              ; preds = %234
  %239 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.60) #6
  store ptr inttoptr (i64 1 to ptr), ptr %5, align 8
  store i32 1, ptr %21, align 4
  br label %575

240:                                              ; preds = %234, %231
  %241 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %242 = call ptr @strcpy(ptr noundef %241, ptr noundef @.str.60) #6
  %243 = call ptr @getenv(ptr noundef @.str.54) #6
  %244 = icmp ne ptr %243, null
  br i1 %244, label %248, label %245

245:                                              ; preds = %240
  %246 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %247 = call ptr @strcat(ptr noundef %246, ptr noundef @.str.42) #6
  br label %248

248:                                              ; preds = %245, %240
  br label %249

249:                                              ; preds = %248, %228
  br label %250

250:                                              ; preds = %249, %213
  br label %251

251:                                              ; preds = %250, %200
  %252 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %253 = call ptr @strcat(ptr noundef %252, ptr noundef @.str.332) #6
  %254 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %255 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %256 = call i64 @strlen(ptr noundef %255) #7
  %257 = getelementptr inbounds i8, ptr %254, i64 %256
  %258 = load ptr, ptr %13, align 8, !tbaa !5
  %259 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %257, ptr noundef @.str.333, ptr noundef %258) #6
  %260 = load ptr, ptr %6, align 8, !tbaa !5
  %261 = icmp ne ptr %260, null
  br i1 %261, label %262, label %274

262:                                              ; preds = %251
  %263 = load ptr, ptr %6, align 8, !tbaa !5
  %264 = call i64 @strlen(ptr noundef %263) #7
  %265 = icmp ne i64 %264, 0
  br i1 %265, label %266, label %274

266:                                              ; preds = %262
  %267 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %268 = call ptr @strcat(ptr noundef %267, ptr noundef @.str.66) #6
  %269 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %270 = load ptr, ptr %6, align 8, !tbaa !5
  %271 = call ptr @strcat(ptr noundef %269, ptr noundef %270) #6
  %272 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %273 = call ptr @strcat(ptr noundef %272, ptr noundef @.str.47) #6
  br label %274

274:                                              ; preds = %266, %262, %251
  %275 = load i32, ptr @tinyfd_silent, align 4, !tbaa !9
  %276 = icmp ne i32 %275, 0
  br i1 %276, label %277, label %280

277:                                              ; preds = %274
  %278 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %279 = call ptr @strcat(ptr noundef %278, ptr noundef @.str.70) #6
  br label %280

280:                                              ; preds = %277, %274
  br label %474

281:                                              ; preds = %174
  %282 = call noundef i32 @_ZL14xdialogPresentv()
  %283 = icmp ne i32 %282, 0
  br i1 %283, label %284, label %325

284:                                              ; preds = %281
  %285 = load ptr, ptr %6, align 8, !tbaa !5
  %286 = icmp ne ptr %285, null
  br i1 %286, label %287, label %293

287:                                              ; preds = %284
  %288 = load ptr, ptr %6, align 8, !tbaa !5
  %289 = call i32 @strcmp(ptr noundef %288, ptr noundef @.str.10) #7
  %290 = icmp ne i32 %289, 0
  br i1 %290, label %293, label %291

291:                                              ; preds = %287
  %292 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.120) #6
  store ptr inttoptr (i64 1 to ptr), ptr %5, align 8
  store i32 1, ptr %21, align 4
  br label %575

293:                                              ; preds = %287, %284
  store i32 1, ptr %20, align 4, !tbaa !9
  %294 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %295 = call ptr @strcpy(ptr noundef %294, ptr noundef @.str.334) #6
  %296 = load ptr, ptr %6, align 8, !tbaa !5
  %297 = icmp ne ptr %296, null
  br i1 %297, label %298, label %306

298:                                              ; preds = %293
  %299 = load ptr, ptr %6, align 8, !tbaa !5
  %300 = call i64 @strlen(ptr noundef %299) #7
  %301 = icmp ne i64 %300, 0
  br i1 %301, label %302, label %306

302:                                              ; preds = %298
  %303 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %304 = load ptr, ptr %6, align 8, !tbaa !5
  %305 = call ptr @strcat(ptr noundef %303, ptr noundef %304) #6
  br label %306

306:                                              ; preds = %302, %298, %293
  %307 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %308 = call ptr @strcat(ptr noundef %307, ptr noundef @.str.335) #6
  %309 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
  %310 = getelementptr inbounds [3 x i8], ptr %14, i64 0, i64 0
  %311 = load i8, ptr %310, align 1, !tbaa !11
  %312 = zext i8 %311 to i32
  %313 = getelementptr inbounds [3 x i8], ptr %14, i64 0, i64 1
  %314 = load i8, ptr %313, align 1, !tbaa !11
  %315 = zext i8 %314 to i32
  %316 = getelementptr inbounds [3 x i8], ptr %14, i64 0, i64 2
  %317 = load i8, ptr %316, align 1, !tbaa !11
  %318 = zext i8 %317 to i32
  %319 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %309, ptr noundef @.str.336, i32 noundef %312, i32 noundef %315, i32 noundef %318) #6
  %320 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %321 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
  %322 = call ptr @strcat(ptr noundef %320, ptr noundef %321) #6
  %323 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %324 = call ptr @strcat(ptr noundef %323, ptr noundef @.str.337) #6
  br label %473

325:                                              ; preds = %281
  %326 = call noundef i32 @_ZL15tkinter2Presentv()
  %327 = icmp ne i32 %326, 0
  br i1 %327, label %328, label %381

328:                                              ; preds = %325
  %329 = load ptr, ptr %6, align 8, !tbaa !5
  %330 = icmp ne ptr %329, null
  br i1 %330, label %331, label %337

331:                                              ; preds = %328
  %332 = load ptr, ptr %6, align 8, !tbaa !5
  %333 = call i32 @strcmp(ptr noundef %332, ptr noundef @.str.10) #7
  %334 = icmp ne i32 %333, 0
  br i1 %334, label %337, label %335

335:                                              ; preds = %331
  %336 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.73) #6
  store ptr inttoptr (i64 1 to ptr), ptr %5, align 8
  store i32 1, ptr %21, align 4
  br label %575

337:                                              ; preds = %331, %328
  %338 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %339 = call ptr @strcpy(ptr noundef %338, ptr noundef @_ZL12gPython2Name) #6
  %340 = call noundef i32 @_ZL17isTerminalRunningv()
  %341 = icmp ne i32 %340, 0
  br i1 %341, label %348, label %342

342:                                              ; preds = %337
  %343 = call noundef i32 @_ZL8isDarwinv()
  %344 = icmp ne i32 %343, 0
  br i1 %344, label %345, label %348

345:                                              ; preds = %342
  %346 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %347 = call ptr @strcat(ptr noundef %346, ptr noundef @.str.74) #6
  br label %348

348:                                              ; preds = %345, %342, %337
  %349 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %350 = call ptr @strcat(ptr noundef %349, ptr noundef @.str.338) #6
  %351 = call noundef i32 @_ZL8isDarwinv()
  %352 = icmp ne i32 %351, 0
  br i1 %352, label %353, label %356

353:                                              ; preds = %348
  %354 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %355 = call ptr @strcat(ptr noundef %354, ptr noundef @.str.339) #6
  br label %356

356:                                              ; preds = %353, %348
  %357 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %358 = call ptr @strcat(ptr noundef %357, ptr noundef @.str.340) #6
  %359 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %360 = load ptr, ptr %13, align 8, !tbaa !5
  %361 = call ptr @strcat(ptr noundef %359, ptr noundef %360) #6
  %362 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %363 = call ptr @strcat(ptr noundef %362, ptr noundef @.str.92) #6
  %364 = load ptr, ptr %6, align 8, !tbaa !5
  %365 = icmp ne ptr %364, null
  br i1 %365, label %366, label %378

366:                                              ; preds = %356
  %367 = load ptr, ptr %6, align 8, !tbaa !5
  %368 = call i64 @strlen(ptr noundef %367) #7
  %369 = icmp ne i64 %368, 0
  br i1 %369, label %370, label %378

370:                                              ; preds = %366
  %371 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %372 = call ptr @strcat(ptr noundef %371, ptr noundef @.str.341) #6
  %373 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %374 = load ptr, ptr %6, align 8, !tbaa !5
  %375 = call ptr @strcat(ptr noundef %373, ptr noundef %374) #6
  %376 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %377 = call ptr @strcat(ptr noundef %376, ptr noundef @.str.92) #6
  br label %378

378:                                              ; preds = %370, %366, %356
  %379 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %380 = call ptr @strcat(ptr noundef %379, ptr noundef @.str.342) #6
  br label %472

381:                                              ; preds = %325
  %382 = call noundef i32 @_ZL15tkinter3Presentv()
  %383 = icmp ne i32 %382, 0
  br i1 %383, label %384, label %422

384:                                              ; preds = %381
  %385 = load ptr, ptr %6, align 8, !tbaa !5
  %386 = icmp ne ptr %385, null
  br i1 %386, label %387, label %393

387:                                              ; preds = %384
  %388 = load ptr, ptr %6, align 8, !tbaa !5
  %389 = call i32 @strcmp(ptr noundef %388, ptr noundef @.str.10) #7
  %390 = icmp ne i32 %389, 0
  br i1 %390, label %393, label %391

391:                                              ; preds = %387
  %392 = call ptr @strcpy(ptr noundef @tinyfd_response, ptr noundef @.str.95) #6
  store ptr inttoptr (i64 1 to ptr), ptr %5, align 8
  store i32 1, ptr %21, align 4
  br label %575

393:                                              ; preds = %387, %384
  %394 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %395 = call ptr @strcpy(ptr noundef %394, ptr noundef @_ZL12gPython3Name) #6
  %396 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %397 = call ptr @strcat(ptr noundef %396, ptr noundef @.str.343) #6
  %398 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %399 = call ptr @strcat(ptr noundef %398, ptr noundef @.str.344) #6
  %400 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %401 = load ptr, ptr %13, align 8, !tbaa !5
  %402 = call ptr @strcat(ptr noundef %400, ptr noundef %401) #6
  %403 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %404 = call ptr @strcat(ptr noundef %403, ptr noundef @.str.92) #6
  %405 = load ptr, ptr %6, align 8, !tbaa !5
  %406 = icmp ne ptr %405, null
  br i1 %406, label %407, label %419

407:                                              ; preds = %393
  %408 = load ptr, ptr %6, align 8, !tbaa !5
  %409 = call i64 @strlen(ptr noundef %408) #7
  %410 = icmp ne i64 %409, 0
  br i1 %410, label %411, label %419

411:                                              ; preds = %407
  %412 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %413 = call ptr @strcat(ptr noundef %412, ptr noundef @.str.341) #6
  %414 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %415 = load ptr, ptr %6, align 8, !tbaa !5
  %416 = call ptr @strcat(ptr noundef %414, ptr noundef %415) #6
  %417 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %418 = call ptr @strcat(ptr noundef %417, ptr noundef @.str.92) #6
  br label %419

419:                                              ; preds = %411, %407, %393
  %420 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %421 = call ptr @strcat(ptr noundef %420, ptr noundef @.str.345) #6
  br label %471

422:                                              ; preds = %381
  %423 = load ptr, ptr %6, align 8, !tbaa !5
  %424 = icmp ne ptr %423, null
  br i1 %424, label %425, label %432

425:                                              ; preds = %422
  %426 = load ptr, ptr %6, align 8, !tbaa !5
  %427 = call i32 @strcmp(ptr noundef %426, ptr noundef @.str.10) #7
  %428 = icmp ne i32 %427, 0
  br i1 %428, label %432, label %429

429:                                              ; preds = %425
  %430 = load ptr, ptr %6, align 8, !tbaa !5
  %431 = call ptr @tinyfd_inputBox(ptr noundef %430, ptr noundef null, ptr noundef null)
  store ptr %431, ptr %5, align 8
  store i32 1, ptr %21, align 4
  br label %575

432:                                              ; preds = %425, %422
  %433 = load ptr, ptr %6, align 8, !tbaa !5
  %434 = load ptr, ptr %13, align 8, !tbaa !5
  %435 = call ptr @tinyfd_inputBox(ptr noundef %433, ptr noundef @.str.346, ptr noundef %434)
  store ptr %435, ptr %15, align 8, !tbaa !5
  %436 = load ptr, ptr %15, align 8, !tbaa !5
  %437 = icmp ne ptr %436, null
  br i1 %437, label %438, label %448

438:                                              ; preds = %432
  %439 = load ptr, ptr %15, align 8, !tbaa !5
  %440 = call i64 @strlen(ptr noundef %439) #7
  %441 = icmp ne i64 %440, 7
  br i1 %441, label %448, label %442

442:                                              ; preds = %438
  %443 = load ptr, ptr %15, align 8, !tbaa !5
  %444 = getelementptr inbounds i8, ptr %443, i64 0
  %445 = load i8, ptr %444, align 1, !tbaa !11
  %446 = sext i8 %445 to i32
  %447 = icmp ne i32 %446, 35
  br i1 %447, label %448, label %449

448:                                              ; preds = %442, %438, %432
  store ptr null, ptr %5, align 8
  store i32 1, ptr %21, align 4
  br label %575

449:                                              ; preds = %442
  store i32 1, ptr %17, align 4, !tbaa !9
  br label %450

450:                                              ; preds = %464, %449
  %451 = load i32, ptr %17, align 4, !tbaa !9
  %452 = icmp slt i32 %451, 7
  br i1 %452, label %453, label %467

453:                                              ; preds = %450
  %454 = load ptr, ptr %15, align 8, !tbaa !5
  %455 = load i32, ptr %17, align 4, !tbaa !9
  %456 = sext i32 %455 to i64
  %457 = getelementptr inbounds i8, ptr %454, i64 %456
  %458 = load i8, ptr %457, align 1, !tbaa !11
  %459 = sext i8 %458 to i32
  %460 = call i32 @isxdigit(i32 noundef %459) #7
  %461 = icmp ne i32 %460, 0
  br i1 %461, label %463, label %462

462:                                              ; preds = %453
  store ptr null, ptr %5, align 8
  store i32 1, ptr %21, align 4
  br label %575

463:                                              ; preds = %453
  br label %464

464:                                              ; preds = %463
  %465 = load i32, ptr %17, align 4, !tbaa !9
  %466 = add nsw i32 %465, 1
  store i32 %466, ptr %17, align 4, !tbaa !9
  br label %450, !llvm.loop !12

467:                                              ; preds = %450
  %468 = load ptr, ptr %15, align 8, !tbaa !5
  %469 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZL7Hex2RGBPKcPh(ptr noundef %468, ptr noundef %469)
  %470 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %470, ptr %5, align 8
  store i32 1, ptr %21, align 4
  br label %575

471:                                              ; preds = %419
  br label %472

472:                                              ; preds = %471, %378
  br label %473

473:                                              ; preds = %472, %306
  br label %474

474:                                              ; preds = %473, %280
  br label %475

475:                                              ; preds = %474, %164
  br label %476

476:                                              ; preds = %475, %122
  %477 = load i32, ptr @tinyfd_verbose, align 4, !tbaa !9
  %478 = icmp ne i32 %477, 0
  br i1 %478, label %479, label %482

479:                                              ; preds = %476
  %480 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %481 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %480)
  br label %482

482:                                              ; preds = %479, %476
  %483 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %484 = call noalias ptr @popen(ptr noundef %483, ptr noundef @.str.9)
  store ptr %484, ptr %16, align 8, !tbaa !5
  %485 = icmp ne ptr %484, null
  br i1 %485, label %487, label %486

486:                                              ; preds = %482
  store ptr null, ptr %5, align 8
  store i32 1, ptr %21, align 4
  br label %575

487:                                              ; preds = %482
  br label %488

488:                                              ; preds = %492, %487
  %489 = load ptr, ptr %16, align 8, !tbaa !5
  %490 = call ptr @fgets(ptr noundef @_ZZ19tinyfd_colorChooserE5lBuff, i32 noundef 128, ptr noundef %489)
  %491 = icmp ne ptr %490, null
  br i1 %491, label %492, label %493

492:                                              ; preds = %488
  br label %488, !llvm.loop !14

493:                                              ; preds = %488
  %494 = load ptr, ptr %16, align 8, !tbaa !5
  %495 = call i32 @pclose(ptr noundef %494)
  %496 = call i64 @strlen(ptr noundef @_ZZ19tinyfd_colorChooserE5lBuff) #7
  %497 = icmp ne i64 %496, 0
  br i1 %497, label %499, label %498

498:                                              ; preds = %493
  store ptr null, ptr %5, align 8
  store i32 1, ptr %21, align 4
  br label %575

499:                                              ; preds = %493
  %500 = call i64 @strlen(ptr noundef @_ZZ19tinyfd_colorChooserE5lBuff) #7
  %501 = sub i64 %500, 1
  %502 = getelementptr inbounds [128 x i8], ptr @_ZZ19tinyfd_colorChooserE5lBuff, i64 0, i64 %501
  %503 = load i8, ptr %502, align 1, !tbaa !11
  %504 = sext i8 %503 to i32
  %505 = icmp eq i32 %504, 10
  br i1 %505, label %506, label %510

506:                                              ; preds = %499
  %507 = call i64 @strlen(ptr noundef @_ZZ19tinyfd_colorChooserE5lBuff) #7
  %508 = sub i64 %507, 1
  %509 = getelementptr inbounds [128 x i8], ptr @_ZZ19tinyfd_colorChooserE5lBuff, i64 0, i64 %508
  store i8 0, ptr %509, align 1, !tbaa !11
  br label %510

510:                                              ; preds = %506, %499
  %511 = load i32, ptr %18, align 4, !tbaa !9
  %512 = icmp ne i32 %511, 0
  br i1 %512, label %513, label %556

513:                                              ; preds = %510
  %514 = load i8, ptr @_ZZ19tinyfd_colorChooserE5lBuff, align 16, !tbaa !11
  %515 = sext i8 %514 to i32
  %516 = icmp eq i32 %515, 35
  br i1 %516, label %517, label %527

517:                                              ; preds = %513
  %518 = call i64 @strlen(ptr noundef @_ZZ19tinyfd_colorChooserE5lBuff) #7
  %519 = icmp ugt i64 %518, 7
  br i1 %519, label %520, label %525

520:                                              ; preds = %517
  %521 = load i8, ptr getelementptr inbounds ([128 x i8], ptr @_ZZ19tinyfd_colorChooserE5lBuff, i64 0, i64 5), align 1, !tbaa !11
  store i8 %521, ptr getelementptr inbounds ([128 x i8], ptr @_ZZ19tinyfd_colorChooserE5lBuff, i64 0, i64 3), align 1, !tbaa !11
  %522 = load i8, ptr getelementptr inbounds ([128 x i8], ptr @_ZZ19tinyfd_colorChooserE5lBuff, i64 0, i64 6), align 2, !tbaa !11
  store i8 %522, ptr getelementptr inbounds ([128 x i8], ptr @_ZZ19tinyfd_colorChooserE5lBuff, i64 0, i64 4), align 4, !tbaa !11
  %523 = load i8, ptr getelementptr inbounds ([128 x i8], ptr @_ZZ19tinyfd_colorChooserE5lBuff, i64 0, i64 9), align 1, !tbaa !11
  store i8 %523, ptr getelementptr inbounds ([128 x i8], ptr @_ZZ19tinyfd_colorChooserE5lBuff, i64 0, i64 5), align 1, !tbaa !11
  %524 = load i8, ptr getelementptr inbounds ([128 x i8], ptr @_ZZ19tinyfd_colorChooserE5lBuff, i64 0, i64 10), align 2, !tbaa !11
  store i8 %524, ptr getelementptr inbounds ([128 x i8], ptr @_ZZ19tinyfd_colorChooserE5lBuff, i64 0, i64 6), align 2, !tbaa !11
  store i8 0, ptr getelementptr inbounds ([128 x i8], ptr @_ZZ19tinyfd_colorChooserE5lBuff, i64 0, i64 7), align 1, !tbaa !11
  br label %525

525:                                              ; preds = %520, %517
  %526 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZL7Hex2RGBPKcPh(ptr noundef @_ZZ19tinyfd_colorChooserE5lBuff, ptr noundef %526)
  br label %555

527:                                              ; preds = %513
  %528 = load i8, ptr getelementptr inbounds ([128 x i8], ptr @_ZZ19tinyfd_colorChooserE5lBuff, i64 0, i64 3), align 1, !tbaa !11
  %529 = sext i8 %528 to i32
  %530 = icmp eq i32 %529, 40
  br i1 %530, label %531, label %540

531:                                              ; preds = %527
  %532 = load ptr, ptr %9, align 8, !tbaa !5
  %533 = getelementptr inbounds i8, ptr %532, i64 0
  %534 = load ptr, ptr %9, align 8, !tbaa !5
  %535 = getelementptr inbounds i8, ptr %534, i64 1
  %536 = load ptr, ptr %9, align 8, !tbaa !5
  %537 = getelementptr inbounds i8, ptr %536, i64 2
  %538 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef @_ZZ19tinyfd_colorChooserE5lBuff, ptr noundef @.str.347, ptr noundef %533, ptr noundef %535, ptr noundef %537) #6
  %539 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZL7RGB2HexPKhPc(ptr noundef %539, ptr noundef @_ZZ19tinyfd_colorChooserE5lBuff)
  br label %554

540:                                              ; preds = %527
  %541 = load i8, ptr getelementptr inbounds ([128 x i8], ptr @_ZZ19tinyfd_colorChooserE5lBuff, i64 0, i64 4), align 4, !tbaa !11
  %542 = sext i8 %541 to i32
  %543 = icmp eq i32 %542, 40
  br i1 %543, label %544, label %553

544:                                              ; preds = %540
  %545 = load ptr, ptr %9, align 8, !tbaa !5
  %546 = getelementptr inbounds i8, ptr %545, i64 0
  %547 = load ptr, ptr %9, align 8, !tbaa !5
  %548 = getelementptr inbounds i8, ptr %547, i64 1
  %549 = load ptr, ptr %9, align 8, !tbaa !5
  %550 = getelementptr inbounds i8, ptr %549, i64 2
  %551 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef @_ZZ19tinyfd_colorChooserE5lBuff, ptr noundef @.str.348, ptr noundef %546, ptr noundef %548, ptr noundef %550) #6
  %552 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZL7RGB2HexPKhPc(ptr noundef %552, ptr noundef @_ZZ19tinyfd_colorChooserE5lBuff)
  br label %553

553:                                              ; preds = %544, %540
  br label %554

554:                                              ; preds = %553, %531
  br label %555

555:                                              ; preds = %554, %525
  br label %574

556:                                              ; preds = %510
  %557 = load i32, ptr %19, align 4, !tbaa !9
  %558 = icmp ne i32 %557, 0
  br i1 %558, label %562, label %559

559:                                              ; preds = %556
  %560 = load i32, ptr %20, align 4, !tbaa !9
  %561 = icmp ne i32 %560, 0
  br i1 %561, label %562, label %571

562:                                              ; preds = %559, %556
  %563 = load ptr, ptr %9, align 8, !tbaa !5
  %564 = getelementptr inbounds i8, ptr %563, i64 0
  %565 = load ptr, ptr %9, align 8, !tbaa !5
  %566 = getelementptr inbounds i8, ptr %565, i64 1
  %567 = load ptr, ptr %9, align 8, !tbaa !5
  %568 = getelementptr inbounds i8, ptr %567, i64 2
  %569 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef @_ZZ19tinyfd_colorChooserE5lBuff, ptr noundef @.str.336, ptr noundef %564, ptr noundef %566, ptr noundef %568) #6
  %570 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZL7RGB2HexPKhPc(ptr noundef %570, ptr noundef @_ZZ19tinyfd_colorChooserE5lBuff)
  br label %573

571:                                              ; preds = %559
  %572 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZL7Hex2RGBPKcPh(ptr noundef @_ZZ19tinyfd_colorChooserE5lBuff, ptr noundef %572)
  br label %573

573:                                              ; preds = %571, %562
  br label %574

574:                                              ; preds = %573, %555
  store ptr @_ZZ19tinyfd_colorChooserE5lBuff, ptr %5, align 8
  store i32 1, ptr %21, align 4
  br label %575

575:                                              ; preds = %574, %498, %486, %467, %462, %448, %429, %391, %335, %291, %238, %226, %211, %187, %133, %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 3, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %10) #6
  %576 = load ptr, ptr %5, align 8
  ret ptr %576
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL7Hex2RGBPKcPh(ptr noundef, ptr noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL7RGB2HexPKhPc(ptr noundef, ptr noundef) #5

; Function Attrs: nounwind willreturn memory(read)
declare i32 @isxdigit(i32 noundef) #1

; Function Attrs: nounwind
declare i32 @__isoc99_sscanf(ptr noundef, ptr noundef, ...) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind willreturn memory(read) "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 = { 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 #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }

!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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


; 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"

@tinyfd_verbose = external dso_local local_unnamed_addr global i32, align 4
@tinyfd_silent = external dso_local local_unnamed_addr global i32, align 4
@tinyfd_response = external dso_local global [1024 x i8], align 16
@.str.8 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [16 x i8], align 1
@_ZL12gPython2Name = external hidden global [16 x i8], align 16
@.str.74 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [16 x i8], align 1
@_ZL12gPython3Name = external hidden global [16 x i8], align 16
@.str.120 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.301 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.302 = external hidden unnamed_addr constant [15 x i8], align 1
@_ZZ19tinyfd_colorChooserE5lBuff = external hidden global [128 x i8], align 16
@.str.321 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.322 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.323 = external hidden unnamed_addr constant [118 x i8], align 1
@.str.324 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.325 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.326 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.327 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.328 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.329 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.330 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.331 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.332 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.333 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.334 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.335 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.336 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.337 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.338 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.339 = external hidden unnamed_addr constant [111 x i8], align 1
@.str.340 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.341 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.342 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.343 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.344 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.345 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.346 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.347 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.348 = external hidden unnamed_addr constant [20 x i8], align 1

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL16osascriptPresentv() local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noalias noundef ptr @popen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i32 @pclose(ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL12osx9orBetterv() local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcat(ptr noalias noundef returned, ptr noalias nocapture noundef readonly) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL14kdialogPresentv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL17matedialogPresentv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL20shellementaryPresentv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL12qarmaPresentv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL14zenity3Presentv() local_unnamed_addr #3

; Function Attrs: nofree nounwind memory(read)
declare noundef ptr @getenv(ptr nocapture noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL14xdialogPresentv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL15tkinter2Presentv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL17isTerminalRunningv() local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL8isDarwinv() local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL15tkinter3Presentv() local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef ptr @fgets(ptr noundef, i32 noundef, ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local ptr @tinyfd_inputBox(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local ptr @tinyfd_colorChooser(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #3 {
  %5 = alloca [128 x i8], align 16
  %6 = alloca [1024 x i8], align 16
  %7 = alloca [8 x i8], align 1
  %8 = alloca [3 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %8) #8
  store i8 0, ptr @_ZZ19tinyfd_colorChooserE5lBuff, align 16, !tbaa !5
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %10, label %9

9:                                                ; preds = %4
  call void @_ZL7Hex2RGBPKcPh(ptr noundef nonnull %1, ptr noundef nonnull %8)
  br label %18

10:                                               ; preds = %4
  %11 = load i8, ptr %2, align 1, !tbaa !5
  store i8 %11, ptr %8, align 1, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %2, i64 1
  %13 = load i8, ptr %12, align 1, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %8, i64 1
  store i8 %13, ptr %14, align 1, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %2, i64 2
  %16 = load i8, ptr %15, align 1, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %8, i64 2
  store i8 %16, ptr %17, align 1, !tbaa !5
  call void @_ZL7RGB2HexPKhPc(ptr noundef nonnull %2, ptr noundef nonnull %7)
  br label %18

18:                                               ; preds = %10, %9
  %.083 = phi ptr [ %1, %9 ], [ %7, %10 ]
  %19 = call noundef i32 @_ZL16osascriptPresentv()
  %.not88 = icmp ne i32 %19, 0
  br i1 %.not88, label %20, label %60

20:                                               ; preds = %18
  %.not138 = icmp eq ptr %0, null
  br i1 %.not138, label %25, label %21

21:                                               ; preds = %20
  %22 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #9
  %.not139 = icmp eq i32 %22, 0
  br i1 %.not139, label %23, label %25

23:                                               ; preds = %21
  %24 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.11) #8
  br label %.loopexit

25:                                               ; preds = %21, %20
  %26 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.321) #8
  %27 = call noundef i32 @_ZL12osx9orBetterv()
  %.not140 = icmp eq i32 %27, 0
  br i1 %.not140, label %28, label %30

28:                                               ; preds = %25
  %29 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.13) #8
  br label %30

30:                                               ; preds = %25, %28
  %.str.323.sink = phi ptr [ @.str.322, %28 ], [ @.str.323, %25 ]
  %31 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %.str.323.sink) #8
  %32 = load i8, ptr %8, align 1, !tbaa !5
  %33 = zext i8 %32 to i32
  %34 = shl nuw nsw i32 %33, 8
  %35 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.324, i32 noundef %34) #8
  %36 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %5) #8
  %37 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.325) #8
  %38 = getelementptr inbounds i8, ptr %8, i64 1
  %39 = load i8, ptr %38, align 1, !tbaa !5
  %40 = zext i8 %39 to i32
  %41 = shl nuw nsw i32 %40, 8
  %42 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.324, i32 noundef %41) #8
  %43 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %5) #8
  %44 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.325) #8
  %45 = getelementptr inbounds i8, ptr %8, i64 2
  %46 = load i8, ptr %45, align 1, !tbaa !5
  %47 = zext i8 %46 to i32
  %48 = shl nuw nsw i32 %47, 8
  %49 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.324, i32 noundef %48) #8
  %50 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %5) #8
  %51 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.326) #8
  %52 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.327) #8
  %53 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.328) #8
  %54 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.329) #8
  %55 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.301) #8
  %56 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.302) #8
  %57 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.37) #8
  %58 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.39) #8
  %59 = call noundef i32 @_ZL12osx9orBetterv()
  %.not141 = icmp eq i32 %59, 0
  br i1 %.not141, label %.sink.split152, label %248

60:                                               ; preds = %18
  %61 = call noundef i32 @_ZL14kdialogPresentv()
  %.not89 = icmp eq i32 %61, 0
  br i1 %.not89, label %80, label %62

62:                                               ; preds = %60
  %.not134 = icmp eq ptr %0, null
  br i1 %.not134, label %67, label %63

63:                                               ; preds = %62
  %64 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #9
  %.not135 = icmp eq i32 %64, 0
  br i1 %.not135, label %65, label %67

65:                                               ; preds = %63
  %66 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.41) #8
  br label %.loopexit

67:                                               ; preds = %63, %62
  %68 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.41) #8
  %69 = call noundef i32 @_ZL14kdialogPresentv()
  %70 = icmp eq i32 %69, 2
  br i1 %70, label %71, label %73

71:                                               ; preds = %67
  %72 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.42) #8
  br label %73

73:                                               ; preds = %71, %67
  %74 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %6) #9
  %75 = getelementptr inbounds i8, ptr %6, i64 %74
  %76 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %75, ptr noundef nonnull dereferenceable(1) @.str.330, ptr noundef nonnull %.083) #8
  br i1 %.not134, label %248, label %77

77:                                               ; preds = %73
  %char0136 = load i8, ptr %0, align 1
  %.not137 = icmp eq i8 %char0136, 0
  br i1 %.not137, label %248, label %78

78:                                               ; preds = %77
  %79 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.49) #8
  br label %.sink.split152.sink.split

80:                                               ; preds = %60
  %81 = call noundef i32 @_ZL14zenity3Presentv()
  %.not90 = icmp eq i32 %81, 0
  br i1 %.not90, label %82, label %88

82:                                               ; preds = %80
  %83 = call noundef i32 @_ZL17matedialogPresentv()
  %.not91 = icmp eq i32 %83, 0
  br i1 %.not91, label %84, label %88

84:                                               ; preds = %82
  %85 = call noundef i32 @_ZL20shellementaryPresentv()
  %.not92 = icmp eq i32 %85, 0
  br i1 %.not92, label %86, label %88

86:                                               ; preds = %84
  %87 = call noundef i32 @_ZL12qarmaPresentv()
  %.not93 = icmp eq i32 %87, 0
  br i1 %.not93, label %143, label %88

88:                                               ; preds = %86, %84, %82, %80
  %89 = call noundef i32 @_ZL14zenity3Presentv()
  %.not117 = icmp eq i32 %89, 0
  br i1 %.not117, label %103, label %90

90:                                               ; preds = %88
  %.not127 = icmp eq ptr %0, null
  br i1 %.not127, label %95, label %91

91:                                               ; preds = %90
  %92 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #9
  %.not128 = icmp eq i32 %92, 0
  br i1 %.not128, label %93, label %95

93:                                               ; preds = %91
  %94 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.331) #8
  br label %.loopexit

95:                                               ; preds = %91, %90
  %96 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.52) #8
  %97 = call noundef i32 @_ZL14zenity3Presentv()
  %98 = icmp sgt i32 %97, 3
  br i1 %98, label %99, label %131

99:                                               ; preds = %95
  %100 = call ptr @getenv(ptr noundef nonnull @.str.54) #8
  %.not129 = icmp eq ptr %100, null
  br i1 %.not129, label %101, label %131

101:                                              ; preds = %99
  %102 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.55) #8
  br label %131

103:                                              ; preds = %88
  %104 = call noundef i32 @_ZL17matedialogPresentv()
  %.not118 = icmp eq i32 %104, 0
  br i1 %.not118, label %112, label %105

105:                                              ; preds = %103
  %.not125 = icmp eq ptr %0, null
  br i1 %.not125, label %110, label %106

106:                                              ; preds = %105
  %107 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #9
  %.not126 = icmp eq i32 %107, 0
  br i1 %.not126, label %108, label %110

108:                                              ; preds = %106
  %109 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.56) #8
  br label %.loopexit

110:                                              ; preds = %106, %105
  %111 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.56) #8
  br label %131

112:                                              ; preds = %103
  %113 = call noundef i32 @_ZL20shellementaryPresentv()
  %.not119 = icmp eq i32 %113, 0
  %.not120 = icmp eq ptr %0, null
  br i1 %.not119, label %121, label %114

114:                                              ; preds = %112
  br i1 %.not120, label %119, label %115

115:                                              ; preds = %114
  %116 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #9
  %.not124 = icmp eq i32 %116, 0
  br i1 %.not124, label %117, label %119

117:                                              ; preds = %115
  %118 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.58) #8
  br label %.loopexit

119:                                              ; preds = %115, %114
  %120 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.58) #8
  br label %131

121:                                              ; preds = %112
  br i1 %.not120, label %126, label %122

122:                                              ; preds = %121
  %123 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #9
  %.not121 = icmp eq i32 %123, 0
  br i1 %.not121, label %124, label %126

124:                                              ; preds = %122
  %125 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.60) #8
  br label %.loopexit

126:                                              ; preds = %122, %121
  %127 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.60) #8
  %128 = call ptr @getenv(ptr noundef nonnull @.str.54) #8
  %.not122 = icmp eq ptr %128, null
  br i1 %.not122, label %129, label %131

129:                                              ; preds = %126
  %130 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.42) #8
  br label %131

131:                                              ; preds = %110, %126, %129, %119, %95, %99, %101
  %132 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.332) #8
  %133 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %6) #9
  %134 = getelementptr inbounds i8, ptr %6, i64 %133
  %135 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %134, ptr noundef nonnull dereferenceable(1) @.str.333, ptr noundef nonnull %.083) #8
  %.not130 = icmp eq ptr %0, null
  br i1 %.not130, label %141, label %136

136:                                              ; preds = %131
  %char0131 = load i8, ptr %0, align 1
  %.not132 = icmp eq i8 %char0131, 0
  br i1 %.not132, label %141, label %137

137:                                              ; preds = %136
  %138 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.66) #8
  %139 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %0) #8
  %140 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.47) #8
  br label %141

141:                                              ; preds = %137, %136, %131
  %142 = load i32, ptr @tinyfd_silent, align 4, !tbaa !8
  %.not133 = icmp eq i32 %142, 0
  br i1 %.not133, label %248, label %.sink.split152

143:                                              ; preds = %86
  %144 = call noundef i32 @_ZL14xdialogPresentv()
  %.not94 = icmp eq i32 %144, 0
  br i1 %.not94, label %166, label %145

145:                                              ; preds = %143
  %.not113 = icmp eq ptr %0, null
  br i1 %.not113, label %.critedge, label %146

146:                                              ; preds = %145
  %147 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #9
  %.not114 = icmp eq i32 %147, 0
  br i1 %.not114, label %148, label %150

148:                                              ; preds = %146
  %149 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.120) #8
  br label %.loopexit

150:                                              ; preds = %146
  %151 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.334) #8
  %char0115 = load i8, ptr %0, align 1
  %.not116 = icmp eq i8 %char0115, 0
  br i1 %.not116, label %155, label %152

152:                                              ; preds = %150
  %153 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %0) #8
  br label %155

.critedge:                                        ; preds = %145
  %154 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.334) #8
  br label %155

155:                                              ; preds = %.critedge, %152, %150
  %156 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.335) #8
  %157 = load i8, ptr %8, align 1, !tbaa !5
  %158 = zext i8 %157 to i32
  %159 = getelementptr inbounds i8, ptr %8, i64 1
  %160 = load i8, ptr %159, align 1, !tbaa !5
  %161 = zext i8 %160 to i32
  %162 = getelementptr inbounds i8, ptr %8, i64 2
  %163 = load i8, ptr %162, align 1, !tbaa !5
  %164 = zext i8 %163 to i32
  %165 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.336, i32 noundef %158, i32 noundef %161, i32 noundef %164) #8
  br label %.sink.split152.sink.split

166:                                              ; preds = %143
  %167 = call noundef i32 @_ZL15tkinter2Presentv()
  %.not95 = icmp eq i32 %167, 0
  br i1 %.not95, label %193, label %168

168:                                              ; preds = %166
  %.not106 = icmp eq ptr %0, null
  br i1 %.not106, label %173, label %169

169:                                              ; preds = %168
  %170 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #9
  %.not107 = icmp eq i32 %170, 0
  br i1 %.not107, label %171, label %173

171:                                              ; preds = %169
  %172 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.73) #8
  br label %.loopexit

173:                                              ; preds = %169, %168
  %174 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @_ZL12gPython2Name) #8
  %175 = call noundef i32 @_ZL17isTerminalRunningv()
  %.not108 = icmp eq i32 %175, 0
  br i1 %.not108, label %176, label %180

176:                                              ; preds = %173
  %177 = call noundef i32 @_ZL8isDarwinv()
  %.not109 = icmp eq i32 %177, 0
  br i1 %.not109, label %180, label %178

178:                                              ; preds = %176
  %179 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.74) #8
  br label %180

180:                                              ; preds = %178, %176, %173
  %181 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.338) #8
  %182 = call noundef i32 @_ZL8isDarwinv()
  %.not110 = icmp eq i32 %182, 0
  br i1 %.not110, label %185, label %183

183:                                              ; preds = %180
  %184 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.339) #8
  br label %185

185:                                              ; preds = %183, %180
  %186 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.340) #8
  %187 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %.083) #8
  %188 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.92) #8
  br i1 %.not106, label %.sink.split152, label %189

189:                                              ; preds = %185
  %char0111 = load i8, ptr %0, align 1
  %.not112 = icmp eq i8 %char0111, 0
  br i1 %.not112, label %.sink.split152, label %190

190:                                              ; preds = %189
  %191 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.341) #8
  %192 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %0) #8
  br label %.sink.split152.sink.split

193:                                              ; preds = %166
  %194 = call noundef i32 @_ZL15tkinter3Presentv()
  %.not96 = icmp eq i32 %194, 0
  %.not97 = icmp eq ptr %0, null
  br i1 %.not96, label %210, label %195

195:                                              ; preds = %193
  br i1 %.not97, label %.critedge148, label %196

196:                                              ; preds = %195
  %197 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #9
  %.not104 = icmp eq i32 %197, 0
  br i1 %.not104, label %198, label %200

198:                                              ; preds = %196
  %199 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) @tinyfd_response, ptr noundef nonnull dereferenceable(1) @.str.95) #8
  br label %.loopexit

200:                                              ; preds = %196
  %201 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @_ZL12gPython3Name) #8
  %202 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.343) #8
  %203 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.344) #8
  %204 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %.083) #8
  %205 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.92) #8
  %char0 = load i8, ptr %0, align 1
  %.not105 = icmp eq i8 %char0, 0
  br i1 %.not105, label %.sink.split152, label %.sink.split

.critedge148:                                     ; preds = %195
  %206 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @_ZL12gPython3Name) #8
  %207 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.343) #8
  br label %.sink.split

.sink.split:                                      ; preds = %200, %.critedge148
  %.str.344.sink = phi ptr [ @.str.344, %.critedge148 ], [ @.str.341, %200 ]
  %.083.sink = phi ptr [ %.083, %.critedge148 ], [ %0, %200 ]
  %208 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %.str.344.sink) #8
  %209 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %.083.sink) #8
  br label %.sink.split152.sink.split

210:                                              ; preds = %193
  br i1 %.not97, label %215, label %211

211:                                              ; preds = %210
  %212 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) @.str.10) #9
  %.not98 = icmp eq i32 %212, 0
  br i1 %.not98, label %213, label %215

213:                                              ; preds = %211
  %214 = call ptr @tinyfd_inputBox(ptr noundef nonnull %0, ptr noundef null, ptr noundef null)
  br label %.loopexit

215:                                              ; preds = %211, %210
  %216 = call ptr @tinyfd_inputBox(ptr noundef %0, ptr noundef nonnull @.str.346, ptr noundef nonnull %.083)
  %.not99 = icmp eq ptr %216, null
  br i1 %.not99, label %.loopexit, label %217

217:                                              ; preds = %215
  %218 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %216) #9
  %.not100 = icmp eq i64 %218, 7
  br i1 %.not100, label %219, label %.loopexit

219:                                              ; preds = %217
  %220 = load i8, ptr %216, align 1, !tbaa !5
  %.not101 = icmp eq i8 %220, 35
  br i1 %.not101, label %.preheader149.preheader, label %.loopexit

.preheader149.preheader:                          ; preds = %219
  %221 = getelementptr inbounds i8, ptr %216, i64 1
  %222 = load i8, ptr %221, align 1, !tbaa !5
  %223 = sext i8 %222 to i32
  %224 = call i32 @isxdigit(i32 noundef %223) #9
  %.not102 = icmp eq i32 %224, 0
  br i1 %.not102, label %.loopexit, label %.preheader149.1

.preheader149.1:                                  ; preds = %.preheader149.preheader
  %225 = getelementptr inbounds i8, ptr %216, i64 2
  %226 = load i8, ptr %225, align 1, !tbaa !5
  %227 = sext i8 %226 to i32
  %228 = call i32 @isxdigit(i32 noundef %227) #9
  %.not102.1 = icmp eq i32 %228, 0
  br i1 %.not102.1, label %.loopexit, label %.preheader149.2

.preheader149.2:                                  ; preds = %.preheader149.1
  %229 = getelementptr inbounds i8, ptr %216, i64 3
  %230 = load i8, ptr %229, align 1, !tbaa !5
  %231 = sext i8 %230 to i32
  %232 = call i32 @isxdigit(i32 noundef %231) #9
  %.not102.2 = icmp eq i32 %232, 0
  br i1 %.not102.2, label %.loopexit, label %.preheader149.3

.preheader149.3:                                  ; preds = %.preheader149.2
  %233 = getelementptr inbounds i8, ptr %216, i64 4
  %234 = load i8, ptr %233, align 1, !tbaa !5
  %235 = sext i8 %234 to i32
  %236 = call i32 @isxdigit(i32 noundef %235) #9
  %.not102.3 = icmp eq i32 %236, 0
  br i1 %.not102.3, label %.loopexit, label %.preheader149.4

.preheader149.4:                                  ; preds = %.preheader149.3
  %237 = getelementptr inbounds i8, ptr %216, i64 5
  %238 = load i8, ptr %237, align 1, !tbaa !5
  %239 = sext i8 %238 to i32
  %240 = call i32 @isxdigit(i32 noundef %239) #9
  %.not102.4 = icmp eq i32 %240, 0
  br i1 %.not102.4, label %.loopexit, label %.preheader149.5

.preheader149.5:                                  ; preds = %.preheader149.4
  %241 = getelementptr inbounds i8, ptr %216, i64 6
  %242 = load i8, ptr %241, align 1, !tbaa !5
  %243 = sext i8 %242 to i32
  %244 = call i32 @isxdigit(i32 noundef %243) #9
  %.not102.5 = icmp eq i32 %244, 0
  br i1 %.not102.5, label %.loopexit, label %245

245:                                              ; preds = %.preheader149.5
  call void @_ZL7Hex2RGBPKcPh(ptr noundef nonnull %216, ptr noundef %3)
  br label %.loopexit

.sink.split152.sink.split:                        ; preds = %78, %155, %190, %.sink.split
  %.str.92.sink = phi ptr [ @.str.92, %.sink.split ], [ @.str.92, %190 ], [ %5, %155 ], [ %0, %78 ]
  %.str.47.sink.ph = phi ptr [ @.str.345, %.sink.split ], [ @.str.342, %190 ], [ @.str.337, %155 ], [ @.str.47, %78 ]
  %.ph.ph = phi i1 [ false, %.sink.split ], [ false, %190 ], [ true, %155 ], [ false, %78 ]
  %246 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %.str.92.sink) #8
  br label %.sink.split152

.sink.split152:                                   ; preds = %.sink.split152.sink.split, %200, %185, %189, %141, %30
  %.str.47.sink = phi ptr [ @.str.40, %30 ], [ @.str.70, %141 ], [ @.str.342, %189 ], [ @.str.342, %185 ], [ @.str.345, %200 ], [ %.str.47.sink.ph, %.sink.split152.sink.split ]
  %.not146.ph = phi i1 [ true, %30 ], [ false, %141 ], [ true, %189 ], [ true, %185 ], [ true, %200 ], [ true, %.sink.split152.sink.split ]
  %.ph = phi i1 [ false, %30 ], [ false, %141 ], [ false, %189 ], [ false, %185 ], [ false, %200 ], [ %.ph.ph, %.sink.split152.sink.split ]
  %247 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %.str.47.sink) #8
  br label %248

248:                                              ; preds = %.sink.split152, %77, %73, %141, %30
  %.not146 = phi i1 [ true, %30 ], [ true, %77 ], [ true, %73 ], [ false, %141 ], [ %.not146.ph, %.sink.split152 ]
  %249 = phi i1 [ false, %30 ], [ false, %77 ], [ false, %73 ], [ false, %141 ], [ %.ph, %.sink.split152 ]
  %250 = load i32, ptr @tinyfd_verbose, align 4, !tbaa !8
  %.not142 = icmp eq i32 %250, 0
  br i1 %.not142, label %253, label %251

251:                                              ; preds = %248
  %252 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, ptr noundef nonnull %6)
  br label %253

253:                                              ; preds = %251, %248
  %254 = call noalias ptr @popen(ptr noundef nonnull %6, ptr noundef nonnull @.str.9)
  %.not143 = icmp eq ptr %254, null
  br i1 %.not143, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %253, %.preheader
  %255 = call ptr @fgets(ptr noundef nonnull @_ZZ19tinyfd_colorChooserE5lBuff, i32 noundef 128, ptr noundef nonnull %254)
  %.not144 = icmp eq ptr %255, null
  br i1 %.not144, label %256, label %.preheader, !llvm.loop !10

256:                                              ; preds = %.preheader
  %257 = call i32 @pclose(ptr noundef nonnull %254)
  %258 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) @_ZZ19tinyfd_colorChooserE5lBuff) #9
  %.not145 = icmp eq i64 %258, 0
  br i1 %.not145, label %.loopexit, label %259

259:                                              ; preds = %256
  %260 = add i64 %258, -1
  %261 = getelementptr inbounds [128 x i8], ptr @_ZZ19tinyfd_colorChooserE5lBuff, i64 0, i64 %260
  %262 = load i8, ptr %261, align 1, !tbaa !5
  %263 = icmp eq i8 %262, 10
  br i1 %263, label %264, label %265

264:                                              ; preds = %259
  store i8 0, ptr %261, align 1, !tbaa !5
  br label %265

265:                                              ; preds = %264, %259
  br i1 %.not146, label %292, label %266

266:                                              ; preds = %265
  %267 = load i8, ptr @_ZZ19tinyfd_colorChooserE5lBuff, align 16, !tbaa !5
  %268 = icmp eq i8 %267, 35
  br i1 %268, label %269, label %278

269:                                              ; preds = %266
  %270 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) @_ZZ19tinyfd_colorChooserE5lBuff) #9
  %271 = icmp ugt i64 %270, 7
  br i1 %271, label %272, label %277

272:                                              ; preds = %269
  %273 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZ19tinyfd_colorChooserE5lBuff, i64 5), align 1, !tbaa !5
  store i8 %273, ptr getelementptr inbounds (i8, ptr @_ZZ19tinyfd_colorChooserE5lBuff, i64 3), align 1, !tbaa !5
  %274 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZ19tinyfd_colorChooserE5lBuff, i64 6), align 2, !tbaa !5
  store i8 %274, ptr getelementptr inbounds (i8, ptr @_ZZ19tinyfd_colorChooserE5lBuff, i64 4), align 4, !tbaa !5
  %275 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZ19tinyfd_colorChooserE5lBuff, i64 9), align 1, !tbaa !5
  store i8 %275, ptr getelementptr inbounds (i8, ptr @_ZZ19tinyfd_colorChooserE5lBuff, i64 5), align 1, !tbaa !5
  %276 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZ19tinyfd_colorChooserE5lBuff, i64 10), align 2, !tbaa !5
  store i8 %276, ptr getelementptr inbounds (i8, ptr @_ZZ19tinyfd_colorChooserE5lBuff, i64 6), align 2, !tbaa !5
  store i8 0, ptr getelementptr inbounds (i8, ptr @_ZZ19tinyfd_colorChooserE5lBuff, i64 7), align 1, !tbaa !5
  br label %277

277:                                              ; preds = %272, %269
  call void @_ZL7Hex2RGBPKcPh(ptr noundef nonnull @_ZZ19tinyfd_colorChooserE5lBuff, ptr noundef %3)
  br label %.loopexit

278:                                              ; preds = %266
  %279 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZ19tinyfd_colorChooserE5lBuff, i64 3), align 1, !tbaa !5
  %280 = icmp eq i8 %279, 40
  br i1 %280, label %281, label %285

281:                                              ; preds = %278
  %282 = getelementptr inbounds i8, ptr %3, i64 1
  %283 = getelementptr inbounds i8, ptr %3, i64 2
  %284 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull @_ZZ19tinyfd_colorChooserE5lBuff, ptr noundef nonnull @.str.347, ptr noundef %3, ptr noundef nonnull %282, ptr noundef nonnull %283) #8
  call void @_ZL7RGB2HexPKhPc(ptr noundef %3, ptr noundef nonnull @_ZZ19tinyfd_colorChooserE5lBuff)
  br label %.loopexit

285:                                              ; preds = %278
  %286 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZ19tinyfd_colorChooserE5lBuff, i64 4), align 4, !tbaa !5
  %287 = icmp eq i8 %286, 40
  br i1 %287, label %288, label %.loopexit

288:                                              ; preds = %285
  %289 = getelementptr inbounds i8, ptr %3, i64 1
  %290 = getelementptr inbounds i8, ptr %3, i64 2
  %291 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull @_ZZ19tinyfd_colorChooserE5lBuff, ptr noundef nonnull @.str.348, ptr noundef %3, ptr noundef nonnull %289, ptr noundef nonnull %290) #8
  call void @_ZL7RGB2HexPKhPc(ptr noundef %3, ptr noundef nonnull @_ZZ19tinyfd_colorChooserE5lBuff)
  br label %.loopexit

292:                                              ; preds = %265
  %or.cond = or i1 %.not88, %249
  br i1 %or.cond, label %293, label %297

293:                                              ; preds = %292
  %294 = getelementptr inbounds i8, ptr %3, i64 1
  %295 = getelementptr inbounds i8, ptr %3, i64 2
  %296 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull @_ZZ19tinyfd_colorChooserE5lBuff, ptr noundef nonnull @.str.336, ptr noundef %3, ptr noundef nonnull %294, ptr noundef nonnull %295) #8
  call void @_ZL7RGB2HexPKhPc(ptr noundef %3, ptr noundef nonnull @_ZZ19tinyfd_colorChooserE5lBuff)
  br label %.loopexit

297:                                              ; preds = %292
  call void @_ZL7Hex2RGBPKcPh(ptr noundef nonnull @_ZZ19tinyfd_colorChooserE5lBuff, ptr noundef %3)
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader149.preheader, %.preheader149.1, %.preheader149.2, %.preheader149.3, %.preheader149.4, %.preheader149.5, %281, %288, %285, %277, %297, %293, %256, %253, %215, %217, %219, %245, %213, %198, %171, %148, %124, %117, %108, %93, %65, %23
  %.082 = phi ptr [ inttoptr (i64 1 to ptr), %23 ], [ inttoptr (i64 1 to ptr), %65 ], [ inttoptr (i64 1 to ptr), %93 ], [ inttoptr (i64 1 to ptr), %108 ], [ inttoptr (i64 1 to ptr), %117 ], [ inttoptr (i64 1 to ptr), %124 ], [ inttoptr (i64 1 to ptr), %148 ], [ inttoptr (i64 1 to ptr), %171 ], [ inttoptr (i64 1 to ptr), %198 ], [ %216, %245 ], [ %214, %213 ], [ null, %219 ], [ null, %217 ], [ null, %215 ], [ null, %253 ], [ null, %256 ], [ @_ZZ19tinyfd_colorChooserE5lBuff, %293 ], [ @_ZZ19tinyfd_colorChooserE5lBuff, %297 ], [ @_ZZ19tinyfd_colorChooserE5lBuff, %277 ], [ @_ZZ19tinyfd_colorChooserE5lBuff, %285 ], [ @_ZZ19tinyfd_colorChooserE5lBuff, %288 ], [ @_ZZ19tinyfd_colorChooserE5lBuff, %281 ], [ null, %.preheader149.5 ], [ null, %.preheader149.4 ], [ null, %.preheader149.3 ], [ null, %.preheader149.2 ], [ null, %.preheader149.1 ], [ null, %.preheader149.preheader ]
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %5) #8
  ret ptr %.082
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL7Hex2RGBPKcPh(ptr noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL7RGB2HexPKhPc(ptr noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nofree nounwind willreturn memory(read)
declare i32 @isxdigit(i32 noundef) local_unnamed_addr #7

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_sscanf(ptr nocapture noundef readonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 nofree nounwind willreturn memory(argmem: readwrite) "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 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 = { nofree 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 = { nofree nounwind memory(read) "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 = { mustprogress nofree nounwind willreturn memory(read) "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 = { nounwind willreturn memory(read) }

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}


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