; LLVM IR from syby119/CG-projects :: external/imgui/imgui.ll (ZN5ImGui13ItemInputableEP11ImGuiWindowj)

; 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, [6 x i8], %struct.ImGuiIO, %struct.ImGuiStyle, ptr, float, float, %struct.ImDrawListSharedData, double, i32, i32, i32, i8, i8, i8, i8, i8, [7 x i8], ptr, %struct.ImVector.3, %struct.ImVector.3, %struct.ImVector.3, %struct.ImVector.4, %struct.ImGuiStorage, i32, %struct.ImVec2, [4 x i8], 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, i8, i8, i32, i32, i64, %struct.ImVec2, ptr, i32, i32, i32, i8, i8, [2 x i8], ptr, i32, float, i32, %struct.ImGuiNextItemData, %struct.ImGuiLastItemData, [4 x i8], %struct.ImGuiNextWindowData, %struct.ImVector.5, %struct.ImVector.6, %struct.ImVector.7, %struct.ImVector.8, %struct.ImVector.9, %struct.ImVector.10, %struct.ImVector.11, %struct.ImVector.11, %struct.ImVector.12, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, i32, %struct.ImRect, i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, %struct.ImRect, i32, i32, %struct.ImGuiNavItemData, %struct.ImGuiNavItemData, %struct.ImGuiNavItemData, ptr, ptr, ptr, float, float, i8, [7 x i8], ptr, ptr, i32, i32, i8, [3 x i8], float, 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.13, [16 x i8], ptr, i32, [4 x i8], %struct.ImPool, %struct.ImVector.15, %struct.ImVector.16, %struct.ImVector.17, ptr, %struct.ImPool.18, %struct.ImVector.20, %struct.ImVector.21, %struct.ImVec2, %struct.ImGuiInputTextState, %struct.ImFont, i32, i32, float, float, i32, %struct.ImVec4, %struct.ImGuiComboPreviewData, float, i8, i8, [2 x i8], float, float, float, float, i16, i16, float, [4 x i8], %struct.ImVector.2, %struct.ImVector.8, %struct.ImVec2, %struct.ImVec2, i8, i8, [2 x i8], float, %struct.ImGuiTextBuffer, %struct.ImVector.23, %struct.ImChunkStream, %struct.ImChunkStream.24, %struct.ImVector.25, i32, i8, [3 x i8], i32, [4 x i8], ptr, %struct.ImGuiTextBuffer, ptr, ptr, float, i8, [3 x i8], i32, i32, i32, i8, [3 x i8], i32, %struct.ImGuiMetricsConfig, [4 x i8], %struct.ImGuiStackTool, [120 x float], i32, 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], [20 x float], i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, i32, i32, %struct.ImVec2, i8, i32, 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 i8], [5 x float], [5 x float], [5 x %struct.ImVec2], [5 x float], [512 x float], [512 x float], [20 x float], [20 x float], float, i8, i16, %struct.ImVector }
%struct.ImVector = type { i32, i32, ptr }
%struct.ImGuiStyle = type { float, float, %struct.ImVec2, float, float, %struct.ImVec2, %struct.ImVec2, i32, float, float, float, float, %struct.ImVec2, float, float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, float, float, float, float, float, float, float, float, i32, %struct.ImVec2, %struct.ImVec2, %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.3 = type { i32, i32, ptr }
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImGuiStorage = type { %struct.ImVector.0 }
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImGuiNextItemData = type <{ i32, float, i32, i32, i8, [3 x i8] }>
%struct.ImGuiLastItemData = type { i32, i32, i32, %struct.ImRect, %struct.ImRect, %struct.ImRect }
%struct.ImGuiNextWindowData = type <{ i32, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, [3 x i8], %struct.ImRect, [4 x i8], ptr, ptr, float, %struct.ImVec2, [4 x i8] }>
%struct.ImVector.5 = type { i32, i32, ptr }
%struct.ImVector.6 = type { i32, i32, ptr }
%struct.ImVector.7 = 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.ImVector.12 = 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.13 = type { i32, i32, ptr }
%struct.ImPool = type { %struct.ImVector.14, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.14 = type { i32, i32, ptr }
%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.ImGuiInputTextState = type { i32, i32, i32, %struct.ImVector, %struct.ImVector.2, %struct.ImVector.2, 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.16, float, float, %struct.ImVector, %struct.ImVector.22, ptr, ptr, ptr, i16, i16, i16, i16, i8, [3 x i8], float, float, float, i32, [2 x i8], [2 x i8] }>
%struct.ImVector.22 = 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.2 = type { i32, i32, ptr }
%struct.ImVector.8 = type { i32, i32, ptr }
%struct.ImVec2 = type { float, float }
%struct.ImVector.23 = type { i32, i32, ptr }
%struct.ImChunkStream = type { %struct.ImVector.2 }
%struct.ImChunkStream.24 = type { %struct.ImVector.2 }
%struct.ImVector.25 = type { i32, i32, ptr }
%struct.ImGuiTextBuffer = type { %struct.ImVector.2 }
%struct.ImGuiMetricsConfig = type { i8, i8, i8, i8, i8, i8, i32, i32 }
%struct.ImGuiStackTool = type { i32, i32, i32, %struct.ImVector.26 }
%struct.ImVector.26 = type { i32, i32, ptr }
%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, i16, [2 x i8], i32, i8, i8, i8, i8, i32, i8, i8, i8, i8, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVector.8, %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.27, float, i32, ptr, %struct.ImDrawList, ptr, 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, i16, i16, i32, i8, i8, i8, %struct.ImVec2, %struct.ImGuiMenuColumns, i32, i32, %struct.ImVector.3, ptr, ptr, i32, i32, i32, i32, float, float, %struct.ImVector.16, %struct.ImVector.16 }
%struct.ImVec1 = type { float }
%struct.ImGuiMenuColumns = type <{ i32, i32, i16, i16, i16, i16, i16, [4 x i16], [2 x i8] }>
%struct.ImVec2ih = type { i16, i16 }
%struct.ImVector.27 = type { i32, i32, ptr }
%struct.ImDrawList = type <{ %struct.ImVector.28, %struct.ImVector, %struct.ImVector.29, i32, i32, ptr, ptr, ptr, ptr, %struct.ImVector.30, %struct.ImVector.31, %struct.ImVector.32, %struct.ImDrawCmdHeader, %struct.ImDrawListSplitter, float, [4 x i8] }>
%struct.ImVector.28 = type { i32, i32, ptr }
%struct.ImVector.29 = type { i32, i32, ptr }
%struct.ImVector.30 = type { i32, i32, ptr }
%struct.ImVector.31 = type { i32, i32, ptr }
%struct.ImVector.32 = type { i32, i32, ptr }
%struct.ImDrawCmdHeader = type <{ %struct.ImVec4, ptr, i32, [4 x i8] }>
%struct.ImDrawListSplitter = type { i32, i32, %struct.ImVector.17 }

@GImGui = external dso_local global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [35 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui13ItemInputableEP11ImGuiWindowj = external hidden unnamed_addr constant [50 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN5ImGui13ItemInputableEP11ImGuiWindowj(ptr noundef %0, i32 noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  %8 = load ptr, ptr @GImGui, align 8, !tbaa !5
  store ptr %8, ptr %5, align 8, !tbaa !5
  %9 = load i32, ptr %4, align 4, !tbaa !9
  %10 = icmp ne i32 %9, 0
  br i1 %10, label %11, label %18

11:                                               ; preds = %2
  %12 = load i32, ptr %4, align 4, !tbaa !9
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.ImGuiContext, ptr %13, i32 0, i32 71
  %15 = getelementptr inbounds %struct.ImGuiLastItemData, ptr %14, i32 0, i32 0
  %16 = load i32, ptr %15, align 8, !tbaa !11
  %17 = icmp eq i32 %12, %16
  br label %18

18:                                               ; preds = %11, %2
  %19 = phi i1 [ false, %2 ], [ %17, %11 ]
  br i1 %19, label %20, label %21

20:                                               ; preds = %18
  br label %23

21:                                               ; preds = %18
  call void @__assert_fail(ptr noundef @.str.75, ptr noundef @.str.3, i32 noundef 3301, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui13ItemInputableEP11ImGuiWindowj) #4
  unreachable

22:                                               ; No predecessors!
  br label %23

23:                                               ; preds = %22, %20
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #3
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.ImGuiContext, ptr %24, i32 0, i32 71
  %26 = getelementptr inbounds %struct.ImGuiLastItemData, ptr %25, i32 0, i32 1
  %27 = load i32, ptr %26, align 4, !tbaa !70
  %28 = and i32 %27, 5
  %29 = icmp eq i32 %28, 0
  %30 = zext i1 %29 to i8
  store i8 %30, ptr %6, align 1, !tbaa !71
  %31 = load i8, ptr %6, align 1, !tbaa !71, !range !72, !noundef !73
  %32 = trunc i8 %31 to i1
  br i1 %32, label %33, label %52

33:                                               ; preds = %23
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.ImGuiWindow, ptr %34, i32 0, i32 54
  %36 = getelementptr inbounds %struct.ImGuiWindowTempData, ptr %35, i32 0, i32 29
  %37 = load i32, ptr %36, align 4, !tbaa !74
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr %36, align 4, !tbaa !74
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.ImGuiContext, ptr %39, i32 0, i32 84
  %41 = load i32, ptr %40, align 8, !tbaa !89
  %42 = load i32, ptr %4, align 4, !tbaa !9
  %43 = icmp eq i32 %41, %42
  br i1 %43, label %44, label %51

44:                                               ; preds = %33
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.ImGuiWindow, ptr %45, i32 0, i32 54
  %47 = getelementptr inbounds %struct.ImGuiWindowTempData, ptr %46, i32 0, i32 29
  %48 = load i32, ptr %47, align 4, !tbaa !74
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.ImGuiContext, ptr %49, i32 0, i32 99
  store i32 %48, ptr %50, align 4, !tbaa !90
  br label %51

51:                                               ; preds = %44, %33
  br label %52

52:                                               ; preds = %51, %23
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.ImGuiContext, ptr %53, i32 0, i32 44
  %55 = load i32, ptr %54, align 4, !tbaa !91
  %56 = load i32, ptr %4, align 4, !tbaa !9
  %57 = icmp eq i32 %55, %56
  br i1 %57, label %58, label %92

58:                                               ; preds = %52
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.ImGuiContext, ptr %59, i32 0, i32 137
  %61 = load i8, ptr %60, align 8, !tbaa !92, !range !72, !noundef !73
  %62 = trunc i8 %61 to i1
  br i1 %62, label %63, label %92

63:                                               ; preds = %58
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.ImGuiContext, ptr %64, i32 0, i32 134
  %66 = load ptr, ptr %65, align 8, !tbaa !93
  %67 = icmp eq ptr %66, null
  br i1 %67, label %68, label %92

68:                                               ; preds = %63
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.ImGuiContext, ptr %70, i32 0, i32 134
  store ptr %69, ptr %71, align 8, !tbaa !93
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.ImGuiWindow, ptr %72, i32 0, i32 54
  %74 = getelementptr inbounds %struct.ImGuiWindowTempData, ptr %73, i32 0, i32 29
  %75 = load i32, ptr %74, align 4, !tbaa !74
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.ImGuiContext, ptr %76, i32 0, i32 3
  %78 = getelementptr inbounds %struct.ImGuiIO, ptr %77, i32 0, i32 41
  %79 = load i8, ptr %78, align 1, !tbaa !94, !range !72, !noundef !73
  %80 = trunc i8 %79 to i1
  br i1 %80, label %81, label %86

81:                                               ; preds = %68
  %82 = load i8, ptr %6, align 1, !tbaa !71, !range !72, !noundef !73
  %83 = trunc i8 %82 to i1
  %84 = zext i1 %83 to i64
  %85 = select i1 %83, i32 -1, i32 0
  br label %87

86:                                               ; preds = %68
  br label %87

87:                                               ; preds = %86, %81
  %88 = phi i32 [ %85, %81 ], [ 1, %86 ]
  %89 = add nsw i32 %75, %88
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.ImGuiContext, ptr %90, i32 0, i32 136
  store i32 %89, ptr %91, align 4, !tbaa !95
  br label %92

92:                                               ; preds = %87, %63, %58, %52
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.ImGuiContext, ptr %93, i32 0, i32 133
  %95 = load ptr, ptr %94, align 8, !tbaa !96
  %96 = load ptr, ptr %3, align 8, !tbaa !5
  %97 = icmp eq ptr %95, %96
  br i1 %97, label %98, label %127

98:                                               ; preds = %92
  %99 = load i8, ptr %6, align 1, !tbaa !71, !range !72, !noundef !73
  %100 = trunc i8 %99 to i1
  br i1 %100, label %101, label %119

101:                                              ; preds = %98
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.ImGuiWindow, ptr %102, i32 0, i32 54
  %104 = getelementptr inbounds %struct.ImGuiWindowTempData, ptr %103, i32 0, i32 29
  %105 = load i32, ptr %104, align 4, !tbaa !74
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.ImGuiContext, ptr %106, i32 0, i32 135
  %108 = load i32, ptr %107, align 8, !tbaa !97
  %109 = icmp eq i32 %105, %108
  br i1 %109, label %110, label %119

110:                                              ; preds = %101
  %111 = load i32, ptr %4, align 4, !tbaa !9
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.ImGuiContext, ptr %112, i32 0, i32 91
  store i32 %111, ptr %113, align 4, !tbaa !98
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.ImGuiContext, ptr %114, i32 0, i32 71
  %116 = getelementptr inbounds %struct.ImGuiLastItemData, ptr %115, i32 0, i32 2
  %117 = load i32, ptr %116, align 8, !tbaa !99
  %118 = or i32 %117, 256
  store i32 %118, ptr %116, align 8, !tbaa !99
  store i32 1, ptr %7, align 4
  br label %128

119:                                              ; preds = %101, %98
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.ImGuiContext, ptr %120, i32 0, i32 44
  %122 = load i32, ptr %121, align 4, !tbaa !91
  %123 = load i32, ptr %4, align 4, !tbaa !9
  %124 = icmp eq i32 %122, %123
  br i1 %124, label %125, label %126

125:                                              ; preds = %119
  call void @_ZN5ImGui13ClearActiveIDEv()
  br label %126

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

127:                                              ; preds = %126, %92
  store i32 0, ptr %7, align 4
  br label %128

128:                                              ; preds = %127, %110
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  %129 = load i32, ptr %7, align 4
  switch i32 %129, label %131 [
    i32 0, label %130
    i32 1, label %130
  ]

130:                                              ; preds = %128, %128
  ret void

131:                                              ; preds = %128
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { nounwind }
attributes #4 = { 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, !10, i64 7368}
!12 = !{!"_ZTS12ImGuiContext", !13, i64 0, !13, i64 1, !14, i64 8, !19, i64 5472, !6, i64 6520, !16, i64 6528, !16, i64 6532, !20, i64 6536, !22, i64 7048, !10, i64 7056, !10, i64 7060, !10, i64 7064, !13, i64 7068, !13, i64 7069, !13, i64 7070, !13, i64 7071, !13, i64 7072, !6, i64 7080, !23, i64 7088, !23, i64 7104, !23, i64 7120, !24, i64 7136, !25, i64 7152, !10, i64 7168, !15, i64 7172, !6, i64 7184, !6, i64 7192, !6, i64 7200, !6, i64 7208, !6, i64 7216, !15, i64 7224, !16, i64 7232, !10, i64 7236, !10, i64 7240, !10, i64 7244, !13, i64 7248, !13, i64 7249, !13, i64 7250, !13, i64 7251, !16, i64 7252, !16, i64 7256, !10, i64 7260, !10, i64 7264, !16, i64 7268, !13, i64 7272, !13, i64 7273, !13, i64 7274, !13, i64 7275, !13, i64 7276, !13, i64 7277, !13, i64 7278, !10, i64 7280, !10, i64 7284, !27, i64 7288, !15, i64 7296, !6, i64 7304, !28, i64 7312, !10, i64 7316, !10, i64 7320, !13, i64 7324, !13, i64 7325, !6, i64 7328, !10, i64 7336, !16, i64 7340, !10, i64 7344, !29, i64 7348, !30, i64 7368, !32, i64 7432, !33, i64 7544, !34, i64 7560, !35, i64 7576, !36, i64 7592, !37, i64 7608, !38, i64 7624, !39, i64 7640, !39, i64 7656, !40, i64 7672, !6, i64 7688, !10, i64 7696, !10, i64 7700, !10, i64 7704, !10, i64 7708, !10, i64 7712, !10, i64 7716, !10, i64 7720, !10, i64 7724, !10, i64 7728, !10, i64 7732, !10, i64 7736, !10, i64 7740, !10, i64 7744, !28, i64 7748, !41, i64 7752, !10, i64 7756, !13, i64 7760, !13, i64 7761, !13, i64 7762, !13, i64 7763, !13, i64 7764, !13, i64 7765, !13, i64 7766, !10, i64 7768, !31, i64 7772, !13, i64 7788, !13, i64 7789, !13, i64 7790, !10, i64 7792, !10, i64 7796, !10, i64 7800, !10, i64 7804, !10, i64 7808, !10, i64 7812, !31, i64 7816, !10, i64 7832, !10, i64 7836, !42, i64 7840, !42, i64 7888, !42, i64 7936, !6, i64 7984, !6, i64 7992, !6, i64 8000, !16, i64 8008, !16, i64 8012, !13, i64 8016, !6, i64 8024, !6, i64 8032, !10, i64 8040, !10, i64 8044, !13, i64 8048, !16, i64 8052, !10, i64 8056, !13, i64 8060, !13, i64 8061, !13, i64 8062, !10, i64 8064, !10, i64 8068, !10, i64 8072, !43, i64 8080, !31, i64 8144, !10, i64 8160, !10, i64 8164, !16, i64 8168, !10, i64 8172, !10, i64 8176, !10, i64 8180, !10, i64 8184, !44, i64 8192, !7, i64 8208, !6, i64 8224, !10, i64 8232, !45, i64 8240, !47, i64 8280, !48, i64 8296, !49, i64 8312, !6, i64 8328, !50, i64 8336, !52, i64 8376, !53, i64 8392, !15, i64 8408, !54, i64 8416, !58, i64 12152, !10, i64 12264, !10, i64 12268, !16, i64 12272, !16, i64 12276, !10, i64 12280, !21, i64 12284, !60, i64 12300, !16, i64 12348, !13, i64 12352, !13, i64 12353, !16, i64 12356, !16, i64 12360, !16, i64 12364, !16, i64 12368, !17, i64 12372, !17, i64 12374, !16, i64 12376, !55, i64 12384, !36, i64 12400, !15, i64 12416, !15, i64 12424, !7, i64 12432, !13, i64 12433, !16, i64 12436, !61, i64 12440, !62, i64 12456, !63, i64 12472, !64, i64 12488, !65, i64 12504, !10, i64 12520, !13, i64 12524, !66, i64 12528, !6, i64 12536, !61, i64 12544, !6, i64 12560, !6, i64 12568, !16, i64 12576, !13, i64 12580, !10, i64 12584, !10, i64 12588, !10, i64 12592, !13, i64 12596, !10, i64 12600, !67, i64 12604, !68, i64 12624, !7, i64 12656, !10, i64 13136, !10, i64 13140, !16, i64 13144, !10, i64 13148, !10, i64 13152, !10, i64 13156, !7, i64 13160}
!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, !7, i64 52, !16, i64 140, !16, i64 144, !6, i64 152, !6, i64 160, !16, i64 168, !13, i64 172, !6, i64 176, !15, i64 184, !13, i64 192, !13, i64 193, !13, i64 194, !13, i64 195, !13, i64 196, !13, 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, !13, i64 312, !13, i64 313, !13, i64 314, !13, i64 315, !7, i64 316, !7, i64 828, !13, i64 908, !13, i64 909, !13, i64 910, !13, i64 911, !13, i64 912, !13, i64 913, !13, i64 914, !16, i64 916, !10, i64 920, !10, i64 924, !10, i64 928, !10, i64 932, !10, i64 936, !15, i64 940, !13, i64 948, !10, i64 952, !10, i64 956, !15, i64 960, !7, i64 968, !7, i64 1008, !7, i64 1048, !7, i64 1053, !7, i64 1058, !7, i64 1063, !7, i64 1068, !7, i64 1073, !7, i64 1080, !7, i64 1100, !7, i64 1120, !7, i64 1160, !7, i64 1180, !7, i64 3228, !7, i64 5276, !7, i64 5356, !16, i64 5436, !13, i64 5440, !17, i64 5442, !18, i64 5448}
!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 = !{!"_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}
!20 = !{!"_ZTS20ImDrawListSharedData", !15, i64 0, !6, i64 8, !16, i64 16, !16, i64 20, !16, i64 24, !21, i64 28, !10, i64 44, !7, i64 48, !16, i64 432, !7, i64 436, !6, i64 504}
!21 = !{!"_ZTS6ImVec4", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12}
!22 = !{!"double", !7, i64 0}
!23 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !10, i64 0, !10, i64 4, !6, i64 8}
!24 = !{!"_ZTS8ImVectorI20ImGuiWindowStackDataE", !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 = !{!"_ZTS17ImGuiNextItemData", !10, i64 0, !16, i64 4, !10, i64 8, !10, i64 12, !13, i64 16}
!30 = !{!"_ZTS17ImGuiLastItemData", !10, i64 0, !10, i64 4, !10, i64 8, !31, i64 12, !31, i64 28, !31, i64 44}
!31 = !{!"_ZTS6ImRect", !15, i64 0, !15, i64 8}
!32 = !{!"_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, !31, i64 60, !6, i64 80, !6, i64 88, !16, i64 96, !15, i64 100}
!33 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !10, i64 0, !10, i64 4, !6, i64 8}
!34 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !10, i64 0, !10, i64 4, !6, i64 8}
!35 = !{!"_ZTS8ImVectorIP6ImFontE", !10, i64 0, !10, i64 4, !6, i64 8}
!36 = !{!"_ZTS8ImVectorIjE", !10, i64 0, !10, i64 4, !6, i64 8}
!37 = !{!"_ZTS8ImVectorIiE", !10, i64 0, !10, i64 4, !6, i64 8}
!38 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!39 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!40 = !{!"_ZTS8ImVectorIP14ImGuiViewportPE", !10, i64 0, !10, i64 4, !6, i64 8}
!41 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!42 = !{!"_ZTS16ImGuiNavItemData", !6, i64 0, !10, i64 8, !10, i64 12, !31, i64 16, !10, i64 32, !16, i64 36, !16, i64 40, !16, i64 44}
!43 = !{!"_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}
!44 = !{!"_ZTS8ImVectorIhE", !10, i64 0, !10, i64 4, !6, i64 8}
!45 = !{!"_ZTS6ImPoolI10ImGuiTableE", !46, i64 0, !25, i64 16, !10, i64 32, !10, i64 36}
!46 = !{!"_ZTS8ImVectorI10ImGuiTableE", !10, i64 0, !10, i64 4, !6, i64 8}
!47 = !{!"_ZTS8ImVectorI18ImGuiTableTempDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!48 = !{!"_ZTS8ImVectorIfE", !10, i64 0, !10, i64 4, !6, i64 8}
!49 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !10, i64 0, !10, i64 4, !6, i64 8}
!50 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !51, i64 0, !25, i64 16, !10, i64 32, !10, i64 36}
!51 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !10, i64 0, !10, i64 4, !6, i64 8}
!52 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !10, i64 0, !10, i64 4, !6, i64 8}
!53 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !10, i64 0, !10, i64 4, !6, i64 8}
!54 = !{!"_ZTS19ImGuiInputTextState", !10, i64 0, !10, i64 4, !10, i64 8, !18, i64 16, !55, i64 32, !55, i64 48, !13, i64 64, !10, i64 68, !16, i64 72, !56, i64 76, !16, i64 3704, !13, i64 3708, !13, i64 3709, !13, i64 3710, !10, i64 3712, !6, i64 3720, !6, i64 3728}
!55 = !{!"_ZTS8ImVectorIcE", !10, i64 0, !10, i64 4, !6, i64 8}
!56 = !{!"_ZTSN5ImStb17STB_TexteditStateE", !10, i64 0, !10, i64 4, !10, i64 8, !7, i64 12, !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, !57, i64 32}
!57 = !{!"_ZTSN5ImStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !17, i64 3582, !17, i64 3584, !10, i64 3588, !10, i64 3592}
!58 = !{!"_ZTS6ImFont", !48, i64 0, !16, i64 16, !16, i64 20, !18, i64 24, !59, 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}
!59 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !10, i64 0, !10, i64 4, !6, i64 8}
!60 = !{!"_ZTS21ImGuiComboPreviewData", !31, i64 0, !15, i64 16, !15, i64 24, !15, i64 32, !16, i64 40, !10, i64 44}
!61 = !{!"_ZTS15ImGuiTextBuffer", !55, i64 0}
!62 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !10, i64 0, !10, i64 4, !6, i64 8}
!63 = !{!"_ZTS13ImChunkStreamI19ImGuiWindowSettingsE", !55, i64 0}
!64 = !{!"_ZTS13ImChunkStreamI18ImGuiTableSettingsE", !55, i64 0}
!65 = !{!"_ZTS8ImVectorI16ImGuiContextHookE", !10, i64 0, !10, i64 4, !6, i64 8}
!66 = !{!"_ZTS12ImGuiLogType", !7, i64 0}
!67 = !{!"_ZTS18ImGuiMetricsConfig", !13, i64 0, !13, i64 1, !13, i64 2, !13, i64 3, !13, i64 4, !13, i64 5, !10, i64 8, !10, i64 12}
!68 = !{!"_ZTS14ImGuiStackTool", !10, i64 0, !10, i64 4, !10, i64 8, !69, i64 16}
!69 = !{!"_ZTS8ImVectorI19ImGuiStackLevelInfoE", !10, i64 0, !10, i64 4, !6, i64 8}
!70 = !{!12, !10, i64 7372}
!71 = !{!13, !13, i64 0}
!72 = !{i8 0, i8 2}
!73 = !{}
!74 = !{!75, !10, i64 396}
!75 = !{!"_ZTS11ImGuiWindow", !6, i64 0, !10, i64 8, !10, 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, !10, i64 80, !10, i64 84, !10, i64 88, !15, i64 92, !15, i64 100, !15, i64 108, !15, i64 116, !15, i64 124, !15, i64 132, !13, i64 140, !13, i64 141, !13, i64 142, !13, i64 143, !13, i64 144, !13, i64 145, !13, i64 146, !13, i64 147, !13, i64 148, !13, i64 149, !13, i64 150, !13, i64 151, !7, i64 152, !17, i64 154, !17, i64 156, !17, i64 158, !17, i64 160, !10, i64 164, !7, i64 168, !7, i64 169, !7, i64 170, !13, i64 171, !10, i64 172, !7, i64 176, !7, i64 177, !7, i64 178, !7, i64 179, !10, i64 180, !10, i64 181, !10, i64 182, !15, i64 184, !15, i64 192, !36, i64 200, !76, i64 216, !31, i64 440, !31, i64 456, !31, i64 472, !31, i64 488, !31, i64 504, !31, i64 520, !31, i64 536, !79, i64 552, !79, i64 556, !10, i64 560, !16, i64 564, !16, i64 568, !25, i64 576, !80, i64 592, !16, i64 608, !10, i64 612, !6, i64 616, !81, i64 624, !6, i64 824, !6, i64 832, !6, i64 840, !6, i64 848, !6, i64 856, !6, i64 864, !7, i64 872, !7, i64 880, !10, i64 912, !10, i64 916, !13, i64 920}
!76 = !{!"_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, !77, i64 64, !77, i64 68, !77, i64 72, !41, i64 76, !17, i64 80, !17, i64 82, !10, i64 84, !13, i64 88, !13, i64 89, !13, i64 90, !15, i64 92, !78, i64 100, !10, i64 128, !10, i64 132, !23, i64 136, !6, i64 152, !6, i64 160, !10, i64 168, !10, i64 172, !10, i64 176, !10, i64 180, !16, i64 184, !16, i64 188, !48, i64 192, !48, i64 208}
!77 = !{!"_ZTS6ImVec1", !16, i64 0}
!78 = !{!"_ZTS16ImGuiMenuColumns", !10, i64 0, !10, i64 4, !17, i64 8, !17, i64 10, !17, i64 12, !17, i64 14, !17, i64 16, !7, i64 18}
!79 = !{!"_ZTS8ImVec2ih", !17, i64 0, !17, i64 2}
!80 = !{!"_ZTS8ImVectorI15ImGuiOldColumnsE", !10, i64 0, !10, i64 4, !6, i64 8}
!81 = !{!"_ZTS10ImDrawList", !82, i64 0, !18, i64 16, !83, i64 32, !10, i64 48, !10, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !84, i64 88, !85, i64 104, !86, i64 120, !87, i64 136, !88, i64 168, !16, i64 192}
!82 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !10, i64 0, !10, i64 4, !6, i64 8}
!83 = !{!"_ZTS8ImVectorI10ImDrawVertE", !10, i64 0, !10, i64 4, !6, i64 8}
!84 = !{!"_ZTS8ImVectorI6ImVec4E", !10, i64 0, !10, i64 4, !6, i64 8}
!85 = !{!"_ZTS8ImVectorIPvE", !10, i64 0, !10, i64 4, !6, i64 8}
!86 = !{!"_ZTS8ImVectorI6ImVec2E", !10, i64 0, !10, i64 4, !6, i64 8}
!87 = !{!"_ZTS15ImDrawCmdHeader", !21, i64 0, !6, i64 16, !10, i64 24}
!88 = !{!"_ZTS18ImDrawListSplitter", !10, i64 0, !10, i64 4, !49, i64 8}
!89 = !{!12, !10, i64 7696}
!90 = !{!12, !10, i64 7756}
!91 = !{!12, !10, i64 7260}
!92 = !{!12, !13, i64 8048}
!93 = !{!12, !6, i64 8032}
!94 = !{!12, !13, i64 321}
!95 = !{!12, !10, i64 8044}
!96 = !{!12, !6, i64 8024}
!97 = !{!12, !10, i64 8040}
!98 = !{!12, !10, i64 7724}
!99 = !{!12, !10, i64 7376}


; 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
@.str.3 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [35 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui13ItemInputableEP11ImGuiWindowj = external hidden unnamed_addr constant [50 x i8], align 1

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN5ImGui13ItemInputableEP11ImGuiWindowj(ptr noundef %0, i32 noundef %1) local_unnamed_addr #1 {
  %3 = load ptr, ptr @GImGui, align 8, !tbaa !5
  %.not = icmp eq i32 %1, 0
  br i1 %.not, label %.critedge, label %4

4:                                                ; preds = %2
  %5 = getelementptr inbounds i8, ptr %3, i64 7368
  %6 = load i32, ptr %5, align 8, !tbaa !9
  %7 = icmp eq i32 %6, %1
  br i1 %7, label %8, label %.critedge

.critedge:                                        ; preds = %2, %4
  tail call void @__assert_fail(ptr noundef nonnull @.str.75, ptr noundef nonnull @.str.3, i32 noundef 3301, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui13ItemInputableEP11ImGuiWindowj) #2
  unreachable

8:                                                ; preds = %4
  %9 = getelementptr inbounds i8, ptr %3, i64 7372
  %10 = load i32, ptr %9, align 4, !tbaa !69
  %11 = and i32 %10, 5
  %12 = icmp eq i32 %11, 0
  br i1 %12, label %13, label %22

13:                                               ; preds = %8
  %14 = getelementptr inbounds i8, ptr %0, i64 396
  %15 = load i32, ptr %14, align 4, !tbaa !70
  %16 = add nsw i32 %15, 1
  store i32 %16, ptr %14, align 4, !tbaa !70
  %17 = getelementptr inbounds i8, ptr %3, i64 7696
  %18 = load i32, ptr %17, align 8, !tbaa !85
  %19 = icmp eq i32 %18, %1
  br i1 %19, label %20, label %22

20:                                               ; preds = %13
  %21 = getelementptr inbounds i8, ptr %3, i64 7756
  store i32 %16, ptr %21, align 4, !tbaa !86
  br label %22

22:                                               ; preds = %13, %20, %8
  %23 = getelementptr inbounds i8, ptr %3, i64 7260
  %24 = load i32, ptr %23, align 4, !tbaa !87
  %25 = icmp eq i32 %24, %1
  br i1 %25, label %26, label %43

26:                                               ; preds = %22
  %27 = getelementptr inbounds i8, ptr %3, i64 8048
  %28 = load i8, ptr %27, align 8, !tbaa !88, !range !89, !noundef !90
  %29 = trunc nuw i8 %28 to i1
  br i1 %29, label %30, label %43

30:                                               ; preds = %26
  %31 = getelementptr inbounds i8, ptr %3, i64 8032
  %32 = load ptr, ptr %31, align 8, !tbaa !91
  %33 = icmp eq ptr %32, null
  br i1 %33, label %34, label %43

34:                                               ; preds = %30
  store ptr %0, ptr %31, align 8, !tbaa !91
  %35 = getelementptr inbounds i8, ptr %0, i64 396
  %36 = load i32, ptr %35, align 4, !tbaa !70
  %37 = getelementptr inbounds i8, ptr %3, i64 321
  %38 = load i8, ptr %37, align 1, !tbaa !92, !range !89, !noundef !90
  %39 = trunc nuw i8 %38 to i1
  %40 = sext i1 %12 to i32
  %spec.select = select i1 %39, i32 %40, i32 1
  %41 = add nsw i32 %spec.select, %36
  %42 = getelementptr inbounds i8, ptr %3, i64 8044
  store i32 %41, ptr %42, align 4, !tbaa !93
  br label %43

43:                                               ; preds = %34, %30, %26, %22
  %44 = getelementptr inbounds i8, ptr %3, i64 8024
  %45 = load ptr, ptr %44, align 8, !tbaa !94
  %46 = icmp eq ptr %45, %0
  br i1 %46, label %47, label %61

47:                                               ; preds = %43
  br i1 %12, label %48, label %59

48:                                               ; preds = %47
  %49 = getelementptr inbounds i8, ptr %0, i64 396
  %50 = load i32, ptr %49, align 4, !tbaa !70
  %51 = getelementptr inbounds i8, ptr %3, i64 8040
  %52 = load i32, ptr %51, align 8, !tbaa !95
  %53 = icmp eq i32 %50, %52
  br i1 %53, label %54, label %59

54:                                               ; preds = %48
  %55 = getelementptr inbounds i8, ptr %3, i64 7724
  store i32 %1, ptr %55, align 4, !tbaa !96
  %56 = getelementptr inbounds i8, ptr %3, i64 7376
  %57 = load i32, ptr %56, align 8, !tbaa !97
  %58 = or i32 %57, 256
  store i32 %58, ptr %56, align 8, !tbaa !97
  br label %61

59:                                               ; preds = %48, %47
  br i1 %25, label %60, label %61

60:                                               ; preds = %59
  tail call void @_ZN5ImGui13ClearActiveIDEv()
  br label %61

61:                                               ; preds = %43, %60, %59, %54
  ret void
}

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

!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 7368}
!10 = !{!"_ZTS12ImGuiContext", !11, i64 0, !11, i64 1, !12, i64 8, !18, i64 5472, !6, i64 6520, !15, i64 6528, !15, i64 6532, !19, i64 6536, !21, i64 7048, !13, i64 7056, !13, i64 7060, !13, i64 7064, !11, i64 7068, !11, i64 7069, !11, i64 7070, !11, i64 7071, !11, i64 7072, !6, i64 7080, !22, i64 7088, !22, i64 7104, !22, i64 7120, !23, i64 7136, !24, i64 7152, !13, i64 7168, !14, i64 7172, !6, i64 7184, !6, i64 7192, !6, i64 7200, !6, i64 7208, !6, i64 7216, !14, i64 7224, !15, i64 7232, !13, i64 7236, !13, i64 7240, !13, i64 7244, !11, i64 7248, !11, i64 7249, !11, i64 7250, !11, i64 7251, !15, i64 7252, !15, i64 7256, !13, i64 7260, !13, i64 7264, !15, i64 7268, !11, i64 7272, !11, i64 7273, !11, i64 7274, !11, i64 7275, !11, i64 7276, !11, i64 7277, !11, i64 7278, !13, i64 7280, !13, i64 7284, !26, i64 7288, !14, i64 7296, !6, i64 7304, !27, i64 7312, !13, i64 7316, !13, i64 7320, !11, i64 7324, !11, i64 7325, !6, i64 7328, !13, i64 7336, !15, i64 7340, !13, i64 7344, !28, i64 7348, !29, i64 7368, !31, i64 7432, !32, i64 7544, !33, i64 7560, !34, i64 7576, !35, i64 7592, !36, i64 7608, !37, i64 7624, !38, i64 7640, !38, i64 7656, !39, i64 7672, !6, i64 7688, !13, i64 7696, !13, i64 7700, !13, i64 7704, !13, i64 7708, !13, i64 7712, !13, i64 7716, !13, i64 7720, !13, i64 7724, !13, i64 7728, !13, i64 7732, !13, i64 7736, !13, i64 7740, !13, i64 7744, !27, i64 7748, !40, i64 7752, !13, i64 7756, !11, i64 7760, !11, i64 7761, !11, i64 7762, !11, i64 7763, !11, i64 7764, !11, i64 7765, !11, i64 7766, !13, i64 7768, !30, i64 7772, !11, i64 7788, !11, i64 7789, !11, i64 7790, !13, i64 7792, !13, i64 7796, !13, i64 7800, !13, i64 7804, !13, i64 7808, !13, i64 7812, !30, i64 7816, !13, i64 7832, !13, i64 7836, !41, i64 7840, !41, i64 7888, !41, i64 7936, !6, i64 7984, !6, i64 7992, !6, i64 8000, !15, i64 8008, !15, i64 8012, !11, i64 8016, !6, i64 8024, !6, i64 8032, !13, i64 8040, !13, i64 8044, !11, i64 8048, !15, i64 8052, !13, i64 8056, !11, i64 8060, !11, i64 8061, !11, i64 8062, !13, i64 8064, !13, i64 8068, !13, i64 8072, !42, i64 8080, !30, i64 8144, !13, i64 8160, !13, i64 8164, !15, i64 8168, !13, i64 8172, !13, i64 8176, !13, i64 8180, !13, i64 8184, !43, i64 8192, !7, i64 8208, !6, i64 8224, !13, i64 8232, !44, i64 8240, !46, i64 8280, !47, i64 8296, !48, i64 8312, !6, i64 8328, !49, i64 8336, !51, i64 8376, !52, i64 8392, !14, i64 8408, !53, i64 8416, !57, i64 12152, !13, i64 12264, !13, i64 12268, !15, i64 12272, !15, i64 12276, !13, i64 12280, !20, i64 12284, !59, i64 12300, !15, i64 12348, !11, i64 12352, !11, i64 12353, !15, i64 12356, !15, i64 12360, !15, i64 12364, !15, i64 12368, !16, i64 12372, !16, i64 12374, !15, i64 12376, !54, i64 12384, !35, i64 12400, !14, i64 12416, !14, i64 12424, !7, i64 12432, !11, i64 12433, !15, i64 12436, !60, i64 12440, !61, i64 12456, !62, i64 12472, !63, i64 12488, !64, i64 12504, !13, i64 12520, !11, i64 12524, !65, i64 12528, !6, i64 12536, !60, i64 12544, !6, i64 12560, !6, i64 12568, !15, i64 12576, !11, i64 12580, !13, i64 12584, !13, i64 12588, !13, i64 12592, !11, i64 12596, !13, i64 12600, !66, i64 12604, !67, i64 12624, !7, i64 12656, !13, i64 13136, !13, i64 13140, !15, i64 13144, !13, i64 13148, !13, i64 13152, !13, i64 13156, !7, i64 13160}
!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, !7, i64 52, !15, i64 140, !15, i64 144, !6, i64 152, !6, i64 160, !15, i64 168, !11, i64 172, !6, i64 176, !14, i64 184, !11, i64 192, !11, i64 193, !11, i64 194, !11, i64 195, !11, i64 196, !11, i64 197, !15, 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, !14, i64 288, !7, i64 296, !15, i64 304, !15, i64 308, !11, i64 312, !11, i64 313, !11, i64 314, !11, i64 315, !7, i64 316, !7, i64 828, !11, i64 908, !11, i64 909, !11, i64 910, !11, i64 911, !11, i64 912, !11, i64 913, !11, i64 914, !15, i64 916, !13, i64 920, !13, i64 924, !13, i64 928, !13, i64 932, !13, i64 936, !14, i64 940, !11, i64 948, !13, i64 952, !13, i64 956, !14, i64 960, !7, i64 968, !7, i64 1008, !7, i64 1048, !7, i64 1053, !7, i64 1058, !7, i64 1063, !7, i64 1068, !7, i64 1073, !7, i64 1080, !7, i64 1100, !7, i64 1120, !7, i64 1160, !7, i64 1180, !7, i64 3228, !7, i64 5276, !7, i64 5356, !15, i64 5436, !11, i64 5440, !16, i64 5442, !17, i64 5448}
!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 = !{!"_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}
!19 = !{!"_ZTS20ImDrawListSharedData", !14, i64 0, !6, i64 8, !15, i64 16, !15, i64 20, !15, i64 24, !20, i64 28, !13, i64 44, !7, i64 48, !15, i64 432, !7, i64 436, !6, i64 504}
!20 = !{!"_ZTS6ImVec4", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!21 = !{!"double", !7, i64 0}
!22 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !13, i64 0, !13, i64 4, !6, i64 8}
!23 = !{!"_ZTS8ImVectorI20ImGuiWindowStackDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!24 = !{!"_ZTS12ImGuiStorage", !25, i64 0}
!25 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !13, i64 0, !13, i64 4, !6, i64 8}
!26 = !{!"long long", !7, i64 0}
!27 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!28 = !{!"_ZTS17ImGuiNextItemData", !13, i64 0, !15, i64 4, !13, i64 8, !13, i64 12, !11, i64 16}
!29 = !{!"_ZTS17ImGuiLastItemData", !13, i64 0, !13, i64 4, !13, i64 8, !30, i64 12, !30, i64 28, !30, i64 44}
!30 = !{!"_ZTS6ImRect", !14, i64 0, !14, i64 8}
!31 = !{!"_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, !30, i64 60, !6, i64 80, !6, i64 88, !15, i64 96, !14, i64 100}
!32 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !13, i64 0, !13, i64 4, !6, i64 8}
!33 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !13, i64 0, !13, i64 4, !6, i64 8}
!34 = !{!"_ZTS8ImVectorIP6ImFontE", !13, i64 0, !13, i64 4, !6, i64 8}
!35 = !{!"_ZTS8ImVectorIjE", !13, i64 0, !13, i64 4, !6, i64 8}
!36 = !{!"_ZTS8ImVectorIiE", !13, i64 0, !13, i64 4, !6, i64 8}
!37 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!38 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!39 = !{!"_ZTS8ImVectorIP14ImGuiViewportPE", !13, i64 0, !13, i64 4, !6, i64 8}
!40 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!41 = !{!"_ZTS16ImGuiNavItemData", !6, i64 0, !13, i64 8, !13, i64 12, !30, i64 16, !13, i64 32, !15, i64 36, !15, i64 40, !15, i64 44}
!42 = !{!"_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}
!43 = !{!"_ZTS8ImVectorIhE", !13, i64 0, !13, i64 4, !6, i64 8}
!44 = !{!"_ZTS6ImPoolI10ImGuiTableE", !45, i64 0, !24, i64 16, !13, i64 32, !13, i64 36}
!45 = !{!"_ZTS8ImVectorI10ImGuiTableE", !13, i64 0, !13, i64 4, !6, i64 8}
!46 = !{!"_ZTS8ImVectorI18ImGuiTableTempDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!47 = !{!"_ZTS8ImVectorIfE", !13, i64 0, !13, i64 4, !6, i64 8}
!48 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !13, i64 0, !13, i64 4, !6, i64 8}
!49 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !50, i64 0, !24, i64 16, !13, i64 32, !13, i64 36}
!50 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !13, i64 0, !13, i64 4, !6, i64 8}
!51 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !13, i64 0, !13, i64 4, !6, i64 8}
!52 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !13, i64 0, !13, i64 4, !6, i64 8}
!53 = !{!"_ZTS19ImGuiInputTextState", !13, i64 0, !13, i64 4, !13, i64 8, !17, i64 16, !54, i64 32, !54, i64 48, !11, i64 64, !13, i64 68, !15, i64 72, !55, i64 76, !15, i64 3704, !11, i64 3708, !11, i64 3709, !11, i64 3710, !13, i64 3712, !6, i64 3720, !6, i64 3728}
!54 = !{!"_ZTS8ImVectorIcE", !13, i64 0, !13, i64 4, !6, i64 8}
!55 = !{!"_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, !56, i64 32}
!56 = !{!"_ZTSN5ImStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !16, i64 3582, !16, i64 3584, !13, i64 3588, !13, i64 3592}
!57 = !{!"_ZTS6ImFont", !47, i64 0, !15, i64 16, !15, i64 20, !17, i64 24, !58, 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}
!58 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !13, i64 0, !13, i64 4, !6, i64 8}
!59 = !{!"_ZTS21ImGuiComboPreviewData", !30, i64 0, !14, i64 16, !14, i64 24, !14, i64 32, !15, i64 40, !13, i64 44}
!60 = !{!"_ZTS15ImGuiTextBuffer", !54, i64 0}
!61 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !13, i64 0, !13, i64 4, !6, i64 8}
!62 = !{!"_ZTS13ImChunkStreamI19ImGuiWindowSettingsE", !54, i64 0}
!63 = !{!"_ZTS13ImChunkStreamI18ImGuiTableSettingsE", !54, i64 0}
!64 = !{!"_ZTS8ImVectorI16ImGuiContextHookE", !13, i64 0, !13, i64 4, !6, i64 8}
!65 = !{!"_ZTS12ImGuiLogType", !7, i64 0}
!66 = !{!"_ZTS18ImGuiMetricsConfig", !11, i64 0, !11, i64 1, !11, i64 2, !11, i64 3, !11, i64 4, !11, i64 5, !13, i64 8, !13, i64 12}
!67 = !{!"_ZTS14ImGuiStackTool", !13, i64 0, !13, i64 4, !13, i64 8, !68, i64 16}
!68 = !{!"_ZTS8ImVectorI19ImGuiStackLevelInfoE", !13, i64 0, !13, i64 4, !6, i64 8}
!69 = !{!10, !13, i64 7372}
!70 = !{!71, !13, i64 396}
!71 = !{!"_ZTS11ImGuiWindow", !6, i64 0, !13, i64 8, !13, i64 12, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !15, i64 72, !15, i64 76, !13, i64 80, !13, i64 84, !13, i64 88, !14, i64 92, !14, i64 100, !14, i64 108, !14, i64 116, !14, i64 124, !14, i64 132, !11, i64 140, !11, i64 141, !11, i64 142, !11, i64 143, !11, i64 144, !11, i64 145, !11, i64 146, !11, i64 147, !11, i64 148, !11, i64 149, !11, i64 150, !11, i64 151, !7, i64 152, !16, i64 154, !16, i64 156, !16, i64 158, !16, i64 160, !13, i64 164, !7, i64 168, !7, i64 169, !7, i64 170, !11, i64 171, !13, i64 172, !7, i64 176, !7, i64 177, !7, i64 178, !7, i64 179, !13, i64 180, !13, i64 181, !13, i64 182, !14, i64 184, !14, i64 192, !35, i64 200, !72, i64 216, !30, i64 440, !30, i64 456, !30, i64 472, !30, i64 488, !30, i64 504, !30, i64 520, !30, i64 536, !75, i64 552, !75, i64 556, !13, i64 560, !15, i64 564, !15, i64 568, !24, i64 576, !76, i64 592, !15, i64 608, !13, i64 612, !6, i64 616, !77, i64 624, !6, i64 824, !6, i64 832, !6, i64 840, !6, i64 848, !6, i64 856, !6, i64 864, !7, i64 872, !7, i64 880, !13, i64 912, !13, i64 916, !11, i64 920}
!72 = !{!"_ZTS19ImGuiWindowTempData", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !15, i64 56, !15, i64 60, !73, i64 64, !73, i64 68, !73, i64 72, !40, i64 76, !16, i64 80, !16, i64 82, !13, i64 84, !11, i64 88, !11, i64 89, !11, i64 90, !14, i64 92, !74, i64 100, !13, i64 128, !13, i64 132, !22, i64 136, !6, i64 152, !6, i64 160, !13, i64 168, !13, i64 172, !13, i64 176, !13, i64 180, !15, i64 184, !15, i64 188, !47, i64 192, !47, i64 208}
!73 = !{!"_ZTS6ImVec1", !15, i64 0}
!74 = !{!"_ZTS16ImGuiMenuColumns", !13, i64 0, !13, i64 4, !16, i64 8, !16, i64 10, !16, i64 12, !16, i64 14, !16, i64 16, !7, i64 18}
!75 = !{!"_ZTS8ImVec2ih", !16, i64 0, !16, i64 2}
!76 = !{!"_ZTS8ImVectorI15ImGuiOldColumnsE", !13, i64 0, !13, i64 4, !6, i64 8}
!77 = !{!"_ZTS10ImDrawList", !78, i64 0, !17, i64 16, !79, i64 32, !13, i64 48, !13, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !80, i64 88, !81, i64 104, !82, i64 120, !83, i64 136, !84, i64 168, !15, i64 192}
!78 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !13, i64 0, !13, i64 4, !6, i64 8}
!79 = !{!"_ZTS8ImVectorI10ImDrawVertE", !13, i64 0, !13, i64 4, !6, i64 8}
!80 = !{!"_ZTS8ImVectorI6ImVec4E", !13, i64 0, !13, i64 4, !6, i64 8}
!81 = !{!"_ZTS8ImVectorIPvE", !13, i64 0, !13, i64 4, !6, i64 8}
!82 = !{!"_ZTS8ImVectorI6ImVec2E", !13, i64 0, !13, i64 4, !6, i64 8}
!83 = !{!"_ZTS15ImDrawCmdHeader", !20, i64 0, !6, i64 16, !13, i64 24}
!84 = !{!"_ZTS18ImDrawListSplitter", !13, i64 0, !13, i64 4, !48, i64 8}
!85 = !{!10, !13, i64 7696}
!86 = !{!10, !13, i64 7756}
!87 = !{!10, !13, i64 7260}
!88 = !{!10, !11, i64 8048}
!89 = !{i8 0, i8 2}
!90 = !{}
!91 = !{!10, !6, i64 8032}
!92 = !{!10, !11, i64 321}
!93 = !{!10, !13, i64 8044}
!94 = !{!10, !6, i64 8024}
!95 = !{!10, !13, i64 8040}
!96 = !{!10, !13, i64 7724}
!97 = !{!10, !13, i64 7376}


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