; LLVM IR from Dragons-Lake/REI :: sources/REI_Integration/3rdParty/imgui (imgui_widgets)

; 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.ImVec2 = type { float, float }
%struct.ImGuiContext = type <{ i8, i8, i8, i8, [4 x i8], %struct.ImGuiIO, %struct.ImGuiStyle, ptr, float, float, %struct.ImDrawListSharedData, double, i32, i32, i32, [4 x i8], %struct.ImVector.0, %struct.ImVector.0, %struct.ImVector.0, %struct.ImVector.0, %struct.ImGuiStorage, i32, [4 x i8], ptr, ptr, ptr, ptr, ptr, %struct.ImVec2, float, i32, i8, [3 x i8], i32, float, float, i32, i32, float, i8, i8, i8, i8, i8, [3 x i8], i32, i32, [4 x i8], i64, %struct.ImVec2, ptr, i32, i32, i8, i8, [6 x i8], ptr, i32, float, %struct.ImGuiNextWindowData, %struct.ImGuiNextItemData, %struct.ImVector.13, %struct.ImVector.14, %struct.ImVector.15, %struct.ImVector.16, %struct.ImVector.16, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.ImRect, i32, [4 x i8], ptr, ptr, ptr, float, float, i8, [3 x i8], i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, i32, %struct.ImRect, i8, i8, [2 x i8], i32, i32, i32, i32, i32, %struct.ImGuiNavMoveResult, %struct.ImGuiNavMoveResult, %struct.ImGuiNavMoveResult, ptr, ptr, i32, i32, i32, i32, i8, [7 x i8], %struct.ImDrawData, %struct.ImDrawDataBuilder, float, [4 x i8], %struct.ImDrawList, %struct.ImDrawList, i32, i8, i8, [2 x i8], i32, i32, i32, [4 x i8], %struct.ImGuiPayload, %struct.ImRect, i32, i32, float, i32, i32, i32, %struct.ImVector.18, [8 x i8], ptr, %struct.ImPool, %struct.ImVector.20, %struct.ImVector.21, %struct.ImVec2, %struct.ImGuiInputTextState, %struct.ImFont, i32, i32, float, [3 x float], %struct.ImVec4, i8, [3 x i8], float, float, float, i32, [4 x i8], %struct.ImVector.22, i32, %struct.ImVec2, %struct.ImVec2, i8, [3 x i8], float, [4 x i8], %struct.ImGuiTextBuffer, %struct.ImVector.24, %struct.ImVector.25, i8, [3 x i8], i32, ptr, %struct.ImGuiTextBuffer, float, i8, [3 x i8], i32, i32, i32, i8, [3 x i8], i32, [120 x float], i32, float, i32, i32, i32, [3073 x i8], [7 x i8] }>
%struct.ImGuiIO = type { i32, i32, %struct.ImVec2, float, float, ptr, ptr, float, float, float, [22 x i32], float, float, ptr, ptr, float, i8, ptr, %struct.ImVec2, i8, i8, i8, i8, i8, float, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.ImVec2, [5 x i8], float, float, i8, i8, i8, i8, [512 x i8], [21 x float], i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, [5 x %struct.ImVec2], [5 x double], [5 x i8], [5 x i8], [5 x i8], [5 x i8], [5 x i8], [5 x float], [5 x float], [5 x %struct.ImVec2], [5 x float], [512 x float], [512 x float], [21 x float], [21 x float], %struct.ImVector.7 }
%struct.ImVector.7 = type { i32, i32, ptr }
%struct.ImGuiStyle = type { float, %struct.ImVec2, float, float, %struct.ImVec2, %struct.ImVec2, i32, float, float, float, float, %struct.ImVec2, float, float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, float, float, float, float, float, float, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, i8, i8, float, [48 x %struct.ImVec4] }
%struct.ImDrawListSharedData = type <{ %struct.ImVec2, ptr, float, float, %struct.ImVec4, i32, [12 x %struct.ImVec2], [4 x i8] }>
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImGuiStorage = type { %struct.ImVector.4 }
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImGuiNextWindowData = type <{ i32, i32, i32, i32, %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.ImGuiNextItemData = type { i32, float, i8, i32 }
%struct.ImVector.13 = type { i32, i32, ptr }
%struct.ImVector.14 = type { i32, i32, ptr }
%struct.ImVector.15 = type { i32, i32, ptr }
%struct.ImVector.16 = type { i32, i32, ptr }
%struct.ImGuiNavMoveResult = type <{ i32, i32, ptr, float, float, float, %struct.ImRect, [4 x i8] }>
%struct.ImDrawData = type <{ i8, [7 x i8], ptr, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, [4 x i8] }>
%struct.ImDrawDataBuilder = type { [2 x %struct.ImVector.17] }
%struct.ImVector.17 = type { i32, i32, ptr }
%struct.ImDrawList = type { %struct.ImVector.6, %struct.ImVector.7, %struct.ImVector.8, i32, ptr, ptr, i32, i32, ptr, ptr, %struct.ImVector.9, %struct.ImVector.10, %struct.ImVector.11, %struct.ImDrawListSplitter }
%struct.ImVector.6 = type { i32, i32, ptr }
%struct.ImVector.8 = type { i32, i32, ptr }
%struct.ImVector.9 = type { i32, i32, ptr }
%struct.ImVector.10 = type { i32, i32, ptr }
%struct.ImVector.11 = type { i32, i32, ptr }
%struct.ImDrawListSplitter = type { i32, i32, %struct.ImVector.12 }
%struct.ImVector.12 = type { i32, i32, ptr }
%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.18 = type { i32, i32, ptr }
%struct.ImPool = type <{ %struct.ImVector.19, %struct.ImGuiStorage, i32, [4 x i8] }>
%struct.ImVector.19 = type { i32, i32, ptr }
%struct.ImVector.20 = type { i32, i32, ptr }
%struct.ImVector.21 = type { i32, i32, ptr }
%struct.ImGuiInputTextState = type { i32, i32, i32, %struct.ImVector.7, %struct.ImVector.22, %struct.ImVector.22, i8, i32, float, %"struct.ImStb::STB_TexteditState", float, i8, i8, i32, ptr, ptr }
%"struct.ImStb::STB_TexteditState" = type { i32, i32, i32, i8, 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.ImFont = type <{ %struct.ImVector.2, float, float, %struct.ImVector.7, %struct.ImVector.23, ptr, %struct.ImVec2, ptr, ptr, i16, i16, i16, [2 x i8], float, float, float, i32, i8, [7 x i8] }>
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImVector.23 = type { i32, i32, ptr }
%struct.ImVec4 = type { float, float, float, float }
%struct.ImVector.22 = type { i32, i32, ptr }
%struct.ImVector.24 = type { i32, i32, ptr }
%struct.ImVector.25 = type { i32, i32, ptr }
%struct.ImGuiTextBuffer = type { %struct.ImVector.22 }
%struct.ImGuiWindow = type <{ ptr, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i16, i16, i16, [2 x i8], i32, i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVector, %struct.ImGuiWindowTempData, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, i32, float, float, %struct.ImGuiMenuColumns, %struct.ImGuiStorage, %struct.ImVector.5, float, i32, ptr, %struct.ImDrawList, ptr, ptr, ptr, ptr, ptr, [2 x i32], [2 x %struct.ImRect], i8, [3 x i8], i32, i32, [4 x i8] }>
%struct.ImVector = type { i32, i32, ptr }
%struct.ImGuiWindowTempData = type { %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, i32, i32, i32, i32, %struct.ImRect, %struct.ImRect, i32, i32, i32, i32, i8, i8, i8, %struct.ImVec2, %struct.ImVector.0, ptr, i32, i32, i32, i32, i32, float, float, %struct.ImVector.1, %struct.ImVector.2, %struct.ImVector.2, %struct.ImVector.3, [6 x i16], %struct.ImVec1, %struct.ImVec1, %struct.ImVec1, ptr }
%struct.ImVector.1 = type { i32, i32, ptr }
%struct.ImVector.3 = type { i32, i32, ptr }
%struct.ImVec1 = type { float }
%struct.ImGuiMenuColumns = type { float, float, float, [3 x float], [3 x float] }
%struct.ImVector.5 = type { i32, i32, ptr }

@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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN5ImGui16GetCurrentWindowEv() #1

; 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) #2

; 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 uwtable
declare hidden <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN5ImGui14ButtonBehaviorERK6ImRectjPbS3_i(ptr noundef nonnull align 4 dereferenceable(16) %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #4 {
  %6 = alloca i1, align 1
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i8, align 1
  %17 = alloca i8, align 1
  %18 = alloca i8, align 1
  %19 = alloca i8, align 1
  %20 = alloca i8, align 1
  %21 = alloca i8, align 1
  %22 = alloca %struct.ImVec2, align 4
  %23 = alloca i8, align 1
  %24 = alloca i8, align 1
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store i32 %4, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %25 = load ptr, ptr @GImGui, align 8, !tbaa !5
  store ptr %25, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %26 = call noundef ptr @_ZN5ImGui16GetCurrentWindowEv()
  store ptr %26, ptr %13, align 8, !tbaa !5
  %27 = load i32, ptr %11, align 4, !tbaa !9
  %28 = and i32 %27, 256
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %30, label %48

30:                                               ; preds = %5
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  %32 = icmp ne ptr %31, null
  br i1 %32, label %33, label %35

33:                                               ; preds = %30
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  store i8 0, ptr %34, align 1, !tbaa !11
  br label %35

35:                                               ; preds = %33, %30
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  %37 = icmp ne ptr %36, null
  br i1 %37, label %38, label %40

38:                                               ; preds = %35
  %39 = load ptr, ptr %10, align 8, !tbaa !5
  store i8 0, ptr %39, align 1, !tbaa !11
  br label %40

40:                                               ; preds = %38, %35
  %41 = load ptr, ptr %12, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.ImGuiContext, ptr %41, i32 0, i32 36
  %43 = load i32, ptr %42, align 8, !tbaa !13
  %44 = load i32, ptr %8, align 4, !tbaa !9
  %45 = icmp eq i32 %43, %44
  br i1 %45, label %46, label %47

46:                                               ; preds = %40
  call void @_ZN5ImGui13ClearActiveIDEv()
  br label %47

47:                                               ; preds = %46, %40
  store i1 false, ptr %6, align 1
  store i32 1, ptr %14, align 4
  br label %533

48:                                               ; preds = %5
  %49 = load i32, ptr %11, align 4, !tbaa !9
  %50 = and i32 %49, 30
  %51 = icmp eq i32 %50, 0
  br i1 %51, label %52, label %55

52:                                               ; preds = %48
  %53 = load i32, ptr %11, align 4, !tbaa !9
  %54 = or i32 %53, 2
  store i32 %54, ptr %11, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %52, %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %56 = load ptr, ptr %12, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.ImGuiContext, ptr %56, i32 0, i32 24
  %58 = load ptr, ptr %57, align 8, !tbaa !66
  store ptr %58, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #7
  %59 = load i32, ptr %11, align 4, !tbaa !9
  %60 = and i32 %59, 32
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %68

62:                                               ; preds = %55
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.ImGuiContext, ptr %63, i32 0, i32 25
  %65 = load ptr, ptr %64, align 8, !tbaa !67
  %66 = load ptr, ptr %13, align 8, !tbaa !5
  %67 = icmp eq ptr %65, %66
  br label %68

68:                                               ; preds = %62, %55
  %69 = phi i1 [ false, %55 ], [ %67, %62 ]
  %70 = zext i1 %69 to i8
  store i8 %70, ptr %16, align 1, !tbaa !11
  %71 = load i8, ptr %16, align 1, !tbaa !11, !range !68, !noundef !69
  %72 = trunc i8 %71 to i1
  br i1 %72, label %73, label %77

73:                                               ; preds = %68
  %74 = load ptr, ptr %13, align 8, !tbaa !5
  %75 = load ptr, ptr %12, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.ImGuiContext, ptr %75, i32 0, i32 24
  store ptr %74, ptr %76, align 8, !tbaa !66
  br label %77

77:                                               ; preds = %73, %68
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #7
  store i8 0, ptr %17, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #7
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = load i32, ptr %8, align 4, !tbaa !9
  %80 = call noundef zeroext i1 @_ZN5ImGui13ItemHoverableERK6ImRectj(ptr noundef nonnull align 4 dereferenceable(16) %78, i32 noundef %79)
  %81 = zext i1 %80 to i8
  store i8 %81, ptr %18, align 1, !tbaa !11
  %82 = load i8, ptr %18, align 1, !tbaa !11, !range !68, !noundef !69
  %83 = trunc i8 %82 to i1
  br i1 %83, label %84, label %103

84:                                               ; preds = %77
  %85 = load ptr, ptr %12, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.ImGuiContext, ptr %85, i32 0, i32 125
  %87 = load i8, ptr %86, align 4, !tbaa !70, !range !68, !noundef !69
  %88 = trunc i8 %87 to i1
  br i1 %88, label %89, label %103

89:                                               ; preds = %84
  %90 = load ptr, ptr %12, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.ImGuiContext, ptr %90, i32 0, i32 132
  %92 = getelementptr inbounds %struct.ImGuiPayload, ptr %91, i32 0, i32 2
  %93 = load i32, ptr %92, align 4, !tbaa !71
  %94 = load i32, ptr %8, align 4, !tbaa !9
  %95 = icmp eq i32 %93, %94
  br i1 %95, label %96, label %103

96:                                               ; preds = %89
  %97 = load ptr, ptr %12, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.ImGuiContext, ptr %97, i32 0, i32 128
  %99 = load i32, ptr %98, align 8, !tbaa !72
  %100 = and i32 %99, 2
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %103, label %102

102:                                              ; preds = %96
  store i8 0, ptr %18, align 1, !tbaa !11
  br label %103

103:                                              ; preds = %102, %96, %89, %84, %77
  %104 = load ptr, ptr %12, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.ImGuiContext, ptr %104, i32 0, i32 125
  %106 = load i8, ptr %105, align 4, !tbaa !70, !range !68, !noundef !69
  %107 = trunc i8 %106 to i1
  br i1 %107, label %108, label %141

108:                                              ; preds = %103
  %109 = load i32, ptr %11, align 4, !tbaa !9
  %110 = and i32 %109, 4096
  %111 = icmp ne i32 %110, 0
  br i1 %111, label %112, label %141

112:                                              ; preds = %108
  %113 = load ptr, ptr %12, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.ImGuiContext, ptr %113, i32 0, i32 128
  %115 = load i32, ptr %114, align 8, !tbaa !72
  %116 = and i32 %115, 4
  %117 = icmp ne i32 %116, 0
  br i1 %117, label %141, label %118

118:                                              ; preds = %112
  %119 = call noundef zeroext i1 @_ZN5ImGui13IsItemHoveredEi(i32 noundef 32)
  br i1 %119, label %120, label %140

120:                                              ; preds = %118
  store i8 1, ptr %18, align 1, !tbaa !11
  %121 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN5ImGui12SetHoveredIDEj(i32 noundef %121)
  %122 = load ptr, ptr %12, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.ImGuiContext, ptr %122, i32 0, i32 34
  %124 = load float, ptr %123, align 8, !tbaa !73
  %125 = fadd float %124, 0x3F1A36E2E0000000
  %126 = load ptr, ptr %12, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.ImGuiContext, ptr %126, i32 0, i32 5
  %128 = getelementptr inbounds %struct.ImGuiIO, ptr %127, i32 0, i32 3
  %129 = load float, ptr %128, align 8, !tbaa !74
  %130 = fsub float %125, %129
  %131 = load ptr, ptr %12, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.ImGuiContext, ptr %131, i32 0, i32 34
  %133 = load float, ptr %132, align 8, !tbaa !73
  %134 = fadd float %133, 0x3F1A36E2E0000000
  %135 = call noundef i32 @_ZN5ImGui25CalcTypematicRepeatAmountEffff(float noundef %130, float noundef %134, float noundef 0x3FE6666660000000, float noundef 0.000000e+00)
  %136 = icmp ne i32 %135, 0
  br i1 %136, label %137, label %139

137:                                              ; preds = %120
  store i8 1, ptr %17, align 1, !tbaa !11
  %138 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN5ImGui11FocusWindowEP11ImGuiWindow(ptr noundef %138)
  br label %139

139:                                              ; preds = %137, %120
  br label %140

140:                                              ; preds = %139, %118
  br label %141

141:                                              ; preds = %140, %112, %108, %103
  %142 = load i8, ptr %16, align 1, !tbaa !11, !range !68, !noundef !69
  %143 = trunc i8 %142 to i1
  br i1 %143, label %144, label %148

144:                                              ; preds = %141
  %145 = load ptr, ptr %15, align 8, !tbaa !5
  %146 = load ptr, ptr %12, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.ImGuiContext, ptr %146, i32 0, i32 24
  store ptr %145, ptr %147, align 8, !tbaa !66
  br label %148

148:                                              ; preds = %144, %141
  %149 = load i8, ptr %18, align 1, !tbaa !11, !range !68, !noundef !69
  %150 = trunc i8 %149 to i1
  br i1 %150, label %151, label %167

151:                                              ; preds = %148
  %152 = load i32, ptr %11, align 4, !tbaa !9
  %153 = and i32 %152, 64
  %154 = icmp ne i32 %153, 0
  br i1 %154, label %155, label %167

155:                                              ; preds = %151
  %156 = load ptr, ptr %12, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.ImGuiContext, ptr %156, i32 0, i32 33
  %158 = load i32, ptr %157, align 4, !tbaa !75
  %159 = load i32, ptr %8, align 4, !tbaa !9
  %160 = icmp ne i32 %158, %159
  br i1 %160, label %161, label %167

161:                                              ; preds = %155
  %162 = load ptr, ptr %12, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.ImGuiContext, ptr %162, i32 0, i32 33
  %164 = load i32, ptr %163, align 4, !tbaa !75
  %165 = icmp ne i32 %164, 0
  br i1 %165, label %166, label %167

166:                                              ; preds = %161
  store i8 0, ptr %18, align 1, !tbaa !11
  br label %167

167:                                              ; preds = %166, %161, %155, %151, %148
  %168 = load i8, ptr %18, align 1, !tbaa !11, !range !68, !noundef !69
  %169 = trunc i8 %168 to i1
  br i1 %169, label %170, label %302

170:                                              ; preds = %167
  %171 = load i32, ptr %11, align 4, !tbaa !9
  %172 = and i32 %171, 1024
  %173 = icmp ne i32 %172, 0
  br i1 %173, label %174, label %192

174:                                              ; preds = %170
  %175 = load ptr, ptr %12, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.ImGuiContext, ptr %175, i32 0, i32 5
  %177 = getelementptr inbounds %struct.ImGuiIO, ptr %176, i32 0, i32 40
  %178 = load i8, ptr %177, align 8, !tbaa !76, !range !68, !noundef !69
  %179 = trunc i8 %178 to i1
  br i1 %179, label %295, label %180

180:                                              ; preds = %174
  %181 = load ptr, ptr %12, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.ImGuiContext, ptr %181, i32 0, i32 5
  %183 = getelementptr inbounds %struct.ImGuiIO, ptr %182, i32 0, i32 41
  %184 = load i8, ptr %183, align 1, !tbaa !77, !range !68, !noundef !69
  %185 = trunc i8 %184 to i1
  br i1 %185, label %295, label %186

186:                                              ; preds = %180
  %187 = load ptr, ptr %12, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.ImGuiContext, ptr %187, i32 0, i32 5
  %189 = getelementptr inbounds %struct.ImGuiIO, ptr %188, i32 0, i32 42
  %190 = load i8, ptr %189, align 2, !tbaa !78, !range !68, !noundef !69
  %191 = trunc i8 %190 to i1
  br i1 %191, label %295, label %192

192:                                              ; preds = %186, %170
  %193 = load i32, ptr %11, align 4, !tbaa !9
  %194 = and i32 %193, 2
  %195 = icmp ne i32 %194, 0
  br i1 %195, label %196, label %214

196:                                              ; preds = %192
  %197 = load ptr, ptr %12, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.ImGuiContext, ptr %197, i32 0, i32 5
  %199 = getelementptr inbounds %struct.ImGuiIO, ptr %198, i32 0, i32 63
  %200 = getelementptr inbounds [5 x i8], ptr %199, i64 0, i64 0
  %201 = load i8, ptr %200, align 8, !tbaa !11, !range !68, !noundef !69
  %202 = trunc i8 %201 to i1
  br i1 %202, label %203, label %214

203:                                              ; preds = %196
  %204 = load i32, ptr %8, align 4, !tbaa !9
  %205 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN5ImGui11SetActiveIDEjP11ImGuiWindow(i32 noundef %204, ptr noundef %205)
  %206 = load i32, ptr %11, align 4, !tbaa !9
  %207 = and i32 %206, 8192
  %208 = icmp ne i32 %207, 0
  br i1 %208, label %212, label %209

209:                                              ; preds = %203
  %210 = load i32, ptr %8, align 4, !tbaa !9
  %211 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN5ImGui10SetFocusIDEjP11ImGuiWindow(i32 noundef %210, ptr noundef %211)
  br label %212

212:                                              ; preds = %209, %203
  %213 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN5ImGui11FocusWindowEP11ImGuiWindow(ptr noundef %213)
  br label %214

214:                                              ; preds = %212, %196, %192
  %215 = load i32, ptr %11, align 4, !tbaa !9
  %216 = and i32 %215, 4
  %217 = icmp ne i32 %216, 0
  br i1 %217, label %218, label %225

218:                                              ; preds = %214
  %219 = load ptr, ptr %12, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.ImGuiContext, ptr %219, i32 0, i32 5
  %221 = getelementptr inbounds %struct.ImGuiIO, ptr %220, i32 0, i32 63
  %222 = getelementptr inbounds [5 x i8], ptr %221, i64 0, i64 0
  %223 = load i8, ptr %222, align 8, !tbaa !11, !range !68, !noundef !69
  %224 = trunc i8 %223 to i1
  br i1 %224, label %236, label %225

225:                                              ; preds = %218, %214
  %226 = load i32, ptr %11, align 4, !tbaa !9
  %227 = and i32 %226, 16
  %228 = icmp ne i32 %227, 0
  br i1 %228, label %229, label %246

229:                                              ; preds = %225
  %230 = load ptr, ptr %12, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.ImGuiContext, ptr %230, i32 0, i32 5
  %232 = getelementptr inbounds %struct.ImGuiIO, ptr %231, i32 0, i32 64
  %233 = getelementptr inbounds [5 x i8], ptr %232, i64 0, i64 0
  %234 = load i8, ptr %233, align 1, !tbaa !11, !range !68, !noundef !69
  %235 = trunc i8 %234 to i1
  br i1 %235, label %236, label %246

236:                                              ; preds = %229, %218
  store i8 1, ptr %17, align 1, !tbaa !11
  %237 = load i32, ptr %11, align 4, !tbaa !9
  %238 = and i32 %237, 2048
  %239 = icmp ne i32 %238, 0
  br i1 %239, label %240, label %241

240:                                              ; preds = %236
  call void @_ZN5ImGui13ClearActiveIDEv()
  br label %244

241:                                              ; preds = %236
  %242 = load i32, ptr %8, align 4, !tbaa !9
  %243 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN5ImGui11SetActiveIDEjP11ImGuiWindow(i32 noundef %242, ptr noundef %243)
  br label %244

244:                                              ; preds = %241, %240
  %245 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN5ImGui11FocusWindowEP11ImGuiWindow(ptr noundef %245)
  br label %246

246:                                              ; preds = %244, %229, %225
  %247 = load i32, ptr %11, align 4, !tbaa !9
  %248 = and i32 %247, 8
  %249 = icmp ne i32 %248, 0
  br i1 %249, label %250, label %274

250:                                              ; preds = %246
  %251 = load ptr, ptr %12, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.ImGuiContext, ptr %251, i32 0, i32 5
  %253 = getelementptr inbounds %struct.ImGuiIO, ptr %252, i32 0, i32 65
  %254 = getelementptr inbounds [5 x i8], ptr %253, i64 0, i64 0
  %255 = load i8, ptr %254, align 2, !tbaa !11, !range !68, !noundef !69
  %256 = trunc i8 %255 to i1
  br i1 %256, label %257, label %274

257:                                              ; preds = %250
  %258 = load i32, ptr %11, align 4, !tbaa !9
  %259 = and i32 %258, 1
  %260 = icmp ne i32 %259, 0
  br i1 %260, label %261, label %272

261:                                              ; preds = %257
  %262 = load ptr, ptr %12, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.ImGuiContext, ptr %262, i32 0, i32 5
  %264 = getelementptr inbounds %struct.ImGuiIO, ptr %263, i32 0, i32 69
  %265 = getelementptr inbounds [5 x float], ptr %264, i64 0, i64 0
  %266 = load float, ptr %265, align 8, !tbaa !79
  %267 = load ptr, ptr %12, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.ImGuiContext, ptr %267, i32 0, i32 5
  %269 = getelementptr inbounds %struct.ImGuiIO, ptr %268, i32 0, i32 11
  %270 = load float, ptr %269, align 4, !tbaa !80
  %271 = fcmp oge float %266, %270
  br i1 %271, label %273, label %272

272:                                              ; preds = %261, %257
  store i8 1, ptr %17, align 1, !tbaa !11
  br label %273

273:                                              ; preds = %272, %261
  call void @_ZN5ImGui13ClearActiveIDEv()
  br label %274

274:                                              ; preds = %273, %250, %246
  %275 = load i32, ptr %11, align 4, !tbaa !9
  %276 = and i32 %275, 1
  %277 = icmp ne i32 %276, 0
  br i1 %277, label %278, label %294

278:                                              ; preds = %274
  %279 = load ptr, ptr %12, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.ImGuiContext, ptr %279, i32 0, i32 36
  %281 = load i32, ptr %280, align 8, !tbaa !13
  %282 = load i32, ptr %8, align 4, !tbaa !9
  %283 = icmp eq i32 %281, %282
  br i1 %283, label %284, label %294

284:                                              ; preds = %278
  %285 = load ptr, ptr %12, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.ImGuiContext, ptr %285, i32 0, i32 5
  %287 = getelementptr inbounds %struct.ImGuiIO, ptr %286, i32 0, i32 68
  %288 = getelementptr inbounds [5 x float], ptr %287, i64 0, i64 0
  %289 = load float, ptr %288, align 4, !tbaa !79
  %290 = fcmp ogt float %289, 0.000000e+00
  br i1 %290, label %291, label %294

291:                                              ; preds = %284
  %292 = call noundef zeroext i1 @_ZN5ImGui14IsMouseClickedEib(i32 noundef 0, i1 noundef zeroext true)
  br i1 %292, label %293, label %294

293:                                              ; preds = %291
  store i8 1, ptr %17, align 1, !tbaa !11
  br label %294

294:                                              ; preds = %293, %291, %284, %278, %274
  br label %295

295:                                              ; preds = %294, %186, %180, %174
  %296 = load i8, ptr %17, align 1, !tbaa !11, !range !68, !noundef !69
  %297 = trunc i8 %296 to i1
  br i1 %297, label %298, label %301

298:                                              ; preds = %295
  %299 = load ptr, ptr %12, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.ImGuiContext, ptr %299, i32 0, i32 91
  store i8 1, ptr %300, align 2, !tbaa !81
  br label %301

301:                                              ; preds = %298, %295
  br label %302

302:                                              ; preds = %301, %167
  %303 = load ptr, ptr %12, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.ImGuiContext, ptr %303, i32 0, i32 67
  %305 = load i32, ptr %304, align 8, !tbaa !82
  %306 = load i32, ptr %8, align 4, !tbaa !9
  %307 = icmp eq i32 %305, %306
  br i1 %307, label %308, label %343

308:                                              ; preds = %302
  %309 = load ptr, ptr %12, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.ImGuiContext, ptr %309, i32 0, i32 91
  %311 = load i8, ptr %310, align 2, !tbaa !81, !range !68, !noundef !69
  %312 = trunc i8 %311 to i1
  br i1 %312, label %343, label %313

313:                                              ; preds = %308
  %314 = load ptr, ptr %12, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.ImGuiContext, ptr %314, i32 0, i32 92
  %316 = load i8, ptr %315, align 1, !tbaa !83, !range !68, !noundef !69
  %317 = trunc i8 %316 to i1
  br i1 %317, label %318, label %343

318:                                              ; preds = %313
  %319 = load ptr, ptr %12, align 8, !tbaa !5
  %320 = getelementptr inbounds %struct.ImGuiContext, ptr %319, i32 0, i32 36
  %321 = load i32, ptr %320, align 8, !tbaa !13
  %322 = icmp eq i32 %321, 0
  br i1 %322, label %337, label %323

323:                                              ; preds = %318
  %324 = load ptr, ptr %12, align 8, !tbaa !5
  %325 = getelementptr inbounds %struct.ImGuiContext, ptr %324, i32 0, i32 36
  %326 = load i32, ptr %325, align 8, !tbaa !13
  %327 = load i32, ptr %8, align 4, !tbaa !9
  %328 = icmp eq i32 %326, %327
  br i1 %328, label %337, label %329

329:                                              ; preds = %323
  %330 = load ptr, ptr %12, align 8, !tbaa !5
  %331 = getelementptr inbounds %struct.ImGuiContext, ptr %330, i32 0, i32 36
  %332 = load i32, ptr %331, align 8, !tbaa !13
  %333 = load ptr, ptr %13, align 8, !tbaa !5
  %334 = getelementptr inbounds %struct.ImGuiWindow, ptr %333, i32 0, i32 12
  %335 = load i32, ptr %334, align 4, !tbaa !84
  %336 = icmp eq i32 %332, %335
  br i1 %336, label %337, label %343

337:                                              ; preds = %329, %323, %318
  %338 = load i32, ptr %11, align 4, !tbaa !9
  %339 = and i32 %338, 16384
  %340 = icmp ne i32 %339, 0
  br i1 %340, label %342, label %341

341:                                              ; preds = %337
  store i8 1, ptr %18, align 1, !tbaa !11
  br label %342

342:                                              ; preds = %341, %337
  br label %343

343:                                              ; preds = %342, %329, %313, %308, %302
  %344 = load ptr, ptr %12, align 8, !tbaa !5
  %345 = getelementptr inbounds %struct.ImGuiContext, ptr %344, i32 0, i32 69
  %346 = load i32, ptr %345, align 8, !tbaa !93
  %347 = load i32, ptr %8, align 4, !tbaa !9
  %348 = icmp eq i32 %346, %347
  br i1 %348, label %349, label %401

349:                                              ; preds = %343
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #7
  %350 = load ptr, ptr %12, align 8, !tbaa !5
  %351 = getelementptr inbounds %struct.ImGuiContext, ptr %350, i32 0, i32 68
  %352 = load i32, ptr %351, align 4, !tbaa !94
  %353 = load i32, ptr %8, align 4, !tbaa !9
  %354 = icmp eq i32 %352, %353
  %355 = zext i1 %354 to i8
  store i8 %355, ptr %19, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #7
  %356 = load i32, ptr %11, align 4, !tbaa !9
  %357 = and i32 %356, 1
  %358 = icmp ne i32 %357, 0
  %359 = zext i1 %358 to i64
  %360 = select i1 %358, i32 3, i32 1
  %361 = call noundef zeroext i1 @_ZN5ImGui17IsNavInputPressedEi18ImGuiInputReadMode(i32 noundef 0, i32 noundef %360)
  %362 = zext i1 %361 to i8
  store i8 %362, ptr %20, align 1, !tbaa !11
  %363 = load i8, ptr %19, align 1, !tbaa !11, !range !68, !noundef !69
  %364 = trunc i8 %363 to i1
  br i1 %364, label %368, label %365

365:                                              ; preds = %349
  %366 = load i8, ptr %20, align 1, !tbaa !11, !range !68, !noundef !69
  %367 = trunc i8 %366 to i1
  br i1 %367, label %368, label %369

368:                                              ; preds = %365, %349
  store i8 1, ptr %17, align 1, !tbaa !11
  br label %369

369:                                              ; preds = %368, %365
  %370 = load i8, ptr %19, align 1, !tbaa !11, !range !68, !noundef !69
  %371 = trunc i8 %370 to i1
  br i1 %371, label %381, label %372

372:                                              ; preds = %369
  %373 = load i8, ptr %20, align 1, !tbaa !11, !range !68, !noundef !69
  %374 = trunc i8 %373 to i1
  br i1 %374, label %381, label %375

375:                                              ; preds = %372
  %376 = load ptr, ptr %12, align 8, !tbaa !5
  %377 = getelementptr inbounds %struct.ImGuiContext, ptr %376, i32 0, i32 36
  %378 = load i32, ptr %377, align 8, !tbaa !13
  %379 = load i32, ptr %8, align 4, !tbaa !9
  %380 = icmp eq i32 %378, %379
  br i1 %380, label %381, label %400

381:                                              ; preds = %375, %372, %369
  %382 = load i32, ptr %8, align 4, !tbaa !9
  %383 = load ptr, ptr %12, align 8, !tbaa !5
  %384 = getelementptr inbounds %struct.ImGuiContext, ptr %383, i32 0, i32 68
  store i32 %382, ptr %384, align 4, !tbaa !94
  %385 = load i32, ptr %8, align 4, !tbaa !9
  %386 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN5ImGui11SetActiveIDEjP11ImGuiWindow(i32 noundef %385, ptr noundef %386)
  %387 = load i8, ptr %19, align 1, !tbaa !11, !range !68, !noundef !69
  %388 = trunc i8 %387 to i1
  br i1 %388, label %392, label %389

389:                                              ; preds = %381
  %390 = load i8, ptr %20, align 1, !tbaa !11, !range !68, !noundef !69
  %391 = trunc i8 %390 to i1
  br i1 %391, label %392, label %399

392:                                              ; preds = %389, %381
  %393 = load i32, ptr %11, align 4, !tbaa !9
  %394 = and i32 %393, 8192
  %395 = icmp ne i32 %394, 0
  br i1 %395, label %399, label %396

396:                                              ; preds = %392
  %397 = load i32, ptr %8, align 4, !tbaa !9
  %398 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN5ImGui10SetFocusIDEjP11ImGuiWindow(i32 noundef %397, ptr noundef %398)
  br label %399

399:                                              ; preds = %396, %392, %389
  br label %400

400:                                              ; preds = %399, %375
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  br label %401

401:                                              ; preds = %400, %343
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #7
  store i8 0, ptr %21, align 1, !tbaa !11
  %402 = load ptr, ptr %12, align 8, !tbaa !5
  %403 = getelementptr inbounds %struct.ImGuiContext, ptr %402, i32 0, i32 36
  %404 = load i32, ptr %403, align 8, !tbaa !13
  %405 = load i32, ptr %8, align 4, !tbaa !9
  %406 = icmp eq i32 %404, %405
  br i1 %406, label %407, label %514

407:                                              ; preds = %401
  %408 = load i8, ptr %17, align 1, !tbaa !11, !range !68, !noundef !69
  %409 = trunc i8 %408 to i1
  br i1 %409, label %410, label %413

410:                                              ; preds = %407
  %411 = load ptr, ptr %12, align 8, !tbaa !5
  %412 = getelementptr inbounds %struct.ImGuiContext, ptr %411, i32 0, i32 41
  store i8 1, ptr %412, align 2, !tbaa !95
  br label %413

413:                                              ; preds = %410, %407
  %414 = load ptr, ptr %12, align 8, !tbaa !5
  %415 = getelementptr inbounds %struct.ImGuiContext, ptr %414, i32 0, i32 51
  %416 = load i32, ptr %415, align 8, !tbaa !96
  %417 = icmp eq i32 %416, 1
  br i1 %417, label %418, label %499

418:                                              ; preds = %413
  %419 = load ptr, ptr %12, align 8, !tbaa !5
  %420 = getelementptr inbounds %struct.ImGuiContext, ptr %419, i32 0, i32 39
  %421 = load i8, ptr %420, align 4, !tbaa !97, !range !68, !noundef !69
  %422 = trunc i8 %421 to i1
  br i1 %422, label %423, label %432

423:                                              ; preds = %418
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %424 = load ptr, ptr %12, align 8, !tbaa !5
  %425 = getelementptr inbounds %struct.ImGuiContext, ptr %424, i32 0, i32 5
  %426 = getelementptr inbounds %struct.ImGuiIO, ptr %425, i32 0, i32 36
  %427 = load ptr, ptr %7, align 8, !tbaa !5
  %428 = getelementptr inbounds %struct.ImRect, ptr %427, i32 0, i32 0
  %429 = call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %426, ptr noundef nonnull align 4 dereferenceable(8) %428)
  store <2 x float> %429, ptr %22, align 4
  %430 = load ptr, ptr %12, align 8, !tbaa !5
  %431 = getelementptr inbounds %struct.ImGuiContext, ptr %430, i32 0, i32 49
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %431, ptr align 4 %22, i64 8, i1 false), !tbaa.struct !98
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %432

432:                                              ; preds = %423, %418
  %433 = load ptr, ptr %12, align 8, !tbaa !5
  %434 = getelementptr inbounds %struct.ImGuiContext, ptr %433, i32 0, i32 5
  %435 = getelementptr inbounds %struct.ImGuiIO, ptr %434, i32 0, i32 37
  %436 = getelementptr inbounds [5 x i8], ptr %435, i64 0, i64 0
  %437 = load i8, ptr %436, align 8, !tbaa !11, !range !68, !noundef !69
  %438 = trunc i8 %437 to i1
  br i1 %438, label %439, label %440

439:                                              ; preds = %432
  store i8 1, ptr %21, align 1, !tbaa !11
  br label %491

440:                                              ; preds = %432
  %441 = load i8, ptr %18, align 1, !tbaa !11, !range !68, !noundef !69
  %442 = trunc i8 %441 to i1
  br i1 %442, label %443, label %490

443:                                              ; preds = %440
  %444 = load i32, ptr %11, align 4, !tbaa !9
  %445 = and i32 %444, 2
  %446 = icmp ne i32 %445, 0
  br i1 %446, label %447, label %490

447:                                              ; preds = %443
  %448 = load ptr, ptr %12, align 8, !tbaa !5
  %449 = getelementptr inbounds %struct.ImGuiContext, ptr %448, i32 0, i32 125
  %450 = load i8, ptr %449, align 4, !tbaa !70, !range !68, !noundef !69
  %451 = trunc i8 %450 to i1
  br i1 %451, label %490, label %452

452:                                              ; preds = %447
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #7
  %453 = load i32, ptr %11, align 4, !tbaa !9
  %454 = and i32 %453, 16
  %455 = icmp ne i32 %454, 0
  br i1 %455, label %456, label %463

456:                                              ; preds = %452
  %457 = load ptr, ptr %12, align 8, !tbaa !5
  %458 = getelementptr inbounds %struct.ImGuiContext, ptr %457, i32 0, i32 5
  %459 = getelementptr inbounds %struct.ImGuiIO, ptr %458, i32 0, i32 67
  %460 = getelementptr inbounds [5 x i8], ptr %459, i64 0, i64 0
  %461 = load i8, ptr %460, align 4, !tbaa !11, !range !68, !noundef !69
  %462 = trunc i8 %461 to i1
  br label %463

463:                                              ; preds = %456, %452
  %464 = phi i1 [ false, %452 ], [ %462, %456 ]
  %465 = zext i1 %464 to i8
  store i8 %465, ptr %23, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #7
  %466 = load i32, ptr %11, align 4, !tbaa !9
  %467 = and i32 %466, 1
  %468 = icmp ne i32 %467, 0
  br i1 %468, label %469, label %480

469:                                              ; preds = %463
  %470 = load ptr, ptr %12, align 8, !tbaa !5
  %471 = getelementptr inbounds %struct.ImGuiContext, ptr %470, i32 0, i32 5
  %472 = getelementptr inbounds %struct.ImGuiIO, ptr %471, i32 0, i32 69
  %473 = getelementptr inbounds [5 x float], ptr %472, i64 0, i64 0
  %474 = load float, ptr %473, align 8, !tbaa !79
  %475 = load ptr, ptr %12, align 8, !tbaa !5
  %476 = getelementptr inbounds %struct.ImGuiContext, ptr %475, i32 0, i32 5
  %477 = getelementptr inbounds %struct.ImGuiIO, ptr %476, i32 0, i32 11
  %478 = load float, ptr %477, align 4, !tbaa !80
  %479 = fcmp oge float %474, %478
  br label %480

480:                                              ; preds = %469, %463
  %481 = phi i1 [ false, %463 ], [ %479, %469 ]
  %482 = zext i1 %481 to i8
  store i8 %482, ptr %24, align 1, !tbaa !11
  %483 = load i8, ptr %23, align 1, !tbaa !11, !range !68, !noundef !69
  %484 = trunc i8 %483 to i1
  br i1 %484, label %489, label %485

485:                                              ; preds = %480
  %486 = load i8, ptr %24, align 1, !tbaa !11, !range !68, !noundef !69
  %487 = trunc i8 %486 to i1
  br i1 %487, label %489, label %488

488:                                              ; preds = %485
  store i8 1, ptr %17, align 1, !tbaa !11
  br label %489

489:                                              ; preds = %488, %485, %480
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #7
  br label %490

490:                                              ; preds = %489, %447, %443, %440
  call void @_ZN5ImGui13ClearActiveIDEv()
  br label %491

491:                                              ; preds = %490, %439
  %492 = load i32, ptr %11, align 4, !tbaa !9
  %493 = and i32 %492, 8192
  %494 = icmp ne i32 %493, 0
  br i1 %494, label %498, label %495

495:                                              ; preds = %491
  %496 = load ptr, ptr %12, align 8, !tbaa !5
  %497 = getelementptr inbounds %struct.ImGuiContext, ptr %496, i32 0, i32 91
  store i8 1, ptr %497, align 2, !tbaa !81
  br label %498

498:                                              ; preds = %495, %491
  br label %513

499:                                              ; preds = %413
  %500 = load ptr, ptr %12, align 8, !tbaa !5
  %501 = getelementptr inbounds %struct.ImGuiContext, ptr %500, i32 0, i32 51
  %502 = load i32, ptr %501, align 8, !tbaa !96
  %503 = icmp eq i32 %502, 2
  br i1 %503, label %504, label %512

504:                                              ; preds = %499
  %505 = load ptr, ptr %12, align 8, !tbaa !5
  %506 = getelementptr inbounds %struct.ImGuiContext, ptr %505, i32 0, i32 69
  %507 = load i32, ptr %506, align 8, !tbaa !93
  %508 = load i32, ptr %8, align 4, !tbaa !9
  %509 = icmp ne i32 %507, %508
  br i1 %509, label %510, label %511

510:                                              ; preds = %504
  call void @_ZN5ImGui13ClearActiveIDEv()
  br label %511

511:                                              ; preds = %510, %504
  br label %512

512:                                              ; preds = %511, %499
  br label %513

513:                                              ; preds = %512, %498
  br label %514

514:                                              ; preds = %513, %401
  %515 = load ptr, ptr %9, align 8, !tbaa !5
  %516 = icmp ne ptr %515, null
  br i1 %516, label %517, label %522

517:                                              ; preds = %514
  %518 = load i8, ptr %18, align 1, !tbaa !11, !range !68, !noundef !69
  %519 = trunc i8 %518 to i1
  %520 = load ptr, ptr %9, align 8, !tbaa !5
  %521 = zext i1 %519 to i8
  store i8 %521, ptr %520, align 1, !tbaa !11
  br label %522

522:                                              ; preds = %517, %514
  %523 = load ptr, ptr %10, align 8, !tbaa !5
  %524 = icmp ne ptr %523, null
  br i1 %524, label %525, label %530

525:                                              ; preds = %522
  %526 = load i8, ptr %21, align 1, !tbaa !11, !range !68, !noundef !69
  %527 = trunc i8 %526 to i1
  %528 = load ptr, ptr %10, align 8, !tbaa !5
  %529 = zext i1 %527 to i8
  store i8 %529, ptr %528, align 1, !tbaa !11
  br label %530

530:                                              ; preds = %525, %522
  %531 = load i8, ptr %17, align 1, !tbaa !11, !range !68, !noundef !69
  %532 = trunc i8 %531 to i1
  store i1 %532, ptr %6, align 1
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %533

533:                                              ; preds = %530, %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  %534 = load i1, ptr %6, align 1
  ret i1 %534
}

declare void @_ZN5ImGui13ClearActiveIDEv() #5

declare noundef zeroext i1 @_ZN5ImGui13ItemHoverableERK6ImRectj(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef) #5

declare noundef zeroext i1 @_ZN5ImGui13IsItemHoveredEi(i32 noundef) #5

declare void @_ZN5ImGui12SetHoveredIDEj(i32 noundef) #5

declare noundef i32 @_ZN5ImGui25CalcTypematicRepeatAmountEffff(float noundef, float noundef, float noundef, float noundef) #5

declare void @_ZN5ImGui11FocusWindowEP11ImGuiWindow(ptr noundef) #5

declare void @_ZN5ImGui11SetActiveIDEjP11ImGuiWindow(i32 noundef, ptr noundef) #5

declare void @_ZN5ImGui10SetFocusIDEjP11ImGuiWindow(i32 noundef, ptr noundef) #5

declare noundef zeroext i1 @_ZN5ImGui14IsMouseClickedEib(i32 noundef, i1 noundef zeroext) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5ImGui17IsNavInputPressedEi18ImGuiInputReadMode(i32 noundef, i32 noundef) #6

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !10, i64 6752}
!14 = !{!"_ZTS12ImGuiContext", !12, i64 0, !12, i64 1, !12, i64 2, !12, i64 3, !15, i64 8, !19, i64 5464, !6, i64 6408, !17, i64 6416, !17, i64 6420, !20, i64 6424, !22, i64 6568, !10, i64 6576, !10, i64 6580, !10, i64 6584, !23, i64 6592, !23, i64 6608, !23, i64 6624, !23, i64 6640, !24, i64 6656, !10, i64 6672, !6, i64 6680, !6, i64 6688, !6, i64 6696, !6, i64 6704, !6, i64 6712, !16, i64 6720, !17, i64 6728, !10, i64 6732, !12, i64 6736, !10, i64 6740, !17, i64 6744, !17, i64 6748, !10, i64 6752, !10, i64 6756, !17, i64 6760, !12, i64 6764, !12, i64 6765, !12, i64 6766, !12, i64 6767, !12, i64 6768, !10, i64 6772, !10, i64 6776, !26, i64 6784, !16, i64 6792, !6, i64 6800, !27, i64 6808, !10, i64 6812, !12, i64 6816, !12, i64 6817, !6, i64 6824, !10, i64 6832, !17, i64 6836, !28, i64 6840, !30, i64 6944, !31, i64 6960, !32, i64 6976, !33, i64 6992, !34, i64 7008, !34, i64 7024, !6, i64 7040, !10, i64 7048, !10, i64 7052, !10, i64 7056, !10, i64 7060, !10, i64 7064, !10, i64 7068, !10, i64 7072, !10, i64 7076, !10, i64 7080, !27, i64 7084, !29, i64 7088, !10, i64 7104, !6, i64 7112, !6, i64 7120, !6, i64 7128, !17, i64 7136, !17, i64 7140, !12, i64 7144, !35, i64 7148, !10, i64 7152, !12, i64 7156, !12, i64 7157, !12, i64 7158, !12, i64 7159, !12, i64 7160, !12, i64 7161, !12, i64 7162, !10, i64 7164, !29, i64 7168, !12, i64 7184, !12, i64 7185, !10, i64 7188, !36, i64 7192, !10, i64 7196, !10, i64 7200, !10, i64 7204, !37, i64 7208, !37, i64 7256, !37, i64 7304, !6, i64 7352, !6, i64 7360, !10, i64 7368, !10, i64 7372, !10, i64 7376, !10, i64 7380, !12, i64 7384, !38, i64 7392, !39, i64 7448, !17, i64 7480, !40, i64 7488, !40, i64 7656, !10, i64 7824, !12, i64 7828, !12, i64 7829, !10, i64 7832, !10, i64 7836, !10, i64 7840, !48, i64 7848, !29, i64 7912, !10, i64 7928, !10, i64 7932, !17, i64 7936, !10, i64 7940, !10, i64 7944, !10, i64 7948, !49, i64 7952, !7, i64 7968, !6, i64 7976, !50, i64 7984, !52, i64 8024, !53, i64 8040, !16, i64 8056, !54, i64 8064, !59, i64 11792, !10, i64 11912, !10, i64 11916, !17, i64 11920, !7, i64 11924, !21, i64 11936, !12, i64 11952, !17, i64 11956, !17, i64 11960, !17, i64 11964, !10, i64 11968, !55, i64 11976, !10, i64 11992, !16, i64 11996, !16, i64 12004, !12, i64 12012, !17, i64 12016, !62, i64 12024, !63, i64 12040, !64, i64 12056, !12, i64 12072, !65, i64 12076, !6, i64 12080, !62, i64 12088, !17, i64 12104, !12, i64 12108, !10, i64 12112, !10, i64 12116, !10, i64 12120, !12, i64 12124, !10, i64 12128, !7, i64 12132, !10, i64 12612, !17, i64 12616, !10, i64 12620, !10, i64 12624, !10, i64 12628, !7, i64 12632}
!15 = !{!"_ZTS7ImGuiIO", !10, i64 0, !10, i64 4, !16, i64 8, !17, i64 16, !17, i64 20, !6, i64 24, !6, i64 32, !17, i64 40, !17, i64 44, !17, i64 48, !7, i64 52, !17, i64 140, !17, i64 144, !6, i64 152, !6, i64 160, !17, i64 168, !12, i64 172, !6, i64 176, !16, i64 184, !12, i64 192, !12, i64 193, !12, i64 194, !12, i64 195, !12, i64 196, !17, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !16, i64 296, !7, i64 304, !17, i64 312, !17, i64 316, !12, i64 320, !12, i64 321, !12, i64 322, !12, i64 323, !7, i64 324, !7, i64 836, !12, i64 920, !12, i64 921, !12, i64 922, !12, i64 923, !12, i64 924, !12, i64 925, !12, i64 926, !17, i64 928, !10, i64 932, !10, i64 936, !10, i64 940, !10, i64 944, !10, i64 948, !16, i64 952, !16, i64 960, !7, i64 968, !7, i64 1008, !7, i64 1048, !7, i64 1053, !7, i64 1058, !7, i64 1063, !7, i64 1068, !7, i64 1076, !7, i64 1096, !7, i64 1116, !7, i64 1156, !7, i64 1176, !7, i64 3224, !7, i64 5272, !7, i64 5356, !18, i64 5440}
!16 = !{!"_ZTS6ImVec2", !17, i64 0, !17, i64 4}
!17 = !{!"float", !7, i64 0}
!18 = !{!"_ZTS8ImVectorItE", !10, i64 0, !10, i64 4, !6, i64 8}
!19 = !{!"_ZTS10ImGuiStyle", !17, i64 0, !16, i64 4, !17, i64 12, !17, i64 16, !16, i64 20, !16, i64 28, !10, i64 36, !17, i64 40, !17, i64 44, !17, i64 48, !17, i64 52, !16, i64 56, !17, i64 64, !17, i64 68, !16, i64 72, !16, i64 80, !16, i64 88, !17, i64 96, !17, i64 100, !17, i64 104, !17, i64 108, !17, i64 112, !17, i64 116, !17, i64 120, !17, i64 124, !10, i64 128, !16, i64 132, !16, i64 140, !16, i64 148, !16, i64 156, !17, i64 164, !12, i64 168, !12, i64 169, !17, i64 172, !7, i64 176}
!20 = !{!"_ZTS20ImDrawListSharedData", !16, i64 0, !6, i64 8, !17, i64 16, !17, i64 20, !21, i64 24, !10, i64 40, !7, i64 44}
!21 = !{!"_ZTS6ImVec4", !17, i64 0, !17, i64 4, !17, i64 8, !17, i64 12}
!22 = !{!"double", !7, i64 0}
!23 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !10, i64 0, !10, i64 4, !6, i64 8}
!24 = !{!"_ZTS12ImGuiStorage", !25, i64 0}
!25 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !10, i64 0, !10, i64 4, !6, i64 8}
!26 = !{!"long long", !7, i64 0}
!27 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!28 = !{!"_ZTS19ImGuiNextWindowData", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !16, i64 16, !16, i64 24, !16, i64 32, !16, i64 40, !12, i64 48, !29, i64 52, !6, i64 72, !6, i64 80, !17, i64 88, !16, i64 92}
!29 = !{!"_ZTS6ImRect", !16, i64 0, !16, i64 8}
!30 = !{!"_ZTS17ImGuiNextItemData", !10, i64 0, !17, i64 4, !12, i64 8, !10, i64 12}
!31 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !10, i64 0, !10, i64 4, !6, i64 8}
!32 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !10, i64 0, !10, i64 4, !6, i64 8}
!33 = !{!"_ZTS8ImVectorIP6ImFontE", !10, i64 0, !10, i64 4, !6, i64 8}
!34 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!35 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!36 = !{!"_ZTS15ImGuiNavForward", !7, i64 0}
!37 = !{!"_ZTS18ImGuiNavMoveResult", !10, i64 0, !10, i64 4, !6, i64 8, !17, i64 16, !17, i64 20, !17, i64 24, !29, i64 28}
!38 = !{!"_ZTS10ImDrawData", !12, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !16, i64 28, !16, i64 36, !16, i64 44}
!39 = !{!"_ZTS17ImDrawDataBuilder", !7, i64 0}
!40 = !{!"_ZTS10ImDrawList", !41, i64 0, !18, i64 16, !42, i64 32, !10, i64 48, !6, i64 56, !6, i64 64, !10, i64 72, !10, i64 76, !6, i64 80, !6, i64 88, !43, i64 96, !44, i64 112, !45, i64 128, !46, i64 144}
!41 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !10, i64 0, !10, i64 4, !6, i64 8}
!42 = !{!"_ZTS8ImVectorI10ImDrawVertE", !10, i64 0, !10, i64 4, !6, i64 8}
!43 = !{!"_ZTS8ImVectorI6ImVec4E", !10, i64 0, !10, i64 4, !6, i64 8}
!44 = !{!"_ZTS8ImVectorIPvE", !10, i64 0, !10, i64 4, !6, i64 8}
!45 = !{!"_ZTS8ImVectorI6ImVec2E", !10, i64 0, !10, i64 4, !6, i64 8}
!46 = !{!"_ZTS18ImDrawListSplitter", !10, i64 0, !10, i64 4, !47, i64 8}
!47 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !10, i64 0, !10, i64 4, !6, i64 8}
!48 = !{!"_ZTS12ImGuiPayload", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !7, i64 24, !12, i64 57, !12, i64 58}
!49 = !{!"_ZTS8ImVectorIhE", !10, i64 0, !10, i64 4, !6, i64 8}
!50 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !51, i64 0, !24, i64 16, !10, i64 32}
!51 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !10, i64 0, !10, i64 4, !6, i64 8}
!52 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !10, i64 0, !10, i64 4, !6, i64 8}
!53 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !10, i64 0, !10, i64 4, !6, i64 8}
!54 = !{!"_ZTS19ImGuiInputTextState", !10, i64 0, !10, i64 4, !10, i64 8, !18, i64 16, !55, i64 32, !55, i64 48, !12, i64 64, !10, i64 68, !17, i64 72, !56, i64 76, !17, i64 3696, !12, i64 3700, !12, i64 3701, !10, i64 3704, !6, i64 3712, !6, i64 3720}
!55 = !{!"_ZTS8ImVectorIcE", !10, i64 0, !10, i64 4, !6, i64 8}
!56 = !{!"_ZTSN5ImStb17STB_TexteditStateE", !10, i64 0, !10, i64 4, !10, i64 8, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 19, !17, i64 20, !57, i64 24}
!57 = !{!"_ZTSN5ImStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !58, i64 3582, !58, i64 3584, !10, i64 3588, !10, i64 3592}
!58 = !{!"short", !7, i64 0}
!59 = !{!"_ZTS6ImFont", !60, i64 0, !17, i64 16, !17, i64 20, !18, i64 24, !61, i64 40, !6, i64 56, !16, i64 64, !6, i64 72, !6, i64 80, !58, i64 88, !58, i64 90, !58, i64 92, !17, i64 96, !17, i64 100, !17, i64 104, !10, i64 108, !12, i64 112}
!60 = !{!"_ZTS8ImVectorIfE", !10, i64 0, !10, i64 4, !6, i64 8}
!61 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !10, i64 0, !10, i64 4, !6, i64 8}
!62 = !{!"_ZTS15ImGuiTextBuffer", !55, i64 0}
!63 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !10, i64 0, !10, i64 4, !6, i64 8}
!64 = !{!"_ZTS8ImVectorI19ImGuiWindowSettingsE", !10, i64 0, !10, i64 4, !6, i64 8}
!65 = !{!"_ZTS12ImGuiLogType", !7, i64 0}
!66 = !{!14, !6, i64 6688}
!67 = !{!14, !6, i64 6696}
!68 = !{i8 0, i8 2}
!69 = !{}
!70 = !{!14, !12, i64 7828}
!71 = !{!14, !10, i64 7860}
!72 = !{!14, !10, i64 7832}
!73 = !{!14, !17, i64 6744}
!74 = !{!14, !17, i64 24}
!75 = !{!14, !10, i64 6740}
!76 = !{!14, !12, i64 328}
!77 = !{!14, !12, i64 329}
!78 = !{!14, !12, i64 330}
!79 = !{!17, !17, i64 0}
!80 = !{!14, !17, i64 148}
!81 = !{!14, !12, i64 7158}
!82 = !{!14, !10, i64 7048}
!83 = !{!14, !12, i64 7159}
!84 = !{!85, !10, i64 76}
!85 = !{!"_ZTS11ImGuiWindow", !6, i64 0, !10, i64 8, !10, i64 12, !16, i64 16, !16, i64 24, !16, i64 32, !16, i64 40, !16, i64 48, !16, i64 56, !17, i64 64, !17, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !16, i64 84, !16, i64 92, !16, i64 100, !16, i64 108, !16, i64 116, !12, i64 124, !12, i64 125, !12, i64 126, !12, i64 127, !12, i64 128, !12, i64 129, !12, i64 130, !12, i64 131, !12, i64 132, !12, i64 133, !12, i64 134, !7, i64 135, !58, i64 136, !58, i64 138, !58, i64 140, !10, i64 144, !7, i64 148, !7, i64 149, !7, i64 150, !12, i64 151, !10, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !10, i64 172, !16, i64 176, !16, i64 184, !86, i64 192, !87, i64 208, !29, i64 496, !29, i64 512, !29, i64 528, !29, i64 544, !29, i64 560, !29, i64 576, !10, i64 592, !17, i64 596, !17, i64 600, !91, i64 604, !24, i64 640, !92, i64 656, !17, i64 672, !10, i64 676, !6, i64 680, !40, i64 688, !6, i64 856, !6, i64 864, !6, i64 872, !6, i64 880, !6, i64 888, !7, i64 896, !7, i64 904, !12, i64 936, !10, i64 940, !10, i64 944}
!86 = !{!"_ZTS8ImVectorIjE", !10, i64 0, !10, i64 4, !6, i64 8}
!87 = !{!"_ZTS19ImGuiWindowTempData", !16, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !16, i64 32, !16, i64 40, !17, i64 48, !17, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !29, i64 72, !29, i64 88, !35, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !12, i64 120, !12, i64 121, !12, i64 122, !16, i64 124, !23, i64 136, !6, i64 152, !10, i64 160, !10, i64 164, !10, i64 168, !10, i64 172, !10, i64 176, !17, i64 180, !17, i64 184, !88, i64 192, !60, i64 208, !60, i64 224, !89, i64 240, !7, i64 256, !90, i64 268, !90, i64 272, !90, i64 276, !6, i64 280}
!88 = !{!"_ZTS8ImVectorIiE", !10, i64 0, !10, i64 4, !6, i64 8}
!89 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!90 = !{!"_ZTS6ImVec1", !17, i64 0}
!91 = !{!"_ZTS16ImGuiMenuColumns", !17, i64 0, !17, i64 4, !17, i64 8, !7, i64 12, !7, i64 24}
!92 = !{!"_ZTS8ImVectorI12ImGuiColumnsE", !10, i64 0, !10, i64 4, !6, i64 8}
!93 = !{!14, !10, i64 7056}
!94 = !{!14, !10, i64 7052}
!95 = !{!14, !12, i64 6766}
!96 = !{!14, !27, i64 6808}
!97 = !{!14, !12, i64 6764}
!98 = !{i64 0, i64 4, !79, i64 4, i64 4, !79}


; 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 ptr @_ZN5ImGui16GetCurrentWindowEv() local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN5ImGui14ButtonBehaviorERK6ImRectjPbS3_i(ptr noundef nonnull align 4 dereferenceable(16) %0, i32 noundef %1, ptr noundef writeonly %2, ptr noundef writeonly %3, i32 noundef %4) local_unnamed_addr #2 {
  %6 = load ptr, ptr @GImGui, align 8, !tbaa !5
  %7 = tail call noundef ptr @_ZN5ImGui16GetCurrentWindowEv()
  %8 = and i32 %4, 256
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %18, label %9

9:                                                ; preds = %5
  %.not178 = icmp eq ptr %2, null
  br i1 %.not178, label %11, label %10

10:                                               ; preds = %9
  store i8 0, ptr %2, align 1, !tbaa !9
  br label %11

11:                                               ; preds = %10, %9
  %.not179 = icmp eq ptr %3, null
  br i1 %.not179, label %13, label %12

12:                                               ; preds = %11
  store i8 0, ptr %3, align 1, !tbaa !9
  br label %13

13:                                               ; preds = %12, %11
  %14 = getelementptr inbounds i8, ptr %6, i64 6752
  %15 = load i32, ptr %14, align 8, !tbaa !11
  %16 = icmp eq i32 %15, %1
  br i1 %16, label %17, label %246

17:                                               ; preds = %13
  tail call void @_ZN5ImGui13ClearActiveIDEv()
  br label %246

18:                                               ; preds = %5
  %19 = and i32 %4, 30
  %20 = icmp eq i32 %19, 0
  %21 = or disjoint i32 %4, 2
  %spec.select = select i1 %20, i32 %21, i32 %4
  %22 = getelementptr inbounds i8, ptr %6, i64 6688
  %23 = load ptr, ptr %22, align 8, !tbaa !65
  %24 = and i32 %spec.select, 32
  %.not151 = icmp eq i32 %24, 0
  br i1 %.not151, label %.thread, label %25

25:                                               ; preds = %18
  %26 = getelementptr inbounds i8, ptr %6, i64 6696
  %27 = load ptr, ptr %26, align 8, !tbaa !66
  %28 = icmp eq ptr %27, %7
  br i1 %28, label %29, label %.thread

29:                                               ; preds = %25
  store ptr %7, ptr %22, align 8, !tbaa !65
  br label %.thread

.thread:                                          ; preds = %18, %29, %25
  %30 = phi i1 [ true, %29 ], [ false, %25 ], [ false, %18 ]
  %31 = tail call noundef zeroext i1 @_ZN5ImGui13ItemHoverableERK6ImRectj(ptr noundef nonnull align 4 dereferenceable(16) %0, i32 noundef %1)
  %32 = getelementptr inbounds i8, ptr %6, i64 7828
  %33 = load i8, ptr %32, align 4, !tbaa !67, !range !68
  br i1 %31, label %34, label %.thread._crit_edge

34:                                               ; preds = %.thread
  %35 = trunc nuw i8 %33 to i1
  br i1 %35, label %36, label %.thread._crit_edge

36:                                               ; preds = %34
  %37 = getelementptr inbounds i8, ptr %6, i64 7860
  %38 = load i32, ptr %37, align 4, !tbaa !69
  %39 = icmp eq i32 %38, %1
  br i1 %39, label %40, label %.thread._crit_edge

40:                                               ; preds = %36
  %41 = getelementptr inbounds i8, ptr %6, i64 7832
  %42 = load i32, ptr %41, align 8, !tbaa !70
  %43 = and i32 %42, 2
  %.not152 = icmp ne i32 %43, 0
  br label %.thread._crit_edge

.thread._crit_edge:                               ; preds = %.thread, %40, %36, %34
  %.0137.shrunk = phi i1 [ true, %36 ], [ true, %34 ], [ %.not152, %40 ], [ false, %.thread ]
  %44 = getelementptr inbounds i8, ptr %6, i64 7828
  %45 = trunc nuw i8 %33 to i1
  %46 = and i32 %spec.select, 4096
  %.not153 = icmp ne i32 %46, 0
  %or.cond.not = and i1 %.not153, %45
  br i1 %or.cond.not, label %47, label %62

47:                                               ; preds = %.thread._crit_edge
  %48 = getelementptr inbounds i8, ptr %6, i64 7832
  %49 = load i32, ptr %48, align 8, !tbaa !70
  %50 = and i32 %49, 4
  %.not154 = icmp eq i32 %50, 0
  br i1 %.not154, label %51, label %62

51:                                               ; preds = %47
  %52 = tail call noundef zeroext i1 @_ZN5ImGui13IsItemHoveredEi(i32 noundef 32)
  br i1 %52, label %53, label %62

53:                                               ; preds = %51
  tail call void @_ZN5ImGui12SetHoveredIDEj(i32 noundef %1)
  %54 = getelementptr inbounds i8, ptr %6, i64 6744
  %55 = load float, ptr %54, align 8, !tbaa !71
  %56 = fadd float %55, 0x3F1A36E2E0000000
  %57 = getelementptr inbounds i8, ptr %6, i64 24
  %58 = load float, ptr %57, align 8, !tbaa !72
  %59 = fsub float %56, %58
  %60 = tail call noundef i32 @_ZN5ImGui25CalcTypematicRepeatAmountEffff(float noundef %59, float noundef %56, float noundef 0x3FE6666660000000, float noundef 0.000000e+00)
  %.not155 = icmp eq i32 %60, 0
  br i1 %.not155, label %62, label %61

61:                                               ; preds = %53
  tail call void @_ZN5ImGui11FocusWindowEP11ImGuiWindow(ptr noundef %7)
  br label %62

62:                                               ; preds = %51, %61, %53, %47, %.thread._crit_edge
  %.1138.shrunk = phi i1 [ %.0137.shrunk, %47 ], [ true, %61 ], [ true, %53 ], [ %.0137.shrunk, %51 ], [ %.0137.shrunk, %.thread._crit_edge ]
  %.0135 = phi i8 [ 0, %47 ], [ 1, %61 ], [ 0, %53 ], [ 0, %51 ], [ 0, %.thread._crit_edge ]
  br i1 %30, label %63, label %64

63:                                               ; preds = %62
  store ptr %23, ptr %22, align 8, !tbaa !65
  br label %64

64:                                               ; preds = %63, %62
  %65 = and i32 %spec.select, 64
  %.not156 = icmp ne i32 %65, 0
  %or.cond182.not = and i1 %.not156, %.1138.shrunk
  br i1 %or.cond182.not, label %66, label %69

66:                                               ; preds = %64
  %67 = getelementptr inbounds i8, ptr %6, i64 6740
  %68 = load i32, ptr %67, align 4, !tbaa !73
  %.not157 = icmp eq i32 %68, %1
  %.not158 = icmp eq i32 %68, 0
  %or.cond183 = or i1 %.not157, %.not158
  br i1 %or.cond183, label %70, label %143

69:                                               ; preds = %64
  br i1 %.1138.shrunk, label %70, label %143

70:                                               ; preds = %66, %69
  %71 = and i32 %spec.select, 1024
  %.not159 = icmp eq i32 %71, 0
  br i1 %.not159, label %84, label %72

72:                                               ; preds = %70
  %73 = getelementptr inbounds i8, ptr %6, i64 328
  %74 = load i8, ptr %73, align 8, !tbaa !74, !range !68, !noundef !75
  %75 = trunc nuw i8 %74 to i1
  br i1 %75, label %139, label %76

76:                                               ; preds = %72
  %77 = getelementptr inbounds i8, ptr %6, i64 329
  %78 = load i8, ptr %77, align 1, !tbaa !76, !range !68, !noundef !75
  %79 = trunc nuw i8 %78 to i1
  br i1 %79, label %139, label %80

80:                                               ; preds = %76
  %81 = getelementptr inbounds i8, ptr %6, i64 330
  %82 = load i8, ptr %81, align 2, !tbaa !77, !range !68, !noundef !75
  %83 = trunc nuw i8 %82 to i1
  br i1 %83, label %139, label %84

84:                                               ; preds = %80, %70
  %85 = and i32 %spec.select, 2
  %.not160 = icmp eq i32 %85, 0
  br i1 %.not160, label %94, label %86

86:                                               ; preds = %84
  %87 = getelementptr inbounds i8, ptr %6, i64 1056
  %88 = load i8, ptr %87, align 8, !tbaa !9, !range !68, !noundef !75
  %89 = trunc nuw i8 %88 to i1
  br i1 %89, label %90, label %94

90:                                               ; preds = %86
  tail call void @_ZN5ImGui11SetActiveIDEjP11ImGuiWindow(i32 noundef %1, ptr noundef %7)
  %91 = and i32 %spec.select, 8192
  %.not161 = icmp eq i32 %91, 0
  br i1 %.not161, label %92, label %93

92:                                               ; preds = %90
  tail call void @_ZN5ImGui10SetFocusIDEjP11ImGuiWindow(i32 noundef %1, ptr noundef %7)
  br label %93

93:                                               ; preds = %92, %90
  tail call void @_ZN5ImGui11FocusWindowEP11ImGuiWindow(ptr noundef %7)
  br label %94

94:                                               ; preds = %93, %86, %84
  %95 = and i32 %spec.select, 4
  %.not162 = icmp eq i32 %95, 0
  br i1 %.not162, label %100, label %96

96:                                               ; preds = %94
  %97 = getelementptr inbounds i8, ptr %6, i64 1056
  %98 = load i8, ptr %97, align 8, !tbaa !9, !range !68, !noundef !75
  %99 = trunc nuw i8 %98 to i1
  br i1 %99, label %106, label %100

100:                                              ; preds = %96, %94
  %101 = and i32 %spec.select, 16
  %.not163 = icmp eq i32 %101, 0
  br i1 %.not163, label %111, label %102

102:                                              ; preds = %100
  %103 = getelementptr inbounds i8, ptr %6, i64 1061
  %104 = load i8, ptr %103, align 1, !tbaa !9, !range !68, !noundef !75
  %105 = trunc nuw i8 %104 to i1
  br i1 %105, label %106, label %111

106:                                              ; preds = %102, %96
  %107 = and i32 %spec.select, 2048
  %.not164 = icmp eq i32 %107, 0
  br i1 %.not164, label %109, label %108

108:                                              ; preds = %106
  tail call void @_ZN5ImGui13ClearActiveIDEv()
  br label %110

109:                                              ; preds = %106
  tail call void @_ZN5ImGui11SetActiveIDEjP11ImGuiWindow(i32 noundef %1, ptr noundef %7)
  br label %110

110:                                              ; preds = %109, %108
  tail call void @_ZN5ImGui11FocusWindowEP11ImGuiWindow(ptr noundef %7)
  br label %111

111:                                              ; preds = %110, %102, %100
  %.1136 = phi i8 [ 1, %110 ], [ %.0135, %102 ], [ %.0135, %100 ]
  %112 = and i32 %spec.select, 8
  %.not165 = icmp eq i32 %112, 0
  br i1 %.not165, label %127, label %113

113:                                              ; preds = %111
  %114 = getelementptr inbounds i8, ptr %6, i64 1066
  %115 = load i8, ptr %114, align 2, !tbaa !9, !range !68, !noundef !75
  %116 = trunc nuw i8 %115 to i1
  br i1 %116, label %117, label %127

117:                                              ; preds = %113
  %118 = and i32 %spec.select, 1
  %.not166 = icmp eq i32 %118, 0
  br i1 %.not166, label %125, label %119

119:                                              ; preds = %117
  %120 = getelementptr inbounds i8, ptr %6, i64 1104
  %121 = load float, ptr %120, align 8, !tbaa !78
  %122 = getelementptr inbounds i8, ptr %6, i64 148
  %123 = load float, ptr %122, align 4, !tbaa !79
  %124 = fcmp ult float %121, %123
  br i1 %124, label %125, label %126

125:                                              ; preds = %119, %117
  br label %126

126:                                              ; preds = %125, %119
  %.2 = phi i8 [ %.1136, %119 ], [ 1, %125 ]
  tail call void @_ZN5ImGui13ClearActiveIDEv()
  br label %127

127:                                              ; preds = %126, %113, %111
  %.3 = phi i8 [ %.2, %126 ], [ %.1136, %113 ], [ %.1136, %111 ]
  %128 = and i32 %spec.select, 1
  %.not167 = icmp eq i32 %128, 0
  br i1 %.not167, label %139, label %129

129:                                              ; preds = %127
  %130 = getelementptr inbounds i8, ptr %6, i64 6752
  %131 = load i32, ptr %130, align 8, !tbaa !11
  %132 = icmp eq i32 %131, %1
  br i1 %132, label %133, label %139

133:                                              ; preds = %129
  %134 = getelementptr inbounds i8, ptr %6, i64 1084
  %135 = load float, ptr %134, align 4, !tbaa !78
  %136 = fcmp ogt float %135, 0.000000e+00
  br i1 %136, label %137, label %139

137:                                              ; preds = %133
  %138 = tail call noundef zeroext i1 @_ZN5ImGui14IsMouseClickedEib(i32 noundef 0, i1 noundef zeroext true)
  %spec.select184 = select i1 %138, i8 1, i8 %.3
  br label %139

139:                                              ; preds = %137, %127, %129, %133, %80, %76, %72
  %.4 = phi i8 [ %.0135, %72 ], [ %.0135, %76 ], [ %.0135, %80 ], [ %.3, %133 ], [ %.3, %129 ], [ %.3, %127 ], [ %spec.select184, %137 ]
  %140 = trunc nuw i8 %.4 to i1
  br i1 %140, label %141, label %143

141:                                              ; preds = %139
  %142 = getelementptr inbounds i8, ptr %6, i64 7158
  store i8 1, ptr %142, align 2, !tbaa !80
  br label %143

143:                                              ; preds = %66, %139, %141, %69
  %.2139.shrunk195 = phi i1 [ true, %141 ], [ true, %139 ], [ false, %69 ], [ false, %66 ]
  %.5 = phi i8 [ %.4, %141 ], [ %.4, %139 ], [ %.0135, %69 ], [ %.0135, %66 ]
  %144 = getelementptr inbounds i8, ptr %6, i64 7048
  %145 = load i32, ptr %144, align 8, !tbaa !81
  %146 = icmp eq i32 %145, %1
  br i1 %146, label %147, label %167

147:                                              ; preds = %143
  %148 = getelementptr inbounds i8, ptr %6, i64 7158
  %149 = load i8, ptr %148, align 2, !tbaa !80, !range !68, !noundef !75
  %150 = trunc nuw i8 %149 to i1
  br i1 %150, label %167, label %151

151:                                              ; preds = %147
  %152 = getelementptr inbounds i8, ptr %6, i64 7159
  %153 = load i8, ptr %152, align 1, !tbaa !82, !range !68, !noundef !75
  %154 = trunc nuw i8 %153 to i1
  br i1 %154, label %155, label %167

155:                                              ; preds = %151
  %156 = getelementptr inbounds i8, ptr %6, i64 6752
  %157 = load i32, ptr %156, align 8, !tbaa !11
  %158 = icmp eq i32 %157, 0
  %159 = icmp eq i32 %157, %1
  %or.cond185 = or i1 %158, %159
  br i1 %or.cond185, label %165, label %160

160:                                              ; preds = %155
  %161 = getelementptr inbounds i8, ptr %7, i64 76
  %162 = load i32, ptr %161, align 4, !tbaa !83
  %163 = icmp eq i32 %157, %162
  %164 = and i32 %spec.select, 16384
  %.not168 = icmp eq i32 %164, 0
  %or.cond186 = and i1 %.not168, %163
  br i1 %or.cond186, label %166, label %167

165:                                              ; preds = %155
  %.old = and i32 %spec.select, 16384
  %.not168.old = icmp eq i32 %.old, 0
  br i1 %.not168.old, label %166, label %167

166:                                              ; preds = %160, %165
  br label %167

167:                                              ; preds = %165, %166, %160, %151, %147, %143
  %.3140.shrunk = phi i1 [ %.2139.shrunk195, %147 ], [ %.2139.shrunk195, %165 ], [ true, %166 ], [ %.2139.shrunk195, %160 ], [ %.2139.shrunk195, %151 ], [ %.2139.shrunk195, %143 ]
  %168 = getelementptr inbounds i8, ptr %6, i64 7056
  %169 = load i32, ptr %168, align 8, !tbaa !92
  %170 = icmp eq i32 %169, %1
  br i1 %170, label %171, label %185

171:                                              ; preds = %167
  %172 = getelementptr inbounds i8, ptr %6, i64 7052
  %173 = load i32, ptr %172, align 4, !tbaa !93
  %174 = icmp eq i32 %173, %1
  %175 = and i32 %spec.select, 1
  %.not169 = icmp eq i32 %175, 0
  %176 = select i1 %.not169, i32 1, i32 3
  %177 = tail call noundef zeroext i1 @_ZN5ImGui17IsNavInputPressedEi18ImGuiInputReadMode(i32 noundef 0, i32 noundef %176)
  %brmerge = or i1 %174, %177
  %.6 = select i1 %brmerge, i8 1, i8 %.5
  br i1 %brmerge, label %182, label %178

178:                                              ; preds = %171
  %179 = getelementptr inbounds i8, ptr %6, i64 6752
  %180 = load i32, ptr %179, align 8, !tbaa !11
  %181 = icmp eq i32 %180, %1
  br i1 %181, label %182, label %185

182:                                              ; preds = %171, %178
  store i32 %1, ptr %172, align 4, !tbaa !93
  tail call void @_ZN5ImGui11SetActiveIDEjP11ImGuiWindow(i32 noundef %1, ptr noundef %7)
  %183 = and i32 %spec.select, 8192
  %.not170 = icmp eq i32 %183, 0
  %or.cond190 = and i1 %.not170, %brmerge
  br i1 %or.cond190, label %184, label %185

184:                                              ; preds = %182
  tail call void @_ZN5ImGui10SetFocusIDEjP11ImGuiWindow(i32 noundef %1, ptr noundef %7)
  br label %185

185:                                              ; preds = %178, %184, %182, %167
  %.7 = phi i8 [ %.5, %167 ], [ %.6, %182 ], [ %.6, %184 ], [ %.5, %178 ]
  %186 = getelementptr inbounds i8, ptr %6, i64 6752
  %187 = load i32, ptr %186, align 8, !tbaa !11
  %188 = icmp eq i32 %187, %1
  br i1 %188, label %189, label %239

189:                                              ; preds = %185
  %190 = trunc nuw i8 %.7 to i1
  br i1 %190, label %191, label %193

191:                                              ; preds = %189
  %192 = getelementptr inbounds i8, ptr %6, i64 6766
  store i8 1, ptr %192, align 2, !tbaa !94
  br label %193

193:                                              ; preds = %191, %189
  %194 = getelementptr inbounds i8, ptr %6, i64 6808
  %195 = load i32, ptr %194, align 8, !tbaa !95
  switch i32 %195, label %239 [
    i32 1, label %196
    i32 2, label %236
  ]

196:                                              ; preds = %193
  %197 = getelementptr inbounds i8, ptr %6, i64 6764
  %198 = load i8, ptr %197, align 4, !tbaa !96, !range !68, !noundef !75
  %199 = trunc nuw i8 %198 to i1
  br i1 %199, label %200, label %204

200:                                              ; preds = %196
  %201 = getelementptr inbounds i8, ptr %6, i64 304
  %202 = tail call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %201, ptr noundef nonnull align 4 dereferenceable(8) %0)
  %203 = getelementptr inbounds i8, ptr %6, i64 6792
  store <2 x float> %202, ptr %203, align 8
  br label %204

204:                                              ; preds = %200, %196
  %205 = getelementptr inbounds i8, ptr %6, i64 312
  %206 = load i8, ptr %205, align 8, !tbaa !9, !range !68, !noundef !75
  %207 = trunc nuw i8 %206 to i1
  br i1 %207, label %232, label %208

208:                                              ; preds = %204
  %209 = and i32 %spec.select, 2
  %.not172 = icmp ne i32 %209, 0
  %or.cond192.not = and i1 %.not172, %.3140.shrunk
  br i1 %or.cond192.not, label %210, label %231

210:                                              ; preds = %208
  %211 = load i8, ptr %44, align 4, !tbaa !67, !range !68, !noundef !75
  %212 = trunc nuw i8 %211 to i1
  br i1 %212, label %231, label %213

213:                                              ; preds = %210
  %214 = and i32 %spec.select, 16
  %.not173 = icmp eq i32 %214, 0
  br i1 %.not173, label %219, label %215

215:                                              ; preds = %213
  %216 = getelementptr inbounds i8, ptr %6, i64 1076
  %217 = load i8, ptr %216, align 4, !tbaa !9, !range !68, !noundef !75
  %218 = trunc nuw i8 %217 to i1
  br label %219

219:                                              ; preds = %215, %213
  %220 = phi i1 [ false, %213 ], [ %218, %215 ]
  %221 = and i32 %spec.select, 1
  %.not174 = icmp eq i32 %221, 0
  br i1 %.not174, label %228, label %222

222:                                              ; preds = %219
  %223 = getelementptr inbounds i8, ptr %6, i64 1104
  %224 = load float, ptr %223, align 8, !tbaa !78
  %225 = getelementptr inbounds i8, ptr %6, i64 148
  %226 = load float, ptr %225, align 4, !tbaa !79
  %227 = fcmp oge float %224, %226
  br label %228

228:                                              ; preds = %222, %219
  %229 = phi i1 [ false, %219 ], [ %227, %222 ]
  br i1 %220, label %231, label %230

230:                                              ; preds = %228
  %spec.select193 = select i1 %229, i8 %.7, i8 1
  br label %231

231:                                              ; preds = %230, %228, %210, %208
  %.9 = phi i8 [ %.7, %210 ], [ %.7, %208 ], [ %.7, %228 ], [ %spec.select193, %230 ]
  tail call void @_ZN5ImGui13ClearActiveIDEv()
  br label %232

232:                                              ; preds = %204, %231
  %.10 = phi i8 [ %.9, %231 ], [ %.7, %204 ]
  %.0134 = phi i8 [ 0, %231 ], [ 1, %204 ]
  %233 = and i32 %spec.select, 8192
  %.not175 = icmp eq i32 %233, 0
  br i1 %.not175, label %234, label %239

234:                                              ; preds = %232
  %235 = getelementptr inbounds i8, ptr %6, i64 7158
  store i8 1, ptr %235, align 2, !tbaa !80
  br label %239

236:                                              ; preds = %193
  %237 = load i32, ptr %168, align 8, !tbaa !92
  %.not171 = icmp eq i32 %237, %1
  br i1 %.not171, label %239, label %238

238:                                              ; preds = %236
  tail call void @_ZN5ImGui13ClearActiveIDEv()
  br label %239

239:                                              ; preds = %193, %234, %232, %236, %238, %185
  %.11 = phi i8 [ %.10, %232 ], [ %.10, %234 ], [ %.7, %238 ], [ %.7, %236 ], [ %.7, %185 ], [ %.7, %193 ]
  %.1 = phi i8 [ %.0134, %232 ], [ %.0134, %234 ], [ 0, %238 ], [ 0, %236 ], [ 0, %185 ], [ 0, %193 ]
  %.not176 = icmp eq ptr %2, null
  br i1 %.not176, label %242, label %240

240:                                              ; preds = %239
  %241 = zext i1 %.3140.shrunk to i8
  store i8 %241, ptr %2, align 1, !tbaa !9
  br label %242

242:                                              ; preds = %240, %239
  %.not177 = icmp eq ptr %3, null
  br i1 %.not177, label %244, label %243

243:                                              ; preds = %242
  store i8 %.1, ptr %3, align 1, !tbaa !9
  br label %244

244:                                              ; preds = %243, %242
  %245 = trunc nuw i8 %.11 to i1
  br label %246

246:                                              ; preds = %13, %17, %244
  %.0 = phi i1 [ %245, %244 ], [ false, %17 ], [ false, %13 ]
  ret i1 %.0
}

declare void @_ZN5ImGui13ClearActiveIDEv() local_unnamed_addr #3

declare noundef zeroext i1 @_ZN5ImGui13ItemHoverableERK6ImRectj(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef) local_unnamed_addr #3

declare noundef zeroext i1 @_ZN5ImGui13IsItemHoveredEi(i32 noundef) local_unnamed_addr #3

declare void @_ZN5ImGui12SetHoveredIDEj(i32 noundef) local_unnamed_addr #3

declare noundef i32 @_ZN5ImGui25CalcTypematicRepeatAmountEffff(float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #3

declare void @_ZN5ImGui11FocusWindowEP11ImGuiWindow(ptr noundef) local_unnamed_addr #3

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5ImGui17IsNavInputPressedEi18ImGuiInputReadMode(i32 noundef, i32 noundef) local_unnamed_addr #4

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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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" }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !14, i64 6752}
!12 = !{!"_ZTS12ImGuiContext", !10, i64 0, !10, i64 1, !10, i64 2, !10, i64 3, !13, i64 8, !18, i64 5464, !6, i64 6408, !16, i64 6416, !16, i64 6420, !19, i64 6424, !21, i64 6568, !14, i64 6576, !14, i64 6580, !14, i64 6584, !22, i64 6592, !22, i64 6608, !22, i64 6624, !22, i64 6640, !23, i64 6656, !14, i64 6672, !6, i64 6680, !6, i64 6688, !6, i64 6696, !6, i64 6704, !6, i64 6712, !15, i64 6720, !16, i64 6728, !14, i64 6732, !10, i64 6736, !14, i64 6740, !16, i64 6744, !16, i64 6748, !14, i64 6752, !14, i64 6756, !16, i64 6760, !10, i64 6764, !10, i64 6765, !10, i64 6766, !10, i64 6767, !10, i64 6768, !14, i64 6772, !14, i64 6776, !25, i64 6784, !15, i64 6792, !6, i64 6800, !26, i64 6808, !14, i64 6812, !10, i64 6816, !10, i64 6817, !6, i64 6824, !14, i64 6832, !16, i64 6836, !27, i64 6840, !29, i64 6944, !30, i64 6960, !31, i64 6976, !32, i64 6992, !33, i64 7008, !33, i64 7024, !6, i64 7040, !14, i64 7048, !14, i64 7052, !14, i64 7056, !14, i64 7060, !14, i64 7064, !14, i64 7068, !14, i64 7072, !14, i64 7076, !14, i64 7080, !26, i64 7084, !28, i64 7088, !14, i64 7104, !6, i64 7112, !6, i64 7120, !6, i64 7128, !16, i64 7136, !16, i64 7140, !10, i64 7144, !34, i64 7148, !14, i64 7152, !10, i64 7156, !10, i64 7157, !10, i64 7158, !10, i64 7159, !10, i64 7160, !10, i64 7161, !10, i64 7162, !14, i64 7164, !28, i64 7168, !10, i64 7184, !10, i64 7185, !14, i64 7188, !35, i64 7192, !14, i64 7196, !14, i64 7200, !14, i64 7204, !36, i64 7208, !36, i64 7256, !36, i64 7304, !6, i64 7352, !6, i64 7360, !14, i64 7368, !14, i64 7372, !14, i64 7376, !14, i64 7380, !10, i64 7384, !37, i64 7392, !38, i64 7448, !16, i64 7480, !39, i64 7488, !39, i64 7656, !14, i64 7824, !10, i64 7828, !10, i64 7829, !14, i64 7832, !14, i64 7836, !14, i64 7840, !47, i64 7848, !28, i64 7912, !14, i64 7928, !14, i64 7932, !16, i64 7936, !14, i64 7940, !14, i64 7944, !14, i64 7948, !48, i64 7952, !7, i64 7968, !6, i64 7976, !49, i64 7984, !51, i64 8024, !52, i64 8040, !15, i64 8056, !53, i64 8064, !58, i64 11792, !14, i64 11912, !14, i64 11916, !16, i64 11920, !7, i64 11924, !20, i64 11936, !10, i64 11952, !16, i64 11956, !16, i64 11960, !16, i64 11964, !14, i64 11968, !54, i64 11976, !14, i64 11992, !15, i64 11996, !15, i64 12004, !10, i64 12012, !16, i64 12016, !61, i64 12024, !62, i64 12040, !63, i64 12056, !10, i64 12072, !64, i64 12076, !6, i64 12080, !61, i64 12088, !16, i64 12104, !10, i64 12108, !14, i64 12112, !14, i64 12116, !14, i64 12120, !10, i64 12124, !14, i64 12128, !7, i64 12132, !14, i64 12612, !16, i64 12616, !14, i64 12620, !14, i64 12624, !14, i64 12628, !7, i64 12632}
!13 = !{!"_ZTS7ImGuiIO", !14, i64 0, !14, i64 4, !15, i64 8, !16, i64 16, !16, i64 20, !6, i64 24, !6, i64 32, !16, i64 40, !16, i64 44, !16, i64 48, !7, i64 52, !16, i64 140, !16, i64 144, !6, i64 152, !6, i64 160, !16, i64 168, !10, i64 172, !6, i64 176, !15, i64 184, !10, i64 192, !10, i64 193, !10, i64 194, !10, i64 195, !10, i64 196, !16, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !15, i64 296, !7, i64 304, !16, i64 312, !16, i64 316, !10, i64 320, !10, i64 321, !10, i64 322, !10, i64 323, !7, i64 324, !7, i64 836, !10, i64 920, !10, i64 921, !10, i64 922, !10, i64 923, !10, i64 924, !10, i64 925, !10, i64 926, !16, i64 928, !14, i64 932, !14, i64 936, !14, i64 940, !14, i64 944, !14, i64 948, !15, i64 952, !15, i64 960, !7, i64 968, !7, i64 1008, !7, i64 1048, !7, i64 1053, !7, i64 1058, !7, i64 1063, !7, i64 1068, !7, i64 1076, !7, i64 1096, !7, i64 1116, !7, i64 1156, !7, i64 1176, !7, i64 3224, !7, i64 5272, !7, i64 5356, !17, i64 5440}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTS6ImVec2", !16, i64 0, !16, i64 4}
!16 = !{!"float", !7, i64 0}
!17 = !{!"_ZTS8ImVectorItE", !14, i64 0, !14, i64 4, !6, i64 8}
!18 = !{!"_ZTS10ImGuiStyle", !16, i64 0, !15, i64 4, !16, i64 12, !16, i64 16, !15, i64 20, !15, i64 28, !14, i64 36, !16, i64 40, !16, i64 44, !16, i64 48, !16, i64 52, !15, i64 56, !16, i64 64, !16, i64 68, !15, i64 72, !15, i64 80, !15, i64 88, !16, i64 96, !16, i64 100, !16, i64 104, !16, i64 108, !16, i64 112, !16, i64 116, !16, i64 120, !16, i64 124, !14, i64 128, !15, i64 132, !15, i64 140, !15, i64 148, !15, i64 156, !16, i64 164, !10, i64 168, !10, i64 169, !16, i64 172, !7, i64 176}
!19 = !{!"_ZTS20ImDrawListSharedData", !15, i64 0, !6, i64 8, !16, i64 16, !16, i64 20, !20, i64 24, !14, i64 40, !7, i64 44}
!20 = !{!"_ZTS6ImVec4", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12}
!21 = !{!"double", !7, i64 0}
!22 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !14, i64 0, !14, i64 4, !6, i64 8}
!23 = !{!"_ZTS12ImGuiStorage", !24, i64 0}
!24 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !14, i64 0, !14, i64 4, !6, i64 8}
!25 = !{!"long long", !7, i64 0}
!26 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!27 = !{!"_ZTS19ImGuiNextWindowData", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !10, i64 48, !28, i64 52, !6, i64 72, !6, i64 80, !16, i64 88, !15, i64 92}
!28 = !{!"_ZTS6ImRect", !15, i64 0, !15, i64 8}
!29 = !{!"_ZTS17ImGuiNextItemData", !14, i64 0, !16, i64 4, !10, i64 8, !14, i64 12}
!30 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !14, i64 0, !14, i64 4, !6, i64 8}
!31 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !14, i64 0, !14, i64 4, !6, i64 8}
!32 = !{!"_ZTS8ImVectorIP6ImFontE", !14, i64 0, !14, i64 4, !6, i64 8}
!33 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !14, i64 0, !14, i64 4, !6, i64 8}
!34 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!35 = !{!"_ZTS15ImGuiNavForward", !7, i64 0}
!36 = !{!"_ZTS18ImGuiNavMoveResult", !14, i64 0, !14, i64 4, !6, i64 8, !16, i64 16, !16, i64 20, !16, i64 24, !28, i64 28}
!37 = !{!"_ZTS10ImDrawData", !10, i64 0, !6, i64 8, !14, i64 16, !14, i64 20, !14, i64 24, !15, i64 28, !15, i64 36, !15, i64 44}
!38 = !{!"_ZTS17ImDrawDataBuilder", !7, i64 0}
!39 = !{!"_ZTS10ImDrawList", !40, i64 0, !17, i64 16, !41, i64 32, !14, i64 48, !6, i64 56, !6, i64 64, !14, i64 72, !14, i64 76, !6, i64 80, !6, i64 88, !42, i64 96, !43, i64 112, !44, i64 128, !45, i64 144}
!40 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !14, i64 0, !14, i64 4, !6, i64 8}
!41 = !{!"_ZTS8ImVectorI10ImDrawVertE", !14, i64 0, !14, i64 4, !6, i64 8}
!42 = !{!"_ZTS8ImVectorI6ImVec4E", !14, i64 0, !14, i64 4, !6, i64 8}
!43 = !{!"_ZTS8ImVectorIPvE", !14, i64 0, !14, i64 4, !6, i64 8}
!44 = !{!"_ZTS8ImVectorI6ImVec2E", !14, i64 0, !14, i64 4, !6, i64 8}
!45 = !{!"_ZTS18ImDrawListSplitter", !14, i64 0, !14, i64 4, !46, i64 8}
!46 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !14, i64 0, !14, i64 4, !6, i64 8}
!47 = !{!"_ZTS12ImGuiPayload", !6, i64 0, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !7, i64 24, !10, i64 57, !10, i64 58}
!48 = !{!"_ZTS8ImVectorIhE", !14, i64 0, !14, i64 4, !6, i64 8}
!49 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !50, i64 0, !23, i64 16, !14, i64 32}
!50 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !14, i64 0, !14, i64 4, !6, i64 8}
!51 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !14, i64 0, !14, i64 4, !6, i64 8}
!52 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !14, i64 0, !14, i64 4, !6, i64 8}
!53 = !{!"_ZTS19ImGuiInputTextState", !14, i64 0, !14, i64 4, !14, i64 8, !17, i64 16, !54, i64 32, !54, i64 48, !10, i64 64, !14, i64 68, !16, i64 72, !55, i64 76, !16, i64 3696, !10, i64 3700, !10, i64 3701, !14, i64 3704, !6, i64 3712, !6, i64 3720}
!54 = !{!"_ZTS8ImVectorIcE", !14, i64 0, !14, i64 4, !6, i64 8}
!55 = !{!"_ZTSN5ImStb17STB_TexteditStateE", !14, i64 0, !14, i64 4, !14, i64 8, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 19, !16, i64 20, !56, i64 24}
!56 = !{!"_ZTSN5ImStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !57, i64 3582, !57, i64 3584, !14, i64 3588, !14, i64 3592}
!57 = !{!"short", !7, i64 0}
!58 = !{!"_ZTS6ImFont", !59, i64 0, !16, i64 16, !16, i64 20, !17, i64 24, !60, i64 40, !6, i64 56, !15, i64 64, !6, i64 72, !6, i64 80, !57, i64 88, !57, i64 90, !57, i64 92, !16, i64 96, !16, i64 100, !16, i64 104, !14, i64 108, !10, i64 112}
!59 = !{!"_ZTS8ImVectorIfE", !14, i64 0, !14, i64 4, !6, i64 8}
!60 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !14, i64 0, !14, i64 4, !6, i64 8}
!61 = !{!"_ZTS15ImGuiTextBuffer", !54, i64 0}
!62 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !14, i64 0, !14, i64 4, !6, i64 8}
!63 = !{!"_ZTS8ImVectorI19ImGuiWindowSettingsE", !14, i64 0, !14, i64 4, !6, i64 8}
!64 = !{!"_ZTS12ImGuiLogType", !7, i64 0}
!65 = !{!12, !6, i64 6688}
!66 = !{!12, !6, i64 6696}
!67 = !{!12, !10, i64 7828}
!68 = !{i8 0, i8 2}
!69 = !{!12, !14, i64 7860}
!70 = !{!12, !14, i64 7832}
!71 = !{!12, !16, i64 6744}
!72 = !{!12, !16, i64 24}
!73 = !{!12, !14, i64 6740}
!74 = !{!12, !10, i64 328}
!75 = !{}
!76 = !{!12, !10, i64 329}
!77 = !{!12, !10, i64 330}
!78 = !{!16, !16, i64 0}
!79 = !{!12, !16, i64 148}
!80 = !{!12, !10, i64 7158}
!81 = !{!12, !14, i64 7048}
!82 = !{!12, !10, i64 7159}
!83 = !{!84, !14, i64 76}
!84 = !{!"_ZTS11ImGuiWindow", !6, i64 0, !14, i64 8, !14, i64 12, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !15, i64 56, !16, i64 64, !16, i64 68, !14, i64 72, !14, i64 76, !14, i64 80, !15, i64 84, !15, i64 92, !15, i64 100, !15, i64 108, !15, i64 116, !10, i64 124, !10, i64 125, !10, i64 126, !10, i64 127, !10, i64 128, !10, i64 129, !10, i64 130, !10, i64 131, !10, i64 132, !10, i64 133, !10, i64 134, !7, i64 135, !57, i64 136, !57, i64 138, !57, i64 140, !14, i64 144, !7, i64 148, !7, i64 149, !7, i64 150, !10, i64 151, !14, i64 152, !14, i64 156, !14, i64 160, !14, i64 164, !14, i64 168, !14, i64 172, !15, i64 176, !15, i64 184, !85, i64 192, !86, i64 208, !28, i64 496, !28, i64 512, !28, i64 528, !28, i64 544, !28, i64 560, !28, i64 576, !14, i64 592, !16, i64 596, !16, i64 600, !90, i64 604, !23, i64 640, !91, i64 656, !16, i64 672, !14, i64 676, !6, i64 680, !39, i64 688, !6, i64 856, !6, i64 864, !6, i64 872, !6, i64 880, !6, i64 888, !7, i64 896, !7, i64 904, !10, i64 936, !14, i64 940, !14, i64 944}
!85 = !{!"_ZTS8ImVectorIjE", !14, i64 0, !14, i64 4, !6, i64 8}
!86 = !{!"_ZTS19ImGuiWindowTempData", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !16, i64 48, !16, i64 52, !14, i64 56, !14, i64 60, !14, i64 64, !14, i64 68, !28, i64 72, !28, i64 88, !34, i64 104, !14, i64 108, !14, i64 112, !14, i64 116, !10, i64 120, !10, i64 121, !10, i64 122, !15, i64 124, !22, i64 136, !6, i64 152, !14, i64 160, !14, i64 164, !14, i64 168, !14, i64 172, !14, i64 176, !16, i64 180, !16, i64 184, !87, i64 192, !59, i64 208, !59, i64 224, !88, i64 240, !7, i64 256, !89, i64 268, !89, i64 272, !89, i64 276, !6, i64 280}
!87 = !{!"_ZTS8ImVectorIiE", !14, i64 0, !14, i64 4, !6, i64 8}
!88 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !14, i64 0, !14, i64 4, !6, i64 8}
!89 = !{!"_ZTS6ImVec1", !16, i64 0}
!90 = !{!"_ZTS16ImGuiMenuColumns", !16, i64 0, !16, i64 4, !16, i64 8, !7, i64 12, !7, i64 24}
!91 = !{!"_ZTS8ImVectorI12ImGuiColumnsE", !14, i64 0, !14, i64 4, !6, i64 8}
!92 = !{!12, !14, i64 7056}
!93 = !{!12, !14, i64 7052}
!94 = !{!12, !10, i64 6766}
!95 = !{!12, !26, i64 6808}
!96 = !{!12, !10, i64 6764}


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