; LLVM IR from PepcyCh/bisemutum-engine :: bisemutum/thirdparty/ImGuizmo/example/imgui.ll (ZN5ImGui13ItemHoverableERK6ImRectj)

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

@GImGui = external dso_local global ptr, align 8

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

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

declare void @_ZN10ImDrawList7AddRectERK6ImVec2S2_jfif(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, float noundef, i32 noundef, float noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui13ClearActiveIDEv() #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5ImGui12SetHoveredIDEj(i32 noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL24IsWindowContentHoverableP11ImGuiWindowi(ptr noundef, i32 noundef) #4

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

15:                                               ; preds = %2
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.ImGuiContext, ptr %16, i32 0, i32 35
  %18 = load i32, ptr %17, align 8, !tbaa !11
  %19 = load i32, ptr %5, align 4, !tbaa !9
  %20 = icmp ne i32 %18, %19
  br i1 %20, label %21, label %27

21:                                               ; preds = %15
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.ImGuiContext, ptr %22, i32 0, i32 37
  %24 = load i8, ptr %23, align 8, !tbaa !73, !range !74, !noundef !75
  %25 = trunc i8 %24 to i1
  br i1 %25, label %27, label %26

26:                                               ; preds = %21
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %140

27:                                               ; preds = %21, %15, %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.ImGuiContext, ptr %28, i32 0, i32 27
  %30 = load ptr, ptr %29, align 8, !tbaa !76
  store ptr %30, ptr %8, align 8, !tbaa !5
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.ImGuiContext, ptr %31, i32 0, i32 28
  %33 = load ptr, ptr %32, align 8, !tbaa !77
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = icmp ne ptr %33, %34
  br i1 %35, label %36, label %37

36:                                               ; preds = %27
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %139

37:                                               ; preds = %27
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.ImGuiContext, ptr %38, i32 0, i32 43
  %40 = load i32, ptr %39, align 4, !tbaa !78
  %41 = icmp ne i32 %40, 0
  br i1 %41, label %42, label %54

42:                                               ; preds = %37
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.ImGuiContext, ptr %43, i32 0, i32 43
  %45 = load i32, ptr %44, align 4, !tbaa !78
  %46 = load i32, ptr %5, align 4, !tbaa !9
  %47 = icmp ne i32 %45, %46
  br i1 %47, label %48, label %54

48:                                               ; preds = %42
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.ImGuiContext, ptr %49, i32 0, i32 47
  %51 = load i8, ptr %50, align 1, !tbaa !79, !range !74, !noundef !75
  %52 = trunc i8 %51 to i1
  br i1 %52, label %54, label %53

53:                                               ; preds = %48
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %139

54:                                               ; preds = %48, %42, %37
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.ImRect, ptr %55, i32 0, i32 0
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.ImRect, ptr %57, i32 0, i32 1
  %59 = call noundef zeroext i1 @_ZN5ImGui19IsMouseHoveringRectERK6ImVec2S2_b(ptr noundef nonnull align 4 dereferenceable(8) %56, ptr noundef nonnull align 4 dereferenceable(8) %58, i1 noundef zeroext true)
  br i1 %59, label %61, label %60

60:                                               ; preds = %54
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %139

61:                                               ; preds = %54
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = call noundef zeroext i1 @_ZL24IsWindowContentHoverableP11ImGuiWindowi(ptr noundef %62, i32 noundef 0)
  br i1 %63, label %67, label %64

64:                                               ; preds = %61
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.ImGuiContext, ptr %65, i32 0, i32 40
  store i8 1, ptr %66, align 1, !tbaa !80
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %139

67:                                               ; preds = %61
  %68 = load i32, ptr %5, align 4, !tbaa !9
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %70, label %72

70:                                               ; preds = %67
  %71 = load i32, ptr %5, align 4, !tbaa !9
  call void @_ZN5ImGui12SetHoveredIDEj(i32 noundef %71)
  br label %72

72:                                               ; preds = %70, %67
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.ImGuiContext, ptr %73, i32 0, i32 67
  %75 = getelementptr inbounds %struct.ImGuiLastItemData, ptr %74, i32 0, i32 0
  %76 = load i32, ptr %75, align 4, !tbaa !81
  %77 = load i32, ptr %5, align 4, !tbaa !9
  %78 = icmp eq i32 %76, %77
  br i1 %78, label %79, label %84

79:                                               ; preds = %72
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.ImGuiContext, ptr %80, i32 0, i32 67
  %82 = getelementptr inbounds %struct.ImGuiLastItemData, ptr %81, i32 0, i32 1
  %83 = load i32, ptr %82, align 4, !tbaa !82
  br label %88

84:                                               ; preds = %72
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.ImGuiContext, ptr %85, i32 0, i32 65
  %87 = load i32, ptr %86, align 4, !tbaa !83
  br label %88

88:                                               ; preds = %84, %79
  %89 = phi i32 [ %83, %79 ], [ %87, %84 ]
  store i32 %89, ptr %9, align 4, !tbaa !9
  %90 = load i32, ptr %9, align 4, !tbaa !9
  %91 = and i32 %90, 4
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %103

93:                                               ; preds = %88
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.ImGuiContext, ptr %94, i32 0, i32 43
  %96 = load i32, ptr %95, align 4, !tbaa !78
  %97 = load i32, ptr %5, align 4, !tbaa !9
  %98 = icmp eq i32 %96, %97
  br i1 %98, label %99, label %100

99:                                               ; preds = %93
  call void @_ZN5ImGui13ClearActiveIDEv()
  br label %100

100:                                              ; preds = %99, %93
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.ImGuiContext, ptr %101, i32 0, i32 40
  store i8 1, ptr %102, align 1, !tbaa !80
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %138

103:                                              ; preds = %88
  %104 = load i32, ptr %5, align 4, !tbaa !9
  %105 = icmp ne i32 %104, 0
  br i1 %105, label %106, label %131

106:                                              ; preds = %103
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.ImGuiContext, ptr %107, i32 0, i32 211
  %109 = load i8, ptr %108, align 8, !tbaa !84, !range !74, !noundef !75
  %110 = trunc i8 %109 to i1
  br i1 %110, label %111, label %123

111:                                              ; preds = %106
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.ImGuiContext, ptr %112, i32 0, i32 36
  %114 = load i32, ptr %113, align 4, !tbaa !85
  %115 = load i32, ptr %5, align 4, !tbaa !9
  %116 = icmp eq i32 %114, %115
  br i1 %116, label %117, label %123

117:                                              ; preds = %111
  %118 = call noundef ptr @_ZN5ImGui21GetForegroundDrawListEv()
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.ImRect, ptr %119, i32 0, i32 0
  %121 = load ptr, ptr %4, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.ImRect, ptr %121, i32 0, i32 1
  call void @_ZN10ImDrawList7AddRectERK6ImVec2S2_jfif(ptr noundef nonnull align 8 dereferenceable(196) %118, ptr noundef nonnull align 4 dereferenceable(8) %120, ptr noundef nonnull align 4 dereferenceable(8) %122, i32 noundef -16711681, float noundef 0.000000e+00, i32 noundef 0, float noundef 1.000000e+00)
  br label %123

123:                                              ; preds = %117, %111, %106
  %124 = load ptr, ptr %6, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.ImGuiContext, ptr %124, i32 0, i32 213
  %126 = load i32, ptr %125, align 4, !tbaa !86
  %127 = load i32, ptr %5, align 4, !tbaa !9
  %128 = icmp eq i32 %126, %127
  br i1 %128, label %129, label %130

129:                                              ; preds = %123
  call void @llvm.debugtrap()
  br label %130

130:                                              ; preds = %129, %123
  br label %131

131:                                              ; preds = %130, %103
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.ImGuiContext, ptr %132, i32 0, i32 97
  %134 = load i8, ptr %133, align 1, !tbaa !87, !range !74, !noundef !75
  %135 = trunc i8 %134 to i1
  br i1 %135, label %136, label %137

136:                                              ; preds = %131
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %138

137:                                              ; preds = %131
  store i1 true, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %138

138:                                              ; preds = %137, %136, %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %139

139:                                              ; preds = %138, %64, %60, %53, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %140

140:                                              ; preds = %139, %26
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %141 = load i1, ptr %3, align 1
  ret i1 %141
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5ImGui19IsMouseHoveringRectERK6ImVec2S2_b(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), i1 noundef zeroext) #5

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

; Function Attrs: nounwind
declare void @llvm.debugtrap() #6

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 16072}
!12 = !{!"_ZTS12ImGuiContext", !13, i64 0, !13, i64 1, !14, i64 8, !19, i64 14272, !19, i64 14288, !20, i64 14304, !6, i64 15352, !16, i64 15360, !16, i64 15364, !21, i64 15368, !23, i64 15880, !10, i64 15888, !10, i64 15892, !10, i64 15896, !13, i64 15900, !13, i64 15901, !13, i64 15902, !13, i64 15903, !13, i64 15904, !6, i64 15912, !24, i64 15920, !24, i64 15936, !24, i64 15952, !25, i64 15968, !26, i64 15984, !10, i64 16000, !15, i64 16004, !6, i64 16016, !6, i64 16024, !6, i64 16032, !6, i64 16040, !6, i64 16048, !15, i64 16056, !16, i64 16064, !10, i64 16068, !10, i64 16072, !10, i64 16076, !13, i64 16080, !13, i64 16081, !13, i64 16082, !13, i64 16083, !16, i64 16084, !16, i64 16088, !10, i64 16092, !10, i64 16096, !16, i64 16100, !13, i64 16104, !13, i64 16105, !13, i64 16106, !13, i64 16107, !13, i64 16108, !13, i64 16109, !15, i64 16112, !6, i64 16120, !28, i64 16128, !10, i64 16132, !10, i64 16136, !13, i64 16140, !13, i64 16141, !6, i64 16144, !10, i64 16152, !16, i64 16156, !10, i64 16160, !29, i64 16164, !10, i64 16184, !10, i64 16188, !30, i64 16192, !31, i64 16212, !33, i64 16272, !34, i64 16384, !35, i64 16400, !36, i64 16416, !37, i64 16432, !38, i64 16448, !39, i64 16464, !40, i64 16480, !40, i64 16496, !10, i64 16512, !41, i64 16520, !6, i64 16536, !10, i64 16544, !10, i64 16548, !10, i64 16552, !10, i64 16556, !10, i64 16560, !10, i64 16564, !10, i64 16568, !10, i64 16572, !10, i64 16576, !10, i64 16580, !10, i64 16584, !10, i64 16588, !28, i64 16592, !42, i64 16596, !13, i64 16600, !13, i64 16601, !13, i64 16602, !13, i64 16603, !13, i64 16604, !13, i64 16605, !13, i64 16606, !10, i64 16608, !32, i64 16612, !13, i64 16628, !13, i64 16629, !13, i64 16630, !10, i64 16632, !10, i64 16636, !10, i64 16640, !10, i64 16644, !10, i64 16648, !10, i64 16652, !32, i64 16656, !32, i64 16672, !10, i64 16688, !10, i64 16692, !10, i64 16696, !43, i64 16704, !43, i64 16752, !43, i64 16800, !43, i64 16848, !6, i64 16896, !6, i64 16904, !6, i64 16912, !16, i64 16920, !16, i64 16924, !13, i64 16928, !15, i64 16932, !15, i64 16940, !16, i64 16948, !10, i64 16952, !13, i64 16956, !13, i64 16957, !13, i64 16958, !10, i64 16960, !10, i64 16964, !10, i64 16968, !44, i64 16976, !32, i64 17040, !10, i64 17056, !10, i64 17060, !16, i64 17064, !10, i64 17068, !10, i64 17072, !10, i64 17076, !10, i64 17080, !45, i64 17088, !7, i64 17104, !10, i64 17120, !46, i64 17128, !6, i64 17144, !10, i64 17152, !47, i64 17160, !48, i64 17176, !50, i64 17216, !51, i64 17232, !6, i64 17248, !52, i64 17256, !54, i64 17296, !55, i64 17312, !10, i64 17328, !10, i64 17332, !16, i64 17336, !16, i64 17340, !15, i64 17344, !56, i64 17352, !60, i64 21072, !10, i64 21184, !10, i64 21188, !16, i64 21192, !16, i64 21196, !10, i64 21200, !22, i64 21204, !62, i64 21220, !16, i64 21268, !16, i64 21272, !13, i64 21276, !13, i64 21277, !16, i64 21280, !16, i64 21284, !16, i64 21288, !16, i64 21292, !17, i64 21296, !17, i64 21298, !57, i64 21304, !37, i64 21320, !63, i64 21336, !63, i64 21352, !7, i64 21368, !13, i64 21369, !16, i64 21372, !64, i64 21376, !65, i64 21392, !66, i64 21408, !67, i64 21424, !68, i64 21440, !10, i64 21456, !13, i64 21460, !69, i64 21464, !6, i64 21472, !64, i64 21480, !6, i64 21496, !6, i64 21504, !16, i64 21512, !13, i64 21516, !10, i64 21520, !10, i64 21524, !10, i64 21528, !10, i64 21532, !64, i64 21536, !13, i64 21552, !7, i64 21553, !10, i64 21556, !70, i64 21560, !71, i64 21576, !7, i64 21616, !10, i64 21856, !10, i64 21860, !16, i64 21864, !10, i64 21868, !10, i64 21872, !10, i64 21876, !57, i64 21880}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTS7ImGuiIO", !10, i64 0, !10, 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, !16, i64 52, !16, i64 56, !16, i64 60, !16, i64 64, !6, i64 72, !6, i64 80, !16, i64 88, !13, i64 92, !6, i64 96, !15, i64 104, !13, i64 112, !13, i64 113, !13, i64 114, !13, i64 115, !13, i64 116, !13, i64 117, !13, i64 118, !13, i64 119, !16, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !13, i64 208, !13, i64 209, !13, i64 210, !13, i64 211, !13, i64 212, !13, i64 213, !13, i64 214, !16, i64 216, !10, i64 220, !10, i64 224, !10, i64 228, !10, i64 232, !10, i64 236, !15, i64 240, !7, i64 248, !7, i64 2856, !7, i64 3508, !15, i64 3572, !7, i64 3580, !16, i64 3588, !16, i64 3592, !13, i64 3596, !13, i64 3597, !13, i64 3598, !13, i64 3599, !10, i64 3600, !7, i64 3604, !13, i64 14036, !15, i64 14040, !7, i64 14048, !7, i64 14088, !7, i64 14128, !7, i64 14133, !7, i64 14138, !7, i64 14148, !7, i64 14158, !7, i64 14163, !7, i64 14168, !7, i64 14176, !7, i64 14196, !7, i64 14216, !16, i64 14236, !13, i64 14240, !13, i64 14241, !7, i64 14242, !13, i64 14243, !17, i64 14244, !18, i64 14248}
!15 = !{!"_ZTS6ImVec2", !16, i64 0, !16, i64 4}
!16 = !{!"float", !7, i64 0}
!17 = !{!"short", !7, i64 0}
!18 = !{!"_ZTS8ImVectorItE", !10, i64 0, !10, i64 4, !6, i64 8}
!19 = !{!"_ZTS8ImVectorI15ImGuiInputEventE", !10, i64 0, !10, i64 4, !6, i64 8}
!20 = !{!"_ZTS10ImGuiStyle", !16, i64 0, !16, i64 4, !15, i64 8, !16, i64 16, !16, i64 20, !15, i64 24, !15, i64 32, !10, i64 40, !16, i64 44, !16, i64 48, !16, i64 52, !16, i64 56, !15, i64 60, !16, i64 68, !16, i64 72, !15, i64 76, !15, i64 84, !15, i64 92, !15, i64 100, !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, !16, i64 144, !10, i64 148, !15, i64 152, !15, i64 160, !15, i64 168, !15, i64 176, !16, i64 184, !13, i64 188, !13, i64 189, !13, i64 190, !16, i64 192, !16, i64 196, !7, i64 200}
!21 = !{!"_ZTS20ImDrawListSharedData", !15, i64 0, !6, i64 8, !16, i64 16, !16, i64 20, !16, i64 24, !22, i64 28, !10, i64 44, !7, i64 48, !16, i64 432, !7, i64 436, !6, i64 504}
!22 = !{!"_ZTS6ImVec4", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12}
!23 = !{!"double", !7, i64 0}
!24 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !10, i64 0, !10, i64 4, !6, i64 8}
!25 = !{!"_ZTS8ImVectorI20ImGuiWindowStackDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!26 = !{!"_ZTS12ImGuiStorage", !27, i64 0}
!27 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !10, i64 0, !10, i64 4, !6, i64 8}
!28 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!29 = !{!"_ZTS10ImBitArrayILi140ELin512EE", !7, i64 0}
!30 = !{!"_ZTS17ImGuiNextItemData", !10, i64 0, !16, i64 4, !10, i64 8, !10, i64 12, !13, i64 16}
!31 = !{!"_ZTS17ImGuiLastItemData", !10, i64 0, !10, i64 4, !10, i64 8, !32, i64 12, !32, i64 28, !32, i64 44}
!32 = !{!"_ZTS6ImRect", !15, i64 0, !15, i64 8}
!33 = !{!"_ZTS19ImGuiNextWindowData", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !13, i64 56, !32, i64 60, !6, i64 80, !6, i64 88, !16, i64 96, !15, i64 100}
!34 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !10, i64 0, !10, i64 4, !6, i64 8}
!35 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !10, i64 0, !10, i64 4, !6, i64 8}
!36 = !{!"_ZTS8ImVectorIP6ImFontE", !10, i64 0, !10, i64 4, !6, i64 8}
!37 = !{!"_ZTS8ImVectorIjE", !10, i64 0, !10, i64 4, !6, i64 8}
!38 = !{!"_ZTS8ImVectorIiE", !10, i64 0, !10, i64 4, !6, i64 8}
!39 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!40 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!41 = !{!"_ZTS8ImVectorIP14ImGuiViewportPE", !10, i64 0, !10, i64 4, !6, i64 8}
!42 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!43 = !{!"_ZTS16ImGuiNavItemData", !6, i64 0, !10, i64 8, !10, i64 12, !32, i64 16, !10, i64 32, !16, i64 36, !16, i64 40, !16, i64 44}
!44 = !{!"_ZTS12ImGuiPayload", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !7, i64 24, !13, i64 57, !13, i64 58}
!45 = !{!"_ZTS8ImVectorIhE", !10, i64 0, !10, i64 4, !6, i64 8}
!46 = !{!"_ZTS8ImVectorI20ImGuiListClipperDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!47 = !{!"_ZTS8ImVectorI18ImGuiTableTempDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!48 = !{!"_ZTS6ImPoolI10ImGuiTableE", !49, i64 0, !26, i64 16, !10, i64 32, !10, i64 36}
!49 = !{!"_ZTS8ImVectorI10ImGuiTableE", !10, i64 0, !10, i64 4, !6, i64 8}
!50 = !{!"_ZTS8ImVectorIfE", !10, i64 0, !10, i64 4, !6, i64 8}
!51 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !10, i64 0, !10, i64 4, !6, i64 8}
!52 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !53, i64 0, !26, i64 16, !10, i64 32, !10, i64 36}
!53 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !10, i64 0, !10, i64 4, !6, i64 8}
!54 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !10, i64 0, !10, i64 4, !6, i64 8}
!55 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !10, i64 0, !10, i64 4, !6, i64 8}
!56 = !{!"_ZTS19ImGuiInputTextState", !10, i64 0, !10, i64 4, !10, i64 8, !18, i64 16, !57, i64 32, !57, i64 48, !13, i64 64, !10, i64 68, !16, i64 72, !58, i64 76, !16, i64 3704, !13, i64 3708, !13, i64 3709, !13, i64 3710, !10, i64 3712}
!57 = !{!"_ZTS8ImVectorIcE", !10, i64 0, !10, i64 4, !6, i64 8}
!58 = !{!"_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, !16, i64 28, !59, i64 32}
!59 = !{!"_ZTSN5ImStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !17, i64 3582, !17, i64 3584, !10, i64 3588, !10, i64 3592}
!60 = !{!"_ZTS6ImFont", !50, i64 0, !16, i64 16, !16, i64 20, !18, i64 24, !61, i64 40, !6, i64 56, !6, i64 64, !6, i64 72, !17, i64 80, !17, i64 82, !17, i64 84, !17, i64 86, !13, i64 88, !16, i64 92, !16, i64 96, !16, i64 100, !10, i64 104, !7, i64 108}
!61 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !10, i64 0, !10, i64 4, !6, i64 8}
!62 = !{!"_ZTS21ImGuiComboPreviewData", !32, i64 0, !15, i64 16, !15, i64 24, !15, i64 32, !16, i64 40, !10, i64 44}
!63 = !{!"_ZTS20ImGuiPlatformImeData", !13, i64 0, !15, i64 4, !16, i64 12}
!64 = !{!"_ZTS15ImGuiTextBuffer", !57, i64 0}
!65 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !10, i64 0, !10, i64 4, !6, i64 8}
!66 = !{!"_ZTS13ImChunkStreamI19ImGuiWindowSettingsE", !57, i64 0}
!67 = !{!"_ZTS13ImChunkStreamI18ImGuiTableSettingsE", !57, i64 0}
!68 = !{!"_ZTS8ImVectorI16ImGuiContextHookE", !10, i64 0, !10, i64 4, !6, i64 8}
!69 = !{!"_ZTS12ImGuiLogType", !7, i64 0}
!70 = !{!"_ZTS18ImGuiMetricsConfig", !13, i64 0, !13, i64 1, !13, i64 2, !13, i64 3, !13, i64 4, !13, i64 5, !13, i64 6, !10, i64 8, !10, i64 12}
!71 = !{!"_ZTS14ImGuiStackTool", !10, i64 0, !10, i64 4, !10, i64 8, !72, i64 16, !13, i64 32, !16, i64 36}
!72 = !{!"_ZTS8ImVectorI19ImGuiStackLevelInfoE", !10, i64 0, !10, i64 4, !6, i64 8}
!73 = !{!12, !13, i64 16080}
!74 = !{i8 0, i8 2}
!75 = !{}
!76 = !{!12, !6, i64 16016}
!77 = !{!12, !6, i64 16024}
!78 = !{!12, !10, i64 16092}
!79 = !{!12, !13, i64 16105}
!80 = !{!12, !13, i64 16083}
!81 = !{!12, !10, i64 16212}
!82 = !{!12, !10, i64 16216}
!83 = !{!12, !10, i64 16188}
!84 = !{!12, !13, i64 21552}
!85 = !{!12, !10, i64 16076}
!86 = !{!12, !10, i64 21556}
!87 = !{!12, !13, i64 16603}


; 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 dso_local local_unnamed_addr global ptr, align 8

declare void @_ZN10ImDrawList7AddRectERK6ImVec2S2_jfif(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, float noundef, i32 noundef, float noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui13ClearActiveIDEv() local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5ImGui12SetHoveredIDEj(i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL24IsWindowContentHoverableP11ImGuiWindowi(ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN5ImGui13ItemHoverableERK6ImRectj(ptr noundef nonnull align 4 dereferenceable(16) %0, i32 noundef %1) local_unnamed_addr #1 {
  %3 = load ptr, ptr @GImGui, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %3, i64 16072
  %5 = load i32, ptr %4, align 8, !tbaa !9
  %.not = icmp eq i32 %5, 0
  %.not39 = icmp eq i32 %5, %1
  %or.cond = or i1 %.not, %.not39
  br i1 %or.cond, label %10, label %6

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %3, i64 16080
  %8 = load i8, ptr %7, align 8, !tbaa !72, !range !73, !noundef !74
  %9 = trunc nuw i8 %8 to i1
  br i1 %9, label %10, label %66

10:                                               ; preds = %6, %2
  %11 = getelementptr inbounds i8, ptr %3, i64 16016
  %12 = load ptr, ptr %11, align 8, !tbaa !75
  %13 = getelementptr inbounds i8, ptr %3, i64 16024
  %14 = load ptr, ptr %13, align 8, !tbaa !76
  %.not40 = icmp eq ptr %14, %12
  br i1 %.not40, label %15, label %66

15:                                               ; preds = %10
  %16 = getelementptr inbounds i8, ptr %3, i64 16092
  %17 = load i32, ptr %16, align 4, !tbaa !77
  %.not41 = icmp eq i32 %17, 0
  %.not42 = icmp eq i32 %17, %1
  %or.cond45 = or i1 %.not41, %.not42
  br i1 %or.cond45, label %22, label %18

18:                                               ; preds = %15
  %19 = getelementptr inbounds i8, ptr %3, i64 16105
  %20 = load i8, ptr %19, align 1, !tbaa !78, !range !73, !noundef !74
  %21 = trunc nuw i8 %20 to i1
  br i1 %21, label %22, label %66

22:                                               ; preds = %18, %15
  %23 = getelementptr inbounds i8, ptr %0, i64 8
  %24 = tail call noundef zeroext i1 @_ZN5ImGui19IsMouseHoveringRectERK6ImVec2S2_b(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef nonnull align 4 dereferenceable(8) %23, i1 noundef zeroext true)
  br i1 %24, label %25, label %66

25:                                               ; preds = %22
  %26 = tail call noundef zeroext i1 @_ZL24IsWindowContentHoverableP11ImGuiWindowi(ptr noundef %12, i32 noundef 0)
  br i1 %26, label %29, label %27

27:                                               ; preds = %25
  %28 = getelementptr inbounds i8, ptr %3, i64 16083
  store i8 1, ptr %28, align 1, !tbaa !79
  br label %66

29:                                               ; preds = %25
  %.not43 = icmp eq i32 %1, 0
  br i1 %.not43, label %30, label %.thread

30:                                               ; preds = %29
  %31 = getelementptr inbounds i8, ptr %3, i64 16212
  %32 = load i32, ptr %31, align 4, !tbaa !80
  %33 = icmp eq i32 %32, 0
  %.in.v = select i1 %33, i64 16216, i64 16188
  %.in = getelementptr inbounds i8, ptr %3, i64 %.in.v
  %34 = load i32, ptr %.in, align 4, !tbaa !81
  %35 = and i32 %34, 4
  %.not44 = icmp eq i32 %35, 0
  br i1 %.not44, label %62, label %41

.thread:                                          ; preds = %29
  tail call void @_ZN5ImGui12SetHoveredIDEj(i32 noundef %1)
  %36 = getelementptr inbounds i8, ptr %3, i64 16212
  %37 = load i32, ptr %36, align 4, !tbaa !80
  %38 = icmp eq i32 %37, %1
  %.in46.v = select i1 %38, i64 16216, i64 16188
  %.in46 = getelementptr inbounds i8, ptr %3, i64 %.in46.v
  %39 = load i32, ptr %.in46, align 4, !tbaa !81
  %40 = and i32 %39, 4
  %.not4447 = icmp eq i32 %40, 0
  br i1 %.not4447, label %47, label %41

41:                                               ; preds = %.thread, %30
  %42 = load i32, ptr %16, align 4, !tbaa !77
  %43 = icmp eq i32 %42, %1
  br i1 %43, label %44, label %45

44:                                               ; preds = %41
  tail call void @_ZN5ImGui13ClearActiveIDEv()
  br label %45

45:                                               ; preds = %44, %41
  %46 = getelementptr inbounds i8, ptr %3, i64 16083
  store i8 1, ptr %46, align 1, !tbaa !79
  br label %66

47:                                               ; preds = %.thread
  %48 = getelementptr inbounds i8, ptr %3, i64 21552
  %49 = load i8, ptr %48, align 8, !tbaa !82, !range !73, !noundef !74
  %50 = trunc nuw i8 %49 to i1
  br i1 %50, label %51, label %57

51:                                               ; preds = %47
  %52 = getelementptr inbounds i8, ptr %3, i64 16076
  %53 = load i32, ptr %52, align 4, !tbaa !83
  %54 = icmp eq i32 %53, %1
  br i1 %54, label %55, label %57

55:                                               ; preds = %51
  %56 = tail call noundef ptr @_ZN5ImGui21GetForegroundDrawListEv()
  tail call void @_ZN10ImDrawList7AddRectERK6ImVec2S2_jfif(ptr noundef nonnull align 8 dereferenceable(196) %56, ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef nonnull align 4 dereferenceable(8) %23, i32 noundef -16711681, float noundef 0.000000e+00, i32 noundef 0, float noundef 1.000000e+00)
  br label %57

57:                                               ; preds = %55, %51, %47
  %58 = getelementptr inbounds i8, ptr %3, i64 21556
  %59 = load i32, ptr %58, align 4, !tbaa !84
  %60 = icmp eq i32 %59, %1
  br i1 %60, label %61, label %62

61:                                               ; preds = %57
  tail call void @llvm.debugtrap()
  br label %62

62:                                               ; preds = %30, %57, %61
  %63 = getelementptr inbounds i8, ptr %3, i64 16603
  %64 = load i8, ptr %63, align 1, !tbaa !85, !range !73, !noundef !74
  %65 = trunc nuw i8 %64 to i1
  %not. = xor i1 %65, true
  br label %66

66:                                               ; preds = %27, %10, %18, %22, %62, %45, %6
  %.2 = phi i1 [ false, %6 ], [ false, %27 ], [ false, %10 ], [ false, %18 ], [ false, %22 ], [ false, %45 ], [ %not., %62 ]
  ret i1 %.2
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5ImGui19IsMouseHoveringRectERK6ImVec2S2_b(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), i1 noundef zeroext) local_unnamed_addr #4

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

; Function Attrs: nounwind
declare void @llvm.debugtrap() #5

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !13, i64 16072}
!10 = !{!"_ZTS12ImGuiContext", !11, i64 0, !11, i64 1, !12, i64 8, !18, i64 14272, !18, i64 14288, !19, i64 14304, !6, i64 15352, !15, i64 15360, !15, i64 15364, !20, i64 15368, !22, i64 15880, !13, i64 15888, !13, i64 15892, !13, i64 15896, !11, i64 15900, !11, i64 15901, !11, i64 15902, !11, i64 15903, !11, i64 15904, !6, i64 15912, !23, i64 15920, !23, i64 15936, !23, i64 15952, !24, i64 15968, !25, i64 15984, !13, i64 16000, !14, i64 16004, !6, i64 16016, !6, i64 16024, !6, i64 16032, !6, i64 16040, !6, i64 16048, !14, i64 16056, !15, i64 16064, !13, i64 16068, !13, i64 16072, !13, i64 16076, !11, i64 16080, !11, i64 16081, !11, i64 16082, !11, i64 16083, !15, i64 16084, !15, i64 16088, !13, i64 16092, !13, i64 16096, !15, i64 16100, !11, i64 16104, !11, i64 16105, !11, i64 16106, !11, i64 16107, !11, i64 16108, !11, i64 16109, !14, i64 16112, !6, i64 16120, !27, i64 16128, !13, i64 16132, !13, i64 16136, !11, i64 16140, !11, i64 16141, !6, i64 16144, !13, i64 16152, !15, i64 16156, !13, i64 16160, !28, i64 16164, !13, i64 16184, !13, i64 16188, !29, i64 16192, !30, i64 16212, !32, i64 16272, !33, i64 16384, !34, i64 16400, !35, i64 16416, !36, i64 16432, !37, i64 16448, !38, i64 16464, !39, i64 16480, !39, i64 16496, !13, i64 16512, !40, i64 16520, !6, i64 16536, !13, i64 16544, !13, i64 16548, !13, i64 16552, !13, i64 16556, !13, i64 16560, !13, i64 16564, !13, i64 16568, !13, i64 16572, !13, i64 16576, !13, i64 16580, !13, i64 16584, !13, i64 16588, !27, i64 16592, !41, i64 16596, !11, i64 16600, !11, i64 16601, !11, i64 16602, !11, i64 16603, !11, i64 16604, !11, i64 16605, !11, i64 16606, !13, i64 16608, !31, i64 16612, !11, i64 16628, !11, i64 16629, !11, i64 16630, !13, i64 16632, !13, i64 16636, !13, i64 16640, !13, i64 16644, !13, i64 16648, !13, i64 16652, !31, i64 16656, !31, i64 16672, !13, i64 16688, !13, i64 16692, !13, i64 16696, !42, i64 16704, !42, i64 16752, !42, i64 16800, !42, i64 16848, !6, i64 16896, !6, i64 16904, !6, i64 16912, !15, i64 16920, !15, i64 16924, !11, i64 16928, !14, i64 16932, !14, i64 16940, !15, i64 16948, !13, i64 16952, !11, i64 16956, !11, i64 16957, !11, i64 16958, !13, i64 16960, !13, i64 16964, !13, i64 16968, !43, i64 16976, !31, i64 17040, !13, i64 17056, !13, i64 17060, !15, i64 17064, !13, i64 17068, !13, i64 17072, !13, i64 17076, !13, i64 17080, !44, i64 17088, !7, i64 17104, !13, i64 17120, !45, i64 17128, !6, i64 17144, !13, i64 17152, !46, i64 17160, !47, i64 17176, !49, i64 17216, !50, i64 17232, !6, i64 17248, !51, i64 17256, !53, i64 17296, !54, i64 17312, !13, i64 17328, !13, i64 17332, !15, i64 17336, !15, i64 17340, !14, i64 17344, !55, i64 17352, !59, i64 21072, !13, i64 21184, !13, i64 21188, !15, i64 21192, !15, i64 21196, !13, i64 21200, !21, i64 21204, !61, i64 21220, !15, i64 21268, !15, i64 21272, !11, i64 21276, !11, i64 21277, !15, i64 21280, !15, i64 21284, !15, i64 21288, !15, i64 21292, !16, i64 21296, !16, i64 21298, !56, i64 21304, !36, i64 21320, !62, i64 21336, !62, i64 21352, !7, i64 21368, !11, i64 21369, !15, i64 21372, !63, i64 21376, !64, i64 21392, !65, i64 21408, !66, i64 21424, !67, i64 21440, !13, i64 21456, !11, i64 21460, !68, i64 21464, !6, i64 21472, !63, i64 21480, !6, i64 21496, !6, i64 21504, !15, i64 21512, !11, i64 21516, !13, i64 21520, !13, i64 21524, !13, i64 21528, !13, i64 21532, !63, i64 21536, !11, i64 21552, !7, i64 21553, !13, i64 21556, !69, i64 21560, !70, i64 21576, !7, i64 21616, !13, i64 21856, !13, i64 21860, !15, i64 21864, !13, i64 21868, !13, i64 21872, !13, i64 21876, !56, i64 21880}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"_ZTS7ImGuiIO", !13, i64 0, !13, i64 4, !14, i64 8, !15, i64 16, !15, i64 20, !6, i64 24, !6, i64 32, !15, i64 40, !15, i64 44, !15, i64 48, !15, i64 52, !15, i64 56, !15, i64 60, !15, i64 64, !6, i64 72, !6, i64 80, !15, i64 88, !11, i64 92, !6, i64 96, !14, i64 104, !11, i64 112, !11, i64 113, !11, i64 114, !11, i64 115, !11, i64 116, !11, i64 117, !11, i64 118, !11, i64 119, !15, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !11, i64 208, !11, i64 209, !11, i64 210, !11, i64 211, !11, i64 212, !11, i64 213, !11, i64 214, !15, i64 216, !13, i64 220, !13, i64 224, !13, i64 228, !13, i64 232, !13, i64 236, !14, i64 240, !7, i64 248, !7, i64 2856, !7, i64 3508, !14, i64 3572, !7, i64 3580, !15, i64 3588, !15, i64 3592, !11, i64 3596, !11, i64 3597, !11, i64 3598, !11, i64 3599, !13, i64 3600, !7, i64 3604, !11, i64 14036, !14, i64 14040, !7, i64 14048, !7, i64 14088, !7, i64 14128, !7, i64 14133, !7, i64 14138, !7, i64 14148, !7, i64 14158, !7, i64 14163, !7, i64 14168, !7, i64 14176, !7, i64 14196, !7, i64 14216, !15, i64 14236, !11, i64 14240, !11, i64 14241, !7, i64 14242, !11, i64 14243, !16, i64 14244, !17, i64 14248}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTS6ImVec2", !15, i64 0, !15, i64 4}
!15 = !{!"float", !7, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = !{!"_ZTS8ImVectorItE", !13, i64 0, !13, i64 4, !6, i64 8}
!18 = !{!"_ZTS8ImVectorI15ImGuiInputEventE", !13, i64 0, !13, i64 4, !6, i64 8}
!19 = !{!"_ZTS10ImGuiStyle", !15, i64 0, !15, i64 4, !14, i64 8, !15, i64 16, !15, i64 20, !14, i64 24, !14, i64 32, !13, i64 40, !15, i64 44, !15, i64 48, !15, i64 52, !15, i64 56, !14, i64 60, !15, i64 68, !15, i64 72, !14, i64 76, !14, i64 84, !14, i64 92, !14, i64 100, !15, i64 108, !15, i64 112, !15, i64 116, !15, i64 120, !15, i64 124, !15, i64 128, !15, i64 132, !15, i64 136, !15, i64 140, !15, i64 144, !13, i64 148, !14, i64 152, !14, i64 160, !14, i64 168, !14, i64 176, !15, i64 184, !11, i64 188, !11, i64 189, !11, i64 190, !15, i64 192, !15, i64 196, !7, i64 200}
!20 = !{!"_ZTS20ImDrawListSharedData", !14, i64 0, !6, i64 8, !15, i64 16, !15, i64 20, !15, i64 24, !21, i64 28, !13, i64 44, !7, i64 48, !15, i64 432, !7, i64 436, !6, i64 504}
!21 = !{!"_ZTS6ImVec4", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!22 = !{!"double", !7, i64 0}
!23 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !13, i64 0, !13, i64 4, !6, i64 8}
!24 = !{!"_ZTS8ImVectorI20ImGuiWindowStackDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!25 = !{!"_ZTS12ImGuiStorage", !26, i64 0}
!26 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !13, i64 0, !13, i64 4, !6, i64 8}
!27 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!28 = !{!"_ZTS10ImBitArrayILi140ELin512EE", !7, i64 0}
!29 = !{!"_ZTS17ImGuiNextItemData", !13, i64 0, !15, i64 4, !13, i64 8, !13, i64 12, !11, i64 16}
!30 = !{!"_ZTS17ImGuiLastItemData", !13, i64 0, !13, i64 4, !13, i64 8, !31, i64 12, !31, i64 28, !31, i64 44}
!31 = !{!"_ZTS6ImRect", !14, i64 0, !14, i64 8}
!32 = !{!"_ZTS19ImGuiNextWindowData", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !11, i64 56, !31, i64 60, !6, i64 80, !6, i64 88, !15, i64 96, !14, i64 100}
!33 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !13, i64 0, !13, i64 4, !6, i64 8}
!34 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !13, i64 0, !13, i64 4, !6, i64 8}
!35 = !{!"_ZTS8ImVectorIP6ImFontE", !13, i64 0, !13, i64 4, !6, i64 8}
!36 = !{!"_ZTS8ImVectorIjE", !13, i64 0, !13, i64 4, !6, i64 8}
!37 = !{!"_ZTS8ImVectorIiE", !13, i64 0, !13, i64 4, !6, i64 8}
!38 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!39 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!40 = !{!"_ZTS8ImVectorIP14ImGuiViewportPE", !13, i64 0, !13, i64 4, !6, i64 8}
!41 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!42 = !{!"_ZTS16ImGuiNavItemData", !6, i64 0, !13, i64 8, !13, i64 12, !31, i64 16, !13, i64 32, !15, i64 36, !15, i64 40, !15, i64 44}
!43 = !{!"_ZTS12ImGuiPayload", !6, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !7, i64 24, !11, i64 57, !11, i64 58}
!44 = !{!"_ZTS8ImVectorIhE", !13, i64 0, !13, i64 4, !6, i64 8}
!45 = !{!"_ZTS8ImVectorI20ImGuiListClipperDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!46 = !{!"_ZTS8ImVectorI18ImGuiTableTempDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!47 = !{!"_ZTS6ImPoolI10ImGuiTableE", !48, i64 0, !25, i64 16, !13, i64 32, !13, i64 36}
!48 = !{!"_ZTS8ImVectorI10ImGuiTableE", !13, i64 0, !13, i64 4, !6, i64 8}
!49 = !{!"_ZTS8ImVectorIfE", !13, i64 0, !13, i64 4, !6, i64 8}
!50 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !13, i64 0, !13, i64 4, !6, i64 8}
!51 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !52, i64 0, !25, i64 16, !13, i64 32, !13, i64 36}
!52 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !13, i64 0, !13, i64 4, !6, i64 8}
!53 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !13, i64 0, !13, i64 4, !6, i64 8}
!54 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !13, i64 0, !13, i64 4, !6, i64 8}
!55 = !{!"_ZTS19ImGuiInputTextState", !13, i64 0, !13, i64 4, !13, i64 8, !17, i64 16, !56, i64 32, !56, i64 48, !11, i64 64, !13, i64 68, !15, i64 72, !57, i64 76, !15, i64 3704, !11, i64 3708, !11, i64 3709, !11, i64 3710, !13, i64 3712}
!56 = !{!"_ZTS8ImVectorIcE", !13, i64 0, !13, i64 4, !6, i64 8}
!57 = !{!"_ZTSN5ImStb17STB_TexteditStateE", !13, i64 0, !13, i64 4, !13, i64 8, !7, i64 12, !13, i64 16, !7, i64 20, !7, i64 21, !7, i64 22, !7, i64 23, !7, i64 24, !7, i64 25, !7, i64 26, !15, i64 28, !58, i64 32}
!58 = !{!"_ZTSN5ImStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !16, i64 3582, !16, i64 3584, !13, i64 3588, !13, i64 3592}
!59 = !{!"_ZTS6ImFont", !49, i64 0, !15, i64 16, !15, i64 20, !17, i64 24, !60, i64 40, !6, i64 56, !6, i64 64, !6, i64 72, !16, i64 80, !16, i64 82, !16, i64 84, !16, i64 86, !11, i64 88, !15, i64 92, !15, i64 96, !15, i64 100, !13, i64 104, !7, i64 108}
!60 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !13, i64 0, !13, i64 4, !6, i64 8}
!61 = !{!"_ZTS21ImGuiComboPreviewData", !31, i64 0, !14, i64 16, !14, i64 24, !14, i64 32, !15, i64 40, !13, i64 44}
!62 = !{!"_ZTS20ImGuiPlatformImeData", !11, i64 0, !14, i64 4, !15, i64 12}
!63 = !{!"_ZTS15ImGuiTextBuffer", !56, i64 0}
!64 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !13, i64 0, !13, i64 4, !6, i64 8}
!65 = !{!"_ZTS13ImChunkStreamI19ImGuiWindowSettingsE", !56, i64 0}
!66 = !{!"_ZTS13ImChunkStreamI18ImGuiTableSettingsE", !56, i64 0}
!67 = !{!"_ZTS8ImVectorI16ImGuiContextHookE", !13, i64 0, !13, i64 4, !6, i64 8}
!68 = !{!"_ZTS12ImGuiLogType", !7, i64 0}
!69 = !{!"_ZTS18ImGuiMetricsConfig", !11, i64 0, !11, i64 1, !11, i64 2, !11, i64 3, !11, i64 4, !11, i64 5, !11, i64 6, !13, i64 8, !13, i64 12}
!70 = !{!"_ZTS14ImGuiStackTool", !13, i64 0, !13, i64 4, !13, i64 8, !71, i64 16, !11, i64 32, !15, i64 36}
!71 = !{!"_ZTS8ImVectorI19ImGuiStackLevelInfoE", !13, i64 0, !13, i64 4, !6, i64 8}
!72 = !{!10, !11, i64 16080}
!73 = !{i8 0, i8 2}
!74 = !{}
!75 = !{!10, !6, i64 16016}
!76 = !{!10, !6, i64 16024}
!77 = !{!10, !13, i64 16092}
!78 = !{!10, !11, i64 16105}
!79 = !{!10, !11, i64 16083}
!80 = !{!10, !13, i64 16212}
!81 = !{!13, !13, i64 0}
!82 = !{!10, !11, i64 21552}
!83 = !{!10, !13, i64 16076}
!84 = !{!10, !13, i64 21556}
!85 = !{!10, !11, i64 16603}


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