; LLVM IR from Devaniti/BoolkaEngine :: ThirdParty/imgui/imgui_widgets.ll (ZN5ImGui14ButtonBehaviorERK6ImRectjPbS3_i)

; 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, [6 x i8], %struct.ImGuiIO, %struct.ImGuiStyle, [4 x i8], ptr, float, float, %struct.ImDrawListSharedData, double, i32, i32, i32, i8, i8, i8, i8, i8, [3 x i8], i32, ptr, %struct.ImVector.0, %struct.ImVector.0, %struct.ImVector.0, %struct.ImVector.0, %struct.ImGuiStorage, i32, [4 x i8], ptr, ptr, ptr, ptr, ptr, ptr, %struct.ImVec2, float, i32, i32, i8, i8, i8, i8, float, float, i32, i32, float, i8, i8, i8, i8, i8, i8, i8, i8, i32, i32, [4 x i8], i64, %struct.ImVec2, ptr, i32, i32, i32, i8, i8, [2 x i8], ptr, i32, float, %struct.ImGuiNextWindowData, %struct.ImGuiNextItemData, [4 x i8], %struct.ImVector.11, %struct.ImVector.12, %struct.ImVector.13, %struct.ImVector, %struct.ImVector.14, %struct.ImVector.15, %struct.ImVector.16, %struct.ImVector.16, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.ImRect, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, i32, %struct.ImRect, i8, [3 x i8], i32, i32, i32, i32, i32, i32, [4 x i8], %struct.ImGuiNavMoveResult, %struct.ImGuiNavMoveResult, %struct.ImGuiNavMoveResult, ptr, i32, [4 x i8], ptr, ptr, ptr, float, float, i8, [7 x i8], 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, i8, i8, i32, i32, i32, [4 x i8], %struct.ImGuiPayload, %struct.ImRect, i32, i32, float, i32, i32, i32, i32, [4 x i8], %struct.ImVector.18, [16 x i8], ptr, %struct.ImPool, %struct.ImVector.20, %struct.ImVector.1, %struct.ImVector.10, ptr, %struct.ImPool.21, %struct.ImVector.20, %struct.ImVector.24, %struct.ImVec2, %struct.ImGuiInputTextState, %struct.ImFont, i32, i32, float, float, [3 x float], %struct.ImVec4, float, i8, i8, [2 x i8], float, float, float, i32, float, %struct.ImVector.25, %struct.ImVector, %struct.ImVec2, %struct.ImVec2, i8, i8, [2 x i8], float, %struct.ImGuiTextBuffer, %struct.ImVector.27, %struct.ImChunkStream, %struct.ImChunkStream.28, %struct.ImVector.29, i8, [3 x i8], i32, ptr, %struct.ImGuiTextBuffer, float, i8, [3 x i8], i32, i32, i32, i8, [3 x i8], i32, %struct.ImGuiMetricsConfig, [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, i8, float, 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, i32, %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], float, i16, %struct.ImVector.5 }
%struct.ImVector.5 = 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, %struct.ImVec2, float, float, float, float, float, float, float, float, float, float, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, i8, i8, i8, float, float, [53 x %struct.ImVec4] }
%struct.ImDrawListSharedData = type { %struct.ImVec2, ptr, float, float, float, %struct.ImVec4, i32, [12 x %struct.ImVec2], [64 x i8], ptr }
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImGuiStorage = type { %struct.ImVector.2 }
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImGuiNextWindowData = type <{ i32, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, [3 x i8], %struct.ImRect, [4 x i8], ptr, ptr, float, %struct.ImVec2, [4 x i8] }>
%struct.ImGuiNextItemData = type <{ i32, float, i32, i32, i8, [3 x i8] }>
%struct.ImVector.11 = type { i32, i32, ptr }
%struct.ImVector.12 = type { i32, i32, ptr }
%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 <{ ptr, i32, i32, 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.4, %struct.ImVector.5, %struct.ImVector.6, i32, i32, ptr, ptr, ptr, ptr, %struct.ImVector.7, %struct.ImVector.8, %struct.ImVector.9, %struct.ImDrawCmdHeader, %struct.ImDrawListSplitter, float, [4 x i8] }>
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImVector.6 = type { i32, i32, ptr }
%struct.ImVector.7 = type { i32, i32, ptr }
%struct.ImVector.8 = type { i32, i32, ptr }
%struct.ImVector.9 = type { i32, i32, ptr }
%struct.ImDrawCmdHeader = type <{ %struct.ImVec4, ptr, i32, [4 x i8] }>
%struct.ImDrawListSplitter = type { i32, i32, %struct.ImVector.10 }
%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.1 = type { i32, i32, ptr }
%struct.ImVector.10 = type { i32, i32, ptr }
%struct.ImPool.21 = type <{ %struct.ImVector.22, %struct.ImGuiStorage, i32, [4 x i8] }>
%struct.ImVector.22 = type { i32, i32, ptr }
%struct.ImVector.20 = type { i32, i32, ptr }
%struct.ImVector.24 = type { i32, i32, ptr }
%struct.ImGuiInputTextState = type { i32, i32, i32, %struct.ImVector.5, %struct.ImVector.25, %struct.ImVector.25, i8, i32, float, %"struct.ImStb::STB_TexteditState", float, i8, i8, i8, i32, ptr, ptr }
%"struct.ImStb::STB_TexteditState" = type { i32, i32, i32, i8, i32, i8, i8, i8, i8, i8, i8, i8, float, %"struct.ImStb::StbUndoState" }
%"struct.ImStb::StbUndoState" = type { [99 x %"struct.ImStb::StbUndoRecord"], [999 x i16], i16, i16, i32, i32 }
%"struct.ImStb::StbUndoRecord" = type { i32, i32, i32, i32 }
%struct.ImFont = type <{ %struct.ImVector.1, float, float, %struct.ImVector.5, %struct.ImVector.26, ptr, ptr, ptr, i16, i16, i16, i8, i8, float, float, float, i32, [2 x i8], [6 x i8] }>
%struct.ImVector.26 = type { i32, i32, ptr }
%struct.ImVec4 = type { float, float, float, float }
%struct.ImVector.25 = type { i32, i32, ptr }
%struct.ImVector = type { i32, i32, ptr }
%struct.ImVector.27 = type { i32, i32, ptr }
%struct.ImChunkStream = type { %struct.ImVector.25 }
%struct.ImChunkStream.28 = type { %struct.ImVector.25 }
%struct.ImVector.29 = type { i32, i32, ptr }
%struct.ImGuiTextBuffer = type { %struct.ImVector.25 }
%struct.ImGuiMetricsConfig = type { i8, i8, i8, i8, i8, i32, i32 }
%struct.ImGuiWindow = type <{ ptr, i32, i32, %struct.ImVec2, %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, %struct.ImVec2, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i16, i16, i16, i32, i8, i8, i8, i8, i32, i8, i8, i8, i32, i8, %struct.ImVec2, %struct.ImVec2, [4 x i8], %struct.ImVector, %struct.ImGuiWindowTempData, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImVec2ih, %struct.ImVec2ih, i32, float, float, [4 x i8], %struct.ImGuiStorage, %struct.ImVector.3, float, i32, ptr, %struct.ImDrawList, ptr, ptr, ptr, ptr, ptr, [2 x i32], [2 x %struct.ImRect], i32, i32, i8, [7 x i8] }>
%struct.ImGuiWindowTempData = type <{ %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, %struct.ImVec1, %struct.ImVec1, %struct.ImVec1, i32, i32, %struct.ImRect, %struct.ImRect, i32, i32, i32, i32, i8, i8, i8, i8, %struct.ImVec2, %struct.ImGuiMenuColumns, i32, i32, [4 x i8], %struct.ImVector.0, ptr, ptr, i32, i32, i32, i32, i32, i32, float, float, %struct.ImVector.1, %struct.ImVector.1, %struct.ImGuiStackSizes, [2 x i8] }>
%struct.ImVec1 = type { float }
%struct.ImGuiMenuColumns = type { float, float, float, [3 x float], [3 x float] }
%struct.ImGuiStackSizes = type { i16, i16, i16, i16, i16, i16, i16 }
%struct.ImVec2ih = type { i16, i16 }
%struct.ImVector.3 = type { i32, i32, ptr }

@GImGui = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [59 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui14ButtonBehaviorERK6ImRectjPbS3_i = external hidden unnamed_addr constant [86 x i8], align 1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN5ImGui16GetCurrentWindowEv() #1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

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

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

; 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) #5 {
  %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 i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i8, align 1
  %22 = alloca i8, align 1
  %23 = alloca i8, align 1
  %24 = alloca i8, align 1
  %25 = alloca %struct.ImVec2, align 4
  %26 = alloca i32, align 4
  %27 = alloca i8, align 1
  %28 = alloca i8, align 1
  %29 = alloca i8, align 1
  %30 = 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) #8
  %31 = load ptr, ptr @GImGui, align 8, !tbaa !5
  store ptr %31, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %32 = call noundef ptr @_ZN5ImGui16GetCurrentWindowEv()
  store ptr %32, ptr %13, align 8, !tbaa !5
  %33 = load i32, ptr %11, align 4, !tbaa !9
  %34 = and i32 %33, 16384
  %35 = icmp ne i32 %34, 0
  br i1 %35, label %36, label %54

36:                                               ; preds = %5
  %37 = load ptr, ptr %9, align 8, !tbaa !5
  %38 = icmp ne ptr %37, null
  br i1 %38, label %39, label %41

39:                                               ; preds = %36
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  store i8 0, ptr %40, align 1, !tbaa !11
  br label %41

41:                                               ; preds = %39, %36
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  %43 = icmp ne ptr %42, null
  br i1 %43, label %44, label %46

44:                                               ; preds = %41
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  store i8 0, ptr %45, align 1, !tbaa !11
  br label %46

46:                                               ; preds = %44, %41
  %47 = load ptr, ptr %12, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.ImGuiContext, ptr %47, i32 0, i32 45
  %49 = load i32, ptr %48, align 8, !tbaa !13
  %50 = load i32, ptr %8, align 4, !tbaa !9
  %51 = icmp eq i32 %49, %50
  br i1 %51, label %52, label %53

52:                                               ; preds = %46
  call void @_ZN5ImGui13ClearActiveIDEv()
  br label %53

53:                                               ; preds = %52, %46
  store i1 false, ptr %6, align 1
  store i32 1, ptr %14, align 4
  br label %672

54:                                               ; preds = %5
  %55 = load i32, ptr %11, align 4, !tbaa !9
  %56 = and i32 %55, 7
  %57 = icmp eq i32 %56, 0
  br i1 %57, label %58, label %61

58:                                               ; preds = %54
  %59 = load i32, ptr %11, align 4, !tbaa !9
  %60 = or i32 %59, 1
  store i32 %60, ptr %11, align 4, !tbaa !9
  br label %61

61:                                               ; preds = %58, %54
  %62 = load i32, ptr %11, align 4, !tbaa !9
  %63 = and i32 %62, 1008
  %64 = icmp eq i32 %63, 0
  br i1 %64, label %65, label %68

65:                                               ; preds = %61
  %66 = load i32, ptr %11, align 4, !tbaa !9
  %67 = or i32 %66, 32
  store i32 %67, ptr %11, align 4, !tbaa !9
  br label %68

68:                                               ; preds = %65, %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %69 = load ptr, ptr %12, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.ImGuiContext, ptr %69, i32 0, i32 30
  %71 = load ptr, ptr %70, align 8, !tbaa !75
  store ptr %71, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #8
  %72 = load i32, ptr %11, align 4, !tbaa !9
  %73 = and i32 %72, 2048
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %75, label %81

75:                                               ; preds = %68
  %76 = load ptr, ptr %12, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.ImGuiContext, ptr %76, i32 0, i32 31
  %78 = load ptr, ptr %77, align 8, !tbaa !76
  %79 = load ptr, ptr %13, align 8, !tbaa !5
  %80 = icmp eq ptr %78, %79
  br label %81

81:                                               ; preds = %75, %68
  %82 = phi i1 [ false, %68 ], [ %80, %75 ]
  %83 = zext i1 %82 to i8
  store i8 %83, ptr %16, align 1, !tbaa !11
  %84 = load i8, ptr %16, align 1, !tbaa !11, !range !77, !noundef !78
  %85 = trunc i8 %84 to i1
  br i1 %85, label %86, label %90

86:                                               ; preds = %81
  %87 = load ptr, ptr %13, align 8, !tbaa !5
  %88 = load ptr, ptr %12, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.ImGuiContext, ptr %88, i32 0, i32 30
  store ptr %87, ptr %89, align 8, !tbaa !75
  br label %90

90:                                               ; preds = %86, %81
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #8
  store i8 0, ptr %17, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #8
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = load i32, ptr %8, align 4, !tbaa !9
  %93 = call noundef zeroext i1 @_ZN5ImGui13ItemHoverableERK6ImRectj(ptr noundef nonnull align 4 dereferenceable(16) %91, i32 noundef %92)
  %94 = zext i1 %93 to i8
  store i8 %94, ptr %18, align 1, !tbaa !11
  %95 = load i8, ptr %18, align 1, !tbaa !11, !range !77, !noundef !78
  %96 = trunc i8 %95 to i1
  br i1 %96, label %97, label %116

97:                                               ; preds = %90
  %98 = load ptr, ptr %12, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.ImGuiContext, ptr %98, i32 0, i32 146
  %100 = load i8, ptr %99, align 4, !tbaa !79, !range !77, !noundef !78
  %101 = trunc i8 %100 to i1
  br i1 %101, label %102, label %116

102:                                              ; preds = %97
  %103 = load ptr, ptr %12, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.ImGuiContext, ptr %103, i32 0, i32 154
  %105 = getelementptr inbounds %struct.ImGuiPayload, ptr %104, i32 0, i32 2
  %106 = load i32, ptr %105, align 4, !tbaa !80
  %107 = load i32, ptr %8, align 4, !tbaa !9
  %108 = icmp eq i32 %106, %107
  br i1 %108, label %109, label %116

109:                                              ; preds = %102
  %110 = load ptr, ptr %12, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.ImGuiContext, ptr %110, i32 0, i32 150
  %112 = load i32, ptr %111, align 8, !tbaa !81
  %113 = and i32 %112, 2
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %116, label %115

115:                                              ; preds = %109
  store i8 0, ptr %18, align 1, !tbaa !11
  br label %116

116:                                              ; preds = %115, %109, %102, %97, %90
  %117 = load ptr, ptr %12, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.ImGuiContext, ptr %117, i32 0, i32 146
  %119 = load i8, ptr %118, align 4, !tbaa !79, !range !77, !noundef !78
  %120 = trunc i8 %119 to i1
  br i1 %120, label %121, label %157

121:                                              ; preds = %116
  %122 = load i32, ptr %11, align 4, !tbaa !9
  %123 = and i32 %122, 512
  %124 = icmp ne i32 %123, 0
  br i1 %124, label %125, label %157

125:                                              ; preds = %121
  %126 = load ptr, ptr %12, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.ImGuiContext, ptr %126, i32 0, i32 150
  %128 = load i32, ptr %127, align 8, !tbaa !81
  %129 = and i32 %128, 4
  %130 = icmp ne i32 %129, 0
  br i1 %130, label %157, label %131

131:                                              ; preds = %125
  %132 = call noundef zeroext i1 @_ZN5ImGui13IsItemHoveredEi(i32 noundef 32)
  br i1 %132, label %133, label %156

133:                                              ; preds = %131
  store i8 1, ptr %18, align 1, !tbaa !11
  %134 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN5ImGui12SetHoveredIDEj(i32 noundef %134)
  %135 = load ptr, ptr %12, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.ImGuiContext, ptr %135, i32 0, i32 43
  %137 = load float, ptr %136, align 8, !tbaa !82
  %138 = fadd float %137, 0x3F1A36E2E0000000
  %139 = load ptr, ptr %12, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.ImGuiContext, ptr %139, i32 0, i32 3
  %141 = getelementptr inbounds %struct.ImGuiIO, ptr %140, i32 0, i32 3
  %142 = load float, ptr %141, align 8, !tbaa !83
  %143 = fsub float %138, %142
  %144 = load ptr, ptr %12, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.ImGuiContext, ptr %144, i32 0, i32 43
  %146 = load float, ptr %145, align 8, !tbaa !82
  %147 = fadd float %146, 0x3F1A36E2E0000000
  %148 = call noundef i32 @_ZN5ImGui25CalcTypematicRepeatAmountEffff(float noundef %143, float noundef %147, float noundef 0x3FE6666660000000, float noundef 0.000000e+00)
  %149 = icmp ne i32 %148, 0
  br i1 %149, label %150, label %155

150:                                              ; preds = %133
  store i8 1, ptr %17, align 1, !tbaa !11
  %151 = load i32, ptr %8, align 4, !tbaa !9
  %152 = load ptr, ptr %12, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.ImGuiContext, ptr %152, i32 0, i32 162
  store i32 %151, ptr %153, align 8, !tbaa !84
  %154 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN5ImGui11FocusWindowEP11ImGuiWindow(ptr noundef %154)
  br label %155

155:                                              ; preds = %150, %133
  br label %156

156:                                              ; preds = %155, %131
  br label %157

157:                                              ; preds = %156, %125, %121, %116
  %158 = load i8, ptr %16, align 1, !tbaa !11, !range !77, !noundef !78
  %159 = trunc i8 %158 to i1
  br i1 %159, label %160, label %164

160:                                              ; preds = %157
  %161 = load ptr, ptr %15, align 8, !tbaa !5
  %162 = load ptr, ptr %12, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.ImGuiContext, ptr %162, i32 0, i32 30
  store ptr %161, ptr %163, align 8, !tbaa !75
  br label %164

164:                                              ; preds = %160, %157
  %165 = load i8, ptr %18, align 1, !tbaa !11, !range !77, !noundef !78
  %166 = trunc i8 %165 to i1
  br i1 %166, label %167, label %183

167:                                              ; preds = %164
  %168 = load i32, ptr %11, align 4, !tbaa !9
  %169 = and i32 %168, 4096
  %170 = icmp ne i32 %169, 0
  br i1 %170, label %171, label %183

171:                                              ; preds = %167
  %172 = load ptr, ptr %12, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.ImGuiContext, ptr %172, i32 0, i32 38
  %174 = load i32, ptr %173, align 8, !tbaa !85
  %175 = load i32, ptr %8, align 4, !tbaa !9
  %176 = icmp ne i32 %174, %175
  br i1 %176, label %177, label %183

177:                                              ; preds = %171
  %178 = load ptr, ptr %12, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.ImGuiContext, ptr %178, i32 0, i32 38
  %180 = load i32, ptr %179, align 8, !tbaa !85
  %181 = icmp ne i32 %180, 0
  br i1 %181, label %182, label %183

182:                                              ; preds = %177
  store i8 0, ptr %18, align 1, !tbaa !11
  br label %183

183:                                              ; preds = %182, %177, %171, %167, %164
  %184 = load i8, ptr %18, align 1, !tbaa !11, !range !77, !noundef !78
  %185 = trunc i8 %184 to i1
  br i1 %185, label %186, label %409

186:                                              ; preds = %183
  %187 = load i32, ptr %11, align 4, !tbaa !9
  %188 = and i32 %187, 65536
  %189 = icmp ne i32 %188, 0
  br i1 %189, label %190, label %208

190:                                              ; preds = %186
  %191 = load ptr, ptr %12, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.ImGuiContext, ptr %191, i32 0, i32 3
  %193 = getelementptr inbounds %struct.ImGuiIO, ptr %192, i32 0, i32 40
  %194 = load i8, ptr %193, align 8, !tbaa !86, !range !77, !noundef !78
  %195 = trunc i8 %194 to i1
  br i1 %195, label %402, label %196

196:                                              ; preds = %190
  %197 = load ptr, ptr %12, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.ImGuiContext, ptr %197, i32 0, i32 3
  %199 = getelementptr inbounds %struct.ImGuiIO, ptr %198, i32 0, i32 41
  %200 = load i8, ptr %199, align 1, !tbaa !87, !range !77, !noundef !78
  %201 = trunc i8 %200 to i1
  br i1 %201, label %402, label %202

202:                                              ; preds = %196
  %203 = load ptr, ptr %12, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.ImGuiContext, ptr %203, i32 0, i32 3
  %205 = getelementptr inbounds %struct.ImGuiIO, ptr %204, i32 0, i32 42
  %206 = load i8, ptr %205, align 2, !tbaa !88, !range !77, !noundef !78
  %207 = trunc i8 %206 to i1
  br i1 %207, label %402, label %208

208:                                              ; preds = %202, %186
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store i32 -1, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 -1, ptr %20, align 4, !tbaa !9
  %209 = load i32, ptr %11, align 4, !tbaa !9
  %210 = and i32 %209, 1
  %211 = icmp ne i32 %210, 0
  br i1 %211, label %212, label %220

212:                                              ; preds = %208
  %213 = load ptr, ptr %12, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.ImGuiContext, ptr %213, i32 0, i32 3
  %215 = getelementptr inbounds %struct.ImGuiIO, ptr %214, i32 0, i32 64
  %216 = getelementptr inbounds [5 x i8], ptr %215, i64 0, i64 0
  %217 = load i8, ptr %216, align 8, !tbaa !11, !range !77, !noundef !78
  %218 = trunc i8 %217 to i1
  br i1 %218, label %219, label %220

219:                                              ; preds = %212
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %246

220:                                              ; preds = %212, %208
  %221 = load i32, ptr %11, align 4, !tbaa !9
  %222 = and i32 %221, 2
  %223 = icmp ne i32 %222, 0
  br i1 %223, label %224, label %232

224:                                              ; preds = %220
  %225 = load ptr, ptr %12, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.ImGuiContext, ptr %225, i32 0, i32 3
  %227 = getelementptr inbounds %struct.ImGuiIO, ptr %226, i32 0, i32 64
  %228 = getelementptr inbounds [5 x i8], ptr %227, i64 0, i64 1
  %229 = load i8, ptr %228, align 1, !tbaa !11, !range !77, !noundef !78
  %230 = trunc i8 %229 to i1
  br i1 %230, label %231, label %232

231:                                              ; preds = %224
  store i32 1, ptr %19, align 4, !tbaa !9
  br label %245

232:                                              ; preds = %224, %220
  %233 = load i32, ptr %11, align 4, !tbaa !9
  %234 = and i32 %233, 4
  %235 = icmp ne i32 %234, 0
  br i1 %235, label %236, label %244

236:                                              ; preds = %232
  %237 = load ptr, ptr %12, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.ImGuiContext, ptr %237, i32 0, i32 3
  %239 = getelementptr inbounds %struct.ImGuiIO, ptr %238, i32 0, i32 64
  %240 = getelementptr inbounds [5 x i8], ptr %239, i64 0, i64 2
  %241 = load i8, ptr %240, align 2, !tbaa !11, !range !77, !noundef !78
  %242 = trunc i8 %241 to i1
  br i1 %242, label %243, label %244

243:                                              ; preds = %236
  store i32 2, ptr %19, align 4, !tbaa !9
  br label %244

244:                                              ; preds = %243, %236, %232
  br label %245

245:                                              ; preds = %244, %231
  br label %246

246:                                              ; preds = %245, %219
  %247 = load i32, ptr %11, align 4, !tbaa !9
  %248 = and i32 %247, 1
  %249 = icmp ne i32 %248, 0
  br i1 %249, label %250, label %258

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

257:                                              ; preds = %250
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %284

258:                                              ; preds = %250, %246
  %259 = load i32, ptr %11, align 4, !tbaa !9
  %260 = and i32 %259, 2
  %261 = icmp ne i32 %260, 0
  br i1 %261, label %262, label %270

262:                                              ; preds = %258
  %263 = load ptr, ptr %12, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.ImGuiContext, ptr %263, i32 0, i32 3
  %265 = getelementptr inbounds %struct.ImGuiIO, ptr %264, i32 0, i32 66
  %266 = getelementptr inbounds [5 x i8], ptr %265, i64 0, i64 1
  %267 = load i8, ptr %266, align 1, !tbaa !11, !range !77, !noundef !78
  %268 = trunc i8 %267 to i1
  br i1 %268, label %269, label %270

269:                                              ; preds = %262
  store i32 1, ptr %20, align 4, !tbaa !9
  br label %283

270:                                              ; preds = %262, %258
  %271 = load i32, ptr %11, align 4, !tbaa !9
  %272 = and i32 %271, 4
  %273 = icmp ne i32 %272, 0
  br i1 %273, label %274, label %282

274:                                              ; preds = %270
  %275 = load ptr, ptr %12, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.ImGuiContext, ptr %275, i32 0, i32 3
  %277 = getelementptr inbounds %struct.ImGuiIO, ptr %276, i32 0, i32 66
  %278 = getelementptr inbounds [5 x i8], ptr %277, i64 0, i64 2
  %279 = load i8, ptr %278, align 2, !tbaa !11, !range !77, !noundef !78
  %280 = trunc i8 %279 to i1
  br i1 %280, label %281, label %282

281:                                              ; preds = %274
  store i32 2, ptr %20, align 4, !tbaa !9
  br label %282

282:                                              ; preds = %281, %274, %270
  br label %283

283:                                              ; preds = %282, %269
  br label %284

284:                                              ; preds = %283, %257
  %285 = load i32, ptr %19, align 4, !tbaa !9
  %286 = icmp ne i32 %285, -1
  br i1 %286, label %287, label %342

287:                                              ; preds = %284
  %288 = load ptr, ptr %12, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct.ImGuiContext, ptr %288, i32 0, i32 45
  %290 = load i32, ptr %289, align 8, !tbaa !13
  %291 = load i32, ptr %8, align 4, !tbaa !9
  %292 = icmp ne i32 %290, %291
  br i1 %292, label %293, label %342

293:                                              ; preds = %287
  %294 = load i32, ptr %11, align 4, !tbaa !9
  %295 = and i32 %294, 96
  %296 = icmp ne i32 %295, 0
  br i1 %296, label %297, label %311

297:                                              ; preds = %293
  %298 = load i32, ptr %8, align 4, !tbaa !9
  %299 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN5ImGui11SetActiveIDEjP11ImGuiWindow(i32 noundef %298, ptr noundef %299)
  %300 = load i32, ptr %19, align 4, !tbaa !9
  %301 = load ptr, ptr %12, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.ImGuiContext, ptr %301, i32 0, i32 63
  store i32 %300, ptr %302, align 4, !tbaa !89
  %303 = load i32, ptr %11, align 4, !tbaa !9
  %304 = and i32 %303, 262144
  %305 = icmp ne i32 %304, 0
  br i1 %305, label %309, label %306

306:                                              ; preds = %297
  %307 = load i32, ptr %8, align 4, !tbaa !9
  %308 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN5ImGui10SetFocusIDEjP11ImGuiWindow(i32 noundef %307, ptr noundef %308)
  br label %309

309:                                              ; preds = %306, %297
  %310 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN5ImGui11FocusWindowEP11ImGuiWindow(ptr noundef %310)
  br label %311

311:                                              ; preds = %309, %293
  %312 = load i32, ptr %11, align 4, !tbaa !9
  %313 = and i32 %312, 16
  %314 = icmp ne i32 %313, 0
  br i1 %314, label %328, label %315

315:                                              ; preds = %311
  %316 = load i32, ptr %11, align 4, !tbaa !9
  %317 = and i32 %316, 256
  %318 = icmp ne i32 %317, 0
  br i1 %318, label %319, label %341

319:                                              ; preds = %315
  %320 = load ptr, ptr %12, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.ImGuiContext, ptr %320, i32 0, i32 3
  %322 = getelementptr inbounds %struct.ImGuiIO, ptr %321, i32 0, i32 65
  %323 = load i32, ptr %19, align 4, !tbaa !9
  %324 = sext i32 %323 to i64
  %325 = getelementptr inbounds [5 x i8], ptr %322, i64 0, i64 %324
  %326 = load i8, ptr %325, align 1, !tbaa !11, !range !77, !noundef !78
  %327 = trunc i8 %326 to i1
  br i1 %327, label %328, label %341

328:                                              ; preds = %319, %311
  store i8 1, ptr %17, align 1, !tbaa !11
  %329 = load i32, ptr %11, align 4, !tbaa !9
  %330 = and i32 %329, 131072
  %331 = icmp ne i32 %330, 0
  br i1 %331, label %332, label %333

332:                                              ; preds = %328
  call void @_ZN5ImGui13ClearActiveIDEv()
  br label %336

333:                                              ; preds = %328
  %334 = load i32, ptr %8, align 4, !tbaa !9
  %335 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN5ImGui11SetActiveIDEjP11ImGuiWindow(i32 noundef %334, ptr noundef %335)
  br label %336

336:                                              ; preds = %333, %332
  %337 = load i32, ptr %19, align 4, !tbaa !9
  %338 = load ptr, ptr %12, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.ImGuiContext, ptr %338, i32 0, i32 63
  store i32 %337, ptr %339, align 4, !tbaa !89
  %340 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN5ImGui11FocusWindowEP11ImGuiWindow(ptr noundef %340)
  br label %341

341:                                              ; preds = %336, %319, %315
  br label %342

342:                                              ; preds = %341, %287, %284
  %343 = load i32, ptr %11, align 4, !tbaa !9
  %344 = and i32 %343, 128
  %345 = icmp ne i32 %344, 0
  br i1 %345, label %346, label %373

346:                                              ; preds = %342
  %347 = load i32, ptr %20, align 4, !tbaa !9
  %348 = icmp ne i32 %347, -1
  br i1 %348, label %349, label %373

349:                                              ; preds = %346
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #8
  %350 = load i32, ptr %11, align 4, !tbaa !9
  %351 = and i32 %350, 1024
  %352 = icmp ne i32 %351, 0
  br i1 %352, label %353, label %366

353:                                              ; preds = %349
  %354 = load ptr, ptr %12, align 8, !tbaa !5
  %355 = getelementptr inbounds %struct.ImGuiContext, ptr %354, i32 0, i32 3
  %356 = getelementptr inbounds %struct.ImGuiIO, ptr %355, i32 0, i32 70
  %357 = load i32, ptr %20, align 4, !tbaa !9
  %358 = sext i32 %357 to i64
  %359 = getelementptr inbounds [5 x float], ptr %356, i64 0, i64 %358
  %360 = load float, ptr %359, align 4, !tbaa !90
  %361 = load ptr, ptr %12, align 8, !tbaa !5
  %362 = getelementptr inbounds %struct.ImGuiContext, ptr %361, i32 0, i32 3
  %363 = getelementptr inbounds %struct.ImGuiIO, ptr %362, i32 0, i32 11
  %364 = load float, ptr %363, align 4, !tbaa !91
  %365 = fcmp oge float %360, %364
  br label %366

366:                                              ; preds = %353, %349
  %367 = phi i1 [ false, %349 ], [ %365, %353 ]
  %368 = zext i1 %367 to i8
  store i8 %368, ptr %21, align 1, !tbaa !11
  %369 = load i8, ptr %21, align 1, !tbaa !11, !range !77, !noundef !78
  %370 = trunc i8 %369 to i1
  br i1 %370, label %372, label %371

371:                                              ; preds = %366
  store i8 1, ptr %17, align 1, !tbaa !11
  br label %372

372:                                              ; preds = %371, %366
  call void @_ZN5ImGui13ClearActiveIDEv()
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #8
  br label %373

373:                                              ; preds = %372, %346, %342
  %374 = load ptr, ptr %12, align 8, !tbaa !5
  %375 = getelementptr inbounds %struct.ImGuiContext, ptr %374, i32 0, i32 45
  %376 = load i32, ptr %375, align 8, !tbaa !13
  %377 = load i32, ptr %8, align 4, !tbaa !9
  %378 = icmp eq i32 %376, %377
  br i1 %378, label %379, label %401

379:                                              ; preds = %373
  %380 = load i32, ptr %11, align 4, !tbaa !9
  %381 = and i32 %380, 1024
  %382 = icmp ne i32 %381, 0
  br i1 %382, label %383, label %401

383:                                              ; preds = %379
  %384 = load ptr, ptr %12, align 8, !tbaa !5
  %385 = getelementptr inbounds %struct.ImGuiContext, ptr %384, i32 0, i32 3
  %386 = getelementptr inbounds %struct.ImGuiIO, ptr %385, i32 0, i32 69
  %387 = load ptr, ptr %12, align 8, !tbaa !5
  %388 = getelementptr inbounds %struct.ImGuiContext, ptr %387, i32 0, i32 63
  %389 = load i32, ptr %388, align 4, !tbaa !89
  %390 = sext i32 %389 to i64
  %391 = getelementptr inbounds [5 x float], ptr %386, i64 0, i64 %390
  %392 = load float, ptr %391, align 4, !tbaa !90
  %393 = fcmp ogt float %392, 0.000000e+00
  br i1 %393, label %394, label %400

394:                                              ; preds = %383
  %395 = load ptr, ptr %12, align 8, !tbaa !5
  %396 = getelementptr inbounds %struct.ImGuiContext, ptr %395, i32 0, i32 63
  %397 = load i32, ptr %396, align 4, !tbaa !89
  %398 = call noundef zeroext i1 @_ZN5ImGui14IsMouseClickedEib(i32 noundef %397, i1 noundef zeroext true)
  br i1 %398, label %399, label %400

399:                                              ; preds = %394
  store i8 1, ptr %17, align 1, !tbaa !11
  br label %400

400:                                              ; preds = %399, %394, %383
  br label %401

401:                                              ; preds = %400, %379, %373
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %402

402:                                              ; preds = %401, %202, %196, %190
  %403 = load i8, ptr %17, align 1, !tbaa !11, !range !77, !noundef !78
  %404 = trunc i8 %403 to i1
  br i1 %404, label %405, label %408

405:                                              ; preds = %402
  %406 = load ptr, ptr %12, align 8, !tbaa !5
  %407 = getelementptr inbounds %struct.ImGuiContext, ptr %406, i32 0, i32 101
  store i8 1, ptr %407, align 2, !tbaa !92
  br label %408

408:                                              ; preds = %405, %402
  br label %409

409:                                              ; preds = %408, %183
  %410 = load ptr, ptr %12, align 8, !tbaa !5
  %411 = getelementptr inbounds %struct.ImGuiContext, ptr %410, i32 0, i32 83
  %412 = load i32, ptr %411, align 8, !tbaa !93
  %413 = load i32, ptr %8, align 4, !tbaa !9
  %414 = icmp eq i32 %412, %413
  br i1 %414, label %415, label %450

415:                                              ; preds = %409
  %416 = load ptr, ptr %12, align 8, !tbaa !5
  %417 = getelementptr inbounds %struct.ImGuiContext, ptr %416, i32 0, i32 101
  %418 = load i8, ptr %417, align 2, !tbaa !92, !range !77, !noundef !78
  %419 = trunc i8 %418 to i1
  br i1 %419, label %450, label %420

420:                                              ; preds = %415
  %421 = load ptr, ptr %12, align 8, !tbaa !5
  %422 = getelementptr inbounds %struct.ImGuiContext, ptr %421, i32 0, i32 102
  %423 = load i8, ptr %422, align 1, !tbaa !94, !range !77, !noundef !78
  %424 = trunc i8 %423 to i1
  br i1 %424, label %425, label %450

425:                                              ; preds = %420
  %426 = load ptr, ptr %12, align 8, !tbaa !5
  %427 = getelementptr inbounds %struct.ImGuiContext, ptr %426, i32 0, i32 45
  %428 = load i32, ptr %427, align 8, !tbaa !13
  %429 = icmp eq i32 %428, 0
  br i1 %429, label %444, label %430

430:                                              ; preds = %425
  %431 = load ptr, ptr %12, align 8, !tbaa !5
  %432 = getelementptr inbounds %struct.ImGuiContext, ptr %431, i32 0, i32 45
  %433 = load i32, ptr %432, align 8, !tbaa !13
  %434 = load i32, ptr %8, align 4, !tbaa !9
  %435 = icmp eq i32 %433, %434
  br i1 %435, label %444, label %436

436:                                              ; preds = %430
  %437 = load ptr, ptr %12, align 8, !tbaa !5
  %438 = getelementptr inbounds %struct.ImGuiContext, ptr %437, i32 0, i32 45
  %439 = load i32, ptr %438, align 8, !tbaa !13
  %440 = load ptr, ptr %13, align 8, !tbaa !5
  %441 = getelementptr inbounds %struct.ImGuiWindow, ptr %440, i32 0, i32 13
  %442 = load i32, ptr %441, align 4, !tbaa !95
  %443 = icmp eq i32 %439, %442
  br i1 %443, label %444, label %450

444:                                              ; preds = %436, %430, %425
  %445 = load i32, ptr %11, align 4, !tbaa !9
  %446 = and i32 %445, 524288
  %447 = icmp ne i32 %446, 0
  br i1 %447, label %449, label %448

448:                                              ; preds = %444
  store i8 1, ptr %18, align 1, !tbaa !11
  br label %449

449:                                              ; preds = %448, %444
  br label %450

450:                                              ; preds = %449, %436, %420, %415, %409
  %451 = load ptr, ptr %12, align 8, !tbaa !5
  %452 = getelementptr inbounds %struct.ImGuiContext, ptr %451, i32 0, i32 86
  %453 = load i32, ptr %452, align 4, !tbaa !103
  %454 = load i32, ptr %8, align 4, !tbaa !9
  %455 = icmp eq i32 %453, %454
  br i1 %455, label %456, label %508

456:                                              ; preds = %450
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #8
  %457 = load ptr, ptr %12, align 8, !tbaa !5
  %458 = getelementptr inbounds %struct.ImGuiContext, ptr %457, i32 0, i32 85
  %459 = load i32, ptr %458, align 8, !tbaa !104
  %460 = load i32, ptr %8, align 4, !tbaa !9
  %461 = icmp eq i32 %459, %460
  %462 = zext i1 %461 to i8
  store i8 %462, ptr %22, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #8
  %463 = load i32, ptr %11, align 4, !tbaa !9
  %464 = and i32 %463, 1024
  %465 = icmp ne i32 %464, 0
  %466 = zext i1 %465 to i64
  %467 = select i1 %465, i32 3, i32 1
  %468 = call noundef zeroext i1 @_ZN5ImGui14IsNavInputTestEi18ImGuiInputReadMode(i32 noundef 0, i32 noundef %467)
  %469 = zext i1 %468 to i8
  store i8 %469, ptr %23, align 1, !tbaa !11
  %470 = load i8, ptr %22, align 1, !tbaa !11, !range !77, !noundef !78
  %471 = trunc i8 %470 to i1
  br i1 %471, label %475, label %472

472:                                              ; preds = %456
  %473 = load i8, ptr %23, align 1, !tbaa !11, !range !77, !noundef !78
  %474 = trunc i8 %473 to i1
  br i1 %474, label %475, label %476

475:                                              ; preds = %472, %456
  store i8 1, ptr %17, align 1, !tbaa !11
  br label %476

476:                                              ; preds = %475, %472
  %477 = load i8, ptr %22, align 1, !tbaa !11, !range !77, !noundef !78
  %478 = trunc i8 %477 to i1
  br i1 %478, label %488, label %479

479:                                              ; preds = %476
  %480 = load i8, ptr %23, align 1, !tbaa !11, !range !77, !noundef !78
  %481 = trunc i8 %480 to i1
  br i1 %481, label %488, label %482

482:                                              ; preds = %479
  %483 = load ptr, ptr %12, align 8, !tbaa !5
  %484 = getelementptr inbounds %struct.ImGuiContext, ptr %483, i32 0, i32 45
  %485 = load i32, ptr %484, align 8, !tbaa !13
  %486 = load i32, ptr %8, align 4, !tbaa !9
  %487 = icmp eq i32 %485, %486
  br i1 %487, label %488, label %507

488:                                              ; preds = %482, %479, %476
  %489 = load i32, ptr %8, align 4, !tbaa !9
  %490 = load ptr, ptr %12, align 8, !tbaa !5
  %491 = getelementptr inbounds %struct.ImGuiContext, ptr %490, i32 0, i32 85
  store i32 %489, ptr %491, align 8, !tbaa !104
  %492 = load i32, ptr %8, align 4, !tbaa !9
  %493 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN5ImGui11SetActiveIDEjP11ImGuiWindow(i32 noundef %492, ptr noundef %493)
  %494 = load i8, ptr %22, align 1, !tbaa !11, !range !77, !noundef !78
  %495 = trunc i8 %494 to i1
  br i1 %495, label %499, label %496

496:                                              ; preds = %488
  %497 = load i8, ptr %23, align 1, !tbaa !11, !range !77, !noundef !78
  %498 = trunc i8 %497 to i1
  br i1 %498, label %499, label %506

499:                                              ; preds = %496, %488
  %500 = load i32, ptr %11, align 4, !tbaa !9
  %501 = and i32 %500, 262144
  %502 = icmp ne i32 %501, 0
  br i1 %502, label %506, label %503

503:                                              ; preds = %499
  %504 = load i32, ptr %8, align 4, !tbaa !9
  %505 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN5ImGui10SetFocusIDEjP11ImGuiWindow(i32 noundef %504, ptr noundef %505)
  br label %506

506:                                              ; preds = %503, %499, %496
  br label %507

507:                                              ; preds = %506, %482
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #8
  br label %508

508:                                              ; preds = %507, %450
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #8
  store i8 0, ptr %24, align 1, !tbaa !11
  %509 = load ptr, ptr %12, align 8, !tbaa !5
  %510 = getelementptr inbounds %struct.ImGuiContext, ptr %509, i32 0, i32 45
  %511 = load i32, ptr %510, align 8, !tbaa !13
  %512 = load i32, ptr %8, align 4, !tbaa !9
  %513 = icmp eq i32 %511, %512
  br i1 %513, label %514, label %653

514:                                              ; preds = %508
  %515 = load ptr, ptr %12, align 8, !tbaa !5
  %516 = getelementptr inbounds %struct.ImGuiContext, ptr %515, i32 0, i32 62
  %517 = load i32, ptr %516, align 8, !tbaa !105
  %518 = icmp eq i32 %517, 1
  br i1 %518, label %519, label %632

519:                                              ; preds = %514
  %520 = load ptr, ptr %12, align 8, !tbaa !5
  %521 = getelementptr inbounds %struct.ImGuiContext, ptr %520, i32 0, i32 48
  %522 = load i8, ptr %521, align 4, !tbaa !106, !range !77, !noundef !78
  %523 = trunc i8 %522 to i1
  br i1 %523, label %524, label %533

524:                                              ; preds = %519
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %525 = load ptr, ptr %12, align 8, !tbaa !5
  %526 = getelementptr inbounds %struct.ImGuiContext, ptr %525, i32 0, i32 3
  %527 = getelementptr inbounds %struct.ImGuiIO, ptr %526, i32 0, i32 36
  %528 = load ptr, ptr %7, align 8, !tbaa !5
  %529 = getelementptr inbounds %struct.ImRect, ptr %528, i32 0, i32 0
  %530 = call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %527, ptr noundef nonnull align 4 dereferenceable(8) %529)
  store <2 x float> %530, ptr %25, align 4
  %531 = load ptr, ptr %12, align 8, !tbaa !5
  %532 = getelementptr inbounds %struct.ImGuiContext, ptr %531, i32 0, i32 60
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %532, ptr align 4 %25, i64 8, i1 false), !tbaa.struct !107
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %533

533:                                              ; preds = %524, %519
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %534 = load ptr, ptr %12, align 8, !tbaa !5
  %535 = getelementptr inbounds %struct.ImGuiContext, ptr %534, i32 0, i32 63
  %536 = load i32, ptr %535, align 4, !tbaa !89
  store i32 %536, ptr %26, align 4, !tbaa !9
  %537 = load i32, ptr %26, align 4, !tbaa !9
  %538 = icmp sge i32 %537, 0
  br i1 %538, label %539, label %542

539:                                              ; preds = %533
  %540 = load i32, ptr %26, align 4, !tbaa !9
  %541 = icmp slt i32 %540, 5
  br label %542

542:                                              ; preds = %539, %533
  %543 = phi i1 [ false, %533 ], [ %541, %539 ]
  br i1 %543, label %544, label %545

544:                                              ; preds = %542
  br label %547

545:                                              ; preds = %542
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 627, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui14ButtonBehaviorERK6ImRectjPbS3_i) #9
  unreachable

546:                                              ; No predecessors!
  br label %547

547:                                              ; preds = %546, %544
  %548 = load ptr, ptr %12, align 8, !tbaa !5
  %549 = getelementptr inbounds %struct.ImGuiContext, ptr %548, i32 0, i32 3
  %550 = getelementptr inbounds %struct.ImGuiIO, ptr %549, i32 0, i32 37
  %551 = load i32, ptr %26, align 4, !tbaa !9
  %552 = sext i32 %551 to i64
  %553 = getelementptr inbounds [5 x i8], ptr %550, i64 0, i64 %552
  %554 = load i8, ptr %553, align 1, !tbaa !11, !range !77, !noundef !78
  %555 = trunc i8 %554 to i1
  br i1 %555, label %556, label %557

556:                                              ; preds = %547
  store i8 1, ptr %24, align 1, !tbaa !11
  br label %624

557:                                              ; preds = %547
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #8
  %558 = load i8, ptr %18, align 1, !tbaa !11, !range !77, !noundef !78
  %559 = trunc i8 %558 to i1
  br i1 %559, label %560, label %564

560:                                              ; preds = %557
  %561 = load i32, ptr %11, align 4, !tbaa !9
  %562 = and i32 %561, 32
  %563 = icmp ne i32 %562, 0
  br label %564

564:                                              ; preds = %560, %557
  %565 = phi i1 [ false, %557 ], [ %563, %560 ]
  %566 = zext i1 %565 to i8
  store i8 %566, ptr %27, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #8
  %567 = load i32, ptr %11, align 4, !tbaa !9
  %568 = and i32 %567, 64
  %569 = icmp ne i32 %568, 0
  %570 = zext i1 %569 to i8
  store i8 %570, ptr %28, align 1, !tbaa !11
  %571 = load i8, ptr %27, align 1, !tbaa !11, !range !77, !noundef !78
  %572 = trunc i8 %571 to i1
  br i1 %572, label %576, label %573

573:                                              ; preds = %564
  %574 = load i8, ptr %28, align 1, !tbaa !11, !range !77, !noundef !78
  %575 = trunc i8 %574 to i1
  br i1 %575, label %576, label %623

576:                                              ; preds = %573, %564
  %577 = load ptr, ptr %12, align 8, !tbaa !5
  %578 = getelementptr inbounds %struct.ImGuiContext, ptr %577, i32 0, i32 146
  %579 = load i8, ptr %578, align 4, !tbaa !79, !range !77, !noundef !78
  %580 = trunc i8 %579 to i1
  br i1 %580, label %623, label %581

581:                                              ; preds = %576
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #8
  %582 = load i32, ptr %11, align 4, !tbaa !9
  %583 = and i32 %582, 256
  %584 = icmp ne i32 %583, 0
  br i1 %584, label %585, label %594

585:                                              ; preds = %581
  %586 = load ptr, ptr %12, align 8, !tbaa !5
  %587 = getelementptr inbounds %struct.ImGuiContext, ptr %586, i32 0, i32 3
  %588 = getelementptr inbounds %struct.ImGuiIO, ptr %587, i32 0, i32 68
  %589 = load i32, ptr %26, align 4, !tbaa !9
  %590 = sext i32 %589 to i64
  %591 = getelementptr inbounds [5 x i8], ptr %588, i64 0, i64 %590
  %592 = load i8, ptr %591, align 1, !tbaa !11, !range !77, !noundef !78
  %593 = trunc i8 %592 to i1
  br label %594

594:                                              ; preds = %585, %581
  %595 = phi i1 [ false, %581 ], [ %593, %585 ]
  %596 = zext i1 %595 to i8
  store i8 %596, ptr %29, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #8
  %597 = load i32, ptr %11, align 4, !tbaa !9
  %598 = and i32 %597, 1024
  %599 = icmp ne i32 %598, 0
  br i1 %599, label %600, label %613

600:                                              ; preds = %594
  %601 = load ptr, ptr %12, align 8, !tbaa !5
  %602 = getelementptr inbounds %struct.ImGuiContext, ptr %601, i32 0, i32 3
  %603 = getelementptr inbounds %struct.ImGuiIO, ptr %602, i32 0, i32 70
  %604 = load i32, ptr %26, align 4, !tbaa !9
  %605 = sext i32 %604 to i64
  %606 = getelementptr inbounds [5 x float], ptr %603, i64 0, i64 %605
  %607 = load float, ptr %606, align 4, !tbaa !90
  %608 = load ptr, ptr %12, align 8, !tbaa !5
  %609 = getelementptr inbounds %struct.ImGuiContext, ptr %608, i32 0, i32 3
  %610 = getelementptr inbounds %struct.ImGuiIO, ptr %609, i32 0, i32 11
  %611 = load float, ptr %610, align 4, !tbaa !91
  %612 = fcmp oge float %607, %611
  br label %613

613:                                              ; preds = %600, %594
  %614 = phi i1 [ false, %594 ], [ %612, %600 ]
  %615 = zext i1 %614 to i8
  store i8 %615, ptr %30, align 1, !tbaa !11
  %616 = load i8, ptr %29, align 1, !tbaa !11, !range !77, !noundef !78
  %617 = trunc i8 %616 to i1
  br i1 %617, label %622, label %618

618:                                              ; preds = %613
  %619 = load i8, ptr %30, align 1, !tbaa !11, !range !77, !noundef !78
  %620 = trunc i8 %619 to i1
  br i1 %620, label %622, label %621

621:                                              ; preds = %618
  store i8 1, ptr %17, align 1, !tbaa !11
  br label %622

622:                                              ; preds = %621, %618, %613
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #8
  br label %623

623:                                              ; preds = %622, %576, %573
  call void @_ZN5ImGui13ClearActiveIDEv()
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #8
  br label %624

624:                                              ; preds = %623, %556
  %625 = load i32, ptr %11, align 4, !tbaa !9
  %626 = and i32 %625, 262144
  %627 = icmp ne i32 %626, 0
  br i1 %627, label %631, label %628

628:                                              ; preds = %624
  %629 = load ptr, ptr %12, align 8, !tbaa !5
  %630 = getelementptr inbounds %struct.ImGuiContext, ptr %629, i32 0, i32 101
  store i8 1, ptr %630, align 2, !tbaa !92
  br label %631

631:                                              ; preds = %628, %624
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %646

632:                                              ; preds = %514
  %633 = load ptr, ptr %12, align 8, !tbaa !5
  %634 = getelementptr inbounds %struct.ImGuiContext, ptr %633, i32 0, i32 62
  %635 = load i32, ptr %634, align 8, !tbaa !105
  %636 = icmp eq i32 %635, 2
  br i1 %636, label %637, label %645

637:                                              ; preds = %632
  %638 = load ptr, ptr %12, align 8, !tbaa !5
  %639 = getelementptr inbounds %struct.ImGuiContext, ptr %638, i32 0, i32 86
  %640 = load i32, ptr %639, align 4, !tbaa !103
  %641 = load i32, ptr %8, align 4, !tbaa !9
  %642 = icmp ne i32 %640, %641
  br i1 %642, label %643, label %644

643:                                              ; preds = %637
  call void @_ZN5ImGui13ClearActiveIDEv()
  br label %644

644:                                              ; preds = %643, %637
  br label %645

645:                                              ; preds = %644, %632
  br label %646

646:                                              ; preds = %645, %631
  %647 = load i8, ptr %17, align 1, !tbaa !11, !range !77, !noundef !78
  %648 = trunc i8 %647 to i1
  br i1 %648, label %649, label %652

649:                                              ; preds = %646
  %650 = load ptr, ptr %12, align 8, !tbaa !5
  %651 = getelementptr inbounds %struct.ImGuiContext, ptr %650, i32 0, i32 51
  store i8 1, ptr %651, align 1, !tbaa !108
  br label %652

652:                                              ; preds = %649, %646
  br label %653

653:                                              ; preds = %652, %508
  %654 = load ptr, ptr %9, align 8, !tbaa !5
  %655 = icmp ne ptr %654, null
  br i1 %655, label %656, label %661

656:                                              ; preds = %653
  %657 = load i8, ptr %18, align 1, !tbaa !11, !range !77, !noundef !78
  %658 = trunc i8 %657 to i1
  %659 = load ptr, ptr %9, align 8, !tbaa !5
  %660 = zext i1 %658 to i8
  store i8 %660, ptr %659, align 1, !tbaa !11
  br label %661

661:                                              ; preds = %656, %653
  %662 = load ptr, ptr %10, align 8, !tbaa !5
  %663 = icmp ne ptr %662, null
  br i1 %663, label %664, label %669

664:                                              ; preds = %661
  %665 = load i8, ptr %24, align 1, !tbaa !11, !range !77, !noundef !78
  %666 = trunc i8 %665 to i1
  %667 = load ptr, ptr %10, align 8, !tbaa !5
  %668 = zext i1 %666 to i8
  store i8 %668, ptr %667, align 1, !tbaa !11
  br label %669

669:                                              ; preds = %664, %661
  %670 = load i8, ptr %17, align 1, !tbaa !11, !range !77, !noundef !78
  %671 = trunc i8 %670 to i1
  store i1 %671, ptr %6, align 1
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %672

672:                                              ; preds = %669, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  %673 = load i1, ptr %6, align 1
  ret i1 %673
}

declare void @_ZN5ImGui13ClearActiveIDEv() #6

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

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

declare void @_ZN5ImGui12SetHoveredIDEj(i32 noundef) #6

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

declare void @_ZN5ImGui11FocusWindowEP11ImGuiWindow(ptr noundef) #6

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

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

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

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

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 = { noreturn nounwind "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { "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 = { 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 #8 = { nounwind }
attributes #9 = { noreturn 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 6960}
!14 = !{!"_ZTS12ImGuiContext", !12, i64 0, !12, i64 1, !15, i64 8, !20, i64 5472, !6, i64 6520, !17, i64 6528, !17, i64 6532, !21, i64 6536, !23, i64 6752, !10, i64 6760, !10, i64 6764, !10, i64 6768, !12, i64 6772, !12, i64 6773, !12, i64 6774, !12, i64 6775, !12, i64 6776, !10, i64 6780, !6, i64 6784, !24, i64 6792, !24, i64 6808, !24, i64 6824, !24, i64 6840, !25, i64 6856, !10, i64 6872, !6, i64 6880, !6, i64 6888, !6, i64 6896, !6, i64 6904, !6, i64 6912, !6, i64 6920, !16, i64 6928, !17, i64 6936, !10, i64 6940, !10, i64 6944, !12, i64 6948, !12, i64 6949, !12, i64 6950, !12, i64 6951, !17, i64 6952, !17, i64 6956, !10, i64 6960, !10, i64 6964, !17, i64 6968, !12, i64 6972, !12, i64 6973, !12, i64 6974, !12, i64 6975, !12, i64 6976, !12, i64 6977, !12, i64 6978, !10, i64 6980, !10, i64 6984, !27, i64 6992, !16, i64 7000, !6, i64 7008, !28, i64 7016, !10, i64 7020, !10, i64 7024, !12, i64 7028, !12, i64 7029, !6, i64 7032, !10, i64 7040, !17, i64 7044, !29, i64 7048, !31, i64 7160, !32, i64 7184, !33, i64 7200, !34, i64 7216, !35, i64 7232, !36, i64 7248, !37, i64 7264, !38, i64 7280, !38, i64 7296, !6, i64 7312, !10, i64 7320, !10, i64 7324, !10, i64 7328, !10, i64 7332, !10, i64 7336, !10, i64 7340, !10, i64 7344, !10, i64 7348, !10, i64 7352, !10, i64 7356, !10, i64 7360, !28, i64 7364, !30, i64 7368, !10, i64 7384, !39, i64 7388, !10, i64 7392, !12, i64 7396, !12, i64 7397, !12, i64 7398, !12, i64 7399, !12, i64 7400, !12, i64 7401, !12, i64 7402, !10, i64 7404, !30, i64 7408, !12, i64 7424, !10, i64 7428, !40, i64 7432, !10, i64 7436, !10, i64 7440, !10, i64 7444, !10, i64 7448, !41, i64 7456, !41, i64 7504, !41, i64 7552, !6, i64 7600, !10, i64 7608, !6, i64 7616, !6, i64 7624, !6, i64 7632, !17, i64 7640, !17, i64 7644, !12, i64 7648, !6, i64 7656, !6, i64 7664, !10, i64 7672, !10, i64 7676, !10, i64 7680, !10, i64 7684, !12, i64 7688, !42, i64 7696, !43, i64 7752, !17, i64 7784, !44, i64 7792, !44, i64 7992, !10, i64 8192, !12, i64 8196, !12, i64 8197, !12, i64 8198, !10, i64 8200, !10, i64 8204, !10, i64 8208, !53, i64 8216, !30, i64 8280, !10, i64 8296, !10, i64 8300, !17, i64 8304, !10, i64 8308, !10, i64 8312, !10, i64 8316, !10, i64 8320, !54, i64 8328, !7, i64 8344, !6, i64 8360, !55, i64 8368, !57, i64 8408, !58, i64 8424, !52, i64 8440, !6, i64 8456, !59, i64 8464, !57, i64 8504, !61, i64 8520, !16, i64 8536, !62, i64 8544, !66, i64 12280, !10, i64 12392, !10, i64 12396, !17, i64 12400, !17, i64 12404, !7, i64 12408, !22, i64 12420, !17, i64 12436, !12, i64 12440, !12, i64 12441, !17, i64 12444, !17, i64 12448, !17, i64 12452, !10, i64 12456, !17, i64 12460, !63, i64 12464, !35, i64 12480, !16, i64 12496, !16, i64 12504, !7, i64 12512, !12, i64 12513, !17, i64 12516, !68, i64 12520, !69, i64 12536, !70, i64 12552, !71, i64 12568, !72, i64 12584, !12, i64 12600, !73, i64 12604, !6, i64 12608, !68, i64 12616, !17, i64 12632, !12, i64 12636, !10, i64 12640, !10, i64 12644, !10, i64 12648, !12, i64 12652, !10, i64 12656, !74, i64 12660, !7, i64 12676, !10, i64 13156, !17, i64 13160, !10, i64 13164, !10, i64 13168, !10, i64 13172, !7, i64 13176}
!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, !12, i64 197, !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, !16, i64 288, !7, i64 296, !17, i64 304, !17, i64 308, !12, i64 312, !12, i64 313, !12, i64 314, !12, i64 315, !7, i64 316, !7, i64 828, !12, i64 912, !12, i64 913, !12, i64 914, !12, i64 915, !12, i64 916, !12, i64 917, !12, i64 918, !17, i64 920, !10, i64 924, !10, i64 928, !10, i64 932, !10, i64 936, !10, i64 940, !16, i64 944, !10, i64 952, !16, i64 956, !7, i64 964, !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, !18, i64 5444, !19, i64 5448}
!16 = !{!"_ZTS6ImVec2", !17, i64 0, !17, i64 4}
!17 = !{!"float", !7, i64 0}
!18 = !{!"short", !7, i64 0}
!19 = !{!"_ZTS8ImVectorItE", !10, i64 0, !10, i64 4, !6, i64 8}
!20 = !{!"_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, !16, i64 96, !17, i64 104, !17, i64 108, !17, i64 112, !17, i64 116, !17, i64 120, !17, i64 124, !17, i64 128, !17, i64 132, !17, i64 136, !17, i64 140, !10, i64 144, !16, i64 148, !16, i64 156, !16, i64 164, !16, i64 172, !17, i64 180, !12, i64 184, !12, i64 185, !12, i64 186, !17, i64 188, !17, i64 192, !7, i64 196}
!21 = !{!"_ZTS20ImDrawListSharedData", !16, i64 0, !6, i64 8, !17, i64 16, !17, i64 20, !17, i64 24, !22, i64 28, !10, i64 44, !7, i64 48, !7, i64 144, !6, i64 208}
!22 = !{!"_ZTS6ImVec4", !17, i64 0, !17, i64 4, !17, i64 8, !17, i64 12}
!23 = !{!"double", !7, i64 0}
!24 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !10, i64 0, !10, i64 4, !6, i64 8}
!25 = !{!"_ZTS12ImGuiStorage", !26, i64 0}
!26 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !10, i64 0, !10, i64 4, !6, i64 8}
!27 = !{!"long long", !7, i64 0}
!28 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!29 = !{!"_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, !16, i64 48, !12, i64 56, !30, i64 60, !6, i64 80, !6, i64 88, !17, i64 96, !16, i64 100}
!30 = !{!"_ZTS6ImRect", !16, i64 0, !16, i64 8}
!31 = !{!"_ZTS17ImGuiNextItemData", !10, i64 0, !17, i64 4, !10, i64 8, !10, i64 12, !12, i64 16}
!32 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !10, i64 0, !10, i64 4, !6, i64 8}
!33 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !10, i64 0, !10, i64 4, !6, i64 8}
!34 = !{!"_ZTS8ImVectorIP6ImFontE", !10, i64 0, !10, i64 4, !6, i64 8}
!35 = !{!"_ZTS8ImVectorIjE", !10, i64 0, !10, i64 4, !6, i64 8}
!36 = !{!"_ZTS8ImVectorIiE", !10, i64 0, !10, i64 4, !6, i64 8}
!37 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!38 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!39 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!40 = !{!"_ZTS15ImGuiNavForward", !7, i64 0}
!41 = !{!"_ZTS18ImGuiNavMoveResult", !6, i64 0, !10, i64 8, !10, i64 12, !17, i64 16, !17, i64 20, !17, i64 24, !30, i64 28}
!42 = !{!"_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}
!43 = !{!"_ZTS17ImDrawDataBuilder", !7, i64 0}
!44 = !{!"_ZTS10ImDrawList", !45, i64 0, !19, i64 16, !46, i64 32, !10, i64 48, !10, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !47, i64 88, !48, i64 104, !49, i64 120, !50, i64 136, !51, i64 168, !17, i64 192}
!45 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !10, i64 0, !10, i64 4, !6, i64 8}
!46 = !{!"_ZTS8ImVectorI10ImDrawVertE", !10, i64 0, !10, i64 4, !6, i64 8}
!47 = !{!"_ZTS8ImVectorI6ImVec4E", !10, i64 0, !10, i64 4, !6, i64 8}
!48 = !{!"_ZTS8ImVectorIPvE", !10, i64 0, !10, i64 4, !6, i64 8}
!49 = !{!"_ZTS8ImVectorI6ImVec2E", !10, i64 0, !10, i64 4, !6, i64 8}
!50 = !{!"_ZTS15ImDrawCmdHeader", !22, i64 0, !6, i64 16, !10, i64 24}
!51 = !{!"_ZTS18ImDrawListSplitter", !10, i64 0, !10, i64 4, !52, i64 8}
!52 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !10, i64 0, !10, i64 4, !6, i64 8}
!53 = !{!"_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}
!54 = !{!"_ZTS8ImVectorIhE", !10, i64 0, !10, i64 4, !6, i64 8}
!55 = !{!"_ZTS6ImPoolI10ImGuiTableE", !56, i64 0, !25, i64 16, !10, i64 32}
!56 = !{!"_ZTS8ImVectorI10ImGuiTableE", !10, i64 0, !10, i64 4, !6, i64 8}
!57 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !10, i64 0, !10, i64 4, !6, i64 8}
!58 = !{!"_ZTS8ImVectorIfE", !10, i64 0, !10, i64 4, !6, i64 8}
!59 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !60, i64 0, !25, i64 16, !10, i64 32}
!60 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !10, i64 0, !10, i64 4, !6, i64 8}
!61 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !10, i64 0, !10, i64 4, !6, i64 8}
!62 = !{!"_ZTS19ImGuiInputTextState", !10, i64 0, !10, i64 4, !10, i64 8, !19, i64 16, !63, i64 32, !63, i64 48, !12, i64 64, !10, i64 68, !17, i64 72, !64, i64 76, !17, i64 3704, !12, i64 3708, !12, i64 3709, !12, i64 3710, !10, i64 3712, !6, i64 3720, !6, i64 3728}
!63 = !{!"_ZTS8ImVectorIcE", !10, i64 0, !10, i64 4, !6, i64 8}
!64 = !{!"_ZTSN5ImStb17STB_TexteditStateE", !10, i64 0, !10, i64 4, !10, i64 8, !7, i64 12, !10, i64 16, !7, i64 20, !7, i64 21, !7, i64 22, !7, i64 23, !7, i64 24, !7, i64 25, !7, i64 26, !17, i64 28, !65, i64 32}
!65 = !{!"_ZTSN5ImStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !18, i64 3582, !18, i64 3584, !10, i64 3588, !10, i64 3592}
!66 = !{!"_ZTS6ImFont", !58, i64 0, !17, i64 16, !17, i64 20, !19, i64 24, !67, i64 40, !6, i64 56, !6, i64 64, !6, i64 72, !18, i64 80, !18, i64 82, !18, i64 84, !12, i64 86, !17, i64 88, !17, i64 92, !17, i64 96, !10, i64 100, !7, i64 104}
!67 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !10, i64 0, !10, i64 4, !6, i64 8}
!68 = !{!"_ZTS15ImGuiTextBuffer", !63, i64 0}
!69 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !10, i64 0, !10, i64 4, !6, i64 8}
!70 = !{!"_ZTS13ImChunkStreamI19ImGuiWindowSettingsE", !63, i64 0}
!71 = !{!"_ZTS13ImChunkStreamI18ImGuiTableSettingsE", !63, i64 0}
!72 = !{!"_ZTS8ImVectorI16ImGuiContextHookE", !10, i64 0, !10, i64 4, !6, i64 8}
!73 = !{!"_ZTS12ImGuiLogType", !7, i64 0}
!74 = !{!"_ZTS18ImGuiMetricsConfig", !12, i64 0, !12, i64 1, !12, i64 2, !12, i64 3, !12, i64 4, !10, i64 8, !10, i64 12}
!75 = !{!14, !6, i64 6888}
!76 = !{!14, !6, i64 6896}
!77 = !{i8 0, i8 2}
!78 = !{}
!79 = !{!14, !12, i64 8196}
!80 = !{!14, !10, i64 8228}
!81 = !{!14, !10, i64 8200}
!82 = !{!14, !17, i64 6952}
!83 = !{!14, !17, i64 24}
!84 = !{!14, !10, i64 8320}
!85 = !{!14, !10, i64 6944}
!86 = !{!14, !12, i64 320}
!87 = !{!14, !12, i64 321}
!88 = !{!14, !12, i64 322}
!89 = !{!14, !10, i64 7020}
!90 = !{!17, !17, i64 0}
!91 = !{!14, !17, i64 148}
!92 = !{!14, !12, i64 7398}
!93 = !{!14, !10, i64 7320}
!94 = !{!14, !12, i64 7399}
!95 = !{!96, !10, i64 84}
!96 = !{!"_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, !16, i64 64, !17, i64 72, !17, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !16, i64 92, !16, i64 100, !16, i64 108, !16, i64 116, !16, i64 124, !16, i64 132, !12, i64 140, !12, i64 141, !12, i64 142, !12, i64 143, !12, i64 144, !12, i64 145, !12, i64 146, !12, i64 147, !12, i64 148, !12, i64 149, !12, i64 150, !12, i64 151, !7, i64 152, !18, i64 154, !18, i64 156, !18, i64 158, !10, i64 160, !7, i64 164, !7, i64 165, !7, i64 166, !12, i64 167, !10, i64 168, !7, i64 172, !7, i64 173, !7, i64 174, !10, i64 175, !10, i64 176, !10, i64 177, !16, i64 180, !16, i64 188, !35, i64 200, !97, i64 216, !30, i64 520, !30, i64 536, !30, i64 552, !30, i64 568, !30, i64 584, !30, i64 600, !30, i64 616, !101, i64 632, !101, i64 636, !10, i64 640, !17, i64 644, !17, i64 648, !25, i64 656, !102, i64 672, !17, i64 688, !10, i64 692, !6, i64 696, !44, i64 704, !6, i64 904, !6, i64 912, !6, i64 920, !6, i64 928, !6, i64 936, !7, i64 944, !7, i64 952, !10, i64 984, !10, i64 988, !12, i64 992}
!97 = !{!"_ZTS19ImGuiWindowTempData", !16, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !16, i64 32, !16, i64 40, !16, i64 48, !17, i64 56, !17, i64 60, !98, i64 64, !98, i64 68, !98, i64 72, !10, i64 76, !10, i64 80, !30, i64 84, !30, i64 100, !39, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !12, i64 132, !12, i64 133, !12, i64 134, !16, i64 136, !99, i64 144, !10, i64 180, !10, i64 184, !24, i64 192, !6, i64 208, !6, i64 216, !10, i64 224, !10, i64 228, !10, i64 232, !10, i64 236, !10, i64 240, !10, i64 244, !17, i64 248, !17, i64 252, !58, i64 256, !58, i64 272, !100, i64 288}
!98 = !{!"_ZTS6ImVec1", !17, i64 0}
!99 = !{!"_ZTS16ImGuiMenuColumns", !17, i64 0, !17, i64 4, !17, i64 8, !7, i64 12, !7, i64 24}
!100 = !{!"_ZTS15ImGuiStackSizes", !18, i64 0, !18, i64 2, !18, i64 4, !18, i64 6, !18, i64 8, !18, i64 10, !18, i64 12}
!101 = !{!"_ZTS8ImVec2ih", !18, i64 0, !18, i64 2}
!102 = !{!"_ZTS8ImVectorI15ImGuiOldColumnsE", !10, i64 0, !10, i64 4, !6, i64 8}
!103 = !{!14, !10, i64 7332}
!104 = !{!14, !10, i64 7328}
!105 = !{!14, !28, i64 7016}
!106 = !{!14, !12, i64 6972}
!107 = !{i64 0, i64 4, !90, i64 4, i64 4, !90}
!108 = !{!14, !12, i64 6975}


; 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
@.str.1 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [59 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui14ButtonBehaviorERK6ImRectjPbS3_i = external hidden unnamed_addr constant [86 x i8], align 1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN5ImGui16GetCurrentWindowEv() local_unnamed_addr #0

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

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

; 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 #3 {
  %6 = load ptr, ptr @GImGui, align 8, !tbaa !5
  %7 = tail call noundef ptr @_ZN5ImGui16GetCurrentWindowEv()
  %8 = and i32 %4, 16384
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %18, label %9

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

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

11:                                               ; preds = %10, %9
  %.not227 = icmp eq ptr %3, null
  br i1 %.not227, 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 6960
  %15 = load i32, ptr %14, align 8, !tbaa !11
  %16 = icmp eq i32 %15, %1
  br i1 %16, label %17, label %296

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

18:                                               ; preds = %5
  %19 = and i32 %4, 7
  %20 = icmp eq i32 %19, 0
  %21 = zext i1 %20 to i32
  %spec.select = or disjoint i32 %21, %4
  %22 = and i32 %4, 1008
  %23 = icmp eq i32 %22, 0
  %24 = or disjoint i32 %spec.select, 32
  %.1 = select i1 %23, i32 %24, i32 %spec.select
  %25 = getelementptr inbounds i8, ptr %6, i64 6888
  %26 = load ptr, ptr %25, align 8, !tbaa !74
  %27 = and i32 %.1, 2048
  %.not193 = icmp eq i32 %27, 0
  br i1 %.not193, label %.thread, label %28

28:                                               ; preds = %18
  %29 = getelementptr inbounds i8, ptr %6, i64 6896
  %30 = load ptr, ptr %29, align 8, !tbaa !75
  %31 = icmp eq ptr %30, %7
  br i1 %31, label %32, label %.thread

32:                                               ; preds = %28
  store ptr %7, ptr %25, align 8, !tbaa !74
  br label %.thread

.thread:                                          ; preds = %18, %32, %28
  %33 = phi i1 [ true, %32 ], [ false, %28 ], [ false, %18 ]
  %34 = tail call noundef zeroext i1 @_ZN5ImGui13ItemHoverableERK6ImRectj(ptr noundef nonnull align 4 dereferenceable(16) %0, i32 noundef %1)
  %35 = getelementptr inbounds i8, ptr %6, i64 8196
  %36 = load i8, ptr %35, align 4, !tbaa !76, !range !77
  br i1 %34, label %37, label %.thread._crit_edge

37:                                               ; preds = %.thread
  %38 = trunc nuw i8 %36 to i1
  br i1 %38, label %39, label %.thread._crit_edge

39:                                               ; preds = %37
  %40 = getelementptr inbounds i8, ptr %6, i64 8228
  %41 = load i32, ptr %40, align 4, !tbaa !78
  %42 = icmp eq i32 %41, %1
  br i1 %42, label %43, label %.thread._crit_edge

43:                                               ; preds = %39
  %44 = getelementptr inbounds i8, ptr %6, i64 8200
  %45 = load i32, ptr %44, align 8, !tbaa !79
  %46 = and i32 %45, 2
  %.not194 = icmp ne i32 %46, 0
  br label %.thread._crit_edge

.thread._crit_edge:                               ; preds = %.thread, %43, %39, %37
  %.0172.shrunk = phi i1 [ true, %39 ], [ true, %37 ], [ %.not194, %43 ], [ false, %.thread ]
  %47 = getelementptr inbounds i8, ptr %6, i64 8196
  %48 = trunc nuw i8 %36 to i1
  %49 = and i32 %.1, 512
  %.not195 = icmp ne i32 %49, 0
  %or.cond230.not = and i1 %.not195, %48
  br i1 %or.cond230.not, label %50, label %66

50:                                               ; preds = %.thread._crit_edge
  %51 = getelementptr inbounds i8, ptr %6, i64 8200
  %52 = load i32, ptr %51, align 8, !tbaa !79
  %53 = and i32 %52, 4
  %.not196 = icmp eq i32 %53, 0
  br i1 %.not196, label %54, label %66

54:                                               ; preds = %50
  %55 = tail call noundef zeroext i1 @_ZN5ImGui13IsItemHoveredEi(i32 noundef 32)
  br i1 %55, label %56, label %66

56:                                               ; preds = %54
  tail call void @_ZN5ImGui12SetHoveredIDEj(i32 noundef %1)
  %57 = getelementptr inbounds i8, ptr %6, i64 6952
  %58 = load float, ptr %57, align 8, !tbaa !80
  %59 = fadd float %58, 0x3F1A36E2E0000000
  %60 = getelementptr inbounds i8, ptr %6, i64 24
  %61 = load float, ptr %60, align 8, !tbaa !81
  %62 = fsub float %59, %61
  %63 = tail call noundef i32 @_ZN5ImGui25CalcTypematicRepeatAmountEffff(float noundef %62, float noundef %59, float noundef 0x3FE6666660000000, float noundef 0.000000e+00)
  %.not197 = icmp eq i32 %63, 0
  br i1 %.not197, label %66, label %64

64:                                               ; preds = %56
  %65 = getelementptr inbounds i8, ptr %6, i64 8320
  store i32 %1, ptr %65, align 8, !tbaa !82
  tail call void @_ZN5ImGui11FocusWindowEP11ImGuiWindow(ptr noundef %7)
  br label %66

66:                                               ; preds = %54, %64, %56, %50, %.thread._crit_edge
  %.1173.shrunk = phi i1 [ %.0172.shrunk, %50 ], [ true, %64 ], [ true, %56 ], [ %.0172.shrunk, %54 ], [ %.0172.shrunk, %.thread._crit_edge ]
  %.0170 = phi i8 [ 0, %50 ], [ 1, %64 ], [ 0, %56 ], [ 0, %54 ], [ 0, %.thread._crit_edge ]
  br i1 %33, label %67, label %68

67:                                               ; preds = %66
  store ptr %26, ptr %25, align 8, !tbaa !74
  br label %68

68:                                               ; preds = %67, %66
  %69 = and i32 %.1, 4096
  %.not198 = icmp ne i32 %69, 0
  %or.cond231.not = and i1 %.not198, %.1173.shrunk
  br i1 %or.cond231.not, label %70, label %73

70:                                               ; preds = %68
  %71 = getelementptr inbounds i8, ptr %6, i64 6944
  %72 = load i32, ptr %71, align 8, !tbaa !83
  %.not199 = icmp eq i32 %72, %1
  %.not200 = icmp eq i32 %72, 0
  %or.cond232 = or i1 %.not199, %.not200
  br i1 %or.cond232, label %74, label %181

73:                                               ; preds = %68
  br i1 %.1173.shrunk, label %74, label %181

74:                                               ; preds = %70, %73
  %75 = and i32 %.1, 65536
  %.not201 = icmp eq i32 %75, 0
  br i1 %.not201, label %88, label %76

76:                                               ; preds = %74
  %77 = getelementptr inbounds i8, ptr %6, i64 320
  %78 = load i8, ptr %77, align 8, !tbaa !84, !range !77, !noundef !85
  %79 = trunc nuw i8 %78 to i1
  br i1 %79, label %177, label %80

80:                                               ; preds = %76
  %81 = getelementptr inbounds i8, ptr %6, i64 321
  %82 = load i8, ptr %81, align 1, !tbaa !86, !range !77, !noundef !85
  %83 = trunc nuw i8 %82 to i1
  br i1 %83, label %177, label %84

84:                                               ; preds = %80
  %85 = getelementptr inbounds i8, ptr %6, i64 322
  %86 = load i8, ptr %85, align 2, !tbaa !87, !range !77, !noundef !85
  %87 = trunc nuw i8 %86 to i1
  br i1 %87, label %177, label %88

88:                                               ; preds = %84, %74
  %89 = and i32 %.1, 1
  %.not202 = icmp eq i32 %89, 0
  br i1 %.not202, label %94, label %90

90:                                               ; preds = %88
  %91 = getelementptr inbounds i8, ptr %6, i64 1056
  %92 = load i8, ptr %91, align 8, !tbaa !9, !range !77, !noundef !85
  %93 = trunc nuw i8 %92 to i1
  br i1 %93, label %.thread253, label %94

94:                                               ; preds = %90, %88
  %95 = and i32 %.1, 2
  %.not203 = icmp eq i32 %95, 0
  br i1 %.not203, label %100, label %96

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

100:                                              ; preds = %96, %94
  %101 = and i32 %.1, 4
  %.not204 = icmp eq i32 %101, 0
  br i1 %.not204, label %106, label %102

102:                                              ; preds = %100
  %103 = getelementptr inbounds i8, ptr %6, i64 1058
  %104 = load i8, ptr %103, align 2, !tbaa !9, !range !77, !noundef !85
  %105 = trunc nuw i8 %104 to i1
  %not. = xor i1 %105, true
  %spec.select234 = select i1 %105, i32 2, i32 -1
  br label %106

106:                                              ; preds = %102, %96, %100
  %.not207 = phi i1 [ true, %100 ], [ false, %96 ], [ %not., %102 ]
  %.0176 = phi i32 [ -1, %100 ], [ 1, %96 ], [ %spec.select234, %102 ]
  br i1 %.not202, label %110, label %.thread253

.thread253:                                       ; preds = %90, %106
  %.0176260 = phi i32 [ %.0176, %106 ], [ 0, %90 ]
  %.not207257 = phi i1 [ %.not207, %106 ], [ false, %90 ]
  %107 = getelementptr inbounds i8, ptr %6, i64 1066
  %108 = load i8, ptr %107, align 2, !tbaa !9, !range !77, !noundef !85
  %109 = trunc nuw i8 %108 to i1
  br i1 %109, label %121, label %.thread253._crit_edge

.thread253._crit_edge:                            ; preds = %.thread253
  %.pre268 = and i32 %.1, 2
  br label %110

110:                                              ; preds = %.thread253._crit_edge, %106
  %.pre-phi = phi i32 [ %.pre268, %.thread253._crit_edge ], [ %95, %106 ]
  %.0176261 = phi i32 [ %.0176260, %.thread253._crit_edge ], [ %.0176, %106 ]
  %.not207258 = phi i1 [ %.not207257, %.thread253._crit_edge ], [ %.not207, %106 ]
  %.not205 = icmp eq i32 %.pre-phi, 0
  br i1 %.not205, label %115, label %111

111:                                              ; preds = %110
  %112 = getelementptr inbounds i8, ptr %6, i64 1067
  %113 = load i8, ptr %112, align 1, !tbaa !9, !range !77, !noundef !85
  %114 = trunc nuw i8 %113 to i1
  br i1 %114, label %121, label %115

115:                                              ; preds = %111, %110
  %116 = and i32 %.1, 4
  %.not206 = icmp eq i32 %116, 0
  br i1 %.not206, label %121, label %117

117:                                              ; preds = %115
  %118 = getelementptr inbounds i8, ptr %6, i64 1068
  %119 = load i8, ptr %118, align 2, !tbaa !9, !range !77, !noundef !85
  %120 = trunc nuw i8 %119 to i1
  %spec.select236 = select i1 %120, i64 2, i64 4294967295
  br i1 %.not207258, label %150, label %123

121:                                              ; preds = %111, %.thread253, %115
  %.0176259 = phi i32 [ %.0176261, %115 ], [ %.0176260, %.thread253 ], [ %.0176261, %111 ]
  %.not207256 = phi i1 [ %.not207258, %115 ], [ %.not207257, %.thread253 ], [ %.not207258, %111 ]
  %122 = phi i1 [ false, %115 ], [ true, %.thread253 ], [ true, %111 ]
  %.0180 = phi i64 [ 4294967295, %115 ], [ 0, %.thread253 ], [ 1, %111 ]
  br i1 %.not207256, label %150, label %123

123:                                              ; preds = %117, %121
  %.0180263 = phi i64 [ %spec.select236, %117 ], [ %.0180, %121 ]
  %124 = phi i1 [ %120, %117 ], [ %122, %121 ]
  %.0176259262 = phi i32 [ %.0176261, %117 ], [ %.0176259, %121 ]
  %125 = getelementptr inbounds i8, ptr %6, i64 6960
  %126 = load i32, ptr %125, align 8, !tbaa !11
  %.not208 = icmp eq i32 %126, %1
  br i1 %.not208, label %150, label %127

127:                                              ; preds = %123
  %128 = and i32 %.1, 96
  %.not209 = icmp eq i32 %128, 0
  br i1 %.not209, label %134, label %129

129:                                              ; preds = %127
  tail call void @_ZN5ImGui11SetActiveIDEjP11ImGuiWindow(i32 noundef %1, ptr noundef %7)
  %130 = getelementptr inbounds i8, ptr %6, i64 7020
  store i32 %.0176259262, ptr %130, align 4, !tbaa !88
  %131 = and i32 %.1, 262144
  %.not210 = icmp eq i32 %131, 0
  br i1 %.not210, label %132, label %133

132:                                              ; preds = %129
  tail call void @_ZN5ImGui10SetFocusIDEjP11ImGuiWindow(i32 noundef %1, ptr noundef %7)
  br label %133

133:                                              ; preds = %132, %129
  tail call void @_ZN5ImGui11FocusWindowEP11ImGuiWindow(ptr noundef %7)
  br label %134

134:                                              ; preds = %133, %127
  %135 = and i32 %.1, 16
  %.not211 = icmp eq i32 %135, 0
  br i1 %.not211, label %136, label %144

136:                                              ; preds = %134
  %137 = and i32 %.1, 256
  %.not212 = icmp eq i32 %137, 0
  br i1 %.not212, label %150, label %138

138:                                              ; preds = %136
  %139 = getelementptr inbounds i8, ptr %6, i64 1061
  %140 = zext nneg i32 %.0176259262 to i64
  %141 = getelementptr inbounds [5 x i8], ptr %139, i64 0, i64 %140
  %142 = load i8, ptr %141, align 1, !tbaa !9, !range !77, !noundef !85
  %143 = trunc nuw i8 %142 to i1
  br i1 %143, label %144, label %150

144:                                              ; preds = %138, %134
  %145 = and i32 %.1, 131072
  %.not213 = icmp eq i32 %145, 0
  br i1 %.not213, label %147, label %146

146:                                              ; preds = %144
  tail call void @_ZN5ImGui13ClearActiveIDEv()
  br label %148

147:                                              ; preds = %144
  tail call void @_ZN5ImGui11SetActiveIDEjP11ImGuiWindow(i32 noundef %1, ptr noundef %7)
  br label %148

148:                                              ; preds = %147, %146
  %149 = getelementptr inbounds i8, ptr %6, i64 7020
  store i32 %.0176259262, ptr %149, align 4, !tbaa !88
  tail call void @_ZN5ImGui11FocusWindowEP11ImGuiWindow(ptr noundef %7)
  br label %150

150:                                              ; preds = %117, %136, %138, %148, %123, %121
  %.0180264 = phi i64 [ %.0180263, %148 ], [ %.0180263, %138 ], [ %.0180263, %136 ], [ %.0180263, %123 ], [ %.0180, %121 ], [ %spec.select236, %117 ]
  %151 = phi i1 [ %124, %148 ], [ %124, %138 ], [ %124, %136 ], [ %124, %123 ], [ %122, %121 ], [ %120, %117 ]
  %.1171 = phi i8 [ 1, %148 ], [ %.0170, %138 ], [ %.0170, %136 ], [ %.0170, %123 ], [ %.0170, %121 ], [ %.0170, %117 ]
  %152 = and i32 %.1, 128
  %153 = icmp ne i32 %152, 0
  %or.cond = and i1 %153, %151
  %154 = and i32 %.1, 1024
  br i1 %or.cond, label %155, label %._crit_edge

155:                                              ; preds = %150
  %.not214 = icmp eq i32 %154, 0
  br i1 %.not214, label %.thread265, label %156

156:                                              ; preds = %155
  %157 = getelementptr inbounds i8, ptr %6, i64 1104
  %158 = getelementptr inbounds [5 x float], ptr %157, i64 0, i64 %.0180264
  %159 = load float, ptr %158, align 4, !tbaa !89
  %160 = getelementptr inbounds i8, ptr %6, i64 148
  %161 = load float, ptr %160, align 4, !tbaa !90
  %162 = fcmp oge float %159, %161
  %cond.fr = freeze i1 %162
  %spec.select267 = select i1 %cond.fr, i8 %.1171, i8 1
  br label %.thread265

.thread265:                                       ; preds = %156, %155
  %163 = phi i8 [ 1, %155 ], [ %spec.select267, %156 ]
  tail call void @_ZN5ImGui13ClearActiveIDEv()
  br label %._crit_edge

._crit_edge:                                      ; preds = %150, %.thread265
  %.3 = phi i8 [ %163, %.thread265 ], [ %.1171, %150 ]
  %164 = getelementptr inbounds i8, ptr %6, i64 6960
  %165 = load i32, ptr %164, align 8, !tbaa !11
  %166 = icmp ne i32 %165, %1
  %.not215 = icmp eq i32 %154, 0
  %or.cond238 = or i1 %.not215, %166
  br i1 %or.cond238, label %177, label %167

167:                                              ; preds = %._crit_edge
  %168 = getelementptr inbounds i8, ptr %6, i64 1084
  %169 = getelementptr inbounds i8, ptr %6, i64 7020
  %170 = load i32, ptr %169, align 4, !tbaa !88
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [5 x float], ptr %168, i64 0, i64 %171
  %173 = load float, ptr %172, align 4, !tbaa !89
  %174 = fcmp ogt float %173, 0.000000e+00
  br i1 %174, label %175, label %177

175:                                              ; preds = %167
  %176 = tail call noundef zeroext i1 @_ZN5ImGui14IsMouseClickedEib(i32 noundef %170, i1 noundef zeroext true)
  %spec.select239 = select i1 %176, i8 1, i8 %.3
  br label %177

177:                                              ; preds = %175, %._crit_edge, %167, %84, %80, %76
  %.5 = phi i8 [ %.0170, %76 ], [ %.0170, %80 ], [ %.0170, %84 ], [ %.3, %167 ], [ %.3, %._crit_edge ], [ %spec.select239, %175 ]
  %178 = trunc nuw i8 %.5 to i1
  br i1 %178, label %179, label %181

179:                                              ; preds = %177
  %180 = getelementptr inbounds i8, ptr %6, i64 7398
  store i8 1, ptr %180, align 2, !tbaa !91
  br label %181

181:                                              ; preds = %70, %177, %179, %73
  %.2174.shrunk251 = phi i1 [ true, %179 ], [ true, %177 ], [ false, %73 ], [ false, %70 ]
  %.6 = phi i8 [ %.5, %179 ], [ %.5, %177 ], [ %.0170, %73 ], [ %.0170, %70 ]
  %182 = getelementptr inbounds i8, ptr %6, i64 7320
  %183 = load i32, ptr %182, align 8, !tbaa !92
  %184 = icmp eq i32 %183, %1
  br i1 %184, label %185, label %205

185:                                              ; preds = %181
  %186 = getelementptr inbounds i8, ptr %6, i64 7398
  %187 = load i8, ptr %186, align 2, !tbaa !91, !range !77, !noundef !85
  %188 = trunc nuw i8 %187 to i1
  br i1 %188, label %205, label %189

189:                                              ; preds = %185
  %190 = getelementptr inbounds i8, ptr %6, i64 7399
  %191 = load i8, ptr %190, align 1, !tbaa !93, !range !77, !noundef !85
  %192 = trunc nuw i8 %191 to i1
  br i1 %192, label %193, label %205

193:                                              ; preds = %189
  %194 = getelementptr inbounds i8, ptr %6, i64 6960
  %195 = load i32, ptr %194, align 8, !tbaa !11
  %196 = icmp eq i32 %195, 0
  %197 = icmp eq i32 %195, %1
  %or.cond240 = or i1 %196, %197
  br i1 %or.cond240, label %203, label %198

198:                                              ; preds = %193
  %199 = getelementptr inbounds i8, ptr %7, i64 84
  %200 = load i32, ptr %199, align 4, !tbaa !94
  %201 = icmp eq i32 %195, %200
  %202 = and i32 %.1, 524288
  %.not216 = icmp eq i32 %202, 0
  %or.cond241 = and i1 %.not216, %201
  br i1 %or.cond241, label %204, label %205

203:                                              ; preds = %193
  %.old = and i32 %.1, 524288
  %.not216.old = icmp eq i32 %.old, 0
  br i1 %.not216.old, label %204, label %205

204:                                              ; preds = %198, %203
  br label %205

205:                                              ; preds = %203, %204, %198, %189, %185, %181
  %.3175.shrunk = phi i1 [ %.2174.shrunk251, %185 ], [ %.2174.shrunk251, %203 ], [ true, %204 ], [ %.2174.shrunk251, %198 ], [ %.2174.shrunk251, %189 ], [ %.2174.shrunk251, %181 ]
  %206 = getelementptr inbounds i8, ptr %6, i64 7332
  %207 = load i32, ptr %206, align 4, !tbaa !102
  %208 = icmp eq i32 %207, %1
  br i1 %208, label %209, label %223

209:                                              ; preds = %205
  %210 = getelementptr inbounds i8, ptr %6, i64 7328
  %211 = load i32, ptr %210, align 8, !tbaa !103
  %212 = icmp eq i32 %211, %1
  %213 = and i32 %.1, 1024
  %.not217 = icmp eq i32 %213, 0
  %214 = select i1 %.not217, i32 1, i32 3
  %215 = tail call noundef zeroext i1 @_ZN5ImGui14IsNavInputTestEi18ImGuiInputReadMode(i32 noundef 0, i32 noundef %214)
  %brmerge = or i1 %212, %215
  %.7 = select i1 %brmerge, i8 1, i8 %.6
  br i1 %brmerge, label %220, label %216

216:                                              ; preds = %209
  %217 = getelementptr inbounds i8, ptr %6, i64 6960
  %218 = load i32, ptr %217, align 8, !tbaa !11
  %219 = icmp eq i32 %218, %1
  br i1 %219, label %220, label %223

220:                                              ; preds = %209, %216
  store i32 %1, ptr %210, align 8, !tbaa !103
  tail call void @_ZN5ImGui11SetActiveIDEjP11ImGuiWindow(i32 noundef %1, ptr noundef %7)
  %221 = and i32 %.1, 262144
  %.not218 = icmp eq i32 %221, 0
  %or.cond245 = and i1 %.not218, %brmerge
  br i1 %or.cond245, label %222, label %223

222:                                              ; preds = %220
  tail call void @_ZN5ImGui10SetFocusIDEjP11ImGuiWindow(i32 noundef %1, ptr noundef %7)
  br label %223

223:                                              ; preds = %216, %222, %220, %205
  %.8 = phi i8 [ %.6, %205 ], [ %.7, %220 ], [ %.7, %222 ], [ %.6, %216 ]
  %224 = getelementptr inbounds i8, ptr %6, i64 6960
  %225 = load i32, ptr %224, align 8, !tbaa !11
  %226 = icmp eq i32 %225, %1
  br i1 %226, label %227, label %289

227:                                              ; preds = %223
  %228 = getelementptr inbounds i8, ptr %6, i64 7016
  %229 = load i32, ptr %228, align 8, !tbaa !104
  switch i32 %229, label %285 [
    i32 1, label %230
    i32 2, label %282
  ]

230:                                              ; preds = %227
  %231 = getelementptr inbounds i8, ptr %6, i64 6972
  %232 = load i8, ptr %231, align 4, !tbaa !105, !range !77, !noundef !85
  %233 = trunc nuw i8 %232 to i1
  br i1 %233, label %234, label %238

234:                                              ; preds = %230
  %235 = getelementptr inbounds i8, ptr %6, i64 296
  %236 = tail call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %235, ptr noundef nonnull align 4 dereferenceable(8) %0)
  %237 = getelementptr inbounds i8, ptr %6, i64 7000
  store <2 x float> %236, ptr %237, align 8
  br label %238

238:                                              ; preds = %234, %230
  %239 = getelementptr inbounds i8, ptr %6, i64 7020
  %240 = load i32, ptr %239, align 4, !tbaa !88
  %241 = icmp ult i32 %240, 5
  br i1 %241, label %243, label %242

242:                                              ; preds = %238
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 627, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui14ButtonBehaviorERK6ImRectjPbS3_i) #6
  unreachable

243:                                              ; preds = %238
  %244 = getelementptr inbounds i8, ptr %6, i64 304
  %245 = zext nneg i32 %240 to i64
  %246 = getelementptr inbounds [5 x i8], ptr %244, i64 0, i64 %245
  %247 = load i8, ptr %246, align 1, !tbaa !9, !range !77, !noundef !85
  %248 = trunc nuw i8 %247 to i1
  br i1 %248, label %278, label %249

249:                                              ; preds = %243
  %250 = and i32 %.1, 32
  %251 = icmp ne i32 %250, 0
  %252 = and i1 %251, %.3175.shrunk
  %253 = and i32 %.1, 64
  %.not220 = icmp ne i32 %253, 0
  %or.cond248.not = or i1 %.not220, %252
  br i1 %or.cond248.not, label %254, label %277

254:                                              ; preds = %249
  %255 = load i8, ptr %47, align 4, !tbaa !76, !range !77, !noundef !85
  %256 = trunc nuw i8 %255 to i1
  br i1 %256, label %277, label %257

257:                                              ; preds = %254
  %258 = and i32 %.1, 256
  %.not221 = icmp eq i32 %258, 0
  br i1 %.not221, label %264, label %259

259:                                              ; preds = %257
  %260 = getelementptr inbounds i8, ptr %6, i64 1076
  %261 = getelementptr inbounds [5 x i8], ptr %260, i64 0, i64 %245
  %262 = load i8, ptr %261, align 1, !tbaa !9, !range !77, !noundef !85
  %263 = trunc nuw i8 %262 to i1
  br label %264

264:                                              ; preds = %259, %257
  %265 = phi i1 [ false, %257 ], [ %263, %259 ]
  %266 = and i32 %.1, 1024
  %.not222 = icmp eq i32 %266, 0
  br i1 %.not222, label %274, label %267

267:                                              ; preds = %264
  %268 = getelementptr inbounds i8, ptr %6, i64 1104
  %269 = getelementptr inbounds [5 x float], ptr %268, i64 0, i64 %245
  %270 = load float, ptr %269, align 4, !tbaa !89
  %271 = getelementptr inbounds i8, ptr %6, i64 148
  %272 = load float, ptr %271, align 4, !tbaa !90
  %273 = fcmp oge float %270, %272
  br label %274

274:                                              ; preds = %267, %264
  %275 = phi i1 [ false, %264 ], [ %273, %267 ]
  br i1 %265, label %277, label %276

276:                                              ; preds = %274
  %spec.select249 = select i1 %275, i8 %.8, i8 1
  br label %277

277:                                              ; preds = %276, %274, %249, %254
  %.10 = phi i8 [ %.8, %254 ], [ %.8, %249 ], [ %.8, %274 ], [ %spec.select249, %276 ]
  tail call void @_ZN5ImGui13ClearActiveIDEv()
  br label %278

278:                                              ; preds = %243, %277
  %.0177 = phi i8 [ 0, %277 ], [ 1, %243 ]
  %.11 = phi i8 [ %.10, %277 ], [ %.8, %243 ]
  %279 = and i32 %.1, 262144
  %.not223 = icmp eq i32 %279, 0
  br i1 %.not223, label %280, label %285

280:                                              ; preds = %278
  %281 = getelementptr inbounds i8, ptr %6, i64 7398
  store i8 1, ptr %281, align 2, !tbaa !91
  br label %285

282:                                              ; preds = %227
  %283 = load i32, ptr %206, align 4, !tbaa !102
  %.not219 = icmp eq i32 %283, %1
  br i1 %.not219, label %285, label %284

284:                                              ; preds = %282
  tail call void @_ZN5ImGui13ClearActiveIDEv()
  br label %285

285:                                              ; preds = %227, %278, %280, %284, %282
  %.1178 = phi i8 [ 0, %284 ], [ 0, %282 ], [ %.0177, %280 ], [ %.0177, %278 ], [ 0, %227 ]
  %.12 = phi i8 [ %.8, %284 ], [ %.8, %282 ], [ %.11, %280 ], [ %.11, %278 ], [ %.8, %227 ]
  %286 = trunc nuw i8 %.12 to i1
  br i1 %286, label %287, label %289

287:                                              ; preds = %285
  %288 = getelementptr inbounds i8, ptr %6, i64 6975
  store i8 1, ptr %288, align 1, !tbaa !106
  br label %289

289:                                              ; preds = %285, %287, %223
  %.2179 = phi i8 [ %.1178, %287 ], [ %.1178, %285 ], [ 0, %223 ]
  %.13 = phi i8 [ %.12, %287 ], [ %.12, %285 ], [ %.8, %223 ]
  %.not224 = icmp eq ptr %2, null
  br i1 %.not224, label %292, label %290

290:                                              ; preds = %289
  %291 = zext i1 %.3175.shrunk to i8
  store i8 %291, ptr %2, align 1, !tbaa !9
  br label %292

292:                                              ; preds = %290, %289
  %.not225 = icmp eq ptr %3, null
  br i1 %.not225, label %294, label %293

293:                                              ; preds = %292
  store i8 %.2179, ptr %3, align 1, !tbaa !9
  br label %294

294:                                              ; preds = %293, %292
  %295 = trunc nuw i8 %.13 to i1
  br label %296

296:                                              ; preds = %13, %17, %294
  %.0 = phi i1 [ %295, %294 ], [ false, %17 ], [ false, %13 ]
  ret i1 %.0
}

declare void @_ZN5ImGui13ClearActiveIDEv() local_unnamed_addr #4

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

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

declare void @_ZN5ImGui12SetHoveredIDEj(i32 noundef) local_unnamed_addr #4

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

declare void @_ZN5ImGui11FocusWindowEP11ImGuiWindow(ptr noundef) local_unnamed_addr #4

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !14, i64 6960}
!12 = !{!"_ZTS12ImGuiContext", !10, i64 0, !10, i64 1, !13, i64 8, !19, i64 5472, !6, i64 6520, !16, i64 6528, !16, i64 6532, !20, i64 6536, !22, i64 6752, !14, i64 6760, !14, i64 6764, !14, i64 6768, !10, i64 6772, !10, i64 6773, !10, i64 6774, !10, i64 6775, !10, i64 6776, !14, i64 6780, !6, i64 6784, !23, i64 6792, !23, i64 6808, !23, i64 6824, !23, i64 6840, !24, i64 6856, !14, i64 6872, !6, i64 6880, !6, i64 6888, !6, i64 6896, !6, i64 6904, !6, i64 6912, !6, i64 6920, !15, i64 6928, !16, i64 6936, !14, i64 6940, !14, i64 6944, !10, i64 6948, !10, i64 6949, !10, i64 6950, !10, i64 6951, !16, i64 6952, !16, i64 6956, !14, i64 6960, !14, i64 6964, !16, i64 6968, !10, i64 6972, !10, i64 6973, !10, i64 6974, !10, i64 6975, !10, i64 6976, !10, i64 6977, !10, i64 6978, !14, i64 6980, !14, i64 6984, !26, i64 6992, !15, i64 7000, !6, i64 7008, !27, i64 7016, !14, i64 7020, !14, i64 7024, !10, i64 7028, !10, i64 7029, !6, i64 7032, !14, i64 7040, !16, i64 7044, !28, i64 7048, !30, i64 7160, !31, i64 7184, !32, i64 7200, !33, i64 7216, !34, i64 7232, !35, i64 7248, !36, i64 7264, !37, i64 7280, !37, i64 7296, !6, i64 7312, !14, i64 7320, !14, i64 7324, !14, i64 7328, !14, i64 7332, !14, i64 7336, !14, i64 7340, !14, i64 7344, !14, i64 7348, !14, i64 7352, !14, i64 7356, !14, i64 7360, !27, i64 7364, !29, i64 7368, !14, i64 7384, !38, i64 7388, !14, i64 7392, !10, i64 7396, !10, i64 7397, !10, i64 7398, !10, i64 7399, !10, i64 7400, !10, i64 7401, !10, i64 7402, !14, i64 7404, !29, i64 7408, !10, i64 7424, !14, i64 7428, !39, i64 7432, !14, i64 7436, !14, i64 7440, !14, i64 7444, !14, i64 7448, !40, i64 7456, !40, i64 7504, !40, i64 7552, !6, i64 7600, !14, i64 7608, !6, i64 7616, !6, i64 7624, !6, i64 7632, !16, i64 7640, !16, i64 7644, !10, i64 7648, !6, i64 7656, !6, i64 7664, !14, i64 7672, !14, i64 7676, !14, i64 7680, !14, i64 7684, !10, i64 7688, !41, i64 7696, !42, i64 7752, !16, i64 7784, !43, i64 7792, !43, i64 7992, !14, i64 8192, !10, i64 8196, !10, i64 8197, !10, i64 8198, !14, i64 8200, !14, i64 8204, !14, i64 8208, !52, i64 8216, !29, i64 8280, !14, i64 8296, !14, i64 8300, !16, i64 8304, !14, i64 8308, !14, i64 8312, !14, i64 8316, !14, i64 8320, !53, i64 8328, !7, i64 8344, !6, i64 8360, !54, i64 8368, !56, i64 8408, !57, i64 8424, !51, i64 8440, !6, i64 8456, !58, i64 8464, !56, i64 8504, !60, i64 8520, !15, i64 8536, !61, i64 8544, !65, i64 12280, !14, i64 12392, !14, i64 12396, !16, i64 12400, !16, i64 12404, !7, i64 12408, !21, i64 12420, !16, i64 12436, !10, i64 12440, !10, i64 12441, !16, i64 12444, !16, i64 12448, !16, i64 12452, !14, i64 12456, !16, i64 12460, !62, i64 12464, !34, i64 12480, !15, i64 12496, !15, i64 12504, !7, i64 12512, !10, i64 12513, !16, i64 12516, !67, i64 12520, !68, i64 12536, !69, i64 12552, !70, i64 12568, !71, i64 12584, !10, i64 12600, !72, i64 12604, !6, i64 12608, !67, i64 12616, !16, i64 12632, !10, i64 12636, !14, i64 12640, !14, i64 12644, !14, i64 12648, !10, i64 12652, !14, i64 12656, !73, i64 12660, !7, i64 12676, !14, i64 13156, !16, i64 13160, !14, i64 13164, !14, i64 13168, !14, i64 13172, !7, i64 13176}
!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, !10, i64 197, !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, !15, i64 288, !7, i64 296, !16, i64 304, !16, i64 308, !10, i64 312, !10, i64 313, !10, i64 314, !10, i64 315, !7, i64 316, !7, i64 828, !10, i64 912, !10, i64 913, !10, i64 914, !10, i64 915, !10, i64 916, !10, i64 917, !10, i64 918, !16, i64 920, !14, i64 924, !14, i64 928, !14, i64 932, !14, i64 936, !14, i64 940, !15, i64 944, !14, i64 952, !15, i64 956, !7, i64 964, !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, !16, i64 5440, !17, i64 5444, !18, i64 5448}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTS6ImVec2", !16, i64 0, !16, i64 4}
!16 = !{!"float", !7, i64 0}
!17 = !{!"short", !7, i64 0}
!18 = !{!"_ZTS8ImVectorItE", !14, i64 0, !14, i64 4, !6, i64 8}
!19 = !{!"_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, !15, i64 96, !16, i64 104, !16, i64 108, !16, i64 112, !16, i64 116, !16, i64 120, !16, i64 124, !16, i64 128, !16, i64 132, !16, i64 136, !16, i64 140, !14, i64 144, !15, i64 148, !15, i64 156, !15, i64 164, !15, i64 172, !16, i64 180, !10, i64 184, !10, i64 185, !10, i64 186, !16, i64 188, !16, i64 192, !7, i64 196}
!20 = !{!"_ZTS20ImDrawListSharedData", !15, i64 0, !6, i64 8, !16, i64 16, !16, i64 20, !16, i64 24, !21, i64 28, !14, i64 44, !7, i64 48, !7, i64 144, !6, i64 208}
!21 = !{!"_ZTS6ImVec4", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12}
!22 = !{!"double", !7, i64 0}
!23 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !14, i64 0, !14, i64 4, !6, i64 8}
!24 = !{!"_ZTS12ImGuiStorage", !25, i64 0}
!25 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !14, i64 0, !14, i64 4, !6, i64 8}
!26 = !{!"long long", !7, i64 0}
!27 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!28 = !{!"_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, !15, i64 48, !10, i64 56, !29, i64 60, !6, i64 80, !6, i64 88, !16, i64 96, !15, i64 100}
!29 = !{!"_ZTS6ImRect", !15, i64 0, !15, i64 8}
!30 = !{!"_ZTS17ImGuiNextItemData", !14, i64 0, !16, i64 4, !14, i64 8, !14, i64 12, !10, i64 16}
!31 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !14, i64 0, !14, i64 4, !6, i64 8}
!32 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !14, i64 0, !14, i64 4, !6, i64 8}
!33 = !{!"_ZTS8ImVectorIP6ImFontE", !14, i64 0, !14, i64 4, !6, i64 8}
!34 = !{!"_ZTS8ImVectorIjE", !14, i64 0, !14, i64 4, !6, i64 8}
!35 = !{!"_ZTS8ImVectorIiE", !14, i64 0, !14, i64 4, !6, i64 8}
!36 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !14, i64 0, !14, i64 4, !6, i64 8}
!37 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !14, i64 0, !14, i64 4, !6, i64 8}
!38 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!39 = !{!"_ZTS15ImGuiNavForward", !7, i64 0}
!40 = !{!"_ZTS18ImGuiNavMoveResult", !6, i64 0, !14, i64 8, !14, i64 12, !16, i64 16, !16, i64 20, !16, i64 24, !29, i64 28}
!41 = !{!"_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}
!42 = !{!"_ZTS17ImDrawDataBuilder", !7, i64 0}
!43 = !{!"_ZTS10ImDrawList", !44, i64 0, !18, i64 16, !45, i64 32, !14, i64 48, !14, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !46, i64 88, !47, i64 104, !48, i64 120, !49, i64 136, !50, i64 168, !16, i64 192}
!44 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !14, i64 0, !14, i64 4, !6, i64 8}
!45 = !{!"_ZTS8ImVectorI10ImDrawVertE", !14, i64 0, !14, i64 4, !6, i64 8}
!46 = !{!"_ZTS8ImVectorI6ImVec4E", !14, i64 0, !14, i64 4, !6, i64 8}
!47 = !{!"_ZTS8ImVectorIPvE", !14, i64 0, !14, i64 4, !6, i64 8}
!48 = !{!"_ZTS8ImVectorI6ImVec2E", !14, i64 0, !14, i64 4, !6, i64 8}
!49 = !{!"_ZTS15ImDrawCmdHeader", !21, i64 0, !6, i64 16, !14, i64 24}
!50 = !{!"_ZTS18ImDrawListSplitter", !14, i64 0, !14, i64 4, !51, i64 8}
!51 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !14, i64 0, !14, i64 4, !6, i64 8}
!52 = !{!"_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}
!53 = !{!"_ZTS8ImVectorIhE", !14, i64 0, !14, i64 4, !6, i64 8}
!54 = !{!"_ZTS6ImPoolI10ImGuiTableE", !55, i64 0, !24, i64 16, !14, i64 32}
!55 = !{!"_ZTS8ImVectorI10ImGuiTableE", !14, i64 0, !14, i64 4, !6, i64 8}
!56 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !14, i64 0, !14, i64 4, !6, i64 8}
!57 = !{!"_ZTS8ImVectorIfE", !14, i64 0, !14, i64 4, !6, i64 8}
!58 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !59, i64 0, !24, i64 16, !14, i64 32}
!59 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !14, i64 0, !14, i64 4, !6, i64 8}
!60 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !14, i64 0, !14, i64 4, !6, i64 8}
!61 = !{!"_ZTS19ImGuiInputTextState", !14, i64 0, !14, i64 4, !14, i64 8, !18, i64 16, !62, i64 32, !62, i64 48, !10, i64 64, !14, i64 68, !16, i64 72, !63, i64 76, !16, i64 3704, !10, i64 3708, !10, i64 3709, !10, i64 3710, !14, i64 3712, !6, i64 3720, !6, i64 3728}
!62 = !{!"_ZTS8ImVectorIcE", !14, i64 0, !14, i64 4, !6, i64 8}
!63 = !{!"_ZTSN5ImStb17STB_TexteditStateE", !14, i64 0, !14, i64 4, !14, i64 8, !7, i64 12, !14, i64 16, !7, i64 20, !7, i64 21, !7, i64 22, !7, i64 23, !7, i64 24, !7, i64 25, !7, i64 26, !16, i64 28, !64, i64 32}
!64 = !{!"_ZTSN5ImStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !17, i64 3582, !17, i64 3584, !14, i64 3588, !14, i64 3592}
!65 = !{!"_ZTS6ImFont", !57, i64 0, !16, i64 16, !16, i64 20, !18, i64 24, !66, i64 40, !6, i64 56, !6, i64 64, !6, i64 72, !17, i64 80, !17, i64 82, !17, i64 84, !10, i64 86, !16, i64 88, !16, i64 92, !16, i64 96, !14, i64 100, !7, i64 104}
!66 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !14, i64 0, !14, i64 4, !6, i64 8}
!67 = !{!"_ZTS15ImGuiTextBuffer", !62, i64 0}
!68 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !14, i64 0, !14, i64 4, !6, i64 8}
!69 = !{!"_ZTS13ImChunkStreamI19ImGuiWindowSettingsE", !62, i64 0}
!70 = !{!"_ZTS13ImChunkStreamI18ImGuiTableSettingsE", !62, i64 0}
!71 = !{!"_ZTS8ImVectorI16ImGuiContextHookE", !14, i64 0, !14, i64 4, !6, i64 8}
!72 = !{!"_ZTS12ImGuiLogType", !7, i64 0}
!73 = !{!"_ZTS18ImGuiMetricsConfig", !10, i64 0, !10, i64 1, !10, i64 2, !10, i64 3, !10, i64 4, !14, i64 8, !14, i64 12}
!74 = !{!12, !6, i64 6888}
!75 = !{!12, !6, i64 6896}
!76 = !{!12, !10, i64 8196}
!77 = !{i8 0, i8 2}
!78 = !{!12, !14, i64 8228}
!79 = !{!12, !14, i64 8200}
!80 = !{!12, !16, i64 6952}
!81 = !{!12, !16, i64 24}
!82 = !{!12, !14, i64 8320}
!83 = !{!12, !14, i64 6944}
!84 = !{!12, !10, i64 320}
!85 = !{}
!86 = !{!12, !10, i64 321}
!87 = !{!12, !10, i64 322}
!88 = !{!12, !14, i64 7020}
!89 = !{!16, !16, i64 0}
!90 = !{!12, !16, i64 148}
!91 = !{!12, !10, i64 7398}
!92 = !{!12, !14, i64 7320}
!93 = !{!12, !10, i64 7399}
!94 = !{!95, !14, i64 84}
!95 = !{!"_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, !15, i64 64, !16, i64 72, !16, i64 76, !14, i64 80, !14, i64 84, !14, i64 88, !15, i64 92, !15, i64 100, !15, i64 108, !15, i64 116, !15, i64 124, !15, i64 132, !10, i64 140, !10, i64 141, !10, i64 142, !10, i64 143, !10, i64 144, !10, i64 145, !10, i64 146, !10, i64 147, !10, i64 148, !10, i64 149, !10, i64 150, !10, i64 151, !7, i64 152, !17, i64 154, !17, i64 156, !17, i64 158, !14, i64 160, !7, i64 164, !7, i64 165, !7, i64 166, !10, i64 167, !14, i64 168, !7, i64 172, !7, i64 173, !7, i64 174, !14, i64 175, !14, i64 176, !14, i64 177, !15, i64 180, !15, i64 188, !34, i64 200, !96, i64 216, !29, i64 520, !29, i64 536, !29, i64 552, !29, i64 568, !29, i64 584, !29, i64 600, !29, i64 616, !100, i64 632, !100, i64 636, !14, i64 640, !16, i64 644, !16, i64 648, !24, i64 656, !101, i64 672, !16, i64 688, !14, i64 692, !6, i64 696, !43, i64 704, !6, i64 904, !6, i64 912, !6, i64 920, !6, i64 928, !6, i64 936, !7, i64 944, !7, i64 952, !14, i64 984, !14, i64 988, !10, i64 992}
!96 = !{!"_ZTS19ImGuiWindowTempData", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !16, i64 56, !16, i64 60, !97, i64 64, !97, i64 68, !97, i64 72, !14, i64 76, !14, i64 80, !29, i64 84, !29, i64 100, !38, i64 116, !14, i64 120, !14, i64 124, !14, i64 128, !10, i64 132, !10, i64 133, !10, i64 134, !15, i64 136, !98, i64 144, !14, i64 180, !14, i64 184, !23, i64 192, !6, i64 208, !6, i64 216, !14, i64 224, !14, i64 228, !14, i64 232, !14, i64 236, !14, i64 240, !14, i64 244, !16, i64 248, !16, i64 252, !57, i64 256, !57, i64 272, !99, i64 288}
!97 = !{!"_ZTS6ImVec1", !16, i64 0}
!98 = !{!"_ZTS16ImGuiMenuColumns", !16, i64 0, !16, i64 4, !16, i64 8, !7, i64 12, !7, i64 24}
!99 = !{!"_ZTS15ImGuiStackSizes", !17, i64 0, !17, i64 2, !17, i64 4, !17, i64 6, !17, i64 8, !17, i64 10, !17, i64 12}
!100 = !{!"_ZTS8ImVec2ih", !17, i64 0, !17, i64 2}
!101 = !{!"_ZTS8ImVectorI15ImGuiOldColumnsE", !14, i64 0, !14, i64 4, !6, i64 8}
!102 = !{!12, !14, i64 7332}
!103 = !{!12, !14, i64 7328}
!104 = !{!12, !27, i64 7016}
!105 = !{!12, !10, i64 6972}
!106 = !{!12, !10, i64 6975}


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