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

; 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.ImGuiTable = type <{ i32, i32, ptr, ptr, %struct.ImSpan, %struct.ImSpan.35, %struct.ImSpan.36, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i16, i16, float, float, float, float, float, i32, i32, [2 x i32], i32, i32, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, ptr, ptr, %struct.ImGuiTextBuffer, ptr, %struct.ImGuiTableInstanceData, %struct.ImVector.37, %struct.ImGuiTableColumnSortSpecs, [4 x i8], %struct.ImVector.38, %struct.ImGuiTableSortSpecs, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, [5 x i8] }>
%struct.ImSpan = type { ptr, ptr }
%struct.ImSpan.35 = type { ptr, ptr }
%struct.ImSpan.36 = type { ptr, ptr }
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImVec2 = type { float, float }
%struct.ImGuiTextBuffer = type { %struct.ImVector.24 }
%struct.ImVector.24 = type { i32, i32, ptr }
%struct.ImGuiTableInstanceData = type { i32, float, float, float }
%struct.ImVector.37 = type { i32, i32, ptr }
%struct.ImGuiTableColumnSortSpecs = type <{ i32, i16, i16, i8, [3 x i8] }>
%struct.ImVector.38 = type { i32, i32, ptr }
%struct.ImGuiTableSortSpecs = type <{ ptr, i32, i8, [3 x i8] }>
%struct.ImGuiTableSettings = type <{ i32, i32, float, i16, i16, i8, [3 x i8] }>
%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.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.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.ImChunkStream.27 = type { %struct.ImVector.24 }
%struct.ImVector.28 = type { i32, i32, ptr }
%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.ImGuiTableColumnSettings = type <{ float, i32, i16, i16, i16, i8, i8 }>
%struct.ImGuiTableColumn = type <{ i32, float, float, float, float, float, float, float, %struct.ImRect, i32, float, float, float, float, float, float, float, i16, i16, i16, i16, i16, i16, i16, i16, i16, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(111) ptr @_ZN6ImSpanI16ImGuiTableColumnEixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui17TableLoadSettingsEP10ImGuiTable(ptr noundef %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %14 = load ptr, ptr @GImGui, align 8, !tbaa !5
  store ptr %14, ptr %3, align 8, !tbaa !5
  %15 = load ptr, ptr %2, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.ImGuiTable, ptr %15, i32 0, i32 94
  store i8 0, ptr %16, align 8, !tbaa !9
  %17 = load ptr, ptr %2, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.ImGuiTable, ptr %17, i32 0, i32 1
  %19 = load i32, ptr %18, align 4, !tbaa !27
  %20 = and i32 %19, 16
  %21 = icmp ne i32 %20, 0
  br i1 %21, label %22, label %23

22:                                               ; preds = %1
  store i32 1, ptr %4, align 4
  br label %252

23:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %24 = load ptr, ptr %2, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.ImGuiTable, ptr %24, i32 0, i32 11
  %26 = load i32, ptr %25, align 4, !tbaa !28
  %27 = icmp eq i32 %26, -1
  br i1 %27, label %28, label %55

28:                                               ; preds = %23
  %29 = load ptr, ptr %2, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.ImGuiTable, ptr %29, i32 0, i32 0
  %31 = load i32, ptr %30, align 8, !tbaa !29
  %32 = call noundef ptr @_ZN5ImGui21TableSettingsFindByIDEj(i32 noundef %31)
  store ptr %32, ptr %5, align 8, !tbaa !5
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = icmp eq ptr %33, null
  br i1 %34, label %35, label %36

35:                                               ; preds = %28
  store i32 1, ptr %4, align 4
  br label %251

36:                                               ; preds = %28
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.ImGuiTableSettings, ptr %37, i32 0, i32 3
  %39 = load i16, ptr %38, align 4, !tbaa !30
  %40 = sext i16 %39 to i32
  %41 = load ptr, ptr %2, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.ImGuiTable, ptr %41, i32 0, i32 13
  %43 = load i32, ptr %42, align 4, !tbaa !32
  %44 = icmp ne i32 %40, %43
  br i1 %44, label %45, label %48

45:                                               ; preds = %36
  %46 = load ptr, ptr %2, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.ImGuiTable, ptr %46, i32 0, i32 95
  store i8 1, ptr %47, align 1, !tbaa !33
  br label %48

48:                                               ; preds = %45, %36
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.ImGuiContext, ptr %49, i32 0, i32 206
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = call noundef i32 @_ZN13ImChunkStreamI18ImGuiTableSettingsE15offset_from_ptrEPKS0_(ptr noundef nonnull align 8 dereferenceable(16) %50, ptr noundef %51)
  %53 = load ptr, ptr %2, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.ImGuiTable, ptr %53, i32 0, i32 11
  store i32 %52, ptr %54, align 4, !tbaa !28
  br label %58

55:                                               ; preds = %23
  %56 = load ptr, ptr %2, align 8, !tbaa !5
  %57 = call noundef ptr @_ZN5ImGui21TableGetBoundSettingsEP10ImGuiTable(ptr noundef %56)
  store ptr %57, ptr %5, align 8, !tbaa !5
  br label %58

58:                                               ; preds = %55, %48
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.ImGuiTableSettings, ptr %59, i32 0, i32 1
  %61 = load i32, ptr %60, align 4, !tbaa !34
  %62 = load ptr, ptr %2, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.ImGuiTable, ptr %62, i32 0, i32 10
  store i32 %61, ptr %63, align 8, !tbaa !35
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.ImGuiTableSettings, ptr %64, i32 0, i32 2
  %66 = load float, ptr %65, align 4, !tbaa !36
  %67 = load ptr, ptr %2, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.ImGuiTable, ptr %67, i32 0, i32 43
  store float %66, ptr %68, align 4, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = call noundef ptr @_ZN18ImGuiTableSettings17GetColumnSettingsEv(ptr noundef nonnull align 4 dereferenceable(17) %69)
  store ptr %70, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store i64 0, ptr %7, align 8, !tbaa !38
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !40
  br label %71

71:                                               ; preds = %181, %58
  %72 = load i32, ptr %8, align 4, !tbaa !40
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.ImGuiTableSettings, ptr %73, i32 0, i32 3
  %75 = load i16, ptr %74, align 4, !tbaa !30
  %76 = sext i16 %75 to i32
  %77 = icmp slt i32 %72, %76
  br i1 %77, label %79, label %78

78:                                               ; preds = %71
  store i32 2, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %186

79:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.ImGuiTableColumnSettings, ptr %80, i32 0, i32 2
  %82 = load i16, ptr %81, align 4, !tbaa !41
  %83 = sext i16 %82 to i32
  store i32 %83, ptr %9, align 4, !tbaa !40
  %84 = load i32, ptr %9, align 4, !tbaa !40
  %85 = icmp slt i32 %84, 0
  br i1 %85, label %92, label %86

86:                                               ; preds = %79
  %87 = load i32, ptr %9, align 4, !tbaa !40
  %88 = load ptr, ptr %2, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.ImGuiTable, ptr %88, i32 0, i32 13
  %90 = load i32, ptr %89, align 4, !tbaa !32
  %91 = icmp sge i32 %87, %90
  br i1 %91, label %92, label %93

92:                                               ; preds = %86, %79
  store i32 4, ptr %4, align 4
  br label %178

93:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %94 = load ptr, ptr %2, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.ImGuiTable, ptr %94, i32 0, i32 4
  %96 = load i32, ptr %9, align 4, !tbaa !40
  %97 = call noundef nonnull align 4 dereferenceable(111) ptr @_ZN6ImSpanI16ImGuiTableColumnEixEi(ptr noundef nonnull align 8 dereferenceable(16) %95, i32 noundef %96)
  store ptr %97, ptr %10, align 8, !tbaa !5
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.ImGuiTableSettings, ptr %98, i32 0, i32 1
  %100 = load i32, ptr %99, align 4, !tbaa !34
  %101 = and i32 %100, 1
  %102 = icmp ne i32 %101, 0
  br i1 %102, label %103, label %125

103:                                              ; preds = %93
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.ImGuiTableColumnSettings, ptr %104, i32 0, i32 5
  %106 = load i8, ptr %105, align 2
  %107 = lshr i8 %106, 3
  %108 = and i8 %107, 1
  %109 = icmp ne i8 %108, 0
  br i1 %109, label %110, label %116

110:                                              ; preds = %103
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.ImGuiTableColumnSettings, ptr %111, i32 0, i32 0
  %113 = load float, ptr %112, align 4, !tbaa !43
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.ImGuiTableColumn, ptr %114, i32 0, i32 6
  store float %113, ptr %115, align 4, !tbaa !44
  br label %122

116:                                              ; preds = %103
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.ImGuiTableColumnSettings, ptr %117, i32 0, i32 0
  %119 = load float, ptr %118, align 4, !tbaa !43
  %120 = load ptr, ptr %10, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.ImGuiTableColumn, ptr %120, i32 0, i32 4
  store float %119, ptr %121, align 4, !tbaa !46
  br label %122

122:                                              ; preds = %116, %110
  %123 = load ptr, ptr %10, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.ImGuiTableColumn, ptr %123, i32 0, i32 35
  store i8 0, ptr %124, align 1, !tbaa !47
  br label %125

125:                                              ; preds = %122, %93
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.ImGuiTableSettings, ptr %126, i32 0, i32 1
  %128 = load i32, ptr %127, align 4, !tbaa !34
  %129 = and i32 %128, 2
  %130 = icmp ne i32 %129, 0
  br i1 %130, label %131, label %137

131:                                              ; preds = %125
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.ImGuiTableColumnSettings, ptr %132, i32 0, i32 3
  %134 = load i16, ptr %133, align 2, !tbaa !48
  %135 = load ptr, ptr %10, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.ImGuiTableColumn, ptr %135, i32 0, i32 18
  store i16 %134, ptr %136, align 2, !tbaa !49
  br label %142

137:                                              ; preds = %125
  %138 = load i32, ptr %9, align 4, !tbaa !40
  %139 = trunc i32 %138 to i16
  %140 = load ptr, ptr %10, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.ImGuiTableColumn, ptr %140, i32 0, i32 18
  store i16 %139, ptr %141, align 2, !tbaa !49
  br label %142

142:                                              ; preds = %137, %131
  %143 = load ptr, ptr %10, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.ImGuiTableColumn, ptr %143, i32 0, i32 18
  %145 = load i16, ptr %144, align 2, !tbaa !49
  %146 = sext i16 %145 to i32
  %147 = zext i32 %146 to i64
  %148 = shl i64 1, %147
  %149 = load i64, ptr %7, align 8, !tbaa !38
  %150 = or i64 %149, %148
  store i64 %150, ptr %7, align 8, !tbaa !38
  %151 = load ptr, ptr %6, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.ImGuiTableColumnSettings, ptr %151, i32 0, i32 5
  %153 = load i8, ptr %152, align 2
  %154 = lshr i8 %153, 2
  %155 = and i8 %154, 1
  %156 = icmp ne i8 %155, 0
  %157 = load ptr, ptr %10, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.ImGuiTableColumn, ptr %157, i32 0, i32 28
  %159 = zext i1 %156 to i8
  store i8 %159, ptr %158, align 4, !tbaa !50
  %160 = load ptr, ptr %10, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.ImGuiTableColumn, ptr %160, i32 0, i32 27
  %162 = zext i1 %156 to i8
  store i8 %162, ptr %161, align 1, !tbaa !51
  %163 = load ptr, ptr %6, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.ImGuiTableColumnSettings, ptr %163, i32 0, i32 4
  %165 = load i16, ptr %164, align 4, !tbaa !52
  %166 = load ptr, ptr %10, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.ImGuiTableColumn, ptr %166, i32 0, i32 22
  store i16 %165, ptr %167, align 2, !tbaa !53
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.ImGuiTableColumnSettings, ptr %168, i32 0, i32 5
  %170 = load i8, ptr %169, align 2
  %171 = and i8 %170, 3
  %172 = load ptr, ptr %10, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.ImGuiTableColumn, ptr %172, i32 0, i32 37
  %174 = load i8, ptr %173, align 1
  %175 = and i8 %171, 3
  %176 = and i8 %174, -4
  %177 = or i8 %176, %175
  store i8 %177, ptr %173, align 1
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  store i32 0, ptr %4, align 4
  br label %178

178:                                              ; preds = %142, %92
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  %179 = load i32, ptr %4, align 4
  switch i32 %179, label %255 [
    i32 0, label %180
    i32 4, label %181
  ]

180:                                              ; preds = %178
  br label %181

181:                                              ; preds = %180, %178
  %182 = load i32, ptr %8, align 4, !tbaa !40
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr %8, align 4, !tbaa !40
  %184 = load ptr, ptr %6, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.ImGuiTableColumnSettings, ptr %184, i32 1
  store ptr %185, ptr %6, align 8, !tbaa !5
  br label %71, !llvm.loop !54

186:                                              ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %187 = load ptr, ptr %5, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.ImGuiTableSettings, ptr %187, i32 0, i32 3
  %189 = load i16, ptr %188, align 4, !tbaa !30
  %190 = sext i16 %189 to i32
  %191 = icmp eq i32 %190, 64
  br i1 %191, label %192, label %193

192:                                              ; preds = %186
  br label %201

193:                                              ; preds = %186
  %194 = load ptr, ptr %5, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.ImGuiTableSettings, ptr %194, i32 0, i32 3
  %196 = load i16, ptr %195, align 4, !tbaa !30
  %197 = sext i16 %196 to i32
  %198 = zext i32 %197 to i64
  %199 = shl i64 1, %198
  %200 = sub i64 %199, 1
  br label %201

201:                                              ; preds = %193, %192
  %202 = phi i64 [ -1, %192 ], [ %200, %193 ]
  store i64 %202, ptr %11, align 8, !tbaa !38
  %203 = load i64, ptr %7, align 8, !tbaa !38
  %204 = load i64, ptr %11, align 8, !tbaa !38
  %205 = icmp ne i64 %203, %204
  br i1 %205, label %206, label %226

206:                                              ; preds = %201
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !40
  br label %207

207:                                              ; preds = %222, %206
  %208 = load i32, ptr %12, align 4, !tbaa !40
  %209 = load ptr, ptr %2, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.ImGuiTable, ptr %209, i32 0, i32 13
  %211 = load i32, ptr %210, align 4, !tbaa !32
  %212 = icmp slt i32 %208, %211
  br i1 %212, label %214, label %213

213:                                              ; preds = %207
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %225

214:                                              ; preds = %207
  %215 = load i32, ptr %12, align 4, !tbaa !40
  %216 = trunc i32 %215 to i16
  %217 = load ptr, ptr %2, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.ImGuiTable, ptr %217, i32 0, i32 4
  %219 = load i32, ptr %12, align 4, !tbaa !40
  %220 = call noundef nonnull align 4 dereferenceable(111) ptr @_ZN6ImSpanI16ImGuiTableColumnEixEi(ptr noundef nonnull align 8 dereferenceable(16) %218, i32 noundef %219)
  %221 = getelementptr inbounds %struct.ImGuiTableColumn, ptr %220, i32 0, i32 18
  store i16 %216, ptr %221, align 2, !tbaa !49
  br label %222

222:                                              ; preds = %214
  %223 = load i32, ptr %12, align 4, !tbaa !40
  %224 = add nsw i32 %223, 1
  store i32 %224, ptr %12, align 4, !tbaa !40
  br label %207, !llvm.loop !56

225:                                              ; preds = %213
  br label %226

226:                                              ; preds = %225, %201
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !40
  br label %227

227:                                              ; preds = %247, %226
  %228 = load i32, ptr %13, align 4, !tbaa !40
  %229 = load ptr, ptr %2, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.ImGuiTable, ptr %229, i32 0, i32 13
  %231 = load i32, ptr %230, align 4, !tbaa !32
  %232 = icmp slt i32 %228, %231
  br i1 %232, label %234, label %233

233:                                              ; preds = %227
  store i32 8, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %250

234:                                              ; preds = %227
  %235 = load i32, ptr %13, align 4, !tbaa !40
  %236 = trunc i32 %235 to i16
  %237 = load ptr, ptr %2, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.ImGuiTable, ptr %237, i32 0, i32 5
  %239 = load ptr, ptr %2, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.ImGuiTable, ptr %239, i32 0, i32 4
  %241 = load i32, ptr %13, align 4, !tbaa !40
  %242 = call noundef nonnull align 4 dereferenceable(111) ptr @_ZN6ImSpanI16ImGuiTableColumnEixEi(ptr noundef nonnull align 8 dereferenceable(16) %240, i32 noundef %241)
  %243 = getelementptr inbounds %struct.ImGuiTableColumn, ptr %242, i32 0, i32 18
  %244 = load i16, ptr %243, align 2, !tbaa !49
  %245 = sext i16 %244 to i32
  %246 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZN6ImSpanIsEixEi(ptr noundef nonnull align 8 dereferenceable(16) %238, i32 noundef %245)
  store i16 %236, ptr %246, align 2, !tbaa !57
  br label %247

247:                                              ; preds = %234
  %248 = load i32, ptr %13, align 4, !tbaa !40
  %249 = add nsw i32 %248, 1
  store i32 %249, ptr %13, align 4, !tbaa !40
  br label %227, !llvm.loop !58

250:                                              ; preds = %233
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  store i32 0, ptr %4, align 4
  br label %251

251:                                              ; preds = %250, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %252

252:                                              ; preds = %251, %22
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  %253 = load i32, ptr %4, align 4
  switch i32 %253, label %255 [
    i32 0, label %254
    i32 1, label %254
  ]

254:                                              ; preds = %252, %252
  ret void

255:                                              ; preds = %252, %178
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5ImGui21TableSettingsFindByIDEj(i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5ImGui21TableGetBoundSettingsEP10ImGuiTable(ptr noundef) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN18ImGuiTableSettings17GetColumnSettingsEv(ptr noundef nonnull align 4 dereferenceable(17)) #3 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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, !26, i64 552}
!10 = !{!"_ZTS10ImGuiTable", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16, !12, i64 24, !13, i64 40, !14, i64 56, !6, i64 72, !6, i64 80, !6, i64 88, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !15, i64 120, !15, i64 122, !16, i64 124, !16, i64 128, !16, i64 132, !16, i64 136, !16, i64 140, !11, i64 144, !11, i64 146, !11, i64 148, !7, i64 152, !11, i64 160, !11, i64 164, !16, i64 168, !16, i64 172, !16, i64 176, !16, i64 180, !16, i64 184, !16, i64 188, !16, i64 192, !16, i64 196, !16, i64 200, !16, i64 204, !16, i64 208, !16, i64 212, !16, i64 216, !16, i64 220, !16, i64 224, !16, i64 228, !17, i64 232, !17, i64 248, !17, i64 264, !17, i64 280, !17, i64 296, !17, i64 312, !17, i64 328, !17, i64 344, !17, i64 360, !6, i64 376, !6, i64 384, !19, i64 392, !6, i64 408, !21, i64 416, !22, i64 432, !23, i64 448, !24, i64 464, !25, i64 480, !15, i64 496, !15, i64 498, !15, i64 500, !15, i64 502, !15, i64 504, !15, i64 506, !15, i64 508, !15, i64 510, !15, i64 512, !15, i64 514, !15, i64 516, !15, i64 518, !15, i64 520, !15, i64 522, !15, i64 524, !15, i64 526, !15, i64 528, !15, i64 530, !15, i64 532, !15, i64 534, !15, i64 536, !15, i64 538, !15, i64 540, !15, i64 542, !15, i64 544, !26, i64 546, !26, i64 547, !26, i64 548, !26, i64 549, !26, i64 550, !26, i64 551, !26, i64 552, !26, i64 553, !26, i64 554, !26, i64 555, !26, i64 556, !26, i64 557, !26, i64 558, !26, i64 559, !26, i64 560, !26, i64 561, !26, i64 562}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS6ImSpanI16ImGuiTableColumnE", !6, i64 0, !6, i64 8}
!13 = !{!"_ZTS6ImSpanIsE", !6, i64 0, !6, i64 8}
!14 = !{!"_ZTS6ImSpanI18ImGuiTableCellDataE", !6, i64 0, !6, i64 8}
!15 = !{!"short", !7, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{!"_ZTS6ImRect", !18, i64 0, !18, i64 8}
!18 = !{!"_ZTS6ImVec2", !16, i64 0, !16, i64 4}
!19 = !{!"_ZTS15ImGuiTextBuffer", !20, i64 0}
!20 = !{!"_ZTS8ImVectorIcE", !11, i64 0, !11, i64 4, !6, i64 8}
!21 = !{!"_ZTS22ImGuiTableInstanceData", !11, i64 0, !16, i64 4, !16, i64 8, !16, i64 12}
!22 = !{!"_ZTS8ImVectorI22ImGuiTableInstanceDataE", !11, i64 0, !11, i64 4, !6, i64 8}
!23 = !{!"_ZTS25ImGuiTableColumnSortSpecs", !11, i64 0, !15, i64 4, !15, i64 6, !11, i64 8}
!24 = !{!"_ZTS8ImVectorI25ImGuiTableColumnSortSpecsE", !11, i64 0, !11, i64 4, !6, i64 8}
!25 = !{!"_ZTS19ImGuiTableSortSpecs", !6, i64 0, !11, i64 8, !26, i64 12}
!26 = !{!"bool", !7, i64 0}
!27 = !{!10, !11, i64 4}
!28 = !{!10, !11, i64 100}
!29 = !{!10, !11, i64 0}
!30 = !{!31, !15, i64 12}
!31 = !{!"_ZTS18ImGuiTableSettings", !11, i64 0, !11, i64 4, !16, i64 8, !15, i64 12, !15, i64 14, !26, i64 16}
!32 = !{!10, !11, i64 108}
!33 = !{!10, !26, i64 553}
!34 = !{!31, !11, i64 4}
!35 = !{!10, !11, i64 96}
!36 = !{!31, !16, i64 8}
!37 = !{!10, !16, i64 228}
!38 = !{!39, !39, i64 0}
!39 = !{!"long long", !7, i64 0}
!40 = !{!11, !11, i64 0}
!41 = !{!42, !15, i64 8}
!42 = !{!"_ZTS24ImGuiTableColumnSettings", !16, i64 0, !11, i64 4, !15, i64 8, !15, i64 10, !15, i64 12, !7, i64 14, !7, i64 14, !7, i64 14}
!43 = !{!42, !16, i64 0}
!44 = !{!45, !16, i64 24}
!45 = !{!"_ZTS16ImGuiTableColumn", !11, i64 0, !16, i64 4, !16, i64 8, !16, i64 12, !16, i64 16, !16, i64 20, !16, i64 24, !16, i64 28, !17, i64 32, !11, i64 48, !16, i64 52, !16, i64 56, !16, i64 60, !16, i64 64, !16, i64 68, !16, i64 72, !16, i64 76, !15, i64 80, !15, i64 82, !15, i64 84, !15, i64 86, !15, i64 88, !15, i64 90, !15, i64 92, !15, i64 94, !15, i64 96, !26, i64 98, !26, i64 99, !26, i64 100, !26, i64 101, !26, i64 102, !26, i64 103, !26, i64 104, !26, i64 105, !7, i64 106, !7, i64 107, !7, i64 108, !7, i64 109, !7, i64 109, !7, i64 109, !7, i64 110}
!46 = !{!45, !16, i64 16}
!47 = !{!45, !7, i64 107}
!48 = !{!42, !15, i64 10}
!49 = !{!45, !15, i64 82}
!50 = !{!45, !26, i64 100}
!51 = !{!45, !26, i64 99}
!52 = !{!42, !15, i64 12}
!53 = !{!45, !15, i64 90}
!54 = distinct !{!54, !55}
!55 = !{!"llvm.loop.mustprogress"}
!56 = distinct !{!56, !55}
!57 = !{!15, !15, i64 0}
!58 = distinct !{!58, !55}


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

@GImGui = external local_unnamed_addr global ptr, align 8

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(111) ptr @_ZN6ImSpanI16ImGuiTableColumnEixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui17TableLoadSettingsEP10ImGuiTable(ptr noundef %0) local_unnamed_addr #1 {
  %2 = load ptr, ptr @GImGui, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 552
  store i8 0, ptr %3, align 8, !tbaa !9
  %4 = getelementptr inbounds i8, ptr %0, i64 4
  %5 = load i32, ptr %4, align 4, !tbaa !27
  %6 = and i32 %5, 16
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %7, label %.loopexit

7:                                                ; preds = %1
  %8 = getelementptr inbounds i8, ptr %0, i64 100
  %9 = load i32, ptr %8, align 4, !tbaa !28
  %10 = icmp eq i32 %9, -1
  br i1 %10, label %11, label %26

11:                                               ; preds = %7
  %12 = load i32, ptr %0, align 8, !tbaa !29
  %13 = tail call noundef ptr @_ZN5ImGui21TableSettingsFindByIDEj(i32 noundef %12)
  %14 = icmp eq ptr %13, null
  br i1 %14, label %.loopexit, label %15

15:                                               ; preds = %11
  %16 = getelementptr inbounds i8, ptr %13, i64 12
  %17 = load i16, ptr %16, align 4, !tbaa !30
  %18 = sext i16 %17 to i32
  %19 = getelementptr inbounds i8, ptr %0, i64 108
  %20 = load i32, ptr %19, align 4, !tbaa !32
  %.not72 = icmp eq i32 %20, %18
  br i1 %.not72, label %23, label %21

21:                                               ; preds = %15
  %22 = getelementptr inbounds i8, ptr %0, i64 553
  store i8 1, ptr %22, align 1, !tbaa !33
  br label %23

23:                                               ; preds = %21, %15
  %24 = getelementptr inbounds i8, ptr %2, i64 23544
  %25 = tail call noundef i32 @_ZN13ImChunkStreamI18ImGuiTableSettingsE15offset_from_ptrEPKS0_(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull %13)
  store i32 %25, ptr %8, align 4, !tbaa !28
  br label %28

26:                                               ; preds = %7
  %27 = tail call noundef ptr @_ZN5ImGui21TableGetBoundSettingsEP10ImGuiTable(ptr noundef nonnull %0)
  br label %28

28:                                               ; preds = %26, %23
  %.065 = phi ptr [ %13, %23 ], [ %27, %26 ]
  %29 = getelementptr inbounds i8, ptr %.065, i64 4
  %30 = load i32, ptr %29, align 4, !tbaa !34
  %31 = getelementptr inbounds i8, ptr %0, i64 96
  store i32 %30, ptr %31, align 8, !tbaa !35
  %32 = getelementptr inbounds i8, ptr %.065, i64 8
  %33 = load float, ptr %32, align 4, !tbaa !36
  %34 = getelementptr inbounds i8, ptr %0, i64 228
  store float %33, ptr %34, align 4, !tbaa !37
  %35 = tail call noundef ptr @_ZN18ImGuiTableSettings17GetColumnSettingsEv(ptr noundef nonnull align 4 dereferenceable(17) %.065)
  %36 = getelementptr inbounds i8, ptr %.065, i64 12
  %37 = load i16, ptr %36, align 4, !tbaa !30
  %38 = icmp sgt i16 %37, 0
  br i1 %38, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %28
  %39 = sext i16 %37 to i64
  %40 = and i64 %39, 4294967295
  %notmask96 = shl nsw i64 -1, %40
  %41 = xor i64 %notmask96, -1
  br label %47

.lr.ph:                                           ; preds = %28
  %42 = getelementptr inbounds i8, ptr %0, i64 108
  %43 = getelementptr inbounds i8, ptr %0, i64 24
  br label %51

._crit_edge:                                      ; preds = %95
  %44 = icmp eq i16 %.fr, 64
  %45 = zext nneg i32 %99 to i64
  %notmask = shl nsw i64 -1, %45
  %46 = xor i64 %notmask, -1
  %spec.select = select i1 %44, i64 -1, i64 %46
  br label %47

47:                                               ; preds = %._crit_edge, %._crit_edge.thread
  %.068.lcssa98 = phi i64 [ 0, %._crit_edge.thread ], [ %.1, %._crit_edge ]
  %48 = phi i64 [ %41, %._crit_edge.thread ], [ %spec.select, %._crit_edge ]
  %.not73 = icmp eq i64 %.068.lcssa98, %48
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 108
  %.pre92 = load i32, ptr %.phi.trans.insert, align 4, !tbaa !32
  br i1 %.not73, label %.loopexit78, label %.preheader

.preheader:                                       ; preds = %47
  %49 = icmp sgt i32 %.pre92, 0
  br i1 %49, label %.lr.ph86, label %.loopexit

.lr.ph86:                                         ; preds = %.preheader
  %50 = getelementptr inbounds i8, ptr %0, i64 24
  br label %101

51:                                               ; preds = %.lr.ph, %95
  %52 = phi i16 [ %37, %.lr.ph ], [ %.fr, %95 ]
  %.06682 = phi ptr [ %35, %.lr.ph ], [ %98, %95 ]
  %.06781 = phi i32 [ 0, %.lr.ph ], [ %97, %95 ]
  %.06880 = phi i64 [ 0, %.lr.ph ], [ %.1, %95 ]
  %53 = getelementptr inbounds i8, ptr %.06682, i64 8
  %54 = load i16, ptr %53, align 4, !tbaa !38
  %55 = sext i16 %54 to i32
  %56 = icmp slt i16 %54, 0
  br i1 %56, label %95, label %57

57:                                               ; preds = %51
  %58 = load i32, ptr %42, align 4, !tbaa !32
  %.not74 = icmp sgt i32 %58, %55
  br i1 %.not74, label %59, label %95

59:                                               ; preds = %57
  %60 = tail call noundef nonnull align 4 dereferenceable(111) ptr @_ZN6ImSpanI16ImGuiTableColumnEixEi(ptr noundef nonnull align 8 dereferenceable(16) %43, i32 noundef %55)
  %61 = load i32, ptr %29, align 4, !tbaa !34
  %62 = and i32 %61, 1
  %.not75 = icmp eq i32 %62, 0
  br i1 %.not75, label %70, label %63

63:                                               ; preds = %59
  %64 = getelementptr inbounds i8, ptr %.06682, i64 14
  %65 = load i8, ptr %64, align 2
  %66 = and i8 %65, 8
  %.not76 = icmp eq i8 %66, 0
  %67 = load float, ptr %.06682, align 4, !tbaa !40
  %. = select i1 %.not76, i64 16, i64 24
  %68 = getelementptr inbounds i8, ptr %60, i64 %.
  store float %67, ptr %68, align 4, !tbaa !41
  %69 = getelementptr inbounds i8, ptr %60, i64 107
  store i8 0, ptr %69, align 1, !tbaa !42
  br label %70

70:                                               ; preds = %63, %59
  %71 = and i32 %61, 2
  %.not77 = icmp eq i32 %71, 0
  br i1 %.not77, label %75, label %72

72:                                               ; preds = %70
  %73 = getelementptr inbounds i8, ptr %.06682, i64 10
  %74 = load i16, ptr %73, align 2, !tbaa !44
  br label %75

75:                                               ; preds = %70, %72
  %.sink = phi i16 [ %74, %72 ], [ %54, %70 ]
  %76 = getelementptr inbounds i8, ptr %60, i64 82
  store i16 %.sink, ptr %76, align 2
  %77 = sext i16 %.sink to i64
  %78 = and i64 %77, 4294967295
  %79 = shl nuw i64 1, %78
  %80 = or i64 %79, %.06880
  %81 = getelementptr inbounds i8, ptr %.06682, i64 14
  %82 = load i8, ptr %81, align 2
  %83 = getelementptr inbounds i8, ptr %60, i64 100
  %84 = lshr i8 %82, 2
  %.lobit = and i8 %84, 1
  store i8 %.lobit, ptr %83, align 4, !tbaa !45
  %85 = getelementptr inbounds i8, ptr %60, i64 99
  store i8 %.lobit, ptr %85, align 1, !tbaa !46
  %86 = getelementptr inbounds i8, ptr %.06682, i64 12
  %87 = load i16, ptr %86, align 4, !tbaa !47
  %88 = getelementptr inbounds i8, ptr %60, i64 90
  store i16 %87, ptr %88, align 2, !tbaa !48
  %89 = load i8, ptr %81, align 2
  %90 = and i8 %89, 3
  %91 = getelementptr inbounds i8, ptr %60, i64 109
  %92 = load i8, ptr %91, align 1
  %93 = and i8 %92, -4
  %94 = or disjoint i8 %93, %90
  store i8 %94, ptr %91, align 1
  %.pre = load i16, ptr %36, align 4, !tbaa !30
  br label %95

95:                                               ; preds = %51, %57, %75
  %96 = phi i16 [ %.pre, %75 ], [ %52, %57 ], [ %52, %51 ]
  %.1 = phi i64 [ %80, %75 ], [ %.06880, %57 ], [ %.06880, %51 ]
  %.fr = freeze i16 %96
  %97 = add nuw nsw i32 %.06781, 1
  %98 = getelementptr inbounds i8, ptr %.06682, i64 16
  %99 = sext i16 %.fr to i32
  %100 = icmp slt i32 %97, %99
  br i1 %100, label %51, label %._crit_edge, !llvm.loop !49

101:                                              ; preds = %.lr.ph86, %101
  %.06485 = phi i32 [ 0, %.lr.ph86 ], [ %105, %101 ]
  %102 = trunc i32 %.06485 to i16
  %103 = tail call noundef nonnull align 4 dereferenceable(111) ptr @_ZN6ImSpanI16ImGuiTableColumnEixEi(ptr noundef nonnull align 8 dereferenceable(16) %50, i32 noundef %.06485)
  %104 = getelementptr inbounds i8, ptr %103, i64 82
  store i16 %102, ptr %104, align 2, !tbaa !51
  %105 = add nuw nsw i32 %.06485, 1
  %106 = load i32, ptr %.phi.trans.insert, align 4, !tbaa !32
  %107 = icmp slt i32 %105, %106
  br i1 %107, label %101, label %.loopexit78, !llvm.loop !52

.loopexit78:                                      ; preds = %101, %47
  %108 = phi i32 [ %.pre92, %47 ], [ %106, %101 ]
  %109 = getelementptr inbounds i8, ptr %0, i64 108
  %110 = icmp sgt i32 %108, 0
  br i1 %110, label %.lr.ph89, label %.loopexit

.lr.ph89:                                         ; preds = %.loopexit78
  %111 = getelementptr inbounds i8, ptr %0, i64 40
  %112 = getelementptr inbounds i8, ptr %0, i64 24
  br label %113

113:                                              ; preds = %.lr.ph89, %113
  %.087 = phi i32 [ 0, %.lr.ph89 ], [ %120, %113 ]
  %114 = trunc i32 %.087 to i16
  %115 = tail call noundef nonnull align 4 dereferenceable(111) ptr @_ZN6ImSpanI16ImGuiTableColumnEixEi(ptr noundef nonnull align 8 dereferenceable(16) %112, i32 noundef %.087)
  %116 = getelementptr inbounds i8, ptr %115, i64 82
  %117 = load i16, ptr %116, align 2, !tbaa !51
  %118 = sext i16 %117 to i32
  %119 = tail call noundef nonnull align 2 dereferenceable(2) ptr @_ZN6ImSpanIsEixEi(ptr noundef nonnull align 8 dereferenceable(16) %111, i32 noundef %118)
  store i16 %114, ptr %119, align 2, !tbaa !53
  %120 = add nuw nsw i32 %.087, 1
  %121 = load i32, ptr %109, align 4, !tbaa !32
  %122 = icmp slt i32 %120, %121
  br i1 %122, label %113, label %.loopexit, !llvm.loop !54

.loopexit:                                        ; preds = %113, %.preheader, %.loopexit78, %11, %1
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5ImGui21TableSettingsFindByIDEj(i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5ImGui21TableGetBoundSettingsEP10ImGuiTable(ptr noundef) local_unnamed_addr #1

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

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

attributes #0 = { 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 #1 = { 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 #2 = { 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" }

!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, !26, i64 552}
!10 = !{!"_ZTS10ImGuiTable", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16, !12, i64 24, !13, i64 40, !14, i64 56, !6, i64 72, !6, i64 80, !6, i64 88, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !15, i64 120, !15, i64 122, !16, i64 124, !16, i64 128, !16, i64 132, !16, i64 136, !16, i64 140, !11, i64 144, !11, i64 146, !11, i64 148, !7, i64 152, !11, i64 160, !11, i64 164, !16, i64 168, !16, i64 172, !16, i64 176, !16, i64 180, !16, i64 184, !16, i64 188, !16, i64 192, !16, i64 196, !16, i64 200, !16, i64 204, !16, i64 208, !16, i64 212, !16, i64 216, !16, i64 220, !16, i64 224, !16, i64 228, !17, i64 232, !17, i64 248, !17, i64 264, !17, i64 280, !17, i64 296, !17, i64 312, !17, i64 328, !17, i64 344, !17, i64 360, !6, i64 376, !6, i64 384, !19, i64 392, !6, i64 408, !21, i64 416, !22, i64 432, !23, i64 448, !24, i64 464, !25, i64 480, !15, i64 496, !15, i64 498, !15, i64 500, !15, i64 502, !15, i64 504, !15, i64 506, !15, i64 508, !15, i64 510, !15, i64 512, !15, i64 514, !15, i64 516, !15, i64 518, !15, i64 520, !15, i64 522, !15, i64 524, !15, i64 526, !15, i64 528, !15, i64 530, !15, i64 532, !15, i64 534, !15, i64 536, !15, i64 538, !15, i64 540, !15, i64 542, !15, i64 544, !26, i64 546, !26, i64 547, !26, i64 548, !26, i64 549, !26, i64 550, !26, i64 551, !26, i64 552, !26, i64 553, !26, i64 554, !26, i64 555, !26, i64 556, !26, i64 557, !26, i64 558, !26, i64 559, !26, i64 560, !26, i64 561, !26, i64 562}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS6ImSpanI16ImGuiTableColumnE", !6, i64 0, !6, i64 8}
!13 = !{!"_ZTS6ImSpanIsE", !6, i64 0, !6, i64 8}
!14 = !{!"_ZTS6ImSpanI18ImGuiTableCellDataE", !6, i64 0, !6, i64 8}
!15 = !{!"short", !7, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{!"_ZTS6ImRect", !18, i64 0, !18, i64 8}
!18 = !{!"_ZTS6ImVec2", !16, i64 0, !16, i64 4}
!19 = !{!"_ZTS15ImGuiTextBuffer", !20, i64 0}
!20 = !{!"_ZTS8ImVectorIcE", !11, i64 0, !11, i64 4, !6, i64 8}
!21 = !{!"_ZTS22ImGuiTableInstanceData", !11, i64 0, !16, i64 4, !16, i64 8, !16, i64 12}
!22 = !{!"_ZTS8ImVectorI22ImGuiTableInstanceDataE", !11, i64 0, !11, i64 4, !6, i64 8}
!23 = !{!"_ZTS25ImGuiTableColumnSortSpecs", !11, i64 0, !15, i64 4, !15, i64 6, !11, i64 8}
!24 = !{!"_ZTS8ImVectorI25ImGuiTableColumnSortSpecsE", !11, i64 0, !11, i64 4, !6, i64 8}
!25 = !{!"_ZTS19ImGuiTableSortSpecs", !6, i64 0, !11, i64 8, !26, i64 12}
!26 = !{!"bool", !7, i64 0}
!27 = !{!10, !11, i64 4}
!28 = !{!10, !11, i64 100}
!29 = !{!10, !11, i64 0}
!30 = !{!31, !15, i64 12}
!31 = !{!"_ZTS18ImGuiTableSettings", !11, i64 0, !11, i64 4, !16, i64 8, !15, i64 12, !15, i64 14, !26, i64 16}
!32 = !{!10, !11, i64 108}
!33 = !{!10, !26, i64 553}
!34 = !{!31, !11, i64 4}
!35 = !{!10, !11, i64 96}
!36 = !{!31, !16, i64 8}
!37 = !{!10, !16, i64 228}
!38 = !{!39, !15, i64 8}
!39 = !{!"_ZTS24ImGuiTableColumnSettings", !16, i64 0, !11, i64 4, !15, i64 8, !15, i64 10, !15, i64 12, !7, i64 14, !7, i64 14, !7, i64 14}
!40 = !{!39, !16, i64 0}
!41 = !{!16, !16, i64 0}
!42 = !{!43, !7, i64 107}
!43 = !{!"_ZTS16ImGuiTableColumn", !11, i64 0, !16, i64 4, !16, i64 8, !16, i64 12, !16, i64 16, !16, i64 20, !16, i64 24, !16, i64 28, !17, i64 32, !11, i64 48, !16, i64 52, !16, i64 56, !16, i64 60, !16, i64 64, !16, i64 68, !16, i64 72, !16, i64 76, !15, i64 80, !15, i64 82, !15, i64 84, !15, i64 86, !15, i64 88, !15, i64 90, !15, i64 92, !15, i64 94, !15, i64 96, !26, i64 98, !26, i64 99, !26, i64 100, !26, i64 101, !26, i64 102, !26, i64 103, !26, i64 104, !26, i64 105, !7, i64 106, !7, i64 107, !7, i64 108, !7, i64 109, !7, i64 109, !7, i64 109, !7, i64 110}
!44 = !{!39, !15, i64 10}
!45 = !{!43, !26, i64 100}
!46 = !{!43, !26, i64 99}
!47 = !{!39, !15, i64 12}
!48 = !{!43, !15, i64 90}
!49 = distinct !{!49, !50}
!50 = !{!"llvm.loop.mustprogress"}
!51 = !{!43, !15, i64 82}
!52 = distinct !{!52, !50}
!53 = !{!15, !15, i64 0}
!54 = distinct !{!54, !50}


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