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

; 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] }
%"class.std::shared_ptr.121" = type { %"class.std::__shared_ptr.122" }
%"class.std::__shared_ptr.122" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%struct.ImVec2 = type { float, float }
%"class.__gnu_cxx::__normal_iterator.51" = type { ptr }
%"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.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 }
%"class.IGFD::FileInfos" = type { %"struct.std::array", %"struct.std::array", %"struct.std::array", %"struct.std::array", i64, %"class.IGFD::FileType", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, i64, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::shared_ptr.101" }
%"struct.std::array" = type { [10 x %"class.std::__cxx11::basic_string"] }
%"class.IGFD::FileType" = type <{ i32, i8, [3 x i8] }>
%"class.std::shared_ptr.101" = type { %"class.std::__shared_ptr.102" }
%"class.std::__shared_ptr.102" = type { ptr, %"class.std::__shared_count" }

@.str.24 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [16 x i8], align 1
@_ZZN4IGFD10FileDialog18m_DisplayPathPopupE6ImVec2E5flags = external hidden global i32, align 4
@.str.45 = external hidden unnamed_addr constant [23 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_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; 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: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt12__shared_ptrIN4IGFD9FileInfosELN9__gnu_cxx12_Lock_policyE2EE9use_countEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

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

declare void @_ZN5ImGui6PushIDEPKv(ptr noundef) #2

declare void @_ZN5ImGui5PopIDEv() #2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4IGFD11FileManager17GetFilteredPathAtEm(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.121") align 8, ptr noundef nonnull align 8 dereferenceable(4648), i64 noundef) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4IGFD11FileManager18IsFileNameSelectedERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(4648), ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4IGFD11FileManager14SetCurrentPathERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(4648), ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4IGFD11FileManager15SelectDirectoryERKSt10shared_ptrINS_9FileInfosEE(ptr noundef nonnull align 8 dereferenceable(4648), ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

declare noundef i32 @_ZN5ImGui5GetIDEPKc(ptr noundef) #2

declare void @_ZN5ImGui8EndPopupEv() #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4IGFD10FileDialog18m_DisplayPathPopupE6ImVec2(ptr noundef nonnull align 8 dereferenceable(6620) %0, <2 x float> %1) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %struct.ImVec2, align 4
  %4 = alloca ptr, align 8
  %5 = alloca %struct.ImVec2, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i8, align 1
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::shared_ptr.121", align 8
  %16 = alloca %"class.std::shared_ptr.121", align 8
  %17 = alloca i8, align 1
  %18 = alloca %struct.ImVec2, align 4
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.51", align 8
  store <2 x float> %1, ptr %3, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  %21 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %22 = getelementptr inbounds %struct.ImVec2, ptr %3, i32 0, i32 0
  %23 = load float, ptr %22, align 4, !tbaa !9
  %24 = fmul float %23, 5.000000e-01
  %25 = getelementptr inbounds %struct.ImVec2, ptr %3, i32 0, i32 1
  %26 = load float, ptr %25, align 4, !tbaa !12
  %27 = fmul float %26, 5.000000e-01
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %5, float noundef %24, float noundef %27)
  %28 = call noundef zeroext i1 @_ZN5ImGui10BeginPopupEPKci(ptr noundef @.str.28, i32 noundef 0)
  br i1 %28, label %29, label %152

29:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %30 = getelementptr inbounds %"class.IGFD::FileDialog", ptr %21, i32 0, i32 1
  %31 = getelementptr inbounds %"class.IGFD::FileDialogInternal", ptr %30, i32 0, i32 0
  store ptr %31, ptr %6, align 8, !tbaa !5
  call void @_ZN5ImGui6PushIDEPKv(ptr noundef %21)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %32 = call noundef i32 @_ZN5ImGui5GetIDEPKc(ptr noundef @.str.45)
  store i32 %32, ptr %7, align 4, !tbaa !13
  %33 = load i32, ptr %7, align 4, !tbaa !13
  %34 = load i32, ptr @_ZZN4IGFD10FileDialog18m_DisplayPathPopupE6ImVec2E5flags, align 4, !tbaa !13
  %35 = call noundef zeroext i1 @_ZN5ImGui12BeginTableExEPKcjiiRK6ImVec2f(ptr noundef @.str.45, i32 noundef %33, i32 noundef 1, i32 noundef %34, ptr noundef nonnull align 4 dereferenceable(8) %5, float noundef 0.000000e+00)
  br i1 %35, label %36, label %151

36:                                               ; preds = %29
  call void @_ZN5ImGui22TableSetupScrollFreezeEii(i32 noundef 0, i32 noundef 1)
  call void @_ZN5ImGui16TableSetupColumnEPKcifj(ptr noundef @.str.24, i32 noundef 16392, float noundef -1.000000e+00, i32 noundef 0)
  call void @_ZN5ImGui15TableHeadersRowEv()
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = call noundef zeroext i1 @_ZN4IGFD11FileManager23IsPathFilteredListEmptyEv(ptr noundef nonnull align 8 dereferenceable(4648) %37)
  br i1 %38, label %150, label %39

39:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store ptr null, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #5
  store i8 0, ptr %10, align 1, !tbaa !15
  %40 = getelementptr inbounds %"class.IGFD::FileDialog", ptr %21, i32 0, i32 3
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = call noundef i64 @_ZN4IGFD11FileManager23GetPathFilteredListSizeEv(ptr noundef nonnull align 8 dereferenceable(4648) %41)
  %43 = trunc i64 %42 to i32
  %44 = invoke noundef float @_ZN5ImGui28GetTextLineHeightWithSpacingEv()
          to label %45 unwind label %62

45:                                               ; preds = %39
  invoke void @_ZN16ImGuiListClipper5BeginEif(ptr noundef nonnull align 8 dereferenceable(40) %40, i32 noundef %43, float noundef %44)
          to label %46 unwind label %62

46:                                               ; preds = %45
  br label %47

47:                                               ; preds = %145, %46
  %48 = getelementptr inbounds %"class.IGFD::FileDialog", ptr %21, i32 0, i32 3
  %49 = invoke noundef zeroext i1 @_ZN16ImGuiListClipper4StepEv(ptr noundef nonnull align 8 dereferenceable(40) %48)
          to label %50 unwind label %62

50:                                               ; preds = %47
  br i1 %49, label %51, label %146

51:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %52 = getelementptr inbounds %"class.IGFD::FileDialog", ptr %21, i32 0, i32 3
  %53 = getelementptr inbounds %struct.ImGuiListClipper, ptr %52, i32 0, i32 1
  %54 = load i32, ptr %53, align 8, !tbaa !17
  store i32 %54, ptr %13, align 4, !tbaa !13
  br label %55

55:                                               ; preds = %140, %51
  %56 = load i32, ptr %13, align 4, !tbaa !13
  %57 = getelementptr inbounds %"class.IGFD::FileDialog", ptr %21, i32 0, i32 3
  %58 = getelementptr inbounds %struct.ImGuiListClipper, ptr %57, i32 0, i32 2
  %59 = load i32, ptr %58, align 4, !tbaa !75
  %60 = icmp slt i32 %56, %59
  br i1 %60, label %66, label %61

61:                                               ; preds = %55
  store i32 4, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %145

62:                                               ; preds = %146, %47, %45, %39
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %11, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %12, align 4
  br label %149

66:                                               ; preds = %55
  %67 = load i32, ptr %13, align 4, !tbaa !13
  %68 = icmp slt i32 %67, 0
  br i1 %68, label %69, label %70

69:                                               ; preds = %66
  br label %140

70:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = load i32, ptr %13, align 4, !tbaa !13
  %73 = sext i32 %72 to i64
  call void @_ZN4IGFD11FileManager17GetFilteredPathAtEm(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.121") align 8 %15, ptr noundef nonnull align 8 dereferenceable(4648) %71, i64 noundef %73)
  %74 = call noundef i64 @_ZNKSt12__shared_ptrIN4IGFD9FileInfosELN9__gnu_cxx12_Lock_policyE2EE9use_countEv(ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  %75 = icmp ne i64 %74, 0
  br i1 %75, label %77, label %76

76:                                               ; preds = %70
  store i32 6, ptr %14, align 4
  br label %137

77:                                               ; preds = %70
  call void @_ZNSt10shared_ptrIN4IGFD9FileInfosEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  invoke void @_ZN4IGFD10FileDialog25m_BeginFileColorIconStyleESt10shared_ptrINS_9FileInfosEERbRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPP6ImFont(ptr noundef nonnull align 8 dereferenceable(6620) %21, ptr noundef %16, ptr noundef nonnull align 1 dereferenceable(1) %10, ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef %9)
          to label %78 unwind label %112

78:                                               ; preds = %77
  call void @_ZNSt12__shared_ptrIN4IGFD9FileInfosELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #5
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4IGFD9FileInfosELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %15) #5
  %81 = getelementptr inbounds %"class.IGFD::FileInfos", ptr %80, i32 0, i32 8
  %82 = invoke noundef zeroext i1 @_ZN4IGFD11FileManager18IsFileNameSelectedERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(4648) %79, ptr noundef nonnull align 8 dereferenceable(32) %81)
          to label %83 unwind label %116

83:                                               ; preds = %78
  %84 = zext i1 %82 to i8
  store i8 %84, ptr %17, align 1, !tbaa !15
  invoke void @_ZN5ImGui12TableNextRowEif(i32 noundef 0, float noundef 0.000000e+00)
          to label %85 unwind label %116

85:                                               ; preds = %83
  %86 = invoke noundef zeroext i1 @_ZN5ImGui15TableNextColumnEv()
          to label %87 unwind label %116

87:                                               ; preds = %85
  br i1 %86, label %88, label %134

88:                                               ; preds = %87
  %89 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4IGFD9FileInfosELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %15) #5
  %90 = getelementptr inbounds %"class.IGFD::FileInfos", ptr %89, i32 0, i32 8
  %91 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %90) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  invoke void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %18, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %92 unwind label %120

92:                                               ; preds = %88
  %93 = invoke noundef zeroext i1 @_ZN5ImGui10SelectableEPKcPbiRK6ImVec2(ptr noundef %91, ptr noundef %17, i32 noundef 16777218, ptr noundef nonnull align 4 dereferenceable(8) %18)
          to label %94 unwind label %120

94:                                               ; preds = %92
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br i1 %93, label %95, label %133

95:                                               ; preds = %94
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #5
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = call ptr @_ZN4IGFD11FileManager27GetCurrentPopupComposedPathB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(4648) %98)
  %100 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.51", ptr %20, i32 0, i32 0
  store ptr %99, ptr %100, align 8
  %101 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.51", ptr %20, i32 0, i32 0
  %102 = load ptr, ptr %101, align 8
  invoke void @_ZN4IGFD11FileManager14ComposeNewPathEN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS8_SaIS8_EEEE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %19, ptr noundef nonnull align 8 dereferenceable(4648) %97, ptr %102)
          to label %103 unwind label %124

103:                                              ; preds = %95
  invoke void @_ZN4IGFD11FileManager14SetCurrentPathERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(4648) %96, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %104 unwind label %128

104:                                              ; preds = %103
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #5
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = invoke noundef zeroext i1 @_ZN4IGFD11FileManager15SelectDirectoryERKSt10shared_ptrINS_9FileInfosEE(ptr noundef nonnull align 8 dereferenceable(4648) %105, ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %107 unwind label %116

107:                                              ; preds = %104
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = getelementptr inbounds %"class.IGFD::FileManager", ptr %108, i32 0, i32 14
  %110 = zext i1 %106 to i8
  store i8 %110, ptr %109, align 2, !tbaa !76
  invoke void @_ZN5ImGui17CloseCurrentPopupEv()
          to label %111 unwind label %116

111:                                              ; preds = %107
  br label %133

112:                                              ; preds = %77
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %11, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %12, align 4
  call void @_ZNSt12__shared_ptrIN4IGFD9FileInfosELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #5
  br label %144

116:                                              ; preds = %134, %107, %104, %85, %83, %78
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %11, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %12, align 4
  br label %143

120:                                              ; preds = %92, %88
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %11, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %143

124:                                              ; preds = %95
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %11, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %12, align 4
  br label %132

128:                                              ; preds = %103
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %11, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #5
  br label %132

132:                                              ; preds = %128, %124
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #5
  br label %143

133:                                              ; preds = %111, %94
  br label %134

134:                                              ; preds = %133, %87
  %135 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZN4IGFD10FileDialog23m_EndFileColorIconStyleERKbP6ImFont(ptr noundef nonnull align 8 dereferenceable(6620) %21, ptr noundef nonnull align 1 dereferenceable(1) %10, ptr noundef %135)
          to label %136 unwind label %116

136:                                              ; preds = %134
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #5
  store i32 0, ptr %14, align 4
  br label %137

137:                                              ; preds = %136, %76
  call void @_ZNSt12__shared_ptrIN4IGFD9FileInfosELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  %138 = load i32, ptr %14, align 4
  switch i32 %138, label %158 [
    i32 0, label %139
    i32 6, label %140
  ]

139:                                              ; preds = %137
  br label %140

140:                                              ; preds = %139, %137, %69
  %141 = load i32, ptr %13, align 4, !tbaa !13
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %13, align 4, !tbaa !13
  br label %55, !llvm.loop !77

143:                                              ; preds = %132, %120, %116
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #5
  br label %144

144:                                              ; preds = %143, %112
  call void @_ZNSt12__shared_ptrIN4IGFD9FileInfosELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %149

145:                                              ; preds = %61
  br label %47, !llvm.loop !79

146:                                              ; preds = %50
  %147 = getelementptr inbounds %"class.IGFD::FileDialog", ptr %21, i32 0, i32 3
  invoke void @_ZN16ImGuiListClipper3EndEv(ptr noundef nonnull align 8 dereferenceable(40) %147)
          to label %148 unwind label %62

148:                                              ; preds = %146
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #5
  br label %150

149:                                              ; preds = %144, %62
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %153

150:                                              ; preds = %148, %36
  call void @_ZN5ImGui8EndTableEv()
  br label %151

151:                                              ; preds = %150, %29
  call void @_ZN5ImGui5PopIDEv()
  call void @_ZN5ImGui8EndPopupEv()
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %152

152:                                              ; preds = %151, %2
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret void

153:                                              ; preds = %149
  %154 = load ptr, ptr %11, align 8
  %155 = load i32, ptr %12, align 4
  %156 = insertvalue { ptr, i32 } poison, ptr %154, 0
  %157 = insertvalue { ptr, i32 } %156, i32 %155, 1
  resume { ptr, i32 } %157

158:                                              ; preds = %137
  unreachable
}

declare noundef zeroext i1 @_ZN5ImGui10BeginPopupEPKci(ptr noundef, i32 noundef) #2

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

declare void @_ZN5ImGui22TableSetupScrollFreezeEii(i32 noundef, i32 noundef) #2

declare void @_ZN5ImGui16TableSetupColumnEPKcifj(ptr noundef, i32 noundef, float noundef, i32 noundef) #2

declare void @_ZN5ImGui15TableHeadersRowEv() #2

declare void @_ZN16ImGuiListClipper5BeginEif(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, float noundef) #2

declare noundef float @_ZN5ImGui28GetTextLineHeightWithSpacingEv() #2

declare noundef zeroext i1 @_ZN16ImGuiListClipper4StepEv(ptr noundef nonnull align 8 dereferenceable(40)) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4IGFD10FileDialog25m_BeginFileColorIconStyleESt10shared_ptrINS_9FileInfosEERbRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPP6ImFont(ptr noundef nonnull align 8 dereferenceable(6620), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #3 align 2

declare void @_ZN5ImGui12TableNextRowEif(i32 noundef, float noundef) #2

declare noundef zeroext i1 @_ZN5ImGui15TableNextColumnEv() #2

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

declare void @_ZN5ImGui17CloseCurrentPopupEv() #2

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

declare void @_ZN16ImGuiListClipper3EndEv(ptr noundef nonnull align 8 dereferenceable(40)) #2

declare void @_ZN5ImGui8EndTableEv() #2

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

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 = { "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 = { 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 #5 = { nounwind }

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

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


; 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] }
%"class.std::shared_ptr.121" = type { %"class.std::__shared_ptr.122" }
%"class.std::__shared_ptr.122" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%struct.ImVec2 = type { float, float }

@.str.24 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [16 x i8], align 1
@_ZZN4IGFD10FileDialog18m_DisplayPathPopupE6ImVec2E5flags = external hidden local_unnamed_addr global i32, align 4
@.str.45 = external hidden unnamed_addr constant [23 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_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

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

declare void @_ZN5ImGui6PushIDEPKv(ptr noundef) local_unnamed_addr #2

declare void @_ZN5ImGui5PopIDEv() local_unnamed_addr #2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4IGFD11FileManager17GetFilteredPathAtEm(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.121") align 8, ptr noundef nonnull align 8 dereferenceable(4648), i64 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4IGFD11FileManager18IsFileNameSelectedERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(4648), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4IGFD11FileManager14SetCurrentPathERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(4648), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4IGFD11FileManager15SelectDirectoryERKSt10shared_ptrINS_9FileInfosEE(ptr noundef nonnull align 8 dereferenceable(4648), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

declare noundef i32 @_ZN5ImGui5GetIDEPKc(ptr noundef) local_unnamed_addr #2

declare void @_ZN5ImGui8EndPopupEv() local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4IGFD10FileDialog18m_DisplayPathPopupE6ImVec2(ptr noundef nonnull align 8 dereferenceable(6620) %0, <2 x float> %1) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %struct.ImVec2, align 4
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca %"class.std::shared_ptr.121", align 8
  %8 = alloca %"class.std::shared_ptr.121", align 8
  %9 = alloca i8, align 1
  %10 = alloca %struct.ImVec2, align 4
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %.sroa.016.0.vec.extract = extractelement <2 x float> %1, i64 0
  %12 = fmul float %.sroa.016.0.vec.extract, 5.000000e-01
  %.sroa.016.4.vec.extract = extractelement <2 x float> %1, i64 1
  %13 = fmul float %.sroa.016.4.vec.extract, 5.000000e-01
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %3, float noundef %12, float noundef %13)
  %14 = call noundef zeroext i1 @_ZN5ImGui10BeginPopupEPKci(ptr noundef nonnull @.str.28, i32 noundef 0)
  br i1 %14, label %15, label %92

15:                                               ; preds = %2
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  call void @_ZN5ImGui6PushIDEPKv(ptr noundef nonnull %0)
  %17 = call noundef i32 @_ZN5ImGui5GetIDEPKc(ptr noundef nonnull @.str.45)
  %18 = load i32, ptr @_ZZN4IGFD10FileDialog18m_DisplayPathPopupE6ImVec2E5flags, align 4, !tbaa !5
  %19 = call noundef zeroext i1 @_ZN5ImGui12BeginTableExEPKcjiiRK6ImVec2f(ptr noundef nonnull @.str.45, i32 noundef %17, i32 noundef 1, i32 noundef %18, ptr noundef nonnull align 4 dereferenceable(8) %3, float noundef 0.000000e+00)
  br i1 %19, label %20, label %91

20:                                               ; preds = %15
  call void @_ZN5ImGui22TableSetupScrollFreezeEii(i32 noundef 0, i32 noundef 1)
  call void @_ZN5ImGui16TableSetupColumnEPKcifj(ptr noundef nonnull @.str.24, i32 noundef 16392, float noundef -1.000000e+00, i32 noundef 0)
  call void @_ZN5ImGui15TableHeadersRowEv()
  %21 = call noundef zeroext i1 @_ZN4IGFD11FileManager23IsPathFilteredListEmptyEv(ptr noundef nonnull align 8 dereferenceable(4648) %16)
  br i1 %21, label %90, label %22

22:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  store ptr null, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #5
  store i8 0, ptr %6, align 1, !tbaa !11
  %23 = getelementptr inbounds i8, ptr %0, i64 6576
  %24 = call noundef i64 @_ZN4IGFD11FileManager23GetPathFilteredListSizeEv(ptr noundef nonnull align 8 dereferenceable(4648) %16)
  %25 = invoke noundef float @_ZN5ImGui28GetTextLineHeightWithSpacingEv()
          to label %26 unwind label %.loopexit.split-lp

26:                                               ; preds = %22
  %27 = trunc i64 %24 to i32
  invoke void @_ZN16ImGuiListClipper5BeginEif(ptr noundef nonnull align 8 dereferenceable(40) %23, i32 noundef %27, float noundef %25)
          to label %.preheader unwind label %.loopexit.split-lp

.preheader:                                       ; preds = %26
  %28 = getelementptr inbounds i8, ptr %0, i64 6584
  %29 = getelementptr inbounds i8, ptr %0, i64 6588
  %30 = getelementptr inbounds i8, ptr %0, i64 298
  br label %31

.loopexit:                                        ; preds = %81, %34
  br label %31, !llvm.loop !13

31:                                               ; preds = %.preheader, %.loopexit
  %32 = invoke noundef zeroext i1 @_ZN16ImGuiListClipper4StepEv(ptr noundef nonnull align 8 dereferenceable(40) %23)
          to label %33 unwind label %.loopexit27

33:                                               ; preds = %31
  br i1 %32, label %34, label %87

34:                                               ; preds = %33
  %35 = load i32, ptr %28, align 8, !tbaa !15
  %36 = load i32, ptr %29, align 4, !tbaa !75
  %37 = icmp slt i32 %35, %36
  br i1 %37, label %.lr.ph, label %.loopexit

.loopexit27:                                      ; preds = %31
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %89

.loopexit.split-lp:                               ; preds = %22, %26, %87
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %89

.lr.ph:                                           ; preds = %34, %81
  %38 = phi i32 [ %82, %81 ], [ %36, %34 ]
  %.01728 = phi i32 [ %83, %81 ], [ %35, %34 ]
  %39 = icmp slt i32 %.01728, 0
  br i1 %39, label %81, label %40

40:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  %41 = zext nneg i32 %.01728 to i64
  call void @_ZN4IGFD11FileManager17GetFilteredPathAtEm(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.121") align 8 %7, ptr noundef nonnull align 8 dereferenceable(4648) %16, i64 noundef %41)
  %42 = call noundef i64 @_ZNKSt12__shared_ptrIN4IGFD9FileInfosELN9__gnu_cxx12_Lock_policyE2EE9use_countEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  %.not = icmp eq i64 %42, 0
  br i1 %.not, label %80, label %43

43:                                               ; preds = %40
  call void @_ZNSt10shared_ptrIN4IGFD9FileInfosEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  invoke void @_ZN4IGFD10FileDialog25m_BeginFileColorIconStyleESt10shared_ptrINS_9FileInfosEERbRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPP6ImFont(ptr noundef nonnull align 8 dereferenceable(6620) %0, ptr noundef nonnull %8, ptr noundef nonnull align 1 dereferenceable(1) %6, ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull %5)
          to label %44 unwind label %66

44:                                               ; preds = %43
  call void @_ZNSt12__shared_ptrIN4IGFD9FileInfosELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #5
  %45 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4IGFD9FileInfosELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  %46 = getelementptr inbounds i8, ptr %45, i64 1360
  %47 = invoke noundef zeroext i1 @_ZN4IGFD11FileManager18IsFileNameSelectedERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(4648) %16, ptr noundef nonnull align 8 dereferenceable(32) %46)
          to label %48 unwind label %68

48:                                               ; preds = %44
  %49 = zext i1 %47 to i8
  store i8 %49, ptr %9, align 1, !tbaa !11
  invoke void @_ZN5ImGui12TableNextRowEif(i32 noundef 0, float noundef 0.000000e+00)
          to label %50 unwind label %68

50:                                               ; preds = %48
  %51 = invoke noundef zeroext i1 @_ZN5ImGui15TableNextColumnEv()
          to label %52 unwind label %68

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

53:                                               ; preds = %52
  %54 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4IGFD9FileInfosELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  %55 = getelementptr inbounds i8, ptr %54, i64 1360
  %56 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %55) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %10, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %57 = invoke noundef zeroext i1 @_ZN5ImGui10SelectableEPKcPbiRK6ImVec2(ptr noundef %56, ptr noundef nonnull %9, i32 noundef 16777218, ptr noundef nonnull align 4 dereferenceable(8) %10)
          to label %58 unwind label %70

58:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  br i1 %57, label %59, label %77

59:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #5
  %60 = call ptr @_ZN4IGFD11FileManager27GetCurrentPopupComposedPathB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(4648) %16)
  invoke void @_ZN4IGFD11FileManager14ComposeNewPathEN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS8_SaIS8_EEEE(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %11, ptr noundef nonnull align 8 dereferenceable(4648) %16, ptr %60)
          to label %61 unwind label %72

61:                                               ; preds = %59
  invoke void @_ZN4IGFD11FileManager14SetCurrentPathERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(4648) %16, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %62 unwind label %74

62:                                               ; preds = %61
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #5
  %63 = invoke noundef zeroext i1 @_ZN4IGFD11FileManager15SelectDirectoryERKSt10shared_ptrINS_9FileInfosEE(ptr noundef nonnull align 8 dereferenceable(4648) %16, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %64 unwind label %68

64:                                               ; preds = %62
  %65 = zext i1 %63 to i8
  store i8 %65, ptr %30, align 2, !tbaa !76
  invoke void @_ZN5ImGui17CloseCurrentPopupEv()
          to label %77 unwind label %68

66:                                               ; preds = %43
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN4IGFD9FileInfosELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  br label %86

68:                                               ; preds = %77, %64, %62, %50, %48, %44
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %85

70:                                               ; preds = %53
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  br label %85

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

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

76:                                               ; preds = %74, %72
  %.pn = phi { ptr, i32 } [ %75, %74 ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #5
  br label %85

77:                                               ; preds = %58, %64, %52
  %78 = load ptr, ptr %5, align 8, !tbaa !9
  invoke void @_ZN4IGFD10FileDialog23m_EndFileColorIconStyleERKbP6ImFont(ptr noundef nonnull align 8 dereferenceable(6620) %0, ptr noundef nonnull align 1 dereferenceable(1) %6, ptr noundef %78)
          to label %79 unwind label %68

79:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #5
  br label %80

80:                                               ; preds = %40, %79
  call void @_ZNSt12__shared_ptrIN4IGFD9FileInfosELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  %.pre = load i32, ptr %29, align 4, !tbaa !75
  br label %81

81:                                               ; preds = %80, %.lr.ph
  %82 = phi i32 [ %.pre, %80 ], [ %38, %.lr.ph ]
  %83 = add nsw i32 %.01728, 1
  %84 = icmp slt i32 %83, %82
  br i1 %84, label %.lr.ph, label %.loopexit, !llvm.loop !77

85:                                               ; preds = %76, %70, %68
  %.pn23 = phi { ptr, i32 } [ %69, %68 ], [ %.pn, %76 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #5
  br label %86

86:                                               ; preds = %85, %66
  %.pn23.pn = phi { ptr, i32 } [ %.pn23, %85 ], [ %67, %66 ]
  call void @_ZNSt12__shared_ptrIN4IGFD9FileInfosELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  br label %89

87:                                               ; preds = %33
  invoke void @_ZN16ImGuiListClipper3EndEv(ptr noundef nonnull align 8 dereferenceable(40) %23)
          to label %88 unwind label %.loopexit.split-lp

88:                                               ; preds = %87
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  br label %90

89:                                               ; preds = %.loopexit27, %.loopexit.split-lp, %86
  %.pn23.pn.pn = phi { ptr, i32 } [ %.pn23.pn, %86 ], [ %lpad.loopexit, %.loopexit27 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn23.pn.pn

90:                                               ; preds = %88, %20
  call void @_ZN5ImGui8EndTableEv()
  br label %91

91:                                               ; preds = %90, %15
  call void @_ZN5ImGui5PopIDEv()
  call void @_ZN5ImGui8EndPopupEv()
  br label %92

92:                                               ; preds = %91, %2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  ret void
}

declare noundef zeroext i1 @_ZN5ImGui10BeginPopupEPKci(ptr noundef, i32 noundef) local_unnamed_addr #2

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

declare void @_ZN5ImGui22TableSetupScrollFreezeEii(i32 noundef, i32 noundef) local_unnamed_addr #2

declare void @_ZN5ImGui16TableSetupColumnEPKcifj(ptr noundef, i32 noundef, float noundef, i32 noundef) local_unnamed_addr #2

declare void @_ZN5ImGui15TableHeadersRowEv() local_unnamed_addr #2

declare void @_ZN16ImGuiListClipper5BeginEif(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, float noundef) local_unnamed_addr #2

declare noundef float @_ZN5ImGui28GetTextLineHeightWithSpacingEv() local_unnamed_addr #2

declare noundef zeroext i1 @_ZN16ImGuiListClipper4StepEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4IGFD10FileDialog25m_BeginFileColorIconStyleESt10shared_ptrINS_9FileInfosEERbRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPP6ImFont(ptr noundef nonnull align 8 dereferenceable(6620), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #3 align 2

declare void @_ZN5ImGui12TableNextRowEif(i32 noundef, float noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN5ImGui15TableNextColumnEv() local_unnamed_addr #2

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

declare void @_ZN5ImGui17CloseCurrentPopupEv() local_unnamed_addr #2

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

declare void @_ZN16ImGuiListClipper3EndEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #2

declare void @_ZN5ImGui8EndTableEv() local_unnamed_addr #2

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

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 = { "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 = { 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 #5 = { nounwind }

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

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


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