; LLVM IR from Samson-Mano/EM_Propogation_simulation :: EM_Propogation_simulation/src/ImGui/imgui_tables.ll (ZN5ImGui22TableGcCompactSettingsEv)

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

%struct.ImChunkStream.27 = type { %struct.ImVector.24 }
%struct.ImVector.24 = type { i32, i32, ptr }
%struct.ImGuiContext = type { i8, i8, %struct.ImGuiIO, %struct.ImGuiStyle, ptr, float, float, %struct.ImDrawListSharedData, double, i32, i32, i32, i8, i8, i8, i8, i8, ptr, %struct.ImVector.1, %struct.ImVector.1, i32, i32, %struct.ImVector.2, %struct.ImVector.2, %struct.ImVector.2, %struct.ImVector.3, %struct.ImGuiStorage, i32, %struct.ImVec2, ptr, ptr, ptr, ptr, ptr, %struct.ImVec2, i32, float, %struct.ImVec2, %struct.ImVec2, i32, i32, i32, i8, i8, float, float, i32, i32, float, i8, i8, i8, i8, i8, i8, %struct.ImVec2, ptr, i32, i32, i32, i8, i8, ptr, i32, float, [140 x %struct.ImGuiKeyOwnerData], %struct.ImGuiKeyRoutingTable, i32, i8, i32, i32, i32, i32, %struct.ImGuiNextItemData, %struct.ImGuiLastItemData, %struct.ImGuiNextWindowData, %struct.ImVector.6, %struct.ImVector.7, %struct.ImVector.8, %struct.ImVector.9, %struct.ImVector.10, %struct.ImVector.11, %struct.ImVector.12, %struct.ImVector.12, i32, %struct.ImVector.13, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i32, %struct.ImRect, i8, i8, i8, i32, i32, i32, i32, i32, i32, %struct.ImRect, %struct.ImRect, i32, i32, i32, %struct.ImGuiNavItemData, %struct.ImGuiNavItemData, %struct.ImGuiNavItemData, %struct.ImGuiNavItemData, i32, i32, ptr, ptr, ptr, float, float, i8, %struct.ImVec2, %struct.ImVec2, float, i32, i8, i8, i8, i32, i32, i32, [4 x i8], %struct.ImGuiPayload, %struct.ImRect, i32, i32, float, i32, i32, i32, i32, %struct.ImVector.14, [16 x i8], i32, %struct.ImVector.15, ptr, i32, %struct.ImVector.16, %struct.ImPool, %struct.ImVector.18, %struct.ImVector.19, ptr, %struct.ImPool.20, %struct.ImVector.22, %struct.ImVector.23, i32, i32, float, float, %struct.ImVec2, %struct.ImGuiInputTextState, %struct.ImGuiInputTextDeactivatedState, %struct.ImFont, i32, i32, i32, i32, float, float, i32, %struct.ImVec4, %struct.ImGuiComboPreviewData, float, float, i8, i8, float, float, float, float, i16, i16, %struct.ImVector.24, %struct.ImVector.9, %struct.ImGuiPlatformImeData, %struct.ImGuiPlatformImeData, i8, i8, float, %struct.ImGuiTextBuffer, %struct.ImVector.26, %struct.ImChunkStream, %struct.ImChunkStream.27, %struct.ImVector.28, i32, [7 x ptr], i8, i32, ptr, %struct.ImGuiTextBuffer, ptr, ptr, float, i8, i32, i32, i32, i32, %struct.ImGuiTextBuffer, %struct.ImGuiTextIndex, i8, i8, i8, i8, i8, i32, %struct.ImGuiMetricsConfig, %struct.ImGuiStackTool, [60 x float], i32, i32, float, i32, i32, i32, %struct.ImVector.24 }
%struct.ImGuiIO = type { i32, i32, %struct.ImVec2, float, float, ptr, ptr, float, float, float, float, float, float, float, ptr, ptr, float, i8, ptr, %struct.ImVec2, i8, i8, i8, i8, i8, i8, i8, i8, float, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, i32, i32, %struct.ImVec2, [652 x i32], [652 x i8], [16 x float], ptr, %struct.ImVec2, [5 x i8], float, float, i32, i8, i8, i8, i8, i32, [652 x %struct.ImGuiKeyData], i8, %struct.ImVec2, [5 x %struct.ImVec2], [5 x double], [5 x i8], [5 x i8], [5 x i16], [5 x i16], [5 x i8], [5 x i8], [5 x i8], i8, [5 x float], [5 x float], [5 x float], float, i8, i8, i8, i8, i16, %struct.ImVector }
%struct.ImGuiKeyData = type { i8, float, float, float }
%struct.ImVector = type { i32, i32, ptr }
%struct.ImGuiStyle = type { float, float, %struct.ImVec2, float, float, %struct.ImVec2, %struct.ImVec2, i32, float, float, float, float, %struct.ImVec2, float, float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, float, float, float, float, float, float, float, float, i32, %struct.ImVec2, %struct.ImVec2, float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, i8, i8, i8, float, float, [53 x %struct.ImVec4] }
%struct.ImDrawListSharedData = type { %struct.ImVec2, ptr, float, float, float, %struct.ImVec4, i32, %struct.ImVector.0, [48 x %struct.ImVec2], float, [64 x i8], ptr }
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImVector.1 = type { i32, i32, ptr }
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImVector.3 = type { i32, i32, ptr }
%struct.ImGuiStorage = type { %struct.ImVector.4 }
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImGuiKeyOwnerData = type <{ i32, i32, i8, i8, [2 x i8] }>
%struct.ImGuiKeyRoutingTable = type { [140 x i16], %struct.ImVector.5, %struct.ImVector.5 }
%struct.ImVector.5 = type { i32, i32, ptr }
%struct.ImGuiNextItemData = type <{ i32, float, i32, i32, i8, [3 x i8] }>
%struct.ImGuiLastItemData = type { i32, i32, i32, %struct.ImRect, %struct.ImRect, %struct.ImRect }
%struct.ImGuiNextWindowData = type <{ i32, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, [3 x i8], %struct.ImRect, [4 x i8], ptr, ptr, float, %struct.ImVec2, [4 x i8] }>
%struct.ImVector.6 = type { i32, i32, ptr }
%struct.ImVector.7 = type { i32, i32, ptr }
%struct.ImVector.8 = type { i32, i32, ptr }
%struct.ImVector.10 = type { i32, i32, ptr }
%struct.ImVector.11 = type { i32, i32, ptr }
%struct.ImVector.12 = type { i32, i32, ptr }
%struct.ImVector.13 = type { i32, i32, ptr }
%struct.ImGuiNavItemData = type { ptr, i32, i32, %struct.ImRect, i32, float, float, float }
%struct.ImGuiPayload = type <{ ptr, i32, i32, i32, i32, [33 x i8], i8, i8, [5 x i8] }>
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImVector.14 = type { i32, i32, ptr }
%struct.ImVector.15 = type { i32, i32, ptr }
%struct.ImVector.16 = type { i32, i32, ptr }
%struct.ImPool = type { %struct.ImVector.17, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.17 = type { i32, i32, ptr }
%struct.ImVector.18 = type { i32, i32, ptr }
%struct.ImVector.19 = type { i32, i32, ptr }
%struct.ImPool.20 = type { %struct.ImVector.21, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.21 = type { i32, i32, ptr }
%struct.ImVector.22 = type { i32, i32, ptr }
%struct.ImVector.23 = type { i32, i32, ptr }
%struct.ImVec2 = type { float, float }
%struct.ImGuiInputTextState = type <{ ptr, i32, i32, i32, [4 x i8], %struct.ImVector, %struct.ImVector.24, %struct.ImVector.24, i8, [3 x i8], i32, float, %"struct.ImStb::STB_TexteditState", float, i8, i8, i8, i8, i32, [4 x i8] }>
%"struct.ImStb::STB_TexteditState" = type { i32, i32, i32, i8, i32, i8, i8, i8, i8, i8, i8, i8, float, %"struct.ImStb::StbUndoState" }
%"struct.ImStb::StbUndoState" = type { [99 x %"struct.ImStb::StbUndoRecord"], [999 x i16], i16, i16, i32, i32 }
%"struct.ImStb::StbUndoRecord" = type { i32, i32, i32, i32 }
%struct.ImGuiInputTextDeactivatedState = type { i32, %struct.ImVector.24 }
%struct.ImFont = type <{ %struct.ImVector.18, float, float, %struct.ImVector, %struct.ImVector.25, ptr, ptr, ptr, i16, i16, i16, i16, float, float, i8, [3 x i8], float, float, float, i32, [2 x i8], [2 x i8] }>
%struct.ImVector.25 = type { i32, i32, ptr }
%struct.ImVec4 = type { float, float, float, float }
%struct.ImGuiComboPreviewData = type { %struct.ImRect, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, i32 }
%struct.ImVector.9 = type { i32, i32, ptr }
%struct.ImGuiPlatformImeData = type { i8, %struct.ImVec2, float }
%struct.ImVector.26 = type { i32, i32, ptr }
%struct.ImChunkStream = type { %struct.ImVector.24 }
%struct.ImVector.28 = type { i32, i32, ptr }
%struct.ImGuiTextBuffer = type { %struct.ImVector.24 }
%struct.ImGuiTextIndex = type <{ %struct.ImVector.10, i32, [4 x i8] }>
%struct.ImGuiMetricsConfig = type { i8, i8, i8, i8, i8, i8, i8, i8, i32, i32 }
%struct.ImGuiStackTool = type { i32, i32, i32, %struct.ImVector.29, i8, float }
%struct.ImVector.29 = type { i32, i32, ptr }
%struct.ImGuiTableSettings = type <{ i32, i32, float, i16, i16, i8, [3 x i8] }>

@GImGui = external global ptr, align 8

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorIcE7reserveEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN13ImChunkStreamI18ImGuiTableSettingsE11alloc_chunkEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i64 @_ZL26TableSettingsCalcChunkSizei(i32 noundef) #4

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui22TableGcCompactSettingsEv() #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca ptr, align 8
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca %struct.ImChunkStream.27, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #6
  %9 = load ptr, ptr @GImGui, align 8, !tbaa !5
  store ptr %9, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 0, ptr %2, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %10 = load ptr, ptr %1, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.ImGuiContext, ptr %10, i32 0, i32 206
  %12 = call noundef ptr @_ZN13ImChunkStreamI18ImGuiTableSettingsE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
  store ptr %12, ptr %3, align 8, !tbaa !5
  br label %13

13:                                               ; preds = %32, %0
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = icmp ne ptr %14, null
  br i1 %15, label %17, label %16

16:                                               ; preds = %13
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  br label %37

17:                                               ; preds = %13
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.ImGuiTableSettings, ptr %18, i32 0, i32 0
  %20 = load i32, ptr %19, align 4, !tbaa !11
  %21 = icmp ne i32 %20, 0
  br i1 %21, label %22, label %31

22:                                               ; preds = %17
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.ImGuiTableSettings, ptr %23, i32 0, i32 3
  %25 = load i16, ptr %24, align 4, !tbaa !16
  %26 = sext i16 %25 to i32
  %27 = call noundef i64 @_ZL26TableSettingsCalcChunkSizei(i32 noundef %26)
  %28 = trunc i64 %27 to i32
  %29 = load i32, ptr %2, align 4, !tbaa !9
  %30 = add nsw i32 %29, %28
  store i32 %30, ptr %2, align 4, !tbaa !9
  br label %31

31:                                               ; preds = %22, %17
  br label %32

32:                                               ; preds = %31
  %33 = load ptr, ptr %1, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.ImGuiContext, ptr %33, i32 0, i32 206
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = call noundef ptr @_ZN13ImChunkStreamI18ImGuiTableSettingsE10next_chunkEPS0_(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef %35)
  store ptr %36, ptr %3, align 8, !tbaa !5
  br label %13, !llvm.loop !17

37:                                               ; preds = %16
  %38 = load i32, ptr %2, align 4, !tbaa !9
  %39 = load ptr, ptr %1, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.ImGuiContext, ptr %39, i32 0, i32 206
  %41 = getelementptr inbounds %struct.ImChunkStream.27, ptr %40, i32 0, i32 0
  %42 = getelementptr inbounds %struct.ImVector.24, ptr %41, i32 0, i32 0
  %43 = load i32, ptr %42, align 8, !tbaa !19
  %44 = icmp eq i32 %38, %43
  br i1 %44, label %45, label %46

45:                                               ; preds = %37
  store i32 1, ptr %4, align 4
  br label %98

46:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #6
  call void @_ZN13ImChunkStreamI18ImGuiTableSettingsEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %47 = getelementptr inbounds %struct.ImChunkStream.27, ptr %5, i32 0, i32 0
  %48 = load i32, ptr %2, align 4, !tbaa !9
  invoke void @_ZN8ImVectorIcE7reserveEi(ptr noundef nonnull align 8 dereferenceable(16) %47, i32 noundef %48)
          to label %49 unwind label %58

49:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %50 = load ptr, ptr %1, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.ImGuiContext, ptr %50, i32 0, i32 206
  %52 = invoke noundef ptr @_ZN13ImChunkStreamI18ImGuiTableSettingsE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %51)
          to label %53 unwind label %62

53:                                               ; preds = %49
  store ptr %52, ptr %8, align 8, !tbaa !5
  br label %54

54:                                               ; preds = %93, %53
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = icmp ne ptr %55, null
  br i1 %56, label %66, label %57

57:                                               ; preds = %54
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %94

58:                                               ; preds = %94, %46
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %6, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %7, align 4
  br label %101

62:                                               ; preds = %88, %79, %77, %71, %49
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %6, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %101

66:                                               ; preds = %54
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.ImGuiTableSettings, ptr %67, i32 0, i32 0
  %69 = load i32, ptr %68, align 4, !tbaa !11
  %70 = icmp ne i32 %69, 0
  br i1 %70, label %71, label %87

71:                                               ; preds = %66
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.ImGuiTableSettings, ptr %72, i32 0, i32 3
  %74 = load i16, ptr %73, align 4, !tbaa !16
  %75 = sext i16 %74 to i32
  %76 = invoke noundef i64 @_ZL26TableSettingsCalcChunkSizei(i32 noundef %75)
          to label %77 unwind label %62

77:                                               ; preds = %71
  %78 = invoke noundef ptr @_ZN13ImChunkStreamI18ImGuiTableSettingsE11alloc_chunkEm(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %76)
          to label %79 unwind label %62

79:                                               ; preds = %77
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.ImGuiTableSettings, ptr %81, i32 0, i32 3
  %83 = load i16, ptr %82, align 4, !tbaa !16
  %84 = sext i16 %83 to i32
  %85 = invoke noundef i64 @_ZL26TableSettingsCalcChunkSizei(i32 noundef %84)
          to label %86 unwind label %62

86:                                               ; preds = %79
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %78, ptr align 4 %80, i64 %85, i1 false)
  br label %87

87:                                               ; preds = %86, %66
  br label %88

88:                                               ; preds = %87
  %89 = load ptr, ptr %1, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.ImGuiContext, ptr %89, i32 0, i32 206
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = invoke noundef ptr @_ZN13ImChunkStreamI18ImGuiTableSettingsE10next_chunkEPS0_(ptr noundef nonnull align 8 dereferenceable(16) %90, ptr noundef %91)
          to label %93 unwind label %62

93:                                               ; preds = %88
  store ptr %92, ptr %8, align 8, !tbaa !5
  br label %54, !llvm.loop !83

94:                                               ; preds = %57
  %95 = load ptr, ptr %1, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.ImGuiContext, ptr %95, i32 0, i32 206
  invoke void @_ZN13ImChunkStreamI18ImGuiTableSettingsE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(16) %96, ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %97 unwind label %58

97:                                               ; preds = %94
  call void @_ZN13ImChunkStreamI18ImGuiTableSettingsED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #6
  store i32 0, ptr %4, align 4
  br label %98

98:                                               ; preds = %97, %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #6
  %99 = load i32, ptr %4, align 4
  switch i32 %99, label %107 [
    i32 0, label %100
    i32 1, label %100
  ]

100:                                              ; preds = %98, %98
  ret void

101:                                              ; preds = %62, %58
  call void @_ZN13ImChunkStreamI18ImGuiTableSettingsED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #6
  br label %102

102:                                              ; preds = %101
  %103 = load ptr, ptr %6, align 8
  %104 = load i32, ptr %7, align 4
  %105 = insertvalue { ptr, i32 } poison, ptr %103, 0
  %106 = insertvalue { ptr, i32 } %105, i32 %104, 1
  resume { ptr, i32 } %106

107:                                              ; preds = %98
  unreachable
}

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTS18ImGuiTableSettings", !10, i64 0, !10, i64 4, !13, i64 8, !14, i64 12, !14, i64 14, !15, i64 16}
!13 = !{!"float", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{!12, !14, i64 12}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!20, !10, i64 23544}
!20 = !{!"_ZTS12ImGuiContext", !15, i64 0, !15, i64 1, !21, i64 8, !25, i64 14288, !6, i64 15360, !13, i64 15368, !13, i64 15372, !26, i64 15376, !29, i64 15904, !10, i64 15912, !10, i64 15916, !10, i64 15920, !15, i64 15924, !15, i64 15925, !15, i64 15926, !15, i64 15927, !15, i64 15928, !6, i64 15936, !30, i64 15944, !30, i64 15960, !23, i64 15976, !10, i64 15980, !31, i64 15984, !31, i64 16000, !31, i64 16016, !32, i64 16032, !33, i64 16048, !10, i64 16064, !22, i64 16068, !6, i64 16080, !6, i64 16088, !6, i64 16096, !6, i64 16104, !6, i64 16112, !22, i64 16120, !10, i64 16128, !13, i64 16132, !22, i64 16136, !22, i64 16144, !10, i64 16152, !10, i64 16156, !10, i64 16160, !15, i64 16164, !15, i64 16165, !13, i64 16168, !13, i64 16172, !10, i64 16176, !10, i64 16180, !13, i64 16184, !15, i64 16188, !15, i64 16189, !15, i64 16190, !15, i64 16191, !15, i64 16192, !15, i64 16193, !22, i64 16196, !6, i64 16208, !35, i64 16216, !10, i64 16220, !10, i64 16224, !15, i64 16228, !15, i64 16229, !6, i64 16232, !10, i64 16240, !13, i64 16244, !7, i64 16248, !36, i64 17928, !10, i64 18240, !15, i64 18244, !10, i64 18248, !10, i64 18252, !10, i64 18256, !10, i64 18260, !38, i64 18264, !39, i64 18284, !41, i64 18344, !42, i64 18456, !43, i64 18472, !44, i64 18488, !45, i64 18504, !46, i64 18520, !47, i64 18536, !48, i64 18552, !48, i64 18568, !10, i64 18584, !49, i64 18592, !6, i64 18608, !10, i64 18616, !10, i64 18620, !10, i64 18624, !10, i64 18628, !10, i64 18632, !10, i64 18636, !10, i64 18640, !10, i64 18644, !10, i64 18648, !10, i64 18652, !10, i64 18656, !35, i64 18660, !50, i64 18664, !15, i64 18668, !15, i64 18669, !15, i64 18670, !15, i64 18671, !15, i64 18672, !15, i64 18673, !15, i64 18674, !10, i64 18676, !40, i64 18680, !15, i64 18696, !15, i64 18697, !15, i64 18698, !10, i64 18700, !10, i64 18704, !10, i64 18708, !10, i64 18712, !10, i64 18716, !10, i64 18720, !40, i64 18724, !40, i64 18740, !10, i64 18756, !10, i64 18760, !10, i64 18764, !51, i64 18768, !51, i64 18816, !51, i64 18864, !51, i64 18912, !10, i64 18960, !10, i64 18964, !6, i64 18968, !6, i64 18976, !6, i64 18984, !13, i64 18992, !13, i64 18996, !15, i64 19000, !22, i64 19004, !22, i64 19012, !13, i64 19020, !10, i64 19024, !15, i64 19028, !15, i64 19029, !15, i64 19030, !10, i64 19032, !10, i64 19036, !10, i64 19040, !52, i64 19048, !40, i64 19112, !10, i64 19128, !10, i64 19132, !13, i64 19136, !10, i64 19140, !10, i64 19144, !10, i64 19148, !10, i64 19152, !53, i64 19160, !7, i64 19176, !10, i64 19192, !54, i64 19200, !6, i64 19216, !10, i64 19224, !55, i64 19232, !56, i64 19248, !58, i64 19288, !59, i64 19304, !6, i64 19320, !60, i64 19328, !62, i64 19368, !63, i64 19384, !10, i64 19400, !10, i64 19404, !13, i64 19408, !13, i64 19412, !22, i64 19416, !64, i64 19424, !68, i64 23152, !69, i64 23176, !10, i64 23296, !10, i64 23300, !10, i64 23304, !10, i64 23308, !13, i64 23312, !13, i64 23316, !10, i64 23320, !27, i64 23324, !71, i64 23340, !13, i64 23388, !13, i64 23392, !15, i64 23396, !15, i64 23397, !13, i64 23400, !13, i64 23404, !13, i64 23408, !13, i64 23412, !14, i64 23416, !14, i64 23418, !65, i64 23424, !45, i64 23440, !72, i64 23456, !72, i64 23472, !7, i64 23488, !15, i64 23489, !13, i64 23492, !73, i64 23496, !74, i64 23512, !75, i64 23528, !76, i64 23544, !77, i64 23560, !10, i64 23576, !7, i64 23584, !15, i64 23640, !78, i64 23644, !6, i64 23648, !73, i64 23656, !6, i64 23672, !6, i64 23680, !13, i64 23688, !15, i64 23692, !10, i64 23696, !10, i64 23700, !10, i64 23704, !10, i64 23708, !73, i64 23712, !79, i64 23728, !7, i64 23752, !7, i64 23753, !7, i64 23754, !15, i64 23755, !7, i64 23756, !10, i64 23760, !80, i64 23764, !81, i64 23784, !7, i64 23824, !10, i64 24064, !10, i64 24068, !13, i64 24072, !10, i64 24076, !10, i64 24080, !10, i64 24084, !65, i64 24088}
!21 = !{!"_ZTS7ImGuiIO", !10, i64 0, !10, i64 4, !22, i64 8, !13, i64 16, !13, i64 20, !6, i64 24, !6, i64 32, !13, i64 40, !13, i64 44, !13, i64 48, !13, i64 52, !13, i64 56, !13, i64 60, !13, i64 64, !6, i64 72, !6, i64 80, !13, i64 88, !15, i64 92, !6, i64 96, !22, i64 104, !15, i64 112, !15, i64 113, !15, i64 114, !15, i64 115, !15, i64 116, !15, i64 117, !15, i64 118, !15, i64 119, !13, i64 120, !15, i64 124, !15, i64 125, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !15, i64 208, !15, i64 209, !15, i64 210, !15, i64 211, !15, i64 212, !15, i64 213, !15, i64 214, !13, i64 216, !10, i64 220, !10, i64 224, !10, i64 228, !10, i64 232, !10, i64 236, !22, i64 240, !7, i64 248, !7, i64 2856, !7, i64 3508, !6, i64 3576, !22, i64 3584, !7, i64 3592, !13, i64 3600, !13, i64 3604, !23, i64 3608, !15, i64 3612, !15, i64 3613, !15, i64 3614, !15, i64 3615, !10, i64 3616, !7, i64 3620, !15, i64 14052, !22, i64 14056, !7, i64 14064, !7, i64 14104, !7, i64 14144, !7, i64 14149, !7, i64 14154, !7, i64 14164, !7, i64 14174, !7, i64 14179, !7, i64 14184, !15, i64 14189, !7, i64 14192, !7, i64 14212, !7, i64 14232, !13, i64 14252, !15, i64 14256, !15, i64 14257, !7, i64 14258, !15, i64 14259, !14, i64 14260, !24, i64 14264}
!22 = !{!"_ZTS6ImVec2", !13, i64 0, !13, i64 4}
!23 = !{!"_ZTS16ImGuiMouseSource", !7, i64 0}
!24 = !{!"_ZTS8ImVectorItE", !10, i64 0, !10, i64 4, !6, i64 8}
!25 = !{!"_ZTS10ImGuiStyle", !13, i64 0, !13, i64 4, !22, i64 8, !13, i64 16, !13, i64 20, !22, i64 24, !22, i64 32, !10, i64 40, !13, i64 44, !13, i64 48, !13, i64 52, !13, i64 56, !22, i64 60, !13, i64 68, !13, i64 72, !22, i64 76, !22, i64 84, !22, i64 92, !22, i64 100, !13, i64 108, !13, i64 112, !13, i64 116, !13, i64 120, !13, i64 124, !13, i64 128, !13, i64 132, !13, i64 136, !13, i64 140, !13, i64 144, !10, i64 148, !22, i64 152, !22, i64 160, !13, i64 168, !22, i64 172, !22, i64 180, !22, i64 188, !22, i64 196, !13, i64 204, !15, i64 208, !15, i64 209, !15, i64 210, !13, i64 212, !13, i64 216, !7, i64 220}
!26 = !{!"_ZTS20ImDrawListSharedData", !22, i64 0, !6, i64 8, !13, i64 16, !13, i64 20, !13, i64 24, !27, i64 28, !10, i64 44, !28, i64 48, !7, i64 64, !13, i64 448, !7, i64 452, !6, i64 520}
!27 = !{!"_ZTS6ImVec4", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12}
!28 = !{!"_ZTS8ImVectorI6ImVec2E", !10, i64 0, !10, i64 4, !6, i64 8}
!29 = !{!"double", !7, i64 0}
!30 = !{!"_ZTS8ImVectorI15ImGuiInputEventE", !10, i64 0, !10, i64 4, !6, i64 8}
!31 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !10, i64 0, !10, i64 4, !6, i64 8}
!32 = !{!"_ZTS8ImVectorI20ImGuiWindowStackDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!33 = !{!"_ZTS12ImGuiStorage", !34, i64 0}
!34 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !10, i64 0, !10, i64 4, !6, i64 8}
!35 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!36 = !{!"_ZTS20ImGuiKeyRoutingTable", !7, i64 0, !37, i64 280, !37, i64 296}
!37 = !{!"_ZTS8ImVectorI19ImGuiKeyRoutingDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!38 = !{!"_ZTS17ImGuiNextItemData", !10, i64 0, !13, i64 4, !10, i64 8, !10, i64 12, !15, i64 16}
!39 = !{!"_ZTS17ImGuiLastItemData", !10, i64 0, !10, i64 4, !10, i64 8, !40, i64 12, !40, i64 28, !40, i64 44}
!40 = !{!"_ZTS6ImRect", !22, i64 0, !22, i64 8}
!41 = !{!"_ZTS19ImGuiNextWindowData", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !22, i64 16, !22, i64 24, !22, i64 32, !22, i64 40, !22, i64 48, !15, i64 56, !40, i64 60, !6, i64 80, !6, i64 88, !13, i64 96, !22, i64 100}
!42 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !10, i64 0, !10, i64 4, !6, i64 8}
!43 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !10, i64 0, !10, i64 4, !6, i64 8}
!44 = !{!"_ZTS8ImVectorIP6ImFontE", !10, i64 0, !10, i64 4, !6, i64 8}
!45 = !{!"_ZTS8ImVectorIjE", !10, i64 0, !10, i64 4, !6, i64 8}
!46 = !{!"_ZTS8ImVectorIiE", !10, i64 0, !10, i64 4, !6, i64 8}
!47 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!48 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!49 = !{!"_ZTS8ImVectorIP14ImGuiViewportPE", !10, i64 0, !10, i64 4, !6, i64 8}
!50 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!51 = !{!"_ZTS16ImGuiNavItemData", !6, i64 0, !10, i64 8, !10, i64 12, !40, i64 16, !10, i64 32, !13, i64 36, !13, i64 40, !13, i64 44}
!52 = !{!"_ZTS12ImGuiPayload", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !7, i64 24, !15, i64 57, !15, i64 58}
!53 = !{!"_ZTS8ImVectorIhE", !10, i64 0, !10, i64 4, !6, i64 8}
!54 = !{!"_ZTS8ImVectorI20ImGuiListClipperDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!55 = !{!"_ZTS8ImVectorI18ImGuiTableTempDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!56 = !{!"_ZTS6ImPoolI10ImGuiTableE", !57, i64 0, !33, i64 16, !10, i64 32, !10, i64 36}
!57 = !{!"_ZTS8ImVectorI10ImGuiTableE", !10, i64 0, !10, i64 4, !6, i64 8}
!58 = !{!"_ZTS8ImVectorIfE", !10, i64 0, !10, i64 4, !6, i64 8}
!59 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !10, i64 0, !10, i64 4, !6, i64 8}
!60 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !61, i64 0, !33, i64 16, !10, i64 32, !10, i64 36}
!61 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !10, i64 0, !10, i64 4, !6, i64 8}
!62 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !10, i64 0, !10, i64 4, !6, i64 8}
!63 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !10, i64 0, !10, i64 4, !6, i64 8}
!64 = !{!"_ZTS19ImGuiInputTextState", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !24, i64 24, !65, i64 40, !65, i64 56, !15, i64 72, !10, i64 76, !13, i64 80, !66, i64 84, !13, i64 3712, !15, i64 3716, !15, i64 3717, !15, i64 3718, !10, i64 3720}
!65 = !{!"_ZTS8ImVectorIcE", !10, i64 0, !10, i64 4, !6, i64 8}
!66 = !{!"_ZTSN5ImStb17STB_TexteditStateE", !10, i64 0, !10, i64 4, !10, i64 8, !7, i64 12, !10, i64 16, !7, i64 20, !7, i64 21, !7, i64 22, !7, i64 23, !7, i64 24, !7, i64 25, !7, i64 26, !13, i64 28, !67, i64 32}
!67 = !{!"_ZTSN5ImStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !14, i64 3582, !14, i64 3584, !10, i64 3588, !10, i64 3592}
!68 = !{!"_ZTS30ImGuiInputTextDeactivatedState", !10, i64 0, !65, i64 8}
!69 = !{!"_ZTS6ImFont", !58, i64 0, !13, i64 16, !13, i64 20, !24, i64 24, !70, i64 40, !6, i64 56, !6, i64 64, !6, i64 72, !14, i64 80, !14, i64 82, !14, i64 84, !14, i64 86, !13, i64 88, !13, i64 92, !15, i64 96, !13, i64 100, !13, i64 104, !13, i64 108, !10, i64 112, !7, i64 116}
!70 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !10, i64 0, !10, i64 4, !6, i64 8}
!71 = !{!"_ZTS21ImGuiComboPreviewData", !40, i64 0, !22, i64 16, !22, i64 24, !22, i64 32, !13, i64 40, !10, i64 44}
!72 = !{!"_ZTS20ImGuiPlatformImeData", !15, i64 0, !22, i64 4, !13, i64 12}
!73 = !{!"_ZTS15ImGuiTextBuffer", !65, i64 0}
!74 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !10, i64 0, !10, i64 4, !6, i64 8}
!75 = !{!"_ZTS13ImChunkStreamI19ImGuiWindowSettingsE", !65, i64 0}
!76 = !{!"_ZTS13ImChunkStreamI18ImGuiTableSettingsE", !65, i64 0}
!77 = !{!"_ZTS8ImVectorI16ImGuiContextHookE", !10, i64 0, !10, i64 4, !6, i64 8}
!78 = !{!"_ZTS12ImGuiLogType", !7, i64 0}
!79 = !{!"_ZTS14ImGuiTextIndex", !46, i64 0, !10, i64 16}
!80 = !{!"_ZTS18ImGuiMetricsConfig", !15, i64 0, !15, i64 1, !15, i64 2, !15, i64 3, !15, i64 4, !15, i64 5, !15, i64 6, !15, i64 7, !10, i64 8, !10, i64 12}
!81 = !{!"_ZTS14ImGuiStackTool", !10, i64 0, !10, i64 4, !10, i64 8, !82, i64 16, !15, i64 32, !13, i64 36}
!82 = !{!"_ZTS8ImVectorI19ImGuiStackLevelInfoE", !10, i64 0, !10, i64 4, !6, i64 8}
!83 = distinct !{!83, !18}


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

%struct.ImChunkStream.27 = type { %struct.ImVector.24 }
%struct.ImVector.24 = type { i32, i32, ptr }

@GImGui = external local_unnamed_addr global ptr, align 8

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorIcE7reserveEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN13ImChunkStreamI18ImGuiTableSettingsE11alloc_chunkEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i64 @_ZL26TableSettingsCalcChunkSizei(i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN13ImChunkStreamI18ImGuiTableSettingsE5beginEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui22TableGcCompactSettingsEv() local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca %struct.ImChunkStream.27, align 8
  %2 = load ptr, ptr @GImGui, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %2, i64 23544
  %4 = tail call noundef ptr @_ZN13ImChunkStreamI18ImGuiTableSettingsE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %.not28 = icmp eq ptr %4, null
  br i1 %.not28, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %15, %0
  %.023.lcssa = phi i32 [ 0, %0 ], [ %.1, %15 ]
  %5 = load i32, ptr %3, align 8, !tbaa !9
  %6 = icmp eq i32 %.023.lcssa, %5
  br i1 %6, label %41, label %17

.lr.ph:                                           ; preds = %0, %15
  %.02230 = phi ptr [ %16, %15 ], [ %4, %0 ]
  %.02329 = phi i32 [ %.1, %15 ], [ 0, %0 ]
  %7 = load i32, ptr %.02230, align 4, !tbaa !77
  %.not27 = icmp eq i32 %7, 0
  br i1 %.not27, label %15, label %8

8:                                                ; preds = %.lr.ph
  %9 = getelementptr inbounds i8, ptr %.02230, i64 12
  %10 = load i16, ptr %9, align 4, !tbaa !79
  %11 = sext i16 %10 to i32
  %12 = tail call noundef i64 @_ZL26TableSettingsCalcChunkSizei(i32 noundef %11)
  %13 = trunc i64 %12 to i32
  %14 = add nsw i32 %.02329, %13
  br label %15

15:                                               ; preds = %.lr.ph, %8
  %.1 = phi i32 [ %14, %8 ], [ %.02329, %.lr.ph ]
  %16 = tail call noundef ptr @_ZN13ImChunkStreamI18ImGuiTableSettingsE10next_chunkEPS0_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull %.02230)
  %.not = icmp eq ptr %16, null
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !80

17:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #6
  call void @_ZN13ImChunkStreamI18ImGuiTableSettingsEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %1)
  invoke void @_ZN8ImVectorIcE7reserveEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef %.023.lcssa)
          to label %18 unwind label %22

18:                                               ; preds = %17
  %19 = call noundef ptr @_ZN13ImChunkStreamI18ImGuiTableSettingsE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  br label %20

20:                                               ; preds = %38, %18
  %.0 = phi ptr [ %19, %18 ], [ %39, %38 ]
  %.not24 = icmp eq ptr %.0, null
  br i1 %.not24, label %21, label %26

21:                                               ; preds = %20
  invoke void @_ZN13ImChunkStreamI18ImGuiTableSettingsE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %40 unwind label %22

22:                                               ; preds = %21, %17
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %42

24:                                               ; preds = %38, %28
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %42

26:                                               ; preds = %20
  %27 = load i32, ptr %.0, align 4, !tbaa !77
  %.not25 = icmp eq i32 %27, 0
  br i1 %.not25, label %38, label %28

28:                                               ; preds = %26
  %29 = getelementptr inbounds i8, ptr %.0, i64 12
  %30 = load i16, ptr %29, align 4, !tbaa !79
  %31 = sext i16 %30 to i32
  %32 = call noundef i64 @_ZL26TableSettingsCalcChunkSizei(i32 noundef %31)
  %33 = invoke noundef ptr @_ZN13ImChunkStreamI18ImGuiTableSettingsE11alloc_chunkEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %32)
          to label %34 unwind label %24

34:                                               ; preds = %28
  %35 = load i16, ptr %29, align 4, !tbaa !79
  %36 = sext i16 %35 to i32
  %37 = call noundef i64 @_ZL26TableSettingsCalcChunkSizei(i32 noundef %36)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr nonnull align 4 %.0, i64 %37, i1 false)
  br label %38

38:                                               ; preds = %26, %34
  %39 = invoke noundef ptr @_ZN13ImChunkStreamI18ImGuiTableSettingsE10next_chunkEPS0_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull %.0)
          to label %20 unwind label %24, !llvm.loop !82

40:                                               ; preds = %21
  call void @_ZN13ImChunkStreamI18ImGuiTableSettingsED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %1) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #6
  br label %41

41:                                               ; preds = %._crit_edge, %40
  ret void

42:                                               ; preds = %24, %22
  %.pn = phi { ptr, i32 } [ %25, %24 ], [ %23, %22 ]
  call void @_ZN13ImChunkStreamI18ImGuiTableSettingsED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %1) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn
}

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !13, i64 23544}
!10 = !{!"_ZTS12ImGuiContext", !11, i64 0, !11, i64 1, !12, i64 8, !19, i64 14288, !6, i64 15360, !15, i64 15368, !15, i64 15372, !20, i64 15376, !23, i64 15904, !13, i64 15912, !13, i64 15916, !13, i64 15920, !11, i64 15924, !11, i64 15925, !11, i64 15926, !11, i64 15927, !11, i64 15928, !6, i64 15936, !24, i64 15944, !24, i64 15960, !16, i64 15976, !13, i64 15980, !25, i64 15984, !25, i64 16000, !25, i64 16016, !26, i64 16032, !27, i64 16048, !13, i64 16064, !14, i64 16068, !6, i64 16080, !6, i64 16088, !6, i64 16096, !6, i64 16104, !6, i64 16112, !14, i64 16120, !13, i64 16128, !15, i64 16132, !14, i64 16136, !14, i64 16144, !13, i64 16152, !13, i64 16156, !13, i64 16160, !11, i64 16164, !11, i64 16165, !15, i64 16168, !15, i64 16172, !13, i64 16176, !13, i64 16180, !15, i64 16184, !11, i64 16188, !11, i64 16189, !11, i64 16190, !11, i64 16191, !11, i64 16192, !11, i64 16193, !14, i64 16196, !6, i64 16208, !29, i64 16216, !13, i64 16220, !13, i64 16224, !11, i64 16228, !11, i64 16229, !6, i64 16232, !13, i64 16240, !15, i64 16244, !7, i64 16248, !30, i64 17928, !13, i64 18240, !11, i64 18244, !13, i64 18248, !13, i64 18252, !13, i64 18256, !13, i64 18260, !32, i64 18264, !33, i64 18284, !35, i64 18344, !36, i64 18456, !37, i64 18472, !38, i64 18488, !39, i64 18504, !40, i64 18520, !41, i64 18536, !42, i64 18552, !42, i64 18568, !13, i64 18584, !43, i64 18592, !6, i64 18608, !13, i64 18616, !13, i64 18620, !13, i64 18624, !13, i64 18628, !13, i64 18632, !13, i64 18636, !13, i64 18640, !13, i64 18644, !13, i64 18648, !13, i64 18652, !13, i64 18656, !29, i64 18660, !44, i64 18664, !11, i64 18668, !11, i64 18669, !11, i64 18670, !11, i64 18671, !11, i64 18672, !11, i64 18673, !11, i64 18674, !13, i64 18676, !34, i64 18680, !11, i64 18696, !11, i64 18697, !11, i64 18698, !13, i64 18700, !13, i64 18704, !13, i64 18708, !13, i64 18712, !13, i64 18716, !13, i64 18720, !34, i64 18724, !34, i64 18740, !13, i64 18756, !13, i64 18760, !13, i64 18764, !45, i64 18768, !45, i64 18816, !45, i64 18864, !45, i64 18912, !13, i64 18960, !13, i64 18964, !6, i64 18968, !6, i64 18976, !6, i64 18984, !15, i64 18992, !15, i64 18996, !11, i64 19000, !14, i64 19004, !14, i64 19012, !15, i64 19020, !13, i64 19024, !11, i64 19028, !11, i64 19029, !11, i64 19030, !13, i64 19032, !13, i64 19036, !13, i64 19040, !46, i64 19048, !34, i64 19112, !13, i64 19128, !13, i64 19132, !15, i64 19136, !13, i64 19140, !13, i64 19144, !13, i64 19148, !13, i64 19152, !47, i64 19160, !7, i64 19176, !13, i64 19192, !48, i64 19200, !6, i64 19216, !13, i64 19224, !49, i64 19232, !50, i64 19248, !52, i64 19288, !53, i64 19304, !6, i64 19320, !54, i64 19328, !56, i64 19368, !57, i64 19384, !13, i64 19400, !13, i64 19404, !15, i64 19408, !15, i64 19412, !14, i64 19416, !58, i64 19424, !62, i64 23152, !63, i64 23176, !13, i64 23296, !13, i64 23300, !13, i64 23304, !13, i64 23308, !15, i64 23312, !15, i64 23316, !13, i64 23320, !21, i64 23324, !65, i64 23340, !15, i64 23388, !15, i64 23392, !11, i64 23396, !11, i64 23397, !15, i64 23400, !15, i64 23404, !15, i64 23408, !15, i64 23412, !17, i64 23416, !17, i64 23418, !59, i64 23424, !39, i64 23440, !66, i64 23456, !66, i64 23472, !7, i64 23488, !11, i64 23489, !15, i64 23492, !67, i64 23496, !68, i64 23512, !69, i64 23528, !70, i64 23544, !71, i64 23560, !13, i64 23576, !7, i64 23584, !11, i64 23640, !72, i64 23644, !6, i64 23648, !67, i64 23656, !6, i64 23672, !6, i64 23680, !15, i64 23688, !11, i64 23692, !13, i64 23696, !13, i64 23700, !13, i64 23704, !13, i64 23708, !67, i64 23712, !73, i64 23728, !7, i64 23752, !7, i64 23753, !7, i64 23754, !11, i64 23755, !7, i64 23756, !13, i64 23760, !74, i64 23764, !75, i64 23784, !7, i64 23824, !13, i64 24064, !13, i64 24068, !15, i64 24072, !13, i64 24076, !13, i64 24080, !13, i64 24084, !59, i64 24088}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"_ZTS7ImGuiIO", !13, i64 0, !13, i64 4, !14, i64 8, !15, i64 16, !15, i64 20, !6, i64 24, !6, i64 32, !15, i64 40, !15, i64 44, !15, i64 48, !15, i64 52, !15, i64 56, !15, i64 60, !15, i64 64, !6, i64 72, !6, i64 80, !15, i64 88, !11, i64 92, !6, i64 96, !14, i64 104, !11, i64 112, !11, i64 113, !11, i64 114, !11, i64 115, !11, i64 116, !11, i64 117, !11, i64 118, !11, i64 119, !15, i64 120, !11, i64 124, !11, i64 125, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !11, i64 208, !11, i64 209, !11, i64 210, !11, i64 211, !11, i64 212, !11, i64 213, !11, i64 214, !15, i64 216, !13, i64 220, !13, i64 224, !13, i64 228, !13, i64 232, !13, i64 236, !14, i64 240, !7, i64 248, !7, i64 2856, !7, i64 3508, !6, i64 3576, !14, i64 3584, !7, i64 3592, !15, i64 3600, !15, i64 3604, !16, i64 3608, !11, i64 3612, !11, i64 3613, !11, i64 3614, !11, i64 3615, !13, i64 3616, !7, i64 3620, !11, i64 14052, !14, i64 14056, !7, i64 14064, !7, i64 14104, !7, i64 14144, !7, i64 14149, !7, i64 14154, !7, i64 14164, !7, i64 14174, !7, i64 14179, !7, i64 14184, !11, i64 14189, !7, i64 14192, !7, i64 14212, !7, i64 14232, !15, i64 14252, !11, i64 14256, !11, i64 14257, !7, i64 14258, !11, i64 14259, !17, i64 14260, !18, i64 14264}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTS6ImVec2", !15, i64 0, !15, i64 4}
!15 = !{!"float", !7, i64 0}
!16 = !{!"_ZTS16ImGuiMouseSource", !7, i64 0}
!17 = !{!"short", !7, i64 0}
!18 = !{!"_ZTS8ImVectorItE", !13, i64 0, !13, i64 4, !6, i64 8}
!19 = !{!"_ZTS10ImGuiStyle", !15, i64 0, !15, i64 4, !14, i64 8, !15, i64 16, !15, i64 20, !14, i64 24, !14, i64 32, !13, i64 40, !15, i64 44, !15, i64 48, !15, i64 52, !15, i64 56, !14, i64 60, !15, i64 68, !15, i64 72, !14, i64 76, !14, i64 84, !14, i64 92, !14, i64 100, !15, i64 108, !15, i64 112, !15, i64 116, !15, i64 120, !15, i64 124, !15, i64 128, !15, i64 132, !15, i64 136, !15, i64 140, !15, i64 144, !13, i64 148, !14, i64 152, !14, i64 160, !15, i64 168, !14, i64 172, !14, i64 180, !14, i64 188, !14, i64 196, !15, i64 204, !11, i64 208, !11, i64 209, !11, i64 210, !15, i64 212, !15, i64 216, !7, i64 220}
!20 = !{!"_ZTS20ImDrawListSharedData", !14, i64 0, !6, i64 8, !15, i64 16, !15, i64 20, !15, i64 24, !21, i64 28, !13, i64 44, !22, i64 48, !7, i64 64, !15, i64 448, !7, i64 452, !6, i64 520}
!21 = !{!"_ZTS6ImVec4", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!22 = !{!"_ZTS8ImVectorI6ImVec2E", !13, i64 0, !13, i64 4, !6, i64 8}
!23 = !{!"double", !7, i64 0}
!24 = !{!"_ZTS8ImVectorI15ImGuiInputEventE", !13, i64 0, !13, i64 4, !6, i64 8}
!25 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !13, i64 0, !13, i64 4, !6, i64 8}
!26 = !{!"_ZTS8ImVectorI20ImGuiWindowStackDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!27 = !{!"_ZTS12ImGuiStorage", !28, i64 0}
!28 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !13, i64 0, !13, i64 4, !6, i64 8}
!29 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!30 = !{!"_ZTS20ImGuiKeyRoutingTable", !7, i64 0, !31, i64 280, !31, i64 296}
!31 = !{!"_ZTS8ImVectorI19ImGuiKeyRoutingDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!32 = !{!"_ZTS17ImGuiNextItemData", !13, i64 0, !15, i64 4, !13, i64 8, !13, i64 12, !11, i64 16}
!33 = !{!"_ZTS17ImGuiLastItemData", !13, i64 0, !13, i64 4, !13, i64 8, !34, i64 12, !34, i64 28, !34, i64 44}
!34 = !{!"_ZTS6ImRect", !14, i64 0, !14, i64 8}
!35 = !{!"_ZTS19ImGuiNextWindowData", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !11, i64 56, !34, i64 60, !6, i64 80, !6, i64 88, !15, i64 96, !14, i64 100}
!36 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !13, i64 0, !13, i64 4, !6, i64 8}
!37 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !13, i64 0, !13, i64 4, !6, i64 8}
!38 = !{!"_ZTS8ImVectorIP6ImFontE", !13, i64 0, !13, i64 4, !6, i64 8}
!39 = !{!"_ZTS8ImVectorIjE", !13, i64 0, !13, i64 4, !6, i64 8}
!40 = !{!"_ZTS8ImVectorIiE", !13, i64 0, !13, i64 4, !6, i64 8}
!41 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!42 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!43 = !{!"_ZTS8ImVectorIP14ImGuiViewportPE", !13, i64 0, !13, i64 4, !6, i64 8}
!44 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!45 = !{!"_ZTS16ImGuiNavItemData", !6, i64 0, !13, i64 8, !13, i64 12, !34, i64 16, !13, i64 32, !15, i64 36, !15, i64 40, !15, i64 44}
!46 = !{!"_ZTS12ImGuiPayload", !6, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !7, i64 24, !11, i64 57, !11, i64 58}
!47 = !{!"_ZTS8ImVectorIhE", !13, i64 0, !13, i64 4, !6, i64 8}
!48 = !{!"_ZTS8ImVectorI20ImGuiListClipperDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!49 = !{!"_ZTS8ImVectorI18ImGuiTableTempDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!50 = !{!"_ZTS6ImPoolI10ImGuiTableE", !51, i64 0, !27, i64 16, !13, i64 32, !13, i64 36}
!51 = !{!"_ZTS8ImVectorI10ImGuiTableE", !13, i64 0, !13, i64 4, !6, i64 8}
!52 = !{!"_ZTS8ImVectorIfE", !13, i64 0, !13, i64 4, !6, i64 8}
!53 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !13, i64 0, !13, i64 4, !6, i64 8}
!54 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !55, i64 0, !27, i64 16, !13, i64 32, !13, i64 36}
!55 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !13, i64 0, !13, i64 4, !6, i64 8}
!56 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !13, i64 0, !13, i64 4, !6, i64 8}
!57 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !13, i64 0, !13, i64 4, !6, i64 8}
!58 = !{!"_ZTS19ImGuiInputTextState", !6, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !18, i64 24, !59, i64 40, !59, i64 56, !11, i64 72, !13, i64 76, !15, i64 80, !60, i64 84, !15, i64 3712, !11, i64 3716, !11, i64 3717, !11, i64 3718, !13, i64 3720}
!59 = !{!"_ZTS8ImVectorIcE", !13, i64 0, !13, i64 4, !6, i64 8}
!60 = !{!"_ZTSN5ImStb17STB_TexteditStateE", !13, i64 0, !13, i64 4, !13, i64 8, !7, i64 12, !13, i64 16, !7, i64 20, !7, i64 21, !7, i64 22, !7, i64 23, !7, i64 24, !7, i64 25, !7, i64 26, !15, i64 28, !61, i64 32}
!61 = !{!"_ZTSN5ImStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !17, i64 3582, !17, i64 3584, !13, i64 3588, !13, i64 3592}
!62 = !{!"_ZTS30ImGuiInputTextDeactivatedState", !13, i64 0, !59, i64 8}
!63 = !{!"_ZTS6ImFont", !52, i64 0, !15, i64 16, !15, i64 20, !18, i64 24, !64, i64 40, !6, i64 56, !6, i64 64, !6, i64 72, !17, i64 80, !17, i64 82, !17, i64 84, !17, i64 86, !15, i64 88, !15, i64 92, !11, i64 96, !15, i64 100, !15, i64 104, !15, i64 108, !13, i64 112, !7, i64 116}
!64 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !13, i64 0, !13, i64 4, !6, i64 8}
!65 = !{!"_ZTS21ImGuiComboPreviewData", !34, i64 0, !14, i64 16, !14, i64 24, !14, i64 32, !15, i64 40, !13, i64 44}
!66 = !{!"_ZTS20ImGuiPlatformImeData", !11, i64 0, !14, i64 4, !15, i64 12}
!67 = !{!"_ZTS15ImGuiTextBuffer", !59, i64 0}
!68 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !13, i64 0, !13, i64 4, !6, i64 8}
!69 = !{!"_ZTS13ImChunkStreamI19ImGuiWindowSettingsE", !59, i64 0}
!70 = !{!"_ZTS13ImChunkStreamI18ImGuiTableSettingsE", !59, i64 0}
!71 = !{!"_ZTS8ImVectorI16ImGuiContextHookE", !13, i64 0, !13, i64 4, !6, i64 8}
!72 = !{!"_ZTS12ImGuiLogType", !7, i64 0}
!73 = !{!"_ZTS14ImGuiTextIndex", !40, i64 0, !13, i64 16}
!74 = !{!"_ZTS18ImGuiMetricsConfig", !11, i64 0, !11, i64 1, !11, i64 2, !11, i64 3, !11, i64 4, !11, i64 5, !11, i64 6, !11, i64 7, !13, i64 8, !13, i64 12}
!75 = !{!"_ZTS14ImGuiStackTool", !13, i64 0, !13, i64 4, !13, i64 8, !76, i64 16, !11, i64 32, !15, i64 36}
!76 = !{!"_ZTS8ImVectorI19ImGuiStackLevelInfoE", !13, i64 0, !13, i64 4, !6, i64 8}
!77 = !{!78, !13, i64 0}
!78 = !{!"_ZTS18ImGuiTableSettings", !13, i64 0, !13, i64 4, !15, i64 8, !17, i64 12, !17, i64 14, !11, i64 16}
!79 = !{!78, !17, i64 12}
!80 = distinct !{!80, !81}
!81 = !{!"llvm.loop.mustprogress"}
!82 = distinct !{!82, !81}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass