; LLVM IR from hasseily/SuperDuperDisplay :: extras (ImGuiFileDialog)

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

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%struct.ImVec2 = type { float, float }
%"class.IGFD::FileDialog" = type <{ ptr, %"class.IGFD::FileDialogInternal", %struct.ImGuiListClipper, %struct.ImGuiListClipper, float, [4 x i8] }>
%"class.IGFD::FileDialogInternal" = type { %"class.IGFD::FileManager", %"class.IGFD::FilterManager", %"class.IGFD::SearchManager", %"class.std::__cxx11::basic_string", i8, %struct.ImVec2, i32, float, i8, i8, i8, i8, i8, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i8, i8, i32, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"struct.IGFD::FileDialogConfig" }
%"class.IGFD::FileManager" = type { %"class.std::__cxx11::basic_string", %"class.std::vector", %"class.std::vector.46", %"class.std::vector.46", %"class.std::vector.46", %"class.std::vector.46", %"class.__gnu_cxx::__normal_iterator.51", %"class.std::__cxx11::basic_string", %"class.std::set", i8, %"class.std::__cxx11::basic_string", %"class.std::unique_ptr", i8, i8, i8, [1024 x i8], [1024 x i8], [1024 x i8], [1024 x i8], %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", [4 x i8], i32, i8, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i64, i8, %"class.std::__cxx11::basic_string" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.46" = type { %"struct.std::_Vector_base.47" }
%"struct.std::_Vector_base.47" = type { %"struct.std::_Vector_base<std::shared_ptr<IGFD::FileInfos>, std::allocator<std::shared_ptr<IGFD::FileInfos>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<IGFD::FileInfos>, std::allocator<std::shared_ptr<IGFD::FileInfos>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<IGFD::FileInfos>, std::allocator<std::shared_ptr<IGFD::FileInfos>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<IGFD::FileInfos>, std::allocator<std::shared_ptr<IGFD::FileInfos>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.51" = type { ptr }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::_Identity<std::__cxx11::basic_string<char>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::_Identity<std::__cxx11::basic_string<char>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.56" }
%"struct.std::_Head_base.56" = type { ptr }
%"class.IGFD::FilterManager" = type { %"class.std::vector.57", %"class.std::unordered_map", %"class.std::vector.67", %"class.IGFD::FilterInfos", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string" }
%"class.std::vector.57" = type { %"struct.std::_Vector_base.58" }
%"struct.std::_Vector_base.58" = type { %"struct.std::_Vector_base<IGFD::FilterInfos, std::allocator<IGFD::FilterInfos>>::_Vector_impl" }
%"struct.std::_Vector_base<IGFD::FilterInfos, std::allocator<IGFD::FilterInfos>>::_Vector_impl" = type { %"struct.std::_Vector_base<IGFD::FilterInfos, std::allocator<IGFD::FilterInfos>>::_Vector_impl_data" }
%"struct.std::_Vector_base<IGFD::FilterInfos, std::allocator<IGFD::FilterInfos>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::vector.67" = type { %"struct.std::_Vector_base.68" }
%"struct.std::_Vector_base.68" = type { %"struct.std::_Vector_base<std::function<bool (const IGFD::FileInfos &, IGFD::FileStyle &)>, std::allocator<std::function<bool (const IGFD::FileInfos &, IGFD::FileStyle &)>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::function<bool (const IGFD::FileInfos &, IGFD::FileStyle &)>, std::allocator<std::function<bool (const IGFD::FileInfos &, IGFD::FileStyle &)>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::function<bool (const IGFD::FileInfos &, IGFD::FileStyle &)>, std::allocator<std::function<bool (const IGFD::FileInfos &, IGFD::FileStyle &)>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::function<bool (const IGFD::FileInfos &, IGFD::FileStyle &)>, std::allocator<std::function<bool (const IGFD::FileInfos &, IGFD::FileStyle &)>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.IGFD::FilterInfos" = type { %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.IGFD::SearchableVector", %"class.IGFD::SearchableVector", %"class.std::vector.92", i64 }
%"class.IGFD::SearchableVector" = type { %"class.std::unordered_map.72", %"class.std::vector" }
%"class.std::unordered_map.72" = type { %"class.std::_Hashtable.73" }
%"class.std::_Hashtable.73" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::vector.92" = type { %"struct.std::_Vector_base.93" }
%"struct.std::_Vector_base.93" = type { %"struct.std::_Vector_base<std::__cxx11::basic_regex<char>, std::allocator<std::__cxx11::basic_regex<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_regex<char>, std::allocator<std::__cxx11::basic_regex<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_regex<char>, std::allocator<std::__cxx11::basic_regex<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_regex<char>, std::allocator<std::__cxx11::basic_regex<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.IGFD::SearchManager" = type <{ %"class.std::__cxx11::basic_string", [1024 x i8], i8, [7 x i8] }>
%"struct.IGFD::FileDialogConfig" = type { %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, ptr, i32, %"class.std::function", float, %"class.std::function.97" }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.std::function.97" = type { %"class.std::_Function_base", ptr }
%struct.ImGuiListClipper = type { ptr, i32, i32, i32, float, float, ptr }

@.str.30 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [8 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: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #1 align 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 nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #2

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

declare void @_ZN5ImGui8SameLineEff(float noundef, float noundef) #3

declare void @_ZN5ImGui4TextEPKcz(ptr noundef, ...) #3

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

declare void @_ZN5ImGui9OpenPopupEPKci(ptr noundef, i32 noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #4

declare noundef zeroext i1 @_ZN5ImGui15BeginPopupModalEPKcPbi(ptr noundef, ptr noundef, i32 noundef) #3

declare void @_ZN5ImGui8EndPopupEv() #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4IGFD10FileDialog45m_Confirm_Or_OpenOverWriteFileDialog_IfNeededEbi(ptr noundef nonnull align 8 dereferenceable(6620) %0, i1 noundef zeroext %1, i32 noundef %2) #5 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca i8, align 1
  %15 = alloca %struct.ImVec2, align 4
  %16 = alloca %struct.ImVec2, align 4
  %17 = alloca %struct.ImVec2, align 4
  %18 = alloca %struct.ImVec2, align 4
  %19 = alloca %struct.ImVec2, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  %20 = zext i1 %1 to i8
  store i8 %20, ptr %6, align 1, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !11
  %21 = load ptr, ptr %5, align 8
  %22 = getelementptr inbounds %"class.IGFD::FileDialog", ptr %21, i32 0, i32 1
  %23 = getelementptr inbounds %"class.IGFD::FileDialogInternal", ptr %22, i32 0, i32 10
  %24 = load i8, ptr %23, align 2, !tbaa !13, !range !73, !noundef !74
  %25 = trunc i8 %24 to i1
  br i1 %25, label %30, label %26

26:                                               ; preds = %3
  %27 = load i8, ptr %6, align 1, !tbaa !9, !range !73, !noundef !74
  %28 = trunc i8 %27 to i1
  br i1 %28, label %29, label %30

29:                                               ; preds = %26
  call void @_ZN4IGFD10FileDialog11m_QuitFrameEv(ptr noundef nonnull align 8 dereferenceable(6620) %21)
  store i1 true, ptr %4, align 1
  br label %176

30:                                               ; preds = %26, %3
  %31 = getelementptr inbounds %"class.IGFD::FileDialog", ptr %21, i32 0, i32 1
  %32 = getelementptr inbounds %"class.IGFD::FileDialogInternal", ptr %31, i32 0, i32 10
  %33 = load i8, ptr %32, align 2, !tbaa !13, !range !73, !noundef !74
  %34 = trunc i8 %33 to i1
  br i1 %34, label %35, label %46

35:                                               ; preds = %30
  %36 = load i8, ptr %6, align 1, !tbaa !9, !range !73, !noundef !74
  %37 = trunc i8 %36 to i1
  br i1 %37, label %38, label %46

38:                                               ; preds = %35
  %39 = getelementptr inbounds %"class.IGFD::FileDialog", ptr %21, i32 0, i32 1
  %40 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNK4IGFD18FileDialogInternal15getDialogConfigEv(ptr noundef nonnull align 8 dereferenceable(6528) %39)
  %41 = getelementptr inbounds %"struct.IGFD::FileDialogConfig", ptr %40, i32 0, i32 5
  %42 = load i32, ptr %41, align 8, !tbaa !75
  %43 = and i32 %42, 1
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %46, label %45

45:                                               ; preds = %38
  call void @_ZN4IGFD10FileDialog11m_QuitFrameEv(ptr noundef nonnull align 8 dereferenceable(6620) %21)
  store i1 true, ptr %4, align 1
  br label %176

46:                                               ; preds = %38, %35, %30
  %47 = getelementptr inbounds %"class.IGFD::FileDialog", ptr %21, i32 0, i32 1
  %48 = getelementptr inbounds %"class.IGFD::FileDialogInternal", ptr %47, i32 0, i32 9
  %49 = load i8, ptr %48, align 1, !tbaa !76, !range !73, !noundef !74
  %50 = trunc i8 %49 to i1
  br i1 %50, label %59, label %51

51:                                               ; preds = %46
  %52 = getelementptr inbounds %"class.IGFD::FileDialog", ptr %21, i32 0, i32 1
  %53 = getelementptr inbounds %"class.IGFD::FileDialogInternal", ptr %52, i32 0, i32 10
  %54 = load i8, ptr %53, align 2, !tbaa !13, !range !73, !noundef !74
  %55 = trunc i8 %54 to i1
  br i1 %55, label %56, label %175

56:                                               ; preds = %51
  %57 = load i8, ptr %6, align 1, !tbaa !9, !range !73, !noundef !74
  %58 = trunc i8 %57 to i1
  br i1 %58, label %59, label %175

59:                                               ; preds = %56, %46
  %60 = getelementptr inbounds %"class.IGFD::FileDialog", ptr %21, i32 0, i32 1
  %61 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNK4IGFD18FileDialogInternal15getDialogConfigEv(ptr noundef nonnull align 8 dereferenceable(6528) %60)
  %62 = getelementptr inbounds %"struct.IGFD::FileDialogConfig", ptr %61, i32 0, i32 5
  %63 = load i32, ptr %62, align 8, !tbaa !75
  %64 = and i32 %63, 1
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %175

66:                                               ; preds = %59
  %67 = getelementptr inbounds %"class.IGFD::FileDialog", ptr %21, i32 0, i32 1
  %68 = getelementptr inbounds %"class.IGFD::FileDialogInternal", ptr %67, i32 0, i32 10
  %69 = load i8, ptr %68, align 2, !tbaa !13, !range !73, !noundef !74
  %70 = trunc i8 %69 to i1
  br i1 %70, label %71, label %92

71:                                               ; preds = %66
  %72 = getelementptr inbounds %"class.IGFD::FileDialog", ptr %21, i32 0, i32 1
  %73 = getelementptr inbounds %"class.IGFD::FileDialogInternal", ptr %72, i32 0, i32 0
  %74 = call noundef ptr @_ZN4IGFD11FileManager21GetFileSystemInstanceEv(ptr noundef nonnull align 8 dereferenceable(4648) %73)
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #7
  call void @_ZN4IGFD10FileDialog15GetFilePathNameB5cxx11Ei(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull align 8 dereferenceable(6620) %21, i32 noundef 0)
  %75 = load ptr, ptr %74, align 8, !tbaa !77
  %76 = getelementptr inbounds ptr, ptr %75, i64 4
  %77 = load ptr, ptr %76, align 8
  %78 = invoke noundef zeroext i1 %77(ptr noundef nonnull align 8 dereferenceable(8) %74, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %79 unwind label %82

79:                                               ; preds = %71
  %80 = xor i1 %78, true
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #7
  br i1 %80, label %81, label %86

81:                                               ; preds = %79
  call void @_ZN4IGFD10FileDialog11m_QuitFrameEv(ptr noundef nonnull align 8 dereferenceable(6620) %21)
  store i1 true, ptr %4, align 1
  br label %176

82:                                               ; preds = %71
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %9, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #7
  br label %178

86:                                               ; preds = %79
  %87 = getelementptr inbounds %"class.IGFD::FileDialog", ptr %21, i32 0, i32 1
  %88 = getelementptr inbounds %"class.IGFD::FileDialogInternal", ptr %87, i32 0, i32 10
  store i8 0, ptr %88, align 2, !tbaa !13
  %89 = getelementptr inbounds %"class.IGFD::FileDialog", ptr %21, i32 0, i32 1
  %90 = getelementptr inbounds %"class.IGFD::FileDialogInternal", ptr %89, i32 0, i32 9
  store i8 1, ptr %90, align 1, !tbaa !76
  br label %91

91:                                               ; preds = %86
  br label %92

92:                                               ; preds = %91, %66
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #7
  %93 = getelementptr inbounds %"class.IGFD::FileDialog", ptr %21, i32 0, i32 1
  %94 = getelementptr inbounds %"class.IGFD::FileDialogInternal", ptr %93, i32 0, i32 14
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %13, ptr noundef @.str.57, ptr noundef nonnull align 8 dereferenceable(32) %94)
  %95 = getelementptr inbounds %"class.IGFD::FileDialog", ptr %21, i32 0, i32 1
  %96 = getelementptr inbounds %"class.IGFD::FileDialogInternal", ptr %95, i32 0, i32 13
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %12, ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(32) %96)
          to label %97 unwind label %128

97:                                               ; preds = %92
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %11, ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef @.str.58)
          to label %98 unwind label %132

98:                                               ; preds = %97
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #7
  store i8 0, ptr %14, align 1, !tbaa !9
  %99 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  invoke void @_ZN5ImGui9OpenPopupEPKci(ptr noundef %99, i32 noundef 0)
          to label %100 unwind label %137

100:                                              ; preds = %98
  %101 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  %102 = load i32, ptr %7, align 4, !tbaa !11
  %103 = or i32 %102, 64
  %104 = or i32 %103, 2
  %105 = or i32 %104, 4
  %106 = invoke noundef zeroext i1 @_ZN5ImGui15BeginPopupModalEPKcPbi(ptr noundef %101, ptr noundef null, i32 noundef %105)
          to label %107 unwind label %137

107:                                              ; preds = %100
  br i1 %106, label %108, label %166

108:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %109 = getelementptr inbounds %"class.IGFD::FileDialog", ptr %21, i32 0, i32 1
  %110 = getelementptr inbounds %"class.IGFD::FileDialogInternal", ptr %109, i32 0, i32 5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %111 = invoke <2 x float> @_ZN5ImGui13GetWindowSizeEv()
          to label %112 unwind label %141

112:                                              ; preds = %108
  store <2 x float> %111, ptr %17, align 4
  %113 = invoke <2 x float> @_ZmlRK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(8) %17, float noundef 5.000000e-01)
          to label %114 unwind label %141

114:                                              ; preds = %112
  store <2 x float> %113, ptr %16, align 4
  %115 = invoke <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %110, ptr noundef nonnull align 4 dereferenceable(8) %16)
          to label %116 unwind label %141

116:                                              ; preds = %114
  store <2 x float> %115, ptr %15, align 4
  invoke void @_ZN5ImGui12SetWindowPosERK6ImVec2i(ptr noundef nonnull align 4 dereferenceable(8) %15, i32 noundef 0)
          to label %117 unwind label %141

117:                                              ; preds = %116
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  invoke void (ptr, ...) @_ZN5ImGui4TextEPKcz(ptr noundef @.str.30, ptr noundef @.str.59)
          to label %118 unwind label %137

118:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  invoke void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %18, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %119 unwind label %145

119:                                              ; preds = %118
  %120 = invoke noundef zeroext i1 @_ZN5ImGui6ButtonEPKcRK6ImVec2(ptr noundef @.str.60, ptr noundef nonnull align 4 dereferenceable(8) %18)
          to label %121 unwind label %145

121:                                              ; preds = %119
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br i1 %120, label %122, label %149

122:                                              ; preds = %121
  %123 = getelementptr inbounds %"class.IGFD::FileDialog", ptr %21, i32 0, i32 1
  %124 = getelementptr inbounds %"class.IGFD::FileDialogInternal", ptr %123, i32 0, i32 9
  store i8 0, ptr %124, align 1, !tbaa !76
  %125 = getelementptr inbounds %"class.IGFD::FileDialog", ptr %21, i32 0, i32 1
  %126 = getelementptr inbounds %"class.IGFD::FileDialogInternal", ptr %125, i32 0, i32 10
  store i8 1, ptr %126, align 2, !tbaa !13
  store i8 1, ptr %14, align 1, !tbaa !9
  invoke void @_ZN5ImGui17CloseCurrentPopupEv()
          to label %127 unwind label %137

127:                                              ; preds = %122
  br label %149

128:                                              ; preds = %92
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %9, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %10, align 4
  br label %136

132:                                              ; preds = %97
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %9, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  br label %136

136:                                              ; preds = %132, %128
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #7
  br label %174

137:                                              ; preds = %164, %154, %149, %122, %117, %100, %98
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %9, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %10, align 4
  br label %173

141:                                              ; preds = %116, %114, %112, %108
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %9, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %173

145:                                              ; preds = %119, %118
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %9, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %173

149:                                              ; preds = %127, %121
  invoke void @_ZN5ImGui8SameLineEff(float noundef 0.000000e+00, float noundef -1.000000e+00)
          to label %150 unwind label %137

150:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  invoke void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %19, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %151 unwind label %160

151:                                              ; preds = %150
  %152 = invoke noundef zeroext i1 @_ZN5ImGui6ButtonEPKcRK6ImVec2(ptr noundef @.str.36, ptr noundef nonnull align 4 dereferenceable(8) %19)
          to label %153 unwind label %160

153:                                              ; preds = %151
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br i1 %152, label %154, label %164

154:                                              ; preds = %153
  %155 = getelementptr inbounds %"class.IGFD::FileDialog", ptr %21, i32 0, i32 1
  %156 = getelementptr inbounds %"class.IGFD::FileDialogInternal", ptr %155, i32 0, i32 9
  store i8 0, ptr %156, align 1, !tbaa !76
  %157 = getelementptr inbounds %"class.IGFD::FileDialog", ptr %21, i32 0, i32 1
  %158 = getelementptr inbounds %"class.IGFD::FileDialogInternal", ptr %157, i32 0, i32 10
  store i8 0, ptr %158, align 2, !tbaa !13
  store i8 0, ptr %14, align 1, !tbaa !9
  invoke void @_ZN5ImGui17CloseCurrentPopupEv()
          to label %159 unwind label %137

159:                                              ; preds = %154
  br label %164

160:                                              ; preds = %151, %150
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %9, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %173

164:                                              ; preds = %159, %153
  invoke void @_ZN5ImGui8EndPopupEv()
          to label %165 unwind label %137

165:                                              ; preds = %164
  br label %166

166:                                              ; preds = %165, %107
  %167 = load i8, ptr %14, align 1, !tbaa !9, !range !73, !noundef !74
  %168 = trunc i8 %167 to i1
  br i1 %168, label %169, label %170

169:                                              ; preds = %166
  call void @_ZN4IGFD10FileDialog11m_QuitFrameEv(ptr noundef nonnull align 8 dereferenceable(6620) %21)
  br label %170

170:                                              ; preds = %169, %166
  %171 = load i8, ptr %14, align 1, !tbaa !9, !range !73, !noundef !74
  %172 = trunc i8 %171 to i1
  store i1 %172, ptr %4, align 1
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #7
  br label %176

173:                                              ; preds = %160, %145, %141, %137
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  br label %174

174:                                              ; preds = %173, %136
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #7
  br label %178

175:                                              ; preds = %59, %56, %51
  store i1 false, ptr %4, align 1
  br label %176

176:                                              ; preds = %175, %170, %81, %45, %29
  %177 = load i1, ptr %4, align 1
  ret i1 %177

178:                                              ; preds = %174, %82
  %179 = load ptr, ptr %9, align 8
  %180 = load i32, ptr %10, align 4
  %181 = insertvalue { ptr, i32 } poison, ptr %179, 0
  %182 = insertvalue { ptr, i32 } %181, i32 %180, 1
  resume { ptr, i32 } %182
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #6

declare void @_ZN5ImGui17CloseCurrentPopupEv() #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4IGFD10FileDialog15GetFilePathNameB5cxx11Ei(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(6620), i32 noundef) #4 align 2

declare void @_ZN5ImGui12SetWindowPosERK6ImVec2i(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZmlRK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(8), float noundef) #6

declare <2 x float> @_ZN5ImGui13GetWindowSizeEv() #3

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !10, i64 6198}
!14 = !{!"_ZTSN4IGFD10FileDialogE", !15, i64 8, !72, i64 6536, !72, i64 6576, !53, i64 6616}
!15 = !{!"_ZTSN4IGFD18FileDialogInternalE", !16, i64 0, !44, i64 4648, !66, i64 5072, !17, i64 6136, !10, i64 6168, !67, i64 6172, !12, i64 6180, !53, i64 6184, !10, i64 6188, !10, i64 6189, !10, i64 6190, !10, i64 6191, !10, i64 6192, !17, i64 6200, !17, i64 6232, !10, i64 6264, !10, i64 6265, !12, i64 6268, !17, i64 6272, !17, i64 6304, !68, i64 6336}
!16 = !{!"_ZTSN4IGFD11FileManagerE", !17, i64 0, !20, i64 32, !24, i64 56, !24, i64 80, !24, i64 104, !24, i64 128, !28, i64 152, !17, i64 160, !29, i64 192, !10, i64 240, !17, i64 248, !37, i64 280, !10, i64 288, !10, i64 289, !10, i64 290, !7, i64 291, !7, i64 1315, !7, i64 2339, !7, i64 3363, !17, i64 4392, !17, i64 4424, !17, i64 4456, !17, i64 4488, !7, i64 4520, !43, i64 4524, !10, i64 4528, !17, i64 4536, !17, i64 4568, !19, i64 4600, !10, i64 4608, !17, i64 4616}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !18, i64 0, !19, i64 8, !7, i64 16}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"_ZTSSt6vectorISt10shared_ptrIN4IGFD9FileInfosEESaIS3_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrIN4IGFD9FileInfosEESaIS3_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN4IGFD9FileInfosEESaIS3_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN4IGFD9FileInfosEESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!28 = !{!"_ZTSN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEE", !6, i64 0}
!29 = !{!"_ZTSSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE", !30, i64 0}
!30 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St9_IdentityIS5_ESt4lessIS5_ESaIS5_EE", !31, i64 0}
!31 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St9_IdentityIS5_ESt4lessIS5_ESaIS5_EE13_Rb_tree_implIS9_Lb1EEE", !32, i64 0, !34, i64 8}
!32 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !33, i64 0}
!33 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!34 = !{!"_ZTSSt15_Rb_tree_header", !35, i64 0, !19, i64 32}
!35 = !{!"_ZTSSt18_Rb_tree_node_base", !36, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!36 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!37 = !{!"_ZTSSt10unique_ptrIN4IGFD11IFileSystemESt14default_deleteIS1_EE", !38, i64 0}
!38 = !{!"_ZTSSt15__uniq_ptr_dataIN4IGFD11IFileSystemESt14default_deleteIS1_ELb1ELb1EE", !39, i64 0}
!39 = !{!"_ZTSSt15__uniq_ptr_implIN4IGFD11IFileSystemESt14default_deleteIS1_EE", !40, i64 0}
!40 = !{!"_ZTSSt5tupleIJPN4IGFD11IFileSystemESt14default_deleteIS1_EEE", !41, i64 0}
!41 = !{!"_ZTSSt11_Tuple_implILm0EJPN4IGFD11IFileSystemESt14default_deleteIS1_EEE", !42, i64 0}
!42 = !{!"_ZTSSt10_Head_baseILm0EPN4IGFD11IFileSystemELb0EE", !6, i64 0}
!43 = !{!"_ZTSN4IGFD11FileManager16SortingFieldEnumE", !7, i64 0}
!44 = !{!"_ZTSN4IGFD13FilterManagerE", !45, i64 0, !49, i64 24, !54, i64 80, !58, i64 104, !17, i64 360, !17, i64 392}
!45 = !{!"_ZTSSt6vectorIN4IGFD11FilterInfosESaIS1_EE", !46, i64 0}
!46 = !{!"_ZTSSt12_Vector_baseIN4IGFD11FilterInfosESaIS1_EE", !47, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseIN4IGFD11FilterInfosESaIS1_EE12_Vector_implE", !48, i64 0}
!48 = !{!"_ZTSNSt12_Vector_baseIN4IGFD11FilterInfosESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!49 = !{!"_ZTSSt13unordered_mapIiS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN4IGFD9FileStyleEESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S9_EEESA_IiESC_IiESaISE_IKiSI_EEE", !50, i64 0}
!50 = !{!"_ZTSSt10_HashtableIiSt4pairIKiSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN4IGFD9FileStyleEESt4hashIS8_ESt8equal_toIS8_ESaIS0_IKS8_SC_EEEESaISL_ENSt8__detail10_Select1stESF_IiESD_IiENSN_18_Mod_range_hashingENSN_20_Default_ranged_hashENSN_20_Prime_rehash_policyENSN_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !19, i64 8, !51, i64 16, !19, i64 24, !52, i64 32, !6, i64 48}
!51 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!52 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !53, i64 0, !19, i64 8}
!53 = !{!"float", !7, i64 0}
!54 = !{!"_ZTSSt6vectorISt8functionIFbRKN4IGFD9FileInfosERNS1_9FileStyleEEESaIS8_EE", !55, i64 0}
!55 = !{!"_ZTSSt12_Vector_baseISt8functionIFbRKN4IGFD9FileInfosERNS1_9FileStyleEEESaIS8_EE", !56, i64 0}
!56 = !{!"_ZTSNSt12_Vector_baseISt8functionIFbRKN4IGFD9FileInfosERNS1_9FileStyleEEESaIS8_EE12_Vector_implE", !57, i64 0}
!57 = !{!"_ZTSNSt12_Vector_baseISt8functionIFbRKN4IGFD9FileInfosERNS1_9FileStyleEEESaIS8_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!58 = !{!"_ZTSN4IGFD11FilterInfosE", !17, i64 0, !17, i64 32, !59, i64 64, !59, i64 144, !62, i64 224, !19, i64 248}
!59 = !{!"_ZTSN4IGFD16SearchableVectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !60, i64 0, !20, i64 56}
!60 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_mEEE", !61, i64 0}
!61 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESaIS8_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !19, i64 8, !51, i64 16, !19, i64 24, !52, i64 32, !6, i64 48}
!62 = !{!"_ZTSSt6vectorINSt7__cxx1111basic_regexIcNS0_12regex_traitsIcEEEESaIS4_EE", !63, i64 0}
!63 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1111basic_regexIcNS0_12regex_traitsIcEEEESaIS4_EE", !64, i64 0}
!64 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1111basic_regexIcNS0_12regex_traitsIcEEEESaIS4_EE12_Vector_implE", !65, i64 0}
!65 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1111basic_regexIcNS0_12regex_traitsIcEEEESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!66 = !{!"_ZTSN4IGFD13SearchManagerE", !17, i64 0, !7, i64 32, !10, i64 1056}
!67 = !{!"_ZTS6ImVec2", !53, i64 0, !53, i64 4}
!68 = !{!"_ZTSN4IGFD16FileDialogConfigE", !17, i64 0, !17, i64 32, !17, i64 64, !12, i64 96, !6, i64 104, !12, i64 112, !69, i64 120, !53, i64 152, !71, i64 160}
!69 = !{!"_ZTSSt8functionIFvPKcPvPbEE", !70, i64 0, !6, i64 24}
!70 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!71 = !{!"_ZTSSt8functionIFbPN4IGFD9FileInfosEPvEE", !70, i64 0, !6, i64 24}
!72 = !{!"_ZTS16ImGuiListClipper", !6, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !53, i64 20, !53, i64 24, !6, i64 32}
!73 = !{i8 0, i8 2}
!74 = !{}
!75 = !{!68, !12, i64 112}
!76 = !{!14, !10, i64 6197}
!77 = !{!78, !78, i64 0}
!78 = !{!"vtable pointer", !8, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%struct.ImVec2 = type { float, float }

@.str.30 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [8 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 nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #1 align 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 nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #2

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

declare void @_ZN5ImGui8SameLineEff(float noundef, float noundef) local_unnamed_addr #3

declare void @_ZN5ImGui4TextEPKcz(ptr noundef, ...) local_unnamed_addr #3

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

declare void @_ZN5ImGui9OpenPopupEPKci(ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

declare noundef zeroext i1 @_ZN5ImGui15BeginPopupModalEPKcPbi(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare void @_ZN5ImGui8EndPopupEv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4IGFD10FileDialog45m_Confirm_Or_OpenOverWriteFileDialog_IfNeededEbi(ptr noundef nonnull align 8 dereferenceable(6620) %0, i1 noundef zeroext %1, i32 noundef %2) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %struct.ImVec2, align 8
  %9 = alloca %struct.ImVec2, align 8
  %10 = alloca %struct.ImVec2, align 8
  %11 = alloca %struct.ImVec2, align 4
  %12 = alloca %struct.ImVec2, align 4
  %13 = getelementptr inbounds i8, ptr %0, i64 8
  %14 = getelementptr inbounds i8, ptr %0, i64 6198
  %15 = load i8, ptr %14, align 2, !range !5, !noundef !6
  %16 = trunc nuw i8 %15 to i1
  %.not23 = xor i1 %1, true
  %brmerge = or i1 %.not23, %16
  br i1 %brmerge, label %18, label %17

17:                                               ; preds = %3
  tail call void @_ZN4IGFD10FileDialog11m_QuitFrameEv(ptr noundef nonnull align 8 dereferenceable(6620) %0)
  br label %95

18:                                               ; preds = %3
  %brmerge26.not = and i1 %16, %1
  br i1 %brmerge26.not, label %19, label %25

19:                                               ; preds = %18
  %20 = tail call noundef nonnull align 8 dereferenceable(192) ptr @_ZNK4IGFD18FileDialogInternal15getDialogConfigEv(ptr noundef nonnull align 8 dereferenceable(6528) %13)
  %21 = getelementptr inbounds i8, ptr %20, i64 112
  %22 = load i32, ptr %21, align 8, !tbaa !7
  %23 = and i32 %22, 1
  %.not = icmp eq i32 %23, 0
  br i1 %.not, label %24, label %._crit_edge

._crit_edge:                                      ; preds = %19
  %.pre = load i8, ptr %14, align 2, !range !5
  %.pre33 = trunc nuw i8 %.pre to i1
  %.pre34 = and i1 %.pre33, %1
  br label %25

24:                                               ; preds = %19
  tail call void @_ZN4IGFD10FileDialog11m_QuitFrameEv(ptr noundef nonnull align 8 dereferenceable(6620) %0)
  br label %95

25:                                               ; preds = %._crit_edge, %18
  %brmerge29.not.pre-phi = phi i1 [ %.pre34, %._crit_edge ], [ false, %18 ]
  %26 = getelementptr inbounds i8, ptr %0, i64 6197
  %27 = load i8, ptr %26, align 1, !tbaa !20, !range !5, !noundef !6
  %28 = trunc nuw i8 %27 to i1
  %or.cond = select i1 %28, i1 true, i1 %brmerge29.not.pre-phi
  br i1 %or.cond, label %29, label %95

29:                                               ; preds = %25
  %30 = tail call noundef nonnull align 8 dereferenceable(192) ptr @_ZNK4IGFD18FileDialogInternal15getDialogConfigEv(ptr noundef nonnull align 8 dereferenceable(6528) %13)
  %31 = getelementptr inbounds i8, ptr %30, i64 112
  %32 = load i32, ptr %31, align 8, !tbaa !7
  %33 = and i32 %32, 1
  %.not17 = icmp eq i32 %33, 0
  br i1 %.not17, label %95, label %34

34:                                               ; preds = %29
  %35 = load i8, ptr %14, align 2, !tbaa !73, !range !5, !noundef !6
  %36 = trunc nuw i8 %35 to i1
  br i1 %36, label %37, label %48

37:                                               ; preds = %34
  %38 = tail call noundef ptr @_ZN4IGFD11FileManager21GetFileSystemInstanceEv(ptr noundef nonnull align 8 dereferenceable(4648) %13)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #7
  call void @_ZN4IGFD10FileDialog15GetFilePathNameB5cxx11Ei(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef nonnull align 8 dereferenceable(6620) %0, i32 noundef 0)
  %39 = load ptr, ptr %38, align 8, !tbaa !74
  %40 = getelementptr inbounds i8, ptr %39, i64 32
  %41 = load ptr, ptr %40, align 8
  %42 = invoke noundef zeroext i1 %41(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %43 unwind label %45

43:                                               ; preds = %37
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #7
  br i1 %42, label %47, label %44

44:                                               ; preds = %43
  call void @_ZN4IGFD10FileDialog11m_QuitFrameEv(ptr noundef nonnull align 8 dereferenceable(6620) %0)
  br label %95

45:                                               ; preds = %37
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #7
  br label %96

47:                                               ; preds = %43
  store i8 0, ptr %14, align 2, !tbaa !73
  store i8 1, ptr %26, align 1, !tbaa !20
  br label %48

48:                                               ; preds = %47, %34
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #7
  %49 = getelementptr inbounds i8, ptr %0, i64 6240
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %7, ptr noundef nonnull @.str.57, ptr noundef nonnull align 8 dereferenceable(32) %49)
  %50 = getelementptr inbounds i8, ptr %0, i64 6208
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %6, ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %50)
          to label %51 unwind label %72

51:                                               ; preds = %48
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull @.str.58)
          to label %52 unwind label %74

52:                                               ; preds = %51
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  %53 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  invoke void @_ZN5ImGui9OpenPopupEPKci(ptr noundef %53, i32 noundef 0)
          to label %54 unwind label %77

54:                                               ; preds = %52
  %55 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  %56 = or i32 %2, 70
  %57 = invoke noundef zeroext i1 @_ZN5ImGui15BeginPopupModalEPKcPbi(ptr noundef %55, ptr noundef null, i32 noundef %56)
          to label %58 unwind label %77

58:                                               ; preds = %54
  br i1 %57, label %59, label %.thread

59:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %60 = getelementptr inbounds i8, ptr %0, i64 6180
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %61 = invoke <2 x float> @_ZN5ImGui13GetWindowSizeEv()
          to label %62 unwind label %79

62:                                               ; preds = %59
  store <2 x float> %61, ptr %10, align 8
  %63 = invoke <2 x float> @_ZmlRK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(8) %10, float noundef 5.000000e-01)
          to label %64 unwind label %79

64:                                               ; preds = %62
  store <2 x float> %63, ptr %9, align 8
  %65 = invoke <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %60, ptr noundef nonnull align 4 dereferenceable(8) %9)
          to label %66 unwind label %79

66:                                               ; preds = %64
  store <2 x float> %65, ptr %8, align 8
  invoke void @_ZN5ImGui12SetWindowPosERK6ImVec2i(ptr noundef nonnull align 4 dereferenceable(8) %8, i32 noundef 0)
          to label %67 unwind label %79

67:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  invoke void (ptr, ...) @_ZN5ImGui4TextEPKcz(ptr noundef nonnull @.str.30, ptr noundef nonnull @.str.59)
          to label %68 unwind label %77

68:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %11, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %69 = invoke noundef zeroext i1 @_ZN5ImGui6ButtonEPKcRK6ImVec2(ptr noundef nonnull @.str.60, ptr noundef nonnull align 4 dereferenceable(8) %11)
          to label %70 unwind label %81

70:                                               ; preds = %68
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  br i1 %69, label %71, label %83

71:                                               ; preds = %70
  store i8 0, ptr %26, align 1, !tbaa !20
  store i8 1, ptr %14, align 2, !tbaa !73
  invoke void @_ZN5ImGui17CloseCurrentPopupEv()
          to label %83 unwind label %77

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

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

76:                                               ; preds = %74, %72
  %.pn = phi { ptr, i32 } [ %75, %74 ], [ %73, %72 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  br label %94

77:                                               ; preds = %90, %87, %83, %71, %67, %54, %52
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %93

79:                                               ; preds = %66, %64, %62, %59
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br label %93

81:                                               ; preds = %68
  %82 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  br label %93

83:                                               ; preds = %71, %70
  invoke void @_ZN5ImGui8SameLineEff(float noundef 0.000000e+00, float noundef -1.000000e+00)
          to label %84 unwind label %77

84:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %12, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %85 = invoke noundef zeroext i1 @_ZN5ImGui6ButtonEPKcRK6ImVec2(ptr noundef nonnull @.str.36, ptr noundef nonnull align 4 dereferenceable(8) %12)
          to label %86 unwind label %88

86:                                               ; preds = %84
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  br i1 %85, label %87, label %90

87:                                               ; preds = %86
  store i8 0, ptr %26, align 1, !tbaa !20
  store i8 0, ptr %14, align 2, !tbaa !73
  invoke void @_ZN5ImGui17CloseCurrentPopupEv()
          to label %90 unwind label %77

88:                                               ; preds = %84
  %89 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  br label %93

90:                                               ; preds = %87, %86
  %.1 = phi i1 [ false, %87 ], [ %69, %86 ]
  invoke void @_ZN5ImGui8EndPopupEv()
          to label %91 unwind label %77

91:                                               ; preds = %90
  br i1 %.1, label %92, label %.thread

92:                                               ; preds = %91
  call void @_ZN4IGFD10FileDialog11m_QuitFrameEv(ptr noundef nonnull align 8 dereferenceable(6620) %0)
  br label %.thread

.thread:                                          ; preds = %58, %92, %91
  %.231 = phi i1 [ true, %92 ], [ false, %91 ], [ false, %58 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #7
  br label %95

93:                                               ; preds = %88, %81, %79, %77
  %.pn19 = phi { ptr, i32 } [ %78, %77 ], [ %89, %88 ], [ %82, %81 ], [ %80, %79 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  br label %94

94:                                               ; preds = %93, %76
  %.pn19.pn = phi { ptr, i32 } [ %.pn19, %93 ], [ %.pn, %76 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #7
  br label %96

95:                                               ; preds = %25, %29, %.thread, %44, %24, %17
  %.016 = phi i1 [ true, %44 ], [ %.231, %.thread ], [ true, %24 ], [ true, %17 ], [ false, %29 ], [ false, %25 ]
  ret i1 %.016

96:                                               ; preds = %94, %45
  %.pn19.pn.pn = phi { ptr, i32 } [ %.pn19.pn, %94 ], [ %46, %45 ]
  resume { ptr, i32 } %.pn19.pn.pn
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #6

declare void @_ZN5ImGui17CloseCurrentPopupEv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4IGFD10FileDialog15GetFilePathNameB5cxx11Ei(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(6620), i32 noundef) local_unnamed_addr #4 align 2

declare void @_ZN5ImGui12SetWindowPosERK6ImVec2i(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZmlRK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(8), float noundef) local_unnamed_addr #6

declare <2 x float> @_ZN5ImGui13GetWindowSizeEv() local_unnamed_addr #3

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

!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 = !{i8 0, i8 2}
!6 = !{}
!7 = !{!8, !15, i64 112}
!8 = !{!"_ZTSN4IGFD16FileDialogConfigE", !9, i64 0, !9, i64 32, !9, i64 64, !15, i64 96, !11, i64 104, !15, i64 112, !16, i64 120, !18, i64 152, !19, i64 160}
!9 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !10, i64 0, !14, i64 8, !12, i64 16}
!10 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !11, i64 0}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"long", !12, i64 0}
!15 = !{!"int", !12, i64 0}
!16 = !{!"_ZTSSt8functionIFvPKcPvPbEE", !17, i64 0, !11, i64 24}
!17 = !{!"_ZTSSt14_Function_base", !12, i64 0, !11, i64 16}
!18 = !{!"float", !12, i64 0}
!19 = !{!"_ZTSSt8functionIFbPN4IGFD9FileInfosEPvEE", !17, i64 0, !11, i64 24}
!20 = !{!21, !41, i64 6197}
!21 = !{!"_ZTSN4IGFD10FileDialogE", !22, i64 8, !72, i64 6536, !72, i64 6576, !18, i64 6616}
!22 = !{!"_ZTSN4IGFD18FileDialogInternalE", !23, i64 0, !49, i64 4648, !70, i64 5072, !9, i64 6136, !41, i64 6168, !71, i64 6172, !15, i64 6180, !18, i64 6184, !41, i64 6188, !41, i64 6189, !41, i64 6190, !41, i64 6191, !41, i64 6192, !9, i64 6200, !9, i64 6232, !41, i64 6264, !41, i64 6265, !15, i64 6268, !9, i64 6272, !9, i64 6304, !8, i64 6336}
!23 = !{!"_ZTSN4IGFD11FileManagerE", !9, i64 0, !24, i64 32, !28, i64 56, !28, i64 80, !28, i64 104, !28, i64 128, !32, i64 152, !9, i64 160, !33, i64 192, !41, i64 240, !9, i64 248, !42, i64 280, !41, i64 288, !41, i64 289, !41, i64 290, !12, i64 291, !12, i64 1315, !12, i64 2339, !12, i64 3363, !9, i64 4392, !9, i64 4424, !9, i64 4456, !9, i64 4488, !12, i64 4520, !48, i64 4524, !41, i64 4528, !9, i64 4536, !9, i64 4568, !14, i64 4600, !41, i64 4608, !9, i64 4616}
!24 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!28 = !{!"_ZTSSt6vectorISt10shared_ptrIN4IGFD9FileInfosEESaIS3_EE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrIN4IGFD9FileInfosEESaIS3_EE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN4IGFD9FileInfosEESaIS3_EE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN4IGFD9FileInfosEESaIS3_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!32 = !{!"_ZTSN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEE", !11, i64 0}
!33 = !{!"_ZTSSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE", !34, i64 0}
!34 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St9_IdentityIS5_ESt4lessIS5_ESaIS5_EE", !35, i64 0}
!35 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St9_IdentityIS5_ESt4lessIS5_ESaIS5_EE13_Rb_tree_implIS9_Lb1EEE", !36, i64 0, !38, i64 8}
!36 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !37, i64 0}
!37 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!38 = !{!"_ZTSSt15_Rb_tree_header", !39, i64 0, !14, i64 32}
!39 = !{!"_ZTSSt18_Rb_tree_node_base", !40, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!40 = !{!"_ZTSSt14_Rb_tree_color", !12, i64 0}
!41 = !{!"bool", !12, i64 0}
!42 = !{!"_ZTSSt10unique_ptrIN4IGFD11IFileSystemESt14default_deleteIS1_EE", !43, i64 0}
!43 = !{!"_ZTSSt15__uniq_ptr_dataIN4IGFD11IFileSystemESt14default_deleteIS1_ELb1ELb1EE", !44, i64 0}
!44 = !{!"_ZTSSt15__uniq_ptr_implIN4IGFD11IFileSystemESt14default_deleteIS1_EE", !45, i64 0}
!45 = !{!"_ZTSSt5tupleIJPN4IGFD11IFileSystemESt14default_deleteIS1_EEE", !46, i64 0}
!46 = !{!"_ZTSSt11_Tuple_implILm0EJPN4IGFD11IFileSystemESt14default_deleteIS1_EEE", !47, i64 0}
!47 = !{!"_ZTSSt10_Head_baseILm0EPN4IGFD11IFileSystemELb0EE", !11, i64 0}
!48 = !{!"_ZTSN4IGFD11FileManager16SortingFieldEnumE", !12, i64 0}
!49 = !{!"_ZTSN4IGFD13FilterManagerE", !50, i64 0, !54, i64 24, !58, i64 80, !62, i64 104, !9, i64 360, !9, i64 392}
!50 = !{!"_ZTSSt6vectorIN4IGFD11FilterInfosESaIS1_EE", !51, i64 0}
!51 = !{!"_ZTSSt12_Vector_baseIN4IGFD11FilterInfosESaIS1_EE", !52, i64 0}
!52 = !{!"_ZTSNSt12_Vector_baseIN4IGFD11FilterInfosESaIS1_EE12_Vector_implE", !53, i64 0}
!53 = !{!"_ZTSNSt12_Vector_baseIN4IGFD11FilterInfosESaIS1_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!54 = !{!"_ZTSSt13unordered_mapIiS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN4IGFD9FileStyleEESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S9_EEESA_IiESC_IiESaISE_IKiSI_EEE", !55, i64 0}
!55 = !{!"_ZTSSt10_HashtableIiSt4pairIKiSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN4IGFD9FileStyleEESt4hashIS8_ESt8equal_toIS8_ESaIS0_IKS8_SC_EEEESaISL_ENSt8__detail10_Select1stESF_IiESD_IiENSN_18_Mod_range_hashingENSN_20_Default_ranged_hashENSN_20_Prime_rehash_policyENSN_17_Hashtable_traitsILb0ELb0ELb1EEEE", !11, i64 0, !14, i64 8, !56, i64 16, !14, i64 24, !57, i64 32, !11, i64 48}
!56 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !11, i64 0}
!57 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !18, i64 0, !14, i64 8}
!58 = !{!"_ZTSSt6vectorISt8functionIFbRKN4IGFD9FileInfosERNS1_9FileStyleEEESaIS8_EE", !59, i64 0}
!59 = !{!"_ZTSSt12_Vector_baseISt8functionIFbRKN4IGFD9FileInfosERNS1_9FileStyleEEESaIS8_EE", !60, i64 0}
!60 = !{!"_ZTSNSt12_Vector_baseISt8functionIFbRKN4IGFD9FileInfosERNS1_9FileStyleEEESaIS8_EE12_Vector_implE", !61, i64 0}
!61 = !{!"_ZTSNSt12_Vector_baseISt8functionIFbRKN4IGFD9FileInfosERNS1_9FileStyleEEESaIS8_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!62 = !{!"_ZTSN4IGFD11FilterInfosE", !9, i64 0, !9, i64 32, !63, i64 64, !63, i64 144, !66, i64 224, !14, i64 248}
!63 = !{!"_ZTSN4IGFD16SearchableVectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !64, i64 0, !24, i64 56}
!64 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_mEEE", !65, i64 0}
!65 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESaIS8_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb1EEEE", !11, i64 0, !14, i64 8, !56, i64 16, !14, i64 24, !57, i64 32, !11, i64 48}
!66 = !{!"_ZTSSt6vectorINSt7__cxx1111basic_regexIcNS0_12regex_traitsIcEEEESaIS4_EE", !67, i64 0}
!67 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1111basic_regexIcNS0_12regex_traitsIcEEEESaIS4_EE", !68, i64 0}
!68 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1111basic_regexIcNS0_12regex_traitsIcEEEESaIS4_EE12_Vector_implE", !69, i64 0}
!69 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1111basic_regexIcNS0_12regex_traitsIcEEEESaIS4_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!70 = !{!"_ZTSN4IGFD13SearchManagerE", !9, i64 0, !12, i64 32, !41, i64 1056}
!71 = !{!"_ZTS6ImVec2", !18, i64 0, !18, i64 4}
!72 = !{!"_ZTS16ImGuiListClipper", !11, i64 0, !15, i64 8, !15, i64 12, !15, i64 16, !18, i64 20, !18, i64 24, !11, i64 32}
!73 = !{!21, !41, i64 6198}
!74 = !{!75, !75, i64 0}
!75 = !{!"vtable pointer", !13, i64 0}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass