; LLVM IR from JawherBenjeddou/GraphicsRenderer :: Graphics/vendor/ImGui/imgui.ll (ZN5ImGui17UpdateInputEventsEb)

; 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.ImBitArray = type { [21 x i32] }
%struct.ImVec2 = type { float, float }
%struct.ImGuiContext = type { i8, i8, %struct.ImGuiIO, %struct.ImGuiPlatformIO, %struct.ImGuiStyle, i32, i32, ptr, float, float, %struct.ImDrawListSharedData, double, i32, i32, i32, i32, i8, i8, i8, i8, i8, ptr, %struct.ImVector.3, %struct.ImVector.3, i32, i32, %struct.ImVector.4, %struct.ImVector.4, %struct.ImVector.4, %struct.ImVector.5, %struct.ImGuiStorage, i32, %struct.ImVec2, ptr, ptr, ptr, ptr, ptr, %struct.ImVec2, i32, float, %struct.ImVec2, %struct.ImVec2, i32, i32, i32, i8, i8, float, float, i32, i32, float, i8, i8, i8, i8, i8, i8, %struct.ImVec2, ptr, i32, i32, i32, i8, i8, ptr, i32, float, [140 x %struct.ImGuiKeyOwnerData], %struct.ImGuiKeyRoutingTable, i32, i8, i32, i32, i32, i32, %struct.ImGuiNextItemData, %struct.ImGuiLastItemData, %struct.ImGuiNextWindowData, %struct.ImVector.8, %struct.ImVector.9, %struct.ImVector.10, %struct.ImVector.11, %struct.ImVector.12, %struct.ImVector.13, %struct.ImVector.14, %struct.ImVector.14, i32, %struct.ImVector.15, float, ptr, ptr, ptr, i32, %struct.ImGuiPlatformMonitor, i32, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, %struct.ImGuiNavItemData, i8, i8, i8, i32, i32, i32, i32, i32, i32, %struct.ImRect, %struct.ImRect, i32, i32, i32, %struct.ImGuiNavItemData, %struct.ImGuiNavItemData, %struct.ImGuiNavItemData, %struct.ImGuiNavItemData, i32, i32, ptr, ptr, ptr, float, float, i8, %struct.ImVec2, %struct.ImVec2, float, i8, i8, i8, i32, i32, i32, %struct.ImGuiPayload, %struct.ImRect, i32, i32, float, i32, i32, i32, i32, %struct.ImVector.16, [16 x i8], i32, %struct.ImVector.17, ptr, i32, %struct.ImVector.18, %struct.ImPool, %struct.ImVector.20, %struct.ImVector.21, ptr, %struct.ImPool.22, %struct.ImVector.24, %struct.ImVector.25, i32, i32, float, float, i32, i32, i32, float, %struct.ImVec2, %struct.ImGuiInputTextState, %struct.ImGuiInputTextDeactivatedState, %struct.ImFont, i32, i32, i32, i32, float, float, i32, %struct.ImVec4, %struct.ImGuiComboPreviewData, float, float, i8, i8, float, float, float, float, i16, i16, %struct.ImVector.26, %struct.ImVector.11, %struct.ImGuiPlatformImeData, %struct.ImGuiPlatformImeData, i32, i8, [3 x i8], %struct.ImGuiDockContext, ptr, i8, float, %struct.ImGuiTextBuffer, %struct.ImVector.30, %struct.ImChunkStream, %struct.ImChunkStream.31, %struct.ImVector.32, i32, [9 x ptr], i8, i32, ptr, %struct.ImGuiTextBuffer, ptr, ptr, float, i8, i32, i32, i32, i32, %struct.ImGuiTextBuffer, %struct.ImGuiTextIndex, i8, i8, i8, i8, i8, i32, %struct.ImGuiMetricsConfig, %struct.ImGuiStackTool, ptr, [60 x float], i32, i32, float, i32, i32, i32, %struct.ImVector.26 }
%struct.ImGuiIO = type { i32, i32, %struct.ImVec2, float, float, ptr, ptr, ptr, ptr, float, i8, ptr, %struct.ImVec2, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, float, float, float, float, float, float, i8, i8, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, i32, i32, %struct.ImVec2, [652 x i32], [652 x i8], [16 x float], ptr, %struct.ImVec2, [5 x i8], float, float, i32, i32, i8, i8, i8, i8, i32, [652 x %struct.ImGuiKeyData], i8, %struct.ImVec2, [5 x %struct.ImVec2], [5 x double], [5 x i8], [5 x i8], [5 x i16], [5 x i16], [5 x i8], [5 x i8], [5 x i8], i8, [5 x float], [5 x float], [5 x %struct.ImVec2], [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.ImGuiPlatformIO = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.ImVector.0, %struct.ImVector.1 }
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImVector.1 = type { i32, i32, ptr }
%struct.ImGuiStyle = type { float, float, %struct.ImVec2, float, float, %struct.ImVec2, %struct.ImVec2, i32, float, float, float, float, %struct.ImVec2, float, float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, float, float, float, float, float, float, float, float, i32, %struct.ImVec2, %struct.ImVec2, float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, i8, i8, i8, float, float, [55 x %struct.ImVec4], float, float, float, i32, i32 }
%struct.ImDrawListSharedData = type { %struct.ImVec2, ptr, float, float, float, %struct.ImVec4, i32, %struct.ImVector.2, [48 x %struct.ImVec2], float, [64 x i8], ptr }
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImVector.3 = type { i32, i32, ptr }
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImVector.5 = type { i32, i32, ptr }
%struct.ImGuiStorage = type { %struct.ImVector.6 }
%struct.ImVector.6 = type { i32, i32, ptr }
%struct.ImGuiKeyOwnerData = type <{ i32, i32, i8, i8, [2 x i8] }>
%struct.ImGuiKeyRoutingTable = type { [140 x i16], %struct.ImVector.7, %struct.ImVector.7 }
%struct.ImVector.7 = type { i32, i32, ptr }
%struct.ImGuiNextItemData = type <{ i32, 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, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, i8, %struct.ImRect, ptr, ptr, float, i32, i32, %struct.ImGuiWindowClass, %struct.ImVec2 }
%struct.ImGuiWindowClass = type <{ i32, i32, i32, i32, i32, i32, i8, i8, [2 x i8] }>
%struct.ImVector.8 = type { i32, i32, ptr }
%struct.ImVector.9 = type { i32, i32, ptr }
%struct.ImVector.10 = type { i32, i32, ptr }
%struct.ImVector.12 = type { i32, i32, ptr }
%struct.ImVector.13 = type { i32, i32, ptr }
%struct.ImVector.14 = type { i32, i32, ptr }
%struct.ImVector.15 = type { i32, i32, ptr }
%struct.ImGuiPlatformMonitor = type { %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, 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.16 = type { i32, i32, ptr }
%struct.ImVector.17 = type { i32, i32, ptr }
%struct.ImVector.18 = type { i32, i32, ptr }
%struct.ImPool = 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.ImPool.22 = type { %struct.ImVector.23, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.23 = type { i32, i32, ptr }
%struct.ImVector.24 = type { i32, i32, ptr }
%struct.ImVector.25 = type { i32, i32, ptr }
%struct.ImGuiInputTextState = type <{ ptr, i32, i32, i32, [4 x i8], %struct.ImVector, %struct.ImVector.26, %struct.ImVector.26, i8, [3 x i8], i32, float, %"struct.ImStb::STB_TexteditState", float, i8, i8, i8, i8, i32, [4 x i8] }>
%"struct.ImStb::STB_TexteditState" = type { i32, i32, i32, i8, i32, i8, i8, i8, i8, i8, i8, i8, float, %"struct.ImStb::StbUndoState" }
%"struct.ImStb::StbUndoState" = type { [99 x %"struct.ImStb::StbUndoRecord"], [999 x i16], i16, i16, i32, i32 }
%"struct.ImStb::StbUndoRecord" = type { i32, i32, i32, i32 }
%struct.ImGuiInputTextDeactivatedState = type { i32, %struct.ImVector.26 }
%struct.ImFont = type <{ %struct.ImVector.20, float, float, %struct.ImVector, %struct.ImVector.27, ptr, ptr, ptr, i16, i16, i16, i16, float, float, i8, [3 x i8], float, float, float, i32, [2 x i8], [2 x i8] }>
%struct.ImVector.27 = 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.11 = type { i32, i32, ptr }
%struct.ImGuiPlatformImeData = type { i8, %struct.ImVec2, float }
%struct.ImGuiDockContext = type <{ %struct.ImGuiStorage, %struct.ImVector.28, %struct.ImVector.29, i8, [7 x i8] }>
%struct.ImVector.28 = type { i32, i32, ptr }
%struct.ImVector.29 = type { i32, i32, ptr }
%struct.ImVector.30 = type { i32, i32, ptr }
%struct.ImChunkStream = type { %struct.ImVector.26 }
%struct.ImChunkStream.31 = type { %struct.ImVector.26 }
%struct.ImVector.32 = type { i32, i32, ptr }
%struct.ImGuiTextBuffer = type { %struct.ImVector.26 }
%struct.ImGuiTextIndex = type <{ %struct.ImVector.12, i32, [4 x i8] }>
%struct.ImGuiMetricsConfig = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i32 }
%struct.ImGuiStackTool = type { i32, i32, i32, %struct.ImVector.33, i8, float }
%struct.ImVector.33 = type { i32, i32, ptr }
%struct.ImVector.26 = type { i32, i32, ptr }
%struct.ImGuiInputEvent = type <{ i32, i32, i32, %union.anon, i8, [3 x i8] }>
%union.anon = type { %struct.ImGuiInputEventMousePos }
%struct.ImGuiInputEventMousePos = type { float, float, i32 }
%struct.ImGuiInputEventMouseButton = type { i32, i8, i32 }
%struct.ImGuiInputEventMouseWheel = type { float, float, i32 }
%struct.ImGuiInputEventMouseViewport = type { i32 }
%struct.ImGuiInputEventKey = type { i32, i8, float }
%struct.ImGuiInputEventText = type { i32 }
%struct.ImGuiInputEventAppFocused = type { i8 }

@GImGui = external dso_local global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.197 = external hidden unnamed_addr constant [47 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb = external hidden unnamed_addr constant [36 x i8], align 1
@.str.198 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.199 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.200 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.201 = external hidden unnamed_addr constant [10 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: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #1 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorI15ImGuiInputEventE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(25)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7ImGuiIO14ClearInputKeysEv(ptr noundef nonnull align 8 dereferenceable(14328)) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorI15ImGuiInputEventE6resizeEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui17UpdateInputEventsEb(i1 noundef zeroext %0) #5 {
  %2 = alloca i8, align 1
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca i32, align 4
  %11 = alloca %struct.ImBitArray, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca %struct.ImVec2, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i16, align 2
  %22 = alloca i8, align 1
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = zext i1 %0 to i8
  store i8 %25, ptr %2, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  %26 = load ptr, ptr @GImGui, align 8, !tbaa !9
  store ptr %26, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  %27 = load ptr, ptr %3, align 8, !tbaa !9
  %28 = getelementptr inbounds %struct.ImGuiContext, ptr %27, i32 0, i32 2
  store ptr %28, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #7
  %29 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %30 = trunc i8 %29 to i1
  br i1 %30, label %31, label %36

31:                                               ; preds = %1
  %32 = load ptr, ptr %3, align 8, !tbaa !9
  %33 = getelementptr inbounds %struct.ImGuiContext, ptr %32, i32 0, i32 257
  %34 = load i32, ptr %33, align 4, !tbaa !13
  %35 = icmp eq i32 %34, 1
  br label %36

36:                                               ; preds = %31, %1
  %37 = phi i1 [ false, %1 ], [ %35, %31 ]
  %38 = zext i1 %37 to i8
  store i8 %38, ptr %5, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #7
  store i8 0, ptr %6, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #7
  store i8 0, ptr %7, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #7
  store i8 0, ptr %8, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #7
  store i8 0, ptr %9, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !88
  call void @llvm.lifetime.start.p0(i64 84, ptr %11) #7
  call void @_ZN10ImBitArrayILi652ELi0EEC2Ev(ptr noundef nonnull align 4 dereferenceable(84) %11)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !88
  br label %39

39:                                               ; preds = %392, %36
  %40 = load i32, ptr %12, align 4, !tbaa !88
  %41 = load ptr, ptr %3, align 8, !tbaa !9
  %42 = getelementptr inbounds %struct.ImGuiContext, ptr %41, i32 0, i32 22
  %43 = getelementptr inbounds %struct.ImVector.3, ptr %42, i32 0, i32 0
  %44 = load i32, ptr %43, align 8, !tbaa !89
  %45 = icmp slt i32 %40, %44
  br i1 %45, label %46, label %395

46:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %47 = load ptr, ptr %3, align 8, !tbaa !9
  %48 = getelementptr inbounds %struct.ImGuiContext, ptr %47, i32 0, i32 22
  %49 = load i32, ptr %12, align 4, !tbaa !88
  %50 = call noundef nonnull align 4 dereferenceable(25) ptr @_ZN8ImVectorI15ImGuiInputEventEixEi(ptr noundef nonnull align 8 dereferenceable(16) %48, i32 noundef %49)
  store ptr %50, ptr %13, align 8, !tbaa !9
  %51 = load ptr, ptr %13, align 8, !tbaa !9
  %52 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %51, i32 0, i32 0
  %53 = load i32, ptr %52, align 4, !tbaa !90
  %54 = icmp eq i32 %53, 1
  br i1 %54, label %55, label %91

55:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %56 = load ptr, ptr %13, align 8, !tbaa !9
  %57 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %56, i32 0, i32 3
  %58 = getelementptr inbounds %struct.ImGuiInputEventMousePos, ptr %57, i32 0, i32 0
  %59 = load float, ptr %58, align 4, !tbaa !93
  %60 = load ptr, ptr %13, align 8, !tbaa !9
  %61 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %60, i32 0, i32 3
  %62 = getelementptr inbounds %struct.ImGuiInputEventMousePos, ptr %61, i32 0, i32 1
  %63 = load float, ptr %62, align 4, !tbaa !93
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %14, float noundef %59, float noundef %63)
  %64 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %65 = trunc i8 %64 to i1
  br i1 %65, label %66, label %79

66:                                               ; preds = %55
  %67 = load i32, ptr %10, align 4, !tbaa !88
  %68 = icmp ne i32 %67, 0
  br i1 %68, label %78, label %69

69:                                               ; preds = %66
  %70 = load i8, ptr %7, align 1, !tbaa !5, !range !11, !noundef !12
  %71 = trunc i8 %70 to i1
  br i1 %71, label %78, label %72

72:                                               ; preds = %69
  %73 = load i8, ptr %8, align 1, !tbaa !5, !range !11, !noundef !12
  %74 = trunc i8 %73 to i1
  br i1 %74, label %78, label %75

75:                                               ; preds = %72
  %76 = load i8, ptr %9, align 1, !tbaa !5, !range !11, !noundef !12
  %77 = trunc i8 %76 to i1
  br i1 %77, label %78, label %79

78:                                               ; preds = %75, %72, %69, %66
  store i32 2, ptr %15, align 4
  br label %88

79:                                               ; preds = %75, %55
  %80 = load ptr, ptr %4, align 8, !tbaa !9
  %81 = getelementptr inbounds %struct.ImGuiIO, ptr %80, i32 0, i32 67
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %81, ptr align 4 %14, i64 8, i1 false), !tbaa.struct !94
  %82 = load ptr, ptr %13, align 8, !tbaa !9
  %83 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %82, i32 0, i32 3
  %84 = getelementptr inbounds %struct.ImGuiInputEventMousePos, ptr %83, i32 0, i32 2
  %85 = load i32, ptr %84, align 4, !tbaa !93
  %86 = load ptr, ptr %4, align 8, !tbaa !9
  %87 = getelementptr inbounds %struct.ImGuiIO, ptr %86, i32 0, i32 71
  store i32 %85, ptr %87, align 8, !tbaa !96
  store i8 1, ptr %6, align 1, !tbaa !5
  store i32 0, ptr %15, align 4
  br label %88

88:                                               ; preds = %79, %78
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  %89 = load i32, ptr %15, align 4
  switch i32 %89, label %389 [
    i32 0, label %90
  ]

90:                                               ; preds = %88
  br label %388

91:                                               ; preds = %46
  %92 = load ptr, ptr %13, align 8, !tbaa !9
  %93 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %92, i32 0, i32 0
  %94 = load i32, ptr %93, align 4, !tbaa !90
  %95 = icmp eq i32 %94, 3
  br i1 %95, label %96, label %162

96:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %97 = load ptr, ptr %13, align 8, !tbaa !9
  %98 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %97, i32 0, i32 3
  %99 = getelementptr inbounds %struct.ImGuiInputEventMouseButton, ptr %98, i32 0, i32 0
  %100 = load i32, ptr %99, align 4, !tbaa !93
  store i32 %100, ptr %16, align 4, !tbaa !88
  %101 = load i32, ptr %16, align 4, !tbaa !88
  %102 = icmp sge i32 %101, 0
  br i1 %102, label %103, label %106

103:                                              ; preds = %96
  %104 = load i32, ptr %16, align 4, !tbaa !88
  %105 = icmp slt i32 %104, 5
  br label %106

106:                                              ; preds = %103, %96
  %107 = phi i1 [ false, %96 ], [ %105, %103 ]
  br i1 %107, label %108, label %109

108:                                              ; preds = %106
  br label %111

109:                                              ; preds = %106
  call void @__assert_fail(ptr noundef @.str.197, ptr noundef @.str.3, i32 noundef 9510, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb) #8
  unreachable

110:                                              ; No predecessors!
  br label %111

111:                                              ; preds = %110, %108
  %112 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %113 = trunc i8 %112 to i1
  br i1 %113, label %114, label %124

114:                                              ; preds = %111
  %115 = load i32, ptr %10, align 4, !tbaa !88
  %116 = load i32, ptr %16, align 4, !tbaa !88
  %117 = shl i32 1, %116
  %118 = and i32 %115, %117
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %123, label %120

120:                                              ; preds = %114
  %121 = load i8, ptr %7, align 1, !tbaa !5, !range !11, !noundef !12
  %122 = trunc i8 %121 to i1
  br i1 %122, label %123, label %124

123:                                              ; preds = %120, %114
  store i32 2, ptr %15, align 4
  br label %159

124:                                              ; preds = %120, %111
  %125 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %126 = trunc i8 %125 to i1
  br i1 %126, label %127, label %137

127:                                              ; preds = %124
  %128 = load ptr, ptr %13, align 8, !tbaa !9
  %129 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %128, i32 0, i32 3
  %130 = getelementptr inbounds %struct.ImGuiInputEventMouseButton, ptr %129, i32 0, i32 2
  %131 = load i32, ptr %130, align 4, !tbaa !93
  %132 = icmp eq i32 %131, 1
  br i1 %132, label %133, label %137

133:                                              ; preds = %127
  %134 = load i8, ptr %6, align 1, !tbaa !5, !range !11, !noundef !12
  %135 = trunc i8 %134 to i1
  br i1 %135, label %136, label %137

136:                                              ; preds = %133
  store i32 2, ptr %15, align 4
  br label %159

137:                                              ; preds = %133, %127, %124
  %138 = load ptr, ptr %13, align 8, !tbaa !9
  %139 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %138, i32 0, i32 3
  %140 = getelementptr inbounds %struct.ImGuiInputEventMouseButton, ptr %139, i32 0, i32 1
  %141 = load i8, ptr %140, align 4, !tbaa !93, !range !11, !noundef !12
  %142 = trunc i8 %141 to i1
  %143 = load ptr, ptr %4, align 8, !tbaa !9
  %144 = getelementptr inbounds %struct.ImGuiIO, ptr %143, i32 0, i32 68
  %145 = load i32, ptr %16, align 4, !tbaa !88
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [5 x i8], ptr %144, i64 0, i64 %146
  %148 = zext i1 %142 to i8
  store i8 %148, ptr %147, align 1, !tbaa !5
  %149 = load ptr, ptr %13, align 8, !tbaa !9
  %150 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %149, i32 0, i32 3
  %151 = getelementptr inbounds %struct.ImGuiInputEventMouseButton, ptr %150, i32 0, i32 2
  %152 = load i32, ptr %151, align 4, !tbaa !93
  %153 = load ptr, ptr %4, align 8, !tbaa !9
  %154 = getelementptr inbounds %struct.ImGuiIO, ptr %153, i32 0, i32 71
  store i32 %152, ptr %154, align 8, !tbaa !96
  %155 = load i32, ptr %16, align 4, !tbaa !88
  %156 = shl i32 1, %155
  %157 = load i32, ptr %10, align 4, !tbaa !88
  %158 = or i32 %157, %156
  store i32 %158, ptr %10, align 4, !tbaa !88
  store i32 0, ptr %15, align 4
  br label %159

159:                                              ; preds = %137, %136, %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  %160 = load i32, ptr %15, align 4
  switch i32 %160, label %389 [
    i32 0, label %161
  ]

161:                                              ; preds = %159
  br label %387

162:                                              ; preds = %91
  %163 = load ptr, ptr %13, align 8, !tbaa !9
  %164 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %163, i32 0, i32 0
  %165 = load i32, ptr %164, align 4, !tbaa !90
  %166 = icmp eq i32 %165, 2
  br i1 %166, label %167, label %200

167:                                              ; preds = %162
  %168 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %169 = trunc i8 %168 to i1
  br i1 %169, label %170, label %177

170:                                              ; preds = %167
  %171 = load i8, ptr %6, align 1, !tbaa !5, !range !11, !noundef !12
  %172 = trunc i8 %171 to i1
  br i1 %172, label %176, label %173

173:                                              ; preds = %170
  %174 = load i32, ptr %10, align 4, !tbaa !88
  %175 = icmp ne i32 %174, 0
  br i1 %175, label %176, label %177

176:                                              ; preds = %173, %170
  store i32 2, ptr %15, align 4
  br label %389

177:                                              ; preds = %173, %167
  %178 = load ptr, ptr %13, align 8, !tbaa !9
  %179 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %178, i32 0, i32 3
  %180 = getelementptr inbounds %struct.ImGuiInputEventMouseWheel, ptr %179, i32 0, i32 0
  %181 = load float, ptr %180, align 4, !tbaa !93
  %182 = load ptr, ptr %4, align 8, !tbaa !9
  %183 = getelementptr inbounds %struct.ImGuiIO, ptr %182, i32 0, i32 70
  %184 = load float, ptr %183, align 4, !tbaa !97
  %185 = fadd float %184, %181
  store float %185, ptr %183, align 4, !tbaa !97
  %186 = load ptr, ptr %13, align 8, !tbaa !9
  %187 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %186, i32 0, i32 3
  %188 = getelementptr inbounds %struct.ImGuiInputEventMouseWheel, ptr %187, i32 0, i32 1
  %189 = load float, ptr %188, align 4, !tbaa !93
  %190 = load ptr, ptr %4, align 8, !tbaa !9
  %191 = getelementptr inbounds %struct.ImGuiIO, ptr %190, i32 0, i32 69
  %192 = load float, ptr %191, align 8, !tbaa !98
  %193 = fadd float %192, %189
  store float %193, ptr %191, align 8, !tbaa !98
  %194 = load ptr, ptr %13, align 8, !tbaa !9
  %195 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %194, i32 0, i32 3
  %196 = getelementptr inbounds %struct.ImGuiInputEventMouseWheel, ptr %195, i32 0, i32 2
  %197 = load i32, ptr %196, align 4, !tbaa !93
  %198 = load ptr, ptr %4, align 8, !tbaa !9
  %199 = getelementptr inbounds %struct.ImGuiIO, ptr %198, i32 0, i32 71
  store i32 %197, ptr %199, align 8, !tbaa !96
  store i8 1, ptr %7, align 1, !tbaa !5
  br label %386

200:                                              ; preds = %162
  %201 = load ptr, ptr %13, align 8, !tbaa !9
  %202 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %201, i32 0, i32 0
  %203 = load i32, ptr %202, align 4, !tbaa !90
  %204 = icmp eq i32 %203, 4
  br i1 %204, label %205, label %212

205:                                              ; preds = %200
  %206 = load ptr, ptr %13, align 8, !tbaa !9
  %207 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %206, i32 0, i32 3
  %208 = getelementptr inbounds %struct.ImGuiInputEventMouseViewport, ptr %207, i32 0, i32 0
  %209 = load i32, ptr %208, align 4, !tbaa !93
  %210 = load ptr, ptr %4, align 8, !tbaa !9
  %211 = getelementptr inbounds %struct.ImGuiIO, ptr %210, i32 0, i32 72
  store i32 %209, ptr %211, align 4, !tbaa !99
  br label %385

212:                                              ; preds = %200
  %213 = load ptr, ptr %13, align 8, !tbaa !9
  %214 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %213, i32 0, i32 0
  %215 = load i32, ptr %214, align 4, !tbaa !90
  %216 = icmp eq i32 %215, 5
  br i1 %216, label %217, label %318

217:                                              ; preds = %212
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %218 = load ptr, ptr %13, align 8, !tbaa !9
  %219 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %218, i32 0, i32 3
  %220 = getelementptr inbounds %struct.ImGuiInputEventKey, ptr %219, i32 0, i32 0
  %221 = load i32, ptr %220, align 4, !tbaa !93
  store i32 %221, ptr %17, align 4, !tbaa !100
  %222 = load i32, ptr %17, align 4, !tbaa !100
  %223 = icmp ne i32 %222, 0
  br i1 %223, label %224, label %225

224:                                              ; preds = %217
  br label %227

225:                                              ; preds = %217
  call void @__assert_fail(ptr noundef @.str.198, ptr noundef @.str.3, i32 noundef 9537, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb) #8
  unreachable

226:                                              ; No predecessors!
  br label %227

227:                                              ; preds = %226, %224
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %228 = load i32, ptr %17, align 4, !tbaa !100
  %229 = call noundef ptr @_ZN5ImGui10GetKeyDataE8ImGuiKey(i32 noundef %228)
  store ptr %229, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %230 = load ptr, ptr %18, align 8, !tbaa !9
  %231 = load ptr, ptr %3, align 8, !tbaa !9
  %232 = getelementptr inbounds %struct.ImGuiContext, ptr %231, i32 0, i32 2
  %233 = getelementptr inbounds %struct.ImGuiIO, ptr %232, i32 0, i32 78
  %234 = getelementptr inbounds [652 x %struct.ImGuiKeyData], ptr %233, i64 0, i64 0
  %235 = ptrtoint ptr %230 to i64
  %236 = ptrtoint ptr %234 to i64
  %237 = sub i64 %235, %236
  %238 = sdiv exact i64 %237, 16
  %239 = trunc i64 %238 to i32
  store i32 %239, ptr %19, align 4, !tbaa !88
  %240 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %241 = trunc i8 %240 to i1
  br i1 %241, label %242, label %265

242:                                              ; preds = %227
  %243 = load ptr, ptr %18, align 8, !tbaa !9
  %244 = getelementptr inbounds %struct.ImGuiKeyData, ptr %243, i32 0, i32 0
  %245 = load i8, ptr %244, align 4, !tbaa !102, !range !11, !noundef !12
  %246 = trunc i8 %245 to i1
  %247 = zext i1 %246 to i32
  %248 = load ptr, ptr %13, align 8, !tbaa !9
  %249 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %248, i32 0, i32 3
  %250 = getelementptr inbounds %struct.ImGuiInputEventKey, ptr %249, i32 0, i32 1
  %251 = load i8, ptr %250, align 4, !tbaa !93, !range !11, !noundef !12
  %252 = trunc i8 %251 to i1
  %253 = zext i1 %252 to i32
  %254 = icmp ne i32 %247, %253
  br i1 %254, label %255, label %265

255:                                              ; preds = %242
  %256 = load i32, ptr %19, align 4, !tbaa !88
  %257 = call noundef zeroext i1 @_ZNK10ImBitArrayILi652ELi0EE7TestBitEi(ptr noundef nonnull align 4 dereferenceable(84) %11, i32 noundef %256)
  br i1 %257, label %264, label %258

258:                                              ; preds = %255
  %259 = load i8, ptr %9, align 1, !tbaa !5, !range !11, !noundef !12
  %260 = trunc i8 %259 to i1
  br i1 %260, label %264, label %261

261:                                              ; preds = %258
  %262 = load i32, ptr %10, align 4, !tbaa !88
  %263 = icmp ne i32 %262, 0
  br i1 %263, label %264, label %265

264:                                              ; preds = %261, %258, %255
  store i32 2, ptr %15, align 4
  br label %315

265:                                              ; preds = %261, %242, %227
  %266 = load ptr, ptr %13, align 8, !tbaa !9
  %267 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %266, i32 0, i32 3
  %268 = getelementptr inbounds %struct.ImGuiInputEventKey, ptr %267, i32 0, i32 1
  %269 = load i8, ptr %268, align 4, !tbaa !93, !range !11, !noundef !12
  %270 = trunc i8 %269 to i1
  %271 = load ptr, ptr %18, align 8, !tbaa !9
  %272 = getelementptr inbounds %struct.ImGuiKeyData, ptr %271, i32 0, i32 0
  %273 = zext i1 %270 to i8
  store i8 %273, ptr %272, align 4, !tbaa !102
  %274 = load ptr, ptr %13, align 8, !tbaa !9
  %275 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %274, i32 0, i32 3
  %276 = getelementptr inbounds %struct.ImGuiInputEventKey, ptr %275, i32 0, i32 2
  %277 = load float, ptr %276, align 4, !tbaa !93
  %278 = load ptr, ptr %18, align 8, !tbaa !9
  %279 = getelementptr inbounds %struct.ImGuiKeyData, ptr %278, i32 0, i32 3
  store float %277, ptr %279, align 4, !tbaa !104
  store i8 1, ptr %8, align 1, !tbaa !5
  %280 = load i32, ptr %19, align 4, !tbaa !88
  call void @_ZN10ImBitArrayILi652ELi0EE6SetBitEi(ptr noundef nonnull align 4 dereferenceable(84) %11, i32 noundef %280)
  %281 = load ptr, ptr %18, align 8, !tbaa !9
  %282 = getelementptr inbounds %struct.ImGuiKeyData, ptr %281, i32 0, i32 0
  %283 = load i8, ptr %282, align 4, !tbaa !102, !range !11, !noundef !12
  %284 = trunc i8 %283 to i1
  %285 = load ptr, ptr %4, align 8, !tbaa !9
  %286 = getelementptr inbounds %struct.ImGuiIO, ptr %285, i32 0, i32 64
  %287 = load i32, ptr %19, align 4, !tbaa !88
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds [652 x i8], ptr %286, i64 0, i64 %288
  %290 = zext i1 %284 to i8
  store i8 %290, ptr %289, align 1, !tbaa !5
  %291 = load ptr, ptr %4, align 8, !tbaa !9
  %292 = getelementptr inbounds %struct.ImGuiIO, ptr %291, i32 0, i32 63
  %293 = load i32, ptr %19, align 4, !tbaa !88
  %294 = sext i32 %293 to i64
  %295 = getelementptr inbounds [652 x i32], ptr %292, i64 0, i64 %294
  %296 = load i32, ptr %295, align 4, !tbaa !88
  %297 = icmp ne i32 %296, -1
  br i1 %297, label %298, label %314

298:                                              ; preds = %265
  %299 = load ptr, ptr %18, align 8, !tbaa !9
  %300 = getelementptr inbounds %struct.ImGuiKeyData, ptr %299, i32 0, i32 0
  %301 = load i8, ptr %300, align 4, !tbaa !102, !range !11, !noundef !12
  %302 = trunc i8 %301 to i1
  %303 = load ptr, ptr %4, align 8, !tbaa !9
  %304 = getelementptr inbounds %struct.ImGuiIO, ptr %303, i32 0, i32 64
  %305 = load ptr, ptr %4, align 8, !tbaa !9
  %306 = getelementptr inbounds %struct.ImGuiIO, ptr %305, i32 0, i32 63
  %307 = load i32, ptr %19, align 4, !tbaa !88
  %308 = sext i32 %307 to i64
  %309 = getelementptr inbounds [652 x i32], ptr %306, i64 0, i64 %308
  %310 = load i32, ptr %309, align 4, !tbaa !88
  %311 = sext i32 %310 to i64
  %312 = getelementptr inbounds [652 x i8], ptr %304, i64 0, i64 %311
  %313 = zext i1 %302 to i8
  store i8 %313, ptr %312, align 1, !tbaa !5
  br label %314

314:                                              ; preds = %298, %265
  store i32 0, ptr %15, align 4
  br label %315

315:                                              ; preds = %314, %264
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  %316 = load i32, ptr %15, align 4
  switch i32 %316, label %389 [
    i32 0, label %317
  ]

317:                                              ; preds = %315
  br label %384

318:                                              ; preds = %212
  %319 = load ptr, ptr %13, align 8, !tbaa !9
  %320 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %319, i32 0, i32 0
  %321 = load i32, ptr %320, align 4, !tbaa !90
  %322 = icmp eq i32 %321, 6
  br i1 %322, label %323, label %363

323:                                              ; preds = %318
  %324 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %325 = trunc i8 %324 to i1
  br i1 %325, label %326, label %342

326:                                              ; preds = %323
  %327 = load i8, ptr %8, align 1, !tbaa !5, !range !11, !noundef !12
  %328 = trunc i8 %327 to i1
  br i1 %328, label %329, label %332

329:                                              ; preds = %326
  %330 = load i8, ptr %5, align 1, !tbaa !5, !range !11, !noundef !12
  %331 = trunc i8 %330 to i1
  br i1 %331, label %341, label %332

332:                                              ; preds = %329, %326
  %333 = load i32, ptr %10, align 4, !tbaa !88
  %334 = icmp ne i32 %333, 0
  br i1 %334, label %341, label %335

335:                                              ; preds = %332
  %336 = load i8, ptr %6, align 1, !tbaa !5, !range !11, !noundef !12
  %337 = trunc i8 %336 to i1
  br i1 %337, label %341, label %338

338:                                              ; preds = %335
  %339 = load i8, ptr %7, align 1, !tbaa !5, !range !11, !noundef !12
  %340 = trunc i8 %339 to i1
  br i1 %340, label %341, label %342

341:                                              ; preds = %338, %335, %332, %329
  store i32 2, ptr %15, align 4
  br label %389

342:                                              ; preds = %338, %323
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %343 = load ptr, ptr %13, align 8, !tbaa !9
  %344 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %343, i32 0, i32 3
  %345 = getelementptr inbounds %struct.ImGuiInputEventText, ptr %344, i32 0, i32 0
  %346 = load i32, ptr %345, align 4, !tbaa !93
  store i32 %346, ptr %20, align 4, !tbaa !88
  %347 = load ptr, ptr %4, align 8, !tbaa !9
  %348 = getelementptr inbounds %struct.ImGuiIO, ptr %347, i32 0, i32 101
  call void @llvm.lifetime.start.p0(i64 2, ptr %21) #7
  %349 = load i32, ptr %20, align 4, !tbaa !88
  %350 = icmp ule i32 %349, 65535
  br i1 %350, label %351, label %355

351:                                              ; preds = %342
  %352 = load i32, ptr %20, align 4, !tbaa !88
  %353 = trunc i32 %352 to i16
  %354 = zext i16 %353 to i32
  br label %356

355:                                              ; preds = %342
  br label %356

356:                                              ; preds = %355, %351
  %357 = phi i32 [ %354, %351 ], [ 65533, %355 ]
  %358 = trunc i32 %357 to i16
  store i16 %358, ptr %21, align 2, !tbaa !105
  call void @_ZN8ImVectorItE9push_backERKt(ptr noundef nonnull align 8 dereferenceable(16) %348, ptr noundef nonnull align 2 dereferenceable(2) %21)
  call void @llvm.lifetime.end.p0(i64 2, ptr %21) #7
  %359 = load i8, ptr %5, align 1, !tbaa !5, !range !11, !noundef !12
  %360 = trunc i8 %359 to i1
  br i1 %360, label %361, label %362

361:                                              ; preds = %356
  store i8 1, ptr %9, align 1, !tbaa !5
  br label %362

362:                                              ; preds = %361, %356
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %383

363:                                              ; preds = %318
  %364 = load ptr, ptr %13, align 8, !tbaa !9
  %365 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %364, i32 0, i32 0
  %366 = load i32, ptr %365, align 4, !tbaa !90
  %367 = icmp eq i32 %366, 7
  br i1 %367, label %368, label %381

368:                                              ; preds = %363
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #7
  %369 = load ptr, ptr %13, align 8, !tbaa !9
  %370 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %369, i32 0, i32 3
  %371 = getelementptr inbounds %struct.ImGuiInputEventAppFocused, ptr %370, i32 0, i32 0
  %372 = load i8, ptr %371, align 4, !tbaa !93, !range !11, !noundef !12
  %373 = trunc i8 %372 to i1
  %374 = xor i1 %373, true
  %375 = zext i1 %374 to i8
  store i8 %375, ptr %22, align 1, !tbaa !5
  %376 = load i8, ptr %22, align 1, !tbaa !5, !range !11, !noundef !12
  %377 = trunc i8 %376 to i1
  %378 = load ptr, ptr %4, align 8, !tbaa !9
  %379 = getelementptr inbounds %struct.ImGuiIO, ptr %378, i32 0, i32 96
  %380 = zext i1 %377 to i8
  store i8 %380, ptr %379, align 8, !tbaa !106
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  br label %382

381:                                              ; preds = %363
  call void @__assert_fail(ptr noundef @.str.199, ptr noundef @.str.3, i32 noundef 9573, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb) #8
  unreachable

382:                                              ; preds = %368
  br label %383

383:                                              ; preds = %382, %362
  br label %384

384:                                              ; preds = %383, %317
  br label %385

385:                                              ; preds = %384, %205
  br label %386

386:                                              ; preds = %385, %177
  br label %387

387:                                              ; preds = %386, %161
  br label %388

388:                                              ; preds = %387, %90
  store i32 0, ptr %15, align 4
  br label %389

389:                                              ; preds = %388, %341, %315, %176, %159, %88
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  %390 = load i32, ptr %15, align 4
  switch i32 %390, label %481 [
    i32 0, label %391
    i32 2, label %395
  ]

391:                                              ; preds = %389
  br label %392

392:                                              ; preds = %391
  %393 = load i32, ptr %12, align 4, !tbaa !88
  %394 = add nsw i32 %393, 1
  store i32 %394, ptr %12, align 4, !tbaa !88
  br label %39, !llvm.loop !107

395:                                              ; preds = %389, %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 0, ptr %23, align 4, !tbaa !88
  br label %396

396:                                              ; preds = %408, %395
  %397 = load i32, ptr %23, align 4, !tbaa !88
  %398 = load i32, ptr %12, align 4, !tbaa !88
  %399 = icmp slt i32 %397, %398
  br i1 %399, label %401, label %400

400:                                              ; preds = %396
  store i32 5, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %411

401:                                              ; preds = %396
  %402 = load ptr, ptr %3, align 8, !tbaa !9
  %403 = getelementptr inbounds %struct.ImGuiContext, ptr %402, i32 0, i32 23
  %404 = load ptr, ptr %3, align 8, !tbaa !9
  %405 = getelementptr inbounds %struct.ImGuiContext, ptr %404, i32 0, i32 22
  %406 = load i32, ptr %23, align 4, !tbaa !88
  %407 = call noundef nonnull align 4 dereferenceable(25) ptr @_ZN8ImVectorI15ImGuiInputEventEixEi(ptr noundef nonnull align 8 dereferenceable(16) %405, i32 noundef %406)
  call void @_ZN8ImVectorI15ImGuiInputEventE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %403, ptr noundef nonnull align 4 dereferenceable(25) %407)
  br label %408

408:                                              ; preds = %401
  %409 = load i32, ptr %23, align 4, !tbaa !88
  %410 = add nsw i32 %409, 1
  store i32 %410, ptr %23, align 4, !tbaa !88
  br label %396, !llvm.loop !109

411:                                              ; preds = %400
  %412 = load i32, ptr %12, align 4, !tbaa !88
  %413 = icmp ne i32 %412, 0
  br i1 %413, label %414, label %446

414:                                              ; preds = %411
  %415 = load ptr, ptr %3, align 8, !tbaa !9
  %416 = getelementptr inbounds %struct.ImGuiContext, ptr %415, i32 0, i32 239
  %417 = load i32, ptr %416, align 4, !tbaa !110
  %418 = and i32 %417, 64
  %419 = icmp ne i32 %418, 0
  br i1 %419, label %420, label %446

420:                                              ; preds = %414
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  store i32 0, ptr %24, align 4, !tbaa !88
  br label %421

421:                                              ; preds = %442, %420
  %422 = load i32, ptr %24, align 4, !tbaa !88
  %423 = load ptr, ptr %3, align 8, !tbaa !9
  %424 = getelementptr inbounds %struct.ImGuiContext, ptr %423, i32 0, i32 22
  %425 = getelementptr inbounds %struct.ImVector.3, ptr %424, i32 0, i32 0
  %426 = load i32, ptr %425, align 8, !tbaa !89
  %427 = icmp slt i32 %422, %426
  br i1 %427, label %429, label %428

428:                                              ; preds = %421
  store i32 8, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %445

429:                                              ; preds = %421
  %430 = load i32, ptr %24, align 4, !tbaa !88
  %431 = load i32, ptr %12, align 4, !tbaa !88
  %432 = icmp slt i32 %430, %431
  br i1 %432, label %433, label %434

433:                                              ; preds = %429
  br label %435

434:                                              ; preds = %429
  br label %435

435:                                              ; preds = %434, %433
  %436 = phi ptr [ @.str.200, %433 ], [ @.str.201, %434 ]
  %437 = getelementptr inbounds [10 x i8], ptr %436, i64 0, i64 0
  %438 = load ptr, ptr %3, align 8, !tbaa !9
  %439 = getelementptr inbounds %struct.ImGuiContext, ptr %438, i32 0, i32 22
  %440 = load i32, ptr %24, align 4, !tbaa !88
  %441 = call noundef nonnull align 4 dereferenceable(25) ptr @_ZN8ImVectorI15ImGuiInputEventEixEi(ptr noundef nonnull align 8 dereferenceable(16) %439, i32 noundef %440)
  call void @_ZL20DebugPrintInputEventPKcPK15ImGuiInputEvent(ptr noundef %437, ptr noundef %441)
  br label %442

442:                                              ; preds = %435
  %443 = load i32, ptr %24, align 4, !tbaa !88
  %444 = add nsw i32 %443, 1
  store i32 %444, ptr %24, align 4, !tbaa !88
  br label %421, !llvm.loop !111

445:                                              ; preds = %428
  br label %446

446:                                              ; preds = %445, %414, %411
  %447 = load i32, ptr %12, align 4, !tbaa !88
  %448 = load ptr, ptr %3, align 8, !tbaa !9
  %449 = getelementptr inbounds %struct.ImGuiContext, ptr %448, i32 0, i32 22
  %450 = getelementptr inbounds %struct.ImVector.3, ptr %449, i32 0, i32 0
  %451 = load i32, ptr %450, align 8, !tbaa !89
  %452 = icmp eq i32 %447, %451
  br i1 %452, label %453, label %456

453:                                              ; preds = %446
  %454 = load ptr, ptr %3, align 8, !tbaa !9
  %455 = getelementptr inbounds %struct.ImGuiContext, ptr %454, i32 0, i32 22
  call void @_ZN8ImVectorI15ImGuiInputEventE6resizeEi(ptr noundef nonnull align 8 dereferenceable(16) %455, i32 noundef 0)
  br label %471

456:                                              ; preds = %446
  %457 = load ptr, ptr %3, align 8, !tbaa !9
  %458 = getelementptr inbounds %struct.ImGuiContext, ptr %457, i32 0, i32 22
  %459 = load ptr, ptr %3, align 8, !tbaa !9
  %460 = getelementptr inbounds %struct.ImGuiContext, ptr %459, i32 0, i32 22
  %461 = getelementptr inbounds %struct.ImVector.3, ptr %460, i32 0, i32 2
  %462 = load ptr, ptr %461, align 8, !tbaa !112
  %463 = load ptr, ptr %3, align 8, !tbaa !9
  %464 = getelementptr inbounds %struct.ImGuiContext, ptr %463, i32 0, i32 22
  %465 = getelementptr inbounds %struct.ImVector.3, ptr %464, i32 0, i32 2
  %466 = load ptr, ptr %465, align 8, !tbaa !112
  %467 = load i32, ptr %12, align 4, !tbaa !88
  %468 = sext i32 %467 to i64
  %469 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %466, i64 %468
  %470 = call noundef ptr @_ZN8ImVectorI15ImGuiInputEventE5eraseEPKS0_S3_(ptr noundef nonnull align 8 dereferenceable(16) %458, ptr noundef %462, ptr noundef %469)
  br label %471

471:                                              ; preds = %456, %453
  %472 = load ptr, ptr %3, align 8, !tbaa !9
  %473 = getelementptr inbounds %struct.ImGuiContext, ptr %472, i32 0, i32 2
  %474 = getelementptr inbounds %struct.ImGuiIO, ptr %473, i32 0, i32 96
  %475 = load i8, ptr %474, align 8, !tbaa !113, !range !11, !noundef !12
  %476 = trunc i8 %475 to i1
  br i1 %476, label %477, label %480

477:                                              ; preds = %471
  %478 = load ptr, ptr %3, align 8, !tbaa !9
  %479 = getelementptr inbounds %struct.ImGuiContext, ptr %478, i32 0, i32 2
  call void @_ZN7ImGuiIO14ClearInputKeysEv(ptr noundef nonnull align 8 dereferenceable(14328) %479)
  br label %480

480:                                              ; preds = %477, %471
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 84, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  ret void

481:                                              ; preds = %389
  unreachable
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN5ImGui10GetKeyDataE8ImGuiKey(i32 noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10ImBitArrayILi652ELi0EEC2Ev(ptr noundef nonnull align 4 dereferenceable(84)) unnamed_addr #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK10ImBitArrayILi652ELi0EE7TestBitEi(ptr noundef nonnull align 4 dereferenceable(84), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10ImBitArrayILi652ELi0EE6SetBitEi(ptr noundef nonnull align 4 dereferenceable(84), i32 noundef) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorItE9push_backERKt(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 2 dereferenceable(2)) #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL20DebugPrintInputEventPKcPK15ImGuiInputEvent(ptr noundef, ptr noundef) #5

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { nounwind }
attributes #8 = { 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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !16, i64 24692}
!14 = !{!"_ZTS12ImGuiContext", !6, i64 0, !6, i64 1, !15, i64 8, !22, i64 14336, !25, i64 14552, !16, i64 15676, !16, i64 15680, !10, i64 15688, !18, i64 15696, !18, i64 15700, !26, i64 15704, !29, i64 16232, !16, i64 16240, !16, i64 16244, !16, i64 16248, !16, i64 16252, !6, i64 16256, !6, i64 16257, !6, i64 16258, !6, i64 16259, !6, i64 16260, !10, i64 16264, !30, i64 16272, !30, i64 16288, !19, i64 16304, !16, i64 16308, !31, i64 16312, !31, i64 16328, !31, i64 16344, !32, i64 16360, !33, i64 16376, !16, i64 16392, !17, i64 16396, !10, i64 16408, !10, i64 16416, !10, i64 16424, !10, i64 16432, !10, i64 16440, !17, i64 16448, !16, i64 16456, !18, i64 16460, !17, i64 16464, !17, i64 16472, !16, i64 16480, !16, i64 16484, !16, i64 16488, !6, i64 16492, !6, i64 16493, !18, i64 16496, !18, i64 16500, !16, i64 16504, !16, i64 16508, !18, i64 16512, !6, i64 16516, !6, i64 16517, !6, i64 16518, !6, i64 16519, !6, i64 16520, !6, i64 16521, !17, i64 16524, !10, i64 16536, !35, i64 16544, !16, i64 16548, !16, i64 16552, !6, i64 16556, !6, i64 16557, !10, i64 16560, !16, i64 16568, !18, i64 16572, !7, i64 16576, !36, i64 18256, !16, i64 18568, !6, i64 18572, !16, i64 18576, !16, i64 18580, !16, i64 18584, !16, i64 18588, !38, i64 18592, !39, i64 18616, !41, i64 18680, !43, i64 18824, !44, i64 18840, !45, i64 18856, !46, i64 18872, !47, i64 18888, !48, i64 18904, !49, i64 18920, !49, i64 18936, !16, i64 18952, !50, i64 18960, !18, i64 18976, !10, i64 18984, !10, i64 18992, !10, i64 19000, !16, i64 19008, !51, i64 19016, !16, i64 19064, !16, i64 19068, !16, i64 19072, !10, i64 19080, !16, i64 19088, !16, i64 19092, !16, i64 19096, !16, i64 19100, !16, i64 19104, !16, i64 19108, !16, i64 19112, !16, i64 19116, !16, i64 19120, !16, i64 19124, !16, i64 19128, !35, i64 19132, !52, i64 19136, !6, i64 19140, !6, i64 19141, !6, i64 19142, !6, i64 19143, !6, i64 19144, !6, i64 19145, !6, i64 19146, !53, i64 19152, !6, i64 19200, !6, i64 19201, !6, i64 19202, !16, i64 19204, !16, i64 19208, !16, i64 19212, !16, i64 19216, !16, i64 19220, !16, i64 19224, !40, i64 19228, !40, i64 19244, !16, i64 19260, !16, i64 19264, !16, i64 19268, !53, i64 19272, !53, i64 19320, !53, i64 19368, !53, i64 19416, !16, i64 19464, !16, i64 19468, !10, i64 19472, !10, i64 19480, !10, i64 19488, !18, i64 19496, !18, i64 19500, !6, i64 19504, !17, i64 19508, !17, i64 19516, !18, i64 19524, !6, i64 19528, !6, i64 19529, !6, i64 19530, !16, i64 19532, !16, i64 19536, !16, i64 19540, !54, i64 19544, !40, i64 19608, !16, i64 19624, !16, i64 19628, !18, i64 19632, !16, i64 19636, !16, i64 19640, !16, i64 19644, !16, i64 19648, !55, i64 19656, !7, i64 19672, !16, i64 19688, !56, i64 19696, !10, i64 19712, !16, i64 19720, !57, i64 19728, !58, i64 19744, !60, i64 19784, !61, i64 19800, !10, i64 19816, !62, i64 19824, !64, i64 19864, !65, i64 19880, !16, i64 19896, !16, i64 19900, !18, i64 19904, !18, i64 19908, !16, i64 19912, !16, i64 19916, !16, i64 19920, !18, i64 19924, !17, i64 19928, !66, i64 19936, !70, i64 23664, !71, i64 23688, !16, i64 23808, !16, i64 23812, !16, i64 23816, !16, i64 23820, !18, i64 23824, !18, i64 23828, !16, i64 23832, !27, i64 23836, !73, i64 23852, !18, i64 23900, !18, i64 23904, !6, i64 23908, !6, i64 23909, !18, i64 23912, !18, i64 23916, !18, i64 23920, !18, i64 23924, !20, i64 23928, !20, i64 23930, !67, i64 23936, !46, i64 23952, !74, i64 23968, !74, i64 23984, !16, i64 24000, !7, i64 24004, !75, i64 24008, !10, i64 24064, !6, i64 24072, !18, i64 24076, !78, i64 24080, !79, i64 24096, !80, i64 24112, !81, i64 24128, !82, i64 24144, !16, i64 24160, !7, i64 24168, !6, i64 24240, !83, i64 24244, !10, i64 24248, !78, i64 24256, !10, i64 24272, !10, i64 24280, !18, i64 24288, !6, i64 24292, !16, i64 24296, !16, i64 24300, !16, i64 24304, !16, i64 24308, !78, i64 24312, !84, i64 24328, !7, i64 24352, !7, i64 24353, !7, i64 24354, !6, i64 24355, !7, i64 24356, !16, i64 24360, !85, i64 24364, !86, i64 24384, !10, i64 24424, !7, i64 24432, !16, i64 24672, !16, i64 24676, !18, i64 24680, !16, i64 24684, !16, i64 24688, !16, i64 24692, !67, i64 24696}
!15 = !{!"_ZTS7ImGuiIO", !16, i64 0, !16, i64 4, !17, i64 8, !18, i64 16, !18, i64 20, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !18, i64 56, !6, i64 60, !10, i64 64, !17, i64 72, !6, i64 80, !6, i64 81, !6, i64 82, !6, i64 83, !6, i64 84, !6, i64 85, !6, i64 86, !6, i64 87, !6, i64 88, !6, i64 89, !6, i64 90, !6, i64 91, !6, i64 92, !6, i64 93, !6, i64 94, !6, i64 95, !18, i64 96, !18, i64 100, !18, i64 104, !18, i64 108, !18, i64 112, !18, i64 116, !6, i64 120, !6, i64 121, !6, i64 122, !6, i64 123, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !6, i64 208, !6, i64 209, !6, i64 210, !6, i64 211, !6, i64 212, !6, i64 213, !6, i64 214, !18, i64 216, !16, i64 220, !16, i64 224, !16, i64 228, !16, i64 232, !16, i64 236, !17, i64 240, !7, i64 248, !7, i64 2856, !7, i64 3508, !10, i64 3576, !17, i64 3584, !7, i64 3592, !18, i64 3600, !18, i64 3604, !19, i64 3608, !16, i64 3612, !6, i64 3616, !6, i64 3617, !6, i64 3618, !6, i64 3619, !16, i64 3620, !7, i64 3624, !6, i64 14056, !17, i64 14060, !7, i64 14068, !7, i64 14112, !7, i64 14152, !7, i64 14157, !7, i64 14162, !7, i64 14172, !7, i64 14182, !7, i64 14187, !7, i64 14192, !6, i64 14197, !7, i64 14200, !7, i64 14220, !7, i64 14240, !7, i64 14280, !18, i64 14300, !6, i64 14304, !6, i64 14305, !7, i64 14306, !6, i64 14307, !20, i64 14308, !21, i64 14312}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_ZTS6ImVec2", !18, i64 0, !18, i64 4}
!18 = !{!"float", !7, i64 0}
!19 = !{!"_ZTS16ImGuiMouseSource", !7, i64 0}
!20 = !{!"short", !7, i64 0}
!21 = !{!"_ZTS8ImVectorItE", !16, i64 0, !16, i64 4, !10, i64 8}
!22 = !{!"_ZTS15ImGuiPlatformIO", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !23, i64 184, !24, i64 200}
!23 = !{!"_ZTS8ImVectorI20ImGuiPlatformMonitorE", !16, i64 0, !16, i64 4, !10, i64 8}
!24 = !{!"_ZTS8ImVectorIP13ImGuiViewportE", !16, i64 0, !16, i64 4, !10, i64 8}
!25 = !{!"_ZTS10ImGuiStyle", !18, i64 0, !18, i64 4, !17, i64 8, !18, i64 16, !18, i64 20, !17, i64 24, !17, i64 32, !16, i64 40, !18, i64 44, !18, i64 48, !18, i64 52, !18, i64 56, !17, i64 60, !18, i64 68, !18, i64 72, !17, i64 76, !17, i64 84, !17, i64 92, !17, i64 100, !18, i64 108, !18, i64 112, !18, i64 116, !18, i64 120, !18, i64 124, !18, i64 128, !18, i64 132, !18, i64 136, !18, i64 140, !18, i64 144, !16, i64 148, !17, i64 152, !17, i64 160, !18, i64 168, !17, i64 172, !17, i64 180, !17, i64 188, !17, i64 196, !18, i64 204, !18, i64 208, !6, i64 212, !6, i64 213, !6, i64 214, !18, i64 216, !18, i64 220, !7, i64 224, !18, i64 1104, !18, i64 1108, !18, i64 1112, !16, i64 1116, !16, i64 1120}
!26 = !{!"_ZTS20ImDrawListSharedData", !17, i64 0, !10, i64 8, !18, i64 16, !18, i64 20, !18, i64 24, !27, i64 28, !16, i64 44, !28, i64 48, !7, i64 64, !18, i64 448, !7, i64 452, !10, i64 520}
!27 = !{!"_ZTS6ImVec4", !18, i64 0, !18, i64 4, !18, i64 8, !18, i64 12}
!28 = !{!"_ZTS8ImVectorI6ImVec2E", !16, i64 0, !16, i64 4, !10, i64 8}
!29 = !{!"double", !7, i64 0}
!30 = !{!"_ZTS8ImVectorI15ImGuiInputEventE", !16, i64 0, !16, i64 4, !10, i64 8}
!31 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !16, i64 0, !16, i64 4, !10, i64 8}
!32 = !{!"_ZTS8ImVectorI20ImGuiWindowStackDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!33 = !{!"_ZTS12ImGuiStorage", !34, i64 0}
!34 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !16, i64 0, !16, i64 4, !10, i64 8}
!35 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!36 = !{!"_ZTS20ImGuiKeyRoutingTable", !7, i64 0, !37, i64 280, !37, i64 296}
!37 = !{!"_ZTS8ImVectorI19ImGuiKeyRoutingDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!38 = !{!"_ZTS17ImGuiNextItemData", !16, i64 0, !16, i64 4, !18, i64 8, !16, i64 12, !16, i64 16, !6, i64 20}
!39 = !{!"_ZTS17ImGuiLastItemData", !16, i64 0, !16, i64 4, !16, i64 8, !40, i64 12, !40, i64 28, !40, i64 44}
!40 = !{!"_ZTS6ImRect", !17, i64 0, !17, i64 8}
!41 = !{!"_ZTS19ImGuiNextWindowData", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12, !16, i64 16, !17, i64 20, !17, i64 28, !17, i64 36, !17, i64 44, !17, i64 52, !6, i64 60, !6, i64 61, !40, i64 64, !10, i64 80, !10, i64 88, !18, i64 96, !16, i64 100, !16, i64 104, !42, i64 108, !17, i64 136}
!42 = !{!"_ZTS16ImGuiWindowClass", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12, !16, i64 16, !16, i64 20, !6, i64 24, !6, i64 25}
!43 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !16, i64 0, !16, i64 4, !10, i64 8}
!44 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !16, i64 0, !16, i64 4, !10, i64 8}
!45 = !{!"_ZTS8ImVectorIP6ImFontE", !16, i64 0, !16, i64 4, !10, i64 8}
!46 = !{!"_ZTS8ImVectorIjE", !16, i64 0, !16, i64 4, !10, i64 8}
!47 = !{!"_ZTS8ImVectorIiE", !16, i64 0, !16, i64 4, !10, i64 8}
!48 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!49 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!50 = !{!"_ZTS8ImVectorIP14ImGuiViewportPE", !16, i64 0, !16, i64 4, !10, i64 8}
!51 = !{!"_ZTS20ImGuiPlatformMonitor", !17, i64 0, !17, i64 8, !17, i64 16, !17, i64 24, !18, i64 32, !10, i64 40}
!52 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!53 = !{!"_ZTS16ImGuiNavItemData", !10, i64 0, !16, i64 8, !16, i64 12, !40, i64 16, !16, i64 32, !18, i64 36, !18, i64 40, !18, i64 44}
!54 = !{!"_ZTS12ImGuiPayload", !10, i64 0, !16, i64 8, !16, i64 12, !16, i64 16, !16, i64 20, !7, i64 24, !6, i64 57, !6, i64 58}
!55 = !{!"_ZTS8ImVectorIhE", !16, i64 0, !16, i64 4, !10, i64 8}
!56 = !{!"_ZTS8ImVectorI20ImGuiListClipperDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!57 = !{!"_ZTS8ImVectorI18ImGuiTableTempDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!58 = !{!"_ZTS6ImPoolI10ImGuiTableE", !59, i64 0, !33, i64 16, !16, i64 32, !16, i64 36}
!59 = !{!"_ZTS8ImVectorI10ImGuiTableE", !16, i64 0, !16, i64 4, !10, i64 8}
!60 = !{!"_ZTS8ImVectorIfE", !16, i64 0, !16, i64 4, !10, i64 8}
!61 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !16, i64 0, !16, i64 4, !10, i64 8}
!62 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !63, i64 0, !33, i64 16, !16, i64 32, !16, i64 36}
!63 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !16, i64 0, !16, i64 4, !10, i64 8}
!64 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !16, i64 0, !16, i64 4, !10, i64 8}
!65 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !16, i64 0, !16, i64 4, !10, i64 8}
!66 = !{!"_ZTS19ImGuiInputTextState", !10, i64 0, !16, i64 8, !16, i64 12, !16, i64 16, !21, i64 24, !67, i64 40, !67, i64 56, !6, i64 72, !16, i64 76, !18, i64 80, !68, i64 84, !18, i64 3712, !6, i64 3716, !6, i64 3717, !6, i64 3718, !16, i64 3720}
!67 = !{!"_ZTS8ImVectorIcE", !16, i64 0, !16, i64 4, !10, i64 8}
!68 = !{!"_ZTSN5ImStb17STB_TexteditStateE", !16, i64 0, !16, i64 4, !16, i64 8, !7, i64 12, !16, i64 16, !7, i64 20, !7, i64 21, !7, i64 22, !7, i64 23, !7, i64 24, !7, i64 25, !7, i64 26, !18, i64 28, !69, i64 32}
!69 = !{!"_ZTSN5ImStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !20, i64 3582, !20, i64 3584, !16, i64 3588, !16, i64 3592}
!70 = !{!"_ZTS30ImGuiInputTextDeactivatedState", !16, i64 0, !67, i64 8}
!71 = !{!"_ZTS6ImFont", !60, i64 0, !18, i64 16, !18, i64 20, !21, i64 24, !72, i64 40, !10, i64 56, !10, i64 64, !10, i64 72, !20, i64 80, !20, i64 82, !20, i64 84, !20, i64 86, !18, i64 88, !18, i64 92, !6, i64 96, !18, i64 100, !18, i64 104, !18, i64 108, !16, i64 112, !7, i64 116}
!72 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !16, i64 0, !16, i64 4, !10, i64 8}
!73 = !{!"_ZTS21ImGuiComboPreviewData", !40, i64 0, !17, i64 16, !17, i64 24, !17, i64 32, !18, i64 40, !16, i64 44}
!74 = !{!"_ZTS20ImGuiPlatformImeData", !6, i64 0, !17, i64 4, !18, i64 12}
!75 = !{!"_ZTS16ImGuiDockContext", !33, i64 0, !76, i64 16, !77, i64 32, !6, i64 48}
!76 = !{!"_ZTS8ImVectorI16ImGuiDockRequestE", !16, i64 0, !16, i64 4, !10, i64 8}
!77 = !{!"_ZTS8ImVectorI21ImGuiDockNodeSettingsE", !16, i64 0, !16, i64 4, !10, i64 8}
!78 = !{!"_ZTS15ImGuiTextBuffer", !67, i64 0}
!79 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !16, i64 0, !16, i64 4, !10, i64 8}
!80 = !{!"_ZTS13ImChunkStreamI19ImGuiWindowSettingsE", !67, i64 0}
!81 = !{!"_ZTS13ImChunkStreamI18ImGuiTableSettingsE", !67, i64 0}
!82 = !{!"_ZTS8ImVectorI16ImGuiContextHookE", !16, i64 0, !16, i64 4, !10, i64 8}
!83 = !{!"_ZTS12ImGuiLogType", !7, i64 0}
!84 = !{!"_ZTS14ImGuiTextIndex", !47, i64 0, !16, i64 16}
!85 = !{!"_ZTS18ImGuiMetricsConfig", !6, i64 0, !6, i64 1, !6, i64 2, !6, i64 3, !6, i64 4, !6, i64 5, !6, i64 6, !6, i64 7, !6, i64 8, !16, i64 12, !16, i64 16}
!86 = !{!"_ZTS14ImGuiStackTool", !16, i64 0, !16, i64 4, !16, i64 8, !87, i64 16, !6, i64 32, !18, i64 36}
!87 = !{!"_ZTS8ImVectorI19ImGuiStackLevelInfoE", !16, i64 0, !16, i64 4, !10, i64 8}
!88 = !{!16, !16, i64 0}
!89 = !{!14, !16, i64 16272}
!90 = !{!91, !92, i64 0}
!91 = !{!"_ZTS15ImGuiInputEvent", !92, i64 0, !35, i64 4, !16, i64 8, !7, i64 12, !6, i64 24}
!92 = !{!"_ZTS19ImGuiInputEventType", !7, i64 0}
!93 = !{!7, !7, i64 0}
!94 = !{i64 0, i64 4, !95, i64 4, i64 4, !95}
!95 = !{!18, !18, i64 0}
!96 = !{!15, !19, i64 3608}
!97 = !{!15, !18, i64 3604}
!98 = !{!15, !18, i64 3600}
!99 = !{!15, !16, i64 3612}
!100 = !{!101, !101, i64 0}
!101 = !{!"_ZTS8ImGuiKey", !7, i64 0}
!102 = !{!103, !6, i64 0}
!103 = !{!"_ZTS12ImGuiKeyData", !6, i64 0, !18, i64 4, !18, i64 8, !18, i64 12}
!104 = !{!103, !18, i64 12}
!105 = !{!20, !20, i64 0}
!106 = !{!15, !6, i64 14304}
!107 = distinct !{!107, !108}
!108 = !{!"llvm.loop.mustprogress"}
!109 = distinct !{!109, !108}
!110 = !{!14, !16, i64 24308}
!111 = distinct !{!111, !108}
!112 = !{!14, !10, i64 16280}
!113 = !{!14, !6, i64 14312}


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

%struct.ImBitArray = type { [21 x i32] }
%struct.ImVec2 = type { float, float }
%struct.ImGuiInputEvent = type <{ i32, i32, i32, %union.anon, i8, [3 x i8] }>
%union.anon = type { %struct.ImGuiInputEventMousePos }
%struct.ImGuiInputEventMousePos = type { float, float, i32 }

@GImGui = external dso_local local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.197 = external hidden unnamed_addr constant [47 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb = external hidden unnamed_addr constant [36 x i8], align 1
@.str.198 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.199 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.200 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.201 = external hidden unnamed_addr constant [10 x i8], align 1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress 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) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorI15ImGuiInputEventE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(25)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7ImGuiIO14ClearInputKeysEv(ptr noundef nonnull align 8 dereferenceable(14328)) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui17UpdateInputEventsEb(i1 noundef zeroext %0) local_unnamed_addr #4 {
  %2 = alloca %struct.ImBitArray, align 4
  %3 = alloca %struct.ImVec2, align 8
  %4 = alloca i16, align 2
  %5 = load ptr, ptr @GImGui, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %5, i64 8
  br i1 %0, label %7, label %11

7:                                                ; preds = %1
  %8 = getelementptr inbounds i8, ptr %5, i64 24692
  %9 = load i32, ptr %8, align 4, !tbaa !9
  %10 = icmp eq i32 %9, 1
  br label %11

11:                                               ; preds = %7, %1
  %12 = phi i1 [ false, %1 ], [ %10, %7 ]
  call void @llvm.lifetime.start.p0(i64 84, ptr nonnull %2) #6
  call void @_ZN10ImBitArrayILi652ELi0EEC2Ev(ptr noundef nonnull align 4 dereferenceable(84) %2)
  %13 = getelementptr inbounds i8, ptr %5, i64 16272
  %14 = load i32, ptr %13, align 8, !tbaa !85
  %15 = icmp sgt i32 %14, 0
  br i1 %15, label %.lr.ph, label %._crit_edge..loopexit_crit_edge

.lr.ph:                                           ; preds = %11
  %16 = getelementptr inbounds i8, ptr %5, i64 14312
  %17 = getelementptr inbounds i8, ptr %5, i64 14320
  %18 = getelementptr inbounds i8, ptr %5, i64 3632
  %19 = ptrtoint ptr %18 to i64
  %20 = getelementptr inbounds i8, ptr %5, i64 2864
  %21 = getelementptr inbounds i8, ptr %5, i64 256
  %22 = getelementptr inbounds i8, ptr %5, i64 3620
  %23 = getelementptr inbounds i8, ptr %5, i64 3612
  %24 = getelementptr inbounds i8, ptr %5, i64 3608
  %25 = getelementptr inbounds i8, ptr %5, i64 3616
  %26 = getelementptr inbounds i8, ptr %5, i64 3600
  %27 = getelementptr inbounds i8, ptr %5, i64 3592
  br label %28

28:                                               ; preds = %.lr.ph, %.thread175
  %.0128203 = phi i8 [ 0, %.lr.ph ], [ %.3, %.thread175 ]
  %.0129202 = phi i8 [ 0, %.lr.ph ], [ %.2131, %.thread175 ]
  %.0132201 = phi i8 [ 0, %.lr.ph ], [ %.3135, %.thread175 ]
  %.0136200 = phi i8 [ 0, %.lr.ph ], [ %.3139, %.thread175 ]
  %.0140199 = phi i32 [ 0, %.lr.ph ], [ %.3143, %.thread175 ]
  %.0144197 = phi i32 [ 0, %.lr.ph ], [ %142, %.thread175 ]
  %29 = call noundef nonnull align 4 dereferenceable(25) ptr @_ZN8ImVectorI15ImGuiInputEventEixEi(ptr noundef nonnull align 8 dereferenceable(16) %13, i32 noundef %.0144197)
  %30 = load i32, ptr %29, align 4, !tbaa !86
  switch i32 %30, label %141 [
    i32 1, label %31
    i32 3, label %47
    i32 2, label %71
    i32 4, label %85
    i32 5, label %88
    i32 6, label %121
    i32 7, label %137
  ]

31:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %32 = getelementptr inbounds i8, ptr %29, i64 12
  %33 = load float, ptr %32, align 4, !tbaa !89
  %34 = getelementptr inbounds i8, ptr %29, i64 16
  %35 = load float, ptr %34, align 4, !tbaa !89
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %3, float noundef %33, float noundef %35)
  br i1 %0, label %36, label %43

36:                                               ; preds = %31
  %.not156 = icmp eq i32 %.0140199, 0
  br i1 %.not156, label %37, label %.thread

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

39:                                               ; preds = %37
  %40 = trunc nuw i8 %.0132201 to i1
  br i1 %40, label %.thread, label %41

41:                                               ; preds = %39
  %42 = trunc nuw i8 %.0136200 to i1
  br i1 %42, label %.thread, label %43

.thread:                                          ; preds = %41, %39, %37, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br label %.thread180

43:                                               ; preds = %31, %41
  %44 = load i64, ptr %3, align 8
  store i64 %44, ptr %27, align 8
  %45 = getelementptr inbounds i8, ptr %29, i64 20
  %46 = load i32, ptr %45, align 4, !tbaa !89
  store i32 %46, ptr %25, align 8, !tbaa !90
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br label %.thread175

47:                                               ; preds = %28
  %48 = getelementptr inbounds i8, ptr %29, i64 12
  %49 = load i32, ptr %48, align 4, !tbaa !89
  %50 = icmp ult i32 %49, 5
  br i1 %50, label %52, label %51

51:                                               ; preds = %47
  call void @__assert_fail(ptr noundef nonnull @.str.197, ptr noundef nonnull @.str.3, i32 noundef 9510, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb) #7
  unreachable

52:                                               ; preds = %47
  %53 = shl nuw nsw i32 1, %49
  br i1 %0, label %54, label %._crit_edge242

54:                                               ; preds = %52
  %55 = and i32 %53, %.0140199
  %.not155 = icmp eq i32 %55, 0
  br i1 %.not155, label %56, label %.thread180

56:                                               ; preds = %54
  %57 = trunc nuw i8 %.0129202 to i1
  br i1 %57, label %.thread180, label %58

58:                                               ; preds = %56
  %59 = getelementptr inbounds i8, ptr %29, i64 20
  %60 = load i32, ptr %59, align 4
  %61 = icmp eq i32 %60, 1
  br i1 %61, label %62, label %._crit_edge242

62:                                               ; preds = %58
  %63 = trunc nuw i8 %.0128203 to i1
  br i1 %63, label %.thread180, label %._crit_edge242

._crit_edge242:                                   ; preds = %52, %58, %62
  %64 = getelementptr inbounds i8, ptr %29, i64 16
  %65 = load i8, ptr %64, align 4, !tbaa !89, !range !91, !noundef !92
  %66 = zext nneg i32 %49 to i64
  %67 = getelementptr inbounds [5 x i8], ptr %26, i64 0, i64 %66
  store i8 %65, ptr %67, align 1, !tbaa !93
  %68 = getelementptr inbounds i8, ptr %29, i64 20
  %69 = load i32, ptr %68, align 4, !tbaa !89
  store i32 %69, ptr %25, align 8, !tbaa !90
  %70 = or i32 %53, %.0140199
  br label %.thread175

71:                                               ; preds = %28
  %72 = trunc nuw i8 %.0128203 to i1
  %73 = icmp ne i32 %.0140199, 0
  %or.cond = select i1 %72, i1 true, i1 %73
  %or.cond163 = select i1 %0, i1 %or.cond, i1 false
  br i1 %or.cond163, label %.thread180, label %74

74:                                               ; preds = %71
  %75 = getelementptr inbounds i8, ptr %29, i64 12
  %76 = load float, ptr %75, align 4, !tbaa !89
  %77 = load float, ptr %23, align 4, !tbaa !94
  %78 = fadd float %76, %77
  store float %78, ptr %23, align 4, !tbaa !94
  %79 = getelementptr inbounds i8, ptr %29, i64 16
  %80 = load float, ptr %79, align 4, !tbaa !89
  %81 = load float, ptr %24, align 8, !tbaa !95
  %82 = fadd float %80, %81
  store float %82, ptr %24, align 8, !tbaa !95
  %83 = getelementptr inbounds i8, ptr %29, i64 20
  %84 = load i32, ptr %83, align 4, !tbaa !89
  store i32 %84, ptr %25, align 8, !tbaa !90
  br label %.thread175

85:                                               ; preds = %28
  %86 = getelementptr inbounds i8, ptr %29, i64 12
  %87 = load i32, ptr %86, align 4, !tbaa !89
  store i32 %87, ptr %22, align 4, !tbaa !96
  br label %.thread175

88:                                               ; preds = %28
  %89 = getelementptr inbounds i8, ptr %29, i64 12
  %90 = load i32, ptr %89, align 4, !tbaa !89
  %.not = icmp eq i32 %90, 0
  br i1 %.not, label %91, label %92

91:                                               ; preds = %88
  call void @__assert_fail(ptr noundef nonnull @.str.198, ptr noundef nonnull @.str.3, i32 noundef 9537, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb) #7
  unreachable

92:                                               ; preds = %88
  %93 = call noundef ptr @_ZN5ImGui10GetKeyDataE8ImGuiKey(i32 noundef %90)
  %94 = ptrtoint ptr %93 to i64
  %95 = sub i64 %94, %19
  %96 = lshr exact i64 %95, 4
  %97 = trunc i64 %96 to i32
  br i1 %0, label %98, label %107

98:                                               ; preds = %92
  %99 = load i8, ptr %93, align 4, !tbaa !97, !range !91, !noundef !92
  %100 = getelementptr inbounds i8, ptr %29, i64 16
  %101 = load i8, ptr %100, align 4, !tbaa !89, !range !91, !noundef !92
  %.not153 = icmp eq i8 %99, %101
  br i1 %.not153, label %107, label %102

102:                                              ; preds = %98
  %103 = call noundef zeroext i1 @_ZNK10ImBitArrayILi652ELi0EE7TestBitEi(ptr noundef nonnull align 4 dereferenceable(84) %2, i32 noundef %97)
  %104 = trunc nuw i8 %.0136200 to i1
  %105 = icmp ne i32 %.0140199, 0
  %106 = select i1 %103, i1 true, i1 %104
  %or.cond165 = select i1 %106, i1 true, i1 %105
  br i1 %or.cond165, label %.thread180, label %107

107:                                              ; preds = %102, %98, %92
  %108 = getelementptr inbounds i8, ptr %29, i64 16
  %109 = load i8, ptr %108, align 4, !tbaa !89, !range !91, !noundef !92
  store i8 %109, ptr %93, align 4, !tbaa !97
  %110 = getelementptr inbounds i8, ptr %29, i64 20
  %111 = load float, ptr %110, align 4, !tbaa !89
  %112 = getelementptr inbounds i8, ptr %93, i64 12
  store float %111, ptr %112, align 4, !tbaa !99
  call void @_ZN10ImBitArrayILi652ELi0EE6SetBitEi(ptr noundef nonnull align 4 dereferenceable(84) %2, i32 noundef %97)
  %113 = load i8, ptr %93, align 4, !tbaa !97, !range !91, !noundef !92
  %sext = shl i64 %95, 28
  %114 = ashr i64 %sext, 32
  %115 = getelementptr inbounds [652 x i8], ptr %20, i64 0, i64 %114
  store i8 %113, ptr %115, align 1, !tbaa !93
  %116 = getelementptr inbounds [652 x i32], ptr %21, i64 0, i64 %114
  %117 = load i32, ptr %116, align 4, !tbaa !100
  %.not154 = icmp eq i32 %117, -1
  br i1 %.not154, label %.thread175, label %118

118:                                              ; preds = %107
  %119 = sext i32 %117 to i64
  %120 = getelementptr inbounds [652 x i8], ptr %20, i64 0, i64 %119
  store i8 %113, ptr %120, align 1, !tbaa !93
  br label %.thread175

121:                                              ; preds = %28
  br i1 %0, label %122, label %131

122:                                              ; preds = %121
  %123 = trunc nuw i8 %.0132201 to i1
  br i1 %123, label %124, label %126

124:                                              ; preds = %122
  %125 = icmp ne i32 %.0140199, 0
  %or.cond7 = select i1 %12, i1 true, i1 %125
  br i1 %or.cond7, label %.thread180, label %127

126:                                              ; preds = %122
  %.old6.not = icmp eq i32 %.0140199, 0
  br i1 %.old6.not, label %127, label %.thread180

127:                                              ; preds = %124, %126
  %128 = trunc nuw i8 %.0128203 to i1
  br i1 %128, label %.thread180, label %129

129:                                              ; preds = %127
  %130 = trunc nuw i8 %.0129202 to i1
  br i1 %130, label %.thread180, label %131

131:                                              ; preds = %129, %121
  %132 = getelementptr inbounds i8, ptr %29, i64 12
  %133 = load i32, ptr %132, align 4, !tbaa !89
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %4) #6
  %134 = icmp ult i32 %133, 65536
  %135 = trunc i32 %133 to i16
  %136 = select i1 %134, i16 %135, i16 -3
  store i16 %136, ptr %4, align 2, !tbaa !101
  call void @_ZN8ImVectorItE9push_backERKt(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 2 dereferenceable(2) %4)
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %4) #6
  %spec.select = select i1 %12, i8 1, i8 %.0136200
  br label %.thread175

137:                                              ; preds = %28
  %138 = getelementptr inbounds i8, ptr %29, i64 12
  %139 = load i8, ptr %138, align 4, !tbaa !89, !range !91, !noundef !92
  %140 = xor i8 %139, 1
  store i8 %140, ptr %16, align 8, !tbaa !102
  br label %.thread175

141:                                              ; preds = %28
  call void @__assert_fail(ptr noundef nonnull @.str.199, ptr noundef nonnull @.str.3, i32 noundef 9573, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb) #7
  unreachable

.thread175:                                       ; preds = %107, %118, %._crit_edge242, %43, %85, %131, %137, %74
  %.3143 = phi i32 [ %.0140199, %43 ], [ %70, %._crit_edge242 ], [ %.0140199, %74 ], [ %.0140199, %85 ], [ %.0140199, %131 ], [ %.0140199, %137 ], [ %.0140199, %118 ], [ %.0140199, %107 ]
  %.3139 = phi i8 [ %.0136200, %43 ], [ %.0136200, %._crit_edge242 ], [ %.0136200, %74 ], [ %.0136200, %85 ], [ %spec.select, %131 ], [ %.0136200, %137 ], [ %.0136200, %118 ], [ %.0136200, %107 ]
  %.3135 = phi i8 [ %.0132201, %43 ], [ %.0132201, %._crit_edge242 ], [ %.0132201, %74 ], [ %.0132201, %85 ], [ %.0132201, %131 ], [ %.0132201, %137 ], [ 1, %118 ], [ 1, %107 ]
  %.2131 = phi i8 [ %.0129202, %43 ], [ %.0129202, %._crit_edge242 ], [ 1, %74 ], [ %.0129202, %85 ], [ %.0129202, %131 ], [ %.0129202, %137 ], [ %.0129202, %118 ], [ %.0129202, %107 ]
  %.3 = phi i8 [ 1, %43 ], [ %.0128203, %._crit_edge242 ], [ %.0128203, %74 ], [ %.0128203, %85 ], [ %.0128203, %131 ], [ %.0128203, %137 ], [ %.0128203, %118 ], [ %.0128203, %107 ]
  %142 = add nuw nsw i32 %.0144197, 1
  %143 = load i32, ptr %13, align 8, !tbaa !85
  %144 = icmp slt i32 %142, %143
  br i1 %144, label %28, label %.lr.ph233, !llvm.loop !103

.thread180:                                       ; preds = %71, %129, %127, %126, %124, %102, %56, %54, %62, %.thread
  %.not236 = icmp eq i32 %.0144197, 0
  br i1 %.not236, label %._crit_edge..loopexit_crit_edge, label %.lr.ph233

.lr.ph233:                                        ; preds = %.thread175, %.thread180
  %.0144196251 = phi i32 [ %.0144197, %.thread180 ], [ %142, %.thread175 ]
  %145 = getelementptr inbounds i8, ptr %5, i64 16288
  br label %146

._crit_edge..loopexit_crit_edge:                  ; preds = %11, %.thread180
  %.pre = load i32, ptr %13, align 8, !tbaa !85
  br label %.loopexit

146:                                              ; preds = %.lr.ph233, %146
  %.0127232 = phi i32 [ 0, %.lr.ph233 ], [ %148, %146 ]
  %147 = call noundef nonnull align 4 dereferenceable(25) ptr @_ZN8ImVectorI15ImGuiInputEventEixEi(ptr noundef nonnull align 8 dereferenceable(16) %13, i32 noundef %.0127232)
  call void @_ZN8ImVectorI15ImGuiInputEventE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %145, ptr noundef nonnull align 4 dereferenceable(25) %147)
  %148 = add nuw nsw i32 %.0127232, 1
  %exitcond.not = icmp eq i32 %148, %.0144196251
  br i1 %exitcond.not, label %._crit_edge, label %146, !llvm.loop !105

._crit_edge:                                      ; preds = %146
  %149 = getelementptr inbounds i8, ptr %5, i64 24308
  %150 = load i32, ptr %149, align 4, !tbaa !106
  %151 = and i32 %150, 64
  %.not158 = icmp ne i32 %151, 0
  %.pre241 = load i32, ptr %13, align 8, !tbaa !85
  %152 = icmp sgt i32 %.pre241, 0
  %or.cond264 = select i1 %.not158, i1 %152, i1 false
  br i1 %or.cond264, label %.lr.ph235, label %.loopexit

.lr.ph235:                                        ; preds = %._crit_edge, %.lr.ph235
  %.0234 = phi i32 [ %155, %.lr.ph235 ], [ 0, %._crit_edge ]
  %153 = icmp ult i32 %.0234, %.0144196251
  %.str.200..str.201 = select i1 %153, ptr @.str.200, ptr @.str.201
  %154 = call noundef nonnull align 4 dereferenceable(25) ptr @_ZN8ImVectorI15ImGuiInputEventEixEi(ptr noundef nonnull align 8 dereferenceable(16) %13, i32 noundef %.0234)
  call void @_ZL20DebugPrintInputEventPKcPK15ImGuiInputEvent(ptr noundef nonnull %.str.200..str.201, ptr noundef nonnull %154)
  %155 = add nuw nsw i32 %.0234, 1
  %156 = load i32, ptr %13, align 8, !tbaa !85
  %157 = icmp slt i32 %155, %156
  br i1 %157, label %.lr.ph235, label %.loopexit, !llvm.loop !107

.loopexit:                                        ; preds = %.lr.ph235, %._crit_edge..loopexit_crit_edge, %._crit_edge
  %.0144196246255 = phi i32 [ 0, %._crit_edge..loopexit_crit_edge ], [ %.0144196251, %._crit_edge ], [ %.0144196251, %.lr.ph235 ]
  %158 = phi i32 [ %.pre, %._crit_edge..loopexit_crit_edge ], [ %.pre241, %._crit_edge ], [ %156, %.lr.ph235 ]
  %159 = icmp eq i32 %.0144196246255, %158
  br i1 %159, label %160, label %161

160:                                              ; preds = %.loopexit
  call void @_ZN8ImVectorI15ImGuiInputEventE6resizeEi(ptr noundef nonnull align 8 dereferenceable(16) %13, i32 noundef 0)
  br label %167

161:                                              ; preds = %.loopexit
  %162 = getelementptr inbounds i8, ptr %5, i64 16280
  %163 = load ptr, ptr %162, align 8, !tbaa !108
  %164 = zext nneg i32 %.0144196246255 to i64
  %165 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %163, i64 %164
  %166 = call noundef ptr @_ZN8ImVectorI15ImGuiInputEventE5eraseEPKS0_S3_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef %163, ptr noundef %165)
  br label %167

167:                                              ; preds = %161, %160
  %168 = getelementptr inbounds i8, ptr %5, i64 14312
  %169 = load i8, ptr %168, align 8, !tbaa !109, !range !91, !noundef !92
  %170 = trunc nuw i8 %169 to i1
  br i1 %170, label %171, label %172

171:                                              ; preds = %167
  call void @_ZN7ImGuiIO14ClearInputKeysEv(ptr noundef nonnull align 8 dereferenceable(14328) %6)
  br label %172

172:                                              ; preds = %171, %167
  call void @llvm.lifetime.end.p0(i64 84, ptr nonnull %2) #6
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN5ImGui10GetKeyDataE8ImGuiKey(i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10ImBitArrayILi652ELi0EEC2Ev(ptr noundef nonnull align 4 dereferenceable(84)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK10ImBitArrayILi652ELi0EE7TestBitEi(ptr noundef nonnull align 4 dereferenceable(84), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10ImBitArrayILi652ELi0EE6SetBitEi(ptr noundef nonnull align 4 dereferenceable(84), i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorItE9push_backERKt(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 2 dereferenceable(2)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL20DebugPrintInputEventPKcPK15ImGuiInputEvent(ptr noundef, ptr noundef) local_unnamed_addr #4

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 "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 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"="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 = { 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 #6 = { nounwind }
attributes #7 = { 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 24692}
!10 = !{!"_ZTS12ImGuiContext", !11, i64 0, !11, i64 1, !12, i64 8, !19, i64 14336, !22, i64 14552, !13, i64 15676, !13, i64 15680, !6, i64 15688, !15, i64 15696, !15, i64 15700, !23, i64 15704, !26, i64 16232, !13, i64 16240, !13, i64 16244, !13, i64 16248, !13, i64 16252, !11, i64 16256, !11, i64 16257, !11, i64 16258, !11, i64 16259, !11, i64 16260, !6, i64 16264, !27, i64 16272, !27, i64 16288, !16, i64 16304, !13, i64 16308, !28, i64 16312, !28, i64 16328, !28, i64 16344, !29, i64 16360, !30, i64 16376, !13, i64 16392, !14, i64 16396, !6, i64 16408, !6, i64 16416, !6, i64 16424, !6, i64 16432, !6, i64 16440, !14, i64 16448, !13, i64 16456, !15, i64 16460, !14, i64 16464, !14, i64 16472, !13, i64 16480, !13, i64 16484, !13, i64 16488, !11, i64 16492, !11, i64 16493, !15, i64 16496, !15, i64 16500, !13, i64 16504, !13, i64 16508, !15, i64 16512, !11, i64 16516, !11, i64 16517, !11, i64 16518, !11, i64 16519, !11, i64 16520, !11, i64 16521, !14, i64 16524, !6, i64 16536, !32, i64 16544, !13, i64 16548, !13, i64 16552, !11, i64 16556, !11, i64 16557, !6, i64 16560, !13, i64 16568, !15, i64 16572, !7, i64 16576, !33, i64 18256, !13, i64 18568, !11, i64 18572, !13, i64 18576, !13, i64 18580, !13, i64 18584, !13, i64 18588, !35, i64 18592, !36, i64 18616, !38, i64 18680, !40, i64 18824, !41, i64 18840, !42, i64 18856, !43, i64 18872, !44, i64 18888, !45, i64 18904, !46, i64 18920, !46, i64 18936, !13, i64 18952, !47, i64 18960, !15, i64 18976, !6, i64 18984, !6, i64 18992, !6, i64 19000, !13, i64 19008, !48, i64 19016, !13, i64 19064, !13, i64 19068, !13, i64 19072, !6, i64 19080, !13, i64 19088, !13, i64 19092, !13, i64 19096, !13, i64 19100, !13, i64 19104, !13, i64 19108, !13, i64 19112, !13, i64 19116, !13, i64 19120, !13, i64 19124, !13, i64 19128, !32, i64 19132, !49, i64 19136, !11, i64 19140, !11, i64 19141, !11, i64 19142, !11, i64 19143, !11, i64 19144, !11, i64 19145, !11, i64 19146, !50, i64 19152, !11, i64 19200, !11, i64 19201, !11, i64 19202, !13, i64 19204, !13, i64 19208, !13, i64 19212, !13, i64 19216, !13, i64 19220, !13, i64 19224, !37, i64 19228, !37, i64 19244, !13, i64 19260, !13, i64 19264, !13, i64 19268, !50, i64 19272, !50, i64 19320, !50, i64 19368, !50, i64 19416, !13, i64 19464, !13, i64 19468, !6, i64 19472, !6, i64 19480, !6, i64 19488, !15, i64 19496, !15, i64 19500, !11, i64 19504, !14, i64 19508, !14, i64 19516, !15, i64 19524, !11, i64 19528, !11, i64 19529, !11, i64 19530, !13, i64 19532, !13, i64 19536, !13, i64 19540, !51, i64 19544, !37, i64 19608, !13, i64 19624, !13, i64 19628, !15, i64 19632, !13, i64 19636, !13, i64 19640, !13, i64 19644, !13, i64 19648, !52, i64 19656, !7, i64 19672, !13, i64 19688, !53, i64 19696, !6, i64 19712, !13, i64 19720, !54, i64 19728, !55, i64 19744, !57, i64 19784, !58, i64 19800, !6, i64 19816, !59, i64 19824, !61, i64 19864, !62, i64 19880, !13, i64 19896, !13, i64 19900, !15, i64 19904, !15, i64 19908, !13, i64 19912, !13, i64 19916, !13, i64 19920, !15, i64 19924, !14, i64 19928, !63, i64 19936, !67, i64 23664, !68, i64 23688, !13, i64 23808, !13, i64 23812, !13, i64 23816, !13, i64 23820, !15, i64 23824, !15, i64 23828, !13, i64 23832, !24, i64 23836, !70, i64 23852, !15, i64 23900, !15, i64 23904, !11, i64 23908, !11, i64 23909, !15, i64 23912, !15, i64 23916, !15, i64 23920, !15, i64 23924, !17, i64 23928, !17, i64 23930, !64, i64 23936, !43, i64 23952, !71, i64 23968, !71, i64 23984, !13, i64 24000, !7, i64 24004, !72, i64 24008, !6, i64 24064, !11, i64 24072, !15, i64 24076, !75, i64 24080, !76, i64 24096, !77, i64 24112, !78, i64 24128, !79, i64 24144, !13, i64 24160, !7, i64 24168, !11, i64 24240, !80, i64 24244, !6, i64 24248, !75, i64 24256, !6, i64 24272, !6, i64 24280, !15, i64 24288, !11, i64 24292, !13, i64 24296, !13, i64 24300, !13, i64 24304, !13, i64 24308, !75, i64 24312, !81, i64 24328, !7, i64 24352, !7, i64 24353, !7, i64 24354, !11, i64 24355, !7, i64 24356, !13, i64 24360, !82, i64 24364, !83, i64 24384, !6, i64 24424, !7, i64 24432, !13, i64 24672, !13, i64 24676, !15, i64 24680, !13, i64 24684, !13, i64 24688, !13, i64 24692, !64, i64 24696}
!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, !6, i64 40, !6, i64 48, !15, i64 56, !11, i64 60, !6, i64 64, !14, i64 72, !11, i64 80, !11, i64 81, !11, i64 82, !11, i64 83, !11, i64 84, !11, i64 85, !11, i64 86, !11, i64 87, !11, i64 88, !11, i64 89, !11, i64 90, !11, i64 91, !11, i64 92, !11, i64 93, !11, i64 94, !11, i64 95, !15, i64 96, !15, i64 100, !15, i64 104, !15, i64 108, !15, i64 112, !15, i64 116, !11, i64 120, !11, i64 121, !11, i64 122, !11, i64 123, !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, !6, i64 3576, !14, i64 3584, !7, i64 3592, !15, i64 3600, !15, i64 3604, !16, i64 3608, !13, i64 3612, !11, i64 3616, !11, i64 3617, !11, i64 3618, !11, i64 3619, !13, i64 3620, !7, i64 3624, !11, i64 14056, !14, i64 14060, !7, i64 14068, !7, i64 14112, !7, i64 14152, !7, i64 14157, !7, i64 14162, !7, i64 14172, !7, i64 14182, !7, i64 14187, !7, i64 14192, !11, i64 14197, !7, i64 14200, !7, i64 14220, !7, i64 14240, !7, i64 14280, !15, i64 14300, !11, i64 14304, !11, i64 14305, !7, i64 14306, !11, i64 14307, !17, i64 14308, !18, i64 14312}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTS6ImVec2", !15, i64 0, !15, i64 4}
!15 = !{!"float", !7, i64 0}
!16 = !{!"_ZTS16ImGuiMouseSource", !7, i64 0}
!17 = !{!"short", !7, i64 0}
!18 = !{!"_ZTS8ImVectorItE", !13, i64 0, !13, i64 4, !6, i64 8}
!19 = !{!"_ZTS15ImGuiPlatformIO", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !20, i64 184, !21, i64 200}
!20 = !{!"_ZTS8ImVectorI20ImGuiPlatformMonitorE", !13, i64 0, !13, i64 4, !6, i64 8}
!21 = !{!"_ZTS8ImVectorIP13ImGuiViewportE", !13, i64 0, !13, i64 4, !6, i64 8}
!22 = !{!"_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, !15, i64 168, !14, i64 172, !14, i64 180, !14, i64 188, !14, i64 196, !15, i64 204, !15, i64 208, !11, i64 212, !11, i64 213, !11, i64 214, !15, i64 216, !15, i64 220, !7, i64 224, !15, i64 1104, !15, i64 1108, !15, i64 1112, !13, i64 1116, !13, i64 1120}
!23 = !{!"_ZTS20ImDrawListSharedData", !14, i64 0, !6, i64 8, !15, i64 16, !15, i64 20, !15, i64 24, !24, i64 28, !13, i64 44, !25, i64 48, !7, i64 64, !15, i64 448, !7, i64 452, !6, i64 520}
!24 = !{!"_ZTS6ImVec4", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!25 = !{!"_ZTS8ImVectorI6ImVec2E", !13, i64 0, !13, i64 4, !6, i64 8}
!26 = !{!"double", !7, i64 0}
!27 = !{!"_ZTS8ImVectorI15ImGuiInputEventE", !13, i64 0, !13, i64 4, !6, i64 8}
!28 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !13, i64 0, !13, i64 4, !6, i64 8}
!29 = !{!"_ZTS8ImVectorI20ImGuiWindowStackDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!30 = !{!"_ZTS12ImGuiStorage", !31, i64 0}
!31 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !13, i64 0, !13, i64 4, !6, i64 8}
!32 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!33 = !{!"_ZTS20ImGuiKeyRoutingTable", !7, i64 0, !34, i64 280, !34, i64 296}
!34 = !{!"_ZTS8ImVectorI19ImGuiKeyRoutingDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!35 = !{!"_ZTS17ImGuiNextItemData", !13, i64 0, !13, i64 4, !15, i64 8, !13, i64 12, !13, i64 16, !11, i64 20}
!36 = !{!"_ZTS17ImGuiLastItemData", !13, i64 0, !13, i64 4, !13, i64 8, !37, i64 12, !37, i64 28, !37, i64 44}
!37 = !{!"_ZTS6ImRect", !14, i64 0, !14, i64 8}
!38 = !{!"_ZTS19ImGuiNextWindowData", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !14, i64 20, !14, i64 28, !14, i64 36, !14, i64 44, !14, i64 52, !11, i64 60, !11, i64 61, !37, i64 64, !6, i64 80, !6, i64 88, !15, i64 96, !13, i64 100, !13, i64 104, !39, i64 108, !14, i64 136}
!39 = !{!"_ZTS16ImGuiWindowClass", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !11, i64 24, !11, i64 25}
!40 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !13, i64 0, !13, i64 4, !6, i64 8}
!41 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !13, i64 0, !13, i64 4, !6, i64 8}
!42 = !{!"_ZTS8ImVectorIP6ImFontE", !13, i64 0, !13, i64 4, !6, i64 8}
!43 = !{!"_ZTS8ImVectorIjE", !13, i64 0, !13, i64 4, !6, i64 8}
!44 = !{!"_ZTS8ImVectorIiE", !13, i64 0, !13, i64 4, !6, i64 8}
!45 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!46 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!47 = !{!"_ZTS8ImVectorIP14ImGuiViewportPE", !13, i64 0, !13, i64 4, !6, i64 8}
!48 = !{!"_ZTS20ImGuiPlatformMonitor", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !15, i64 32, !6, i64 40}
!49 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!50 = !{!"_ZTS16ImGuiNavItemData", !6, i64 0, !13, i64 8, !13, i64 12, !37, i64 16, !13, i64 32, !15, i64 36, !15, i64 40, !15, i64 44}
!51 = !{!"_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}
!52 = !{!"_ZTS8ImVectorIhE", !13, i64 0, !13, i64 4, !6, i64 8}
!53 = !{!"_ZTS8ImVectorI20ImGuiListClipperDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!54 = !{!"_ZTS8ImVectorI18ImGuiTableTempDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!55 = !{!"_ZTS6ImPoolI10ImGuiTableE", !56, i64 0, !30, i64 16, !13, i64 32, !13, i64 36}
!56 = !{!"_ZTS8ImVectorI10ImGuiTableE", !13, i64 0, !13, i64 4, !6, i64 8}
!57 = !{!"_ZTS8ImVectorIfE", !13, i64 0, !13, i64 4, !6, i64 8}
!58 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !13, i64 0, !13, i64 4, !6, i64 8}
!59 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !60, i64 0, !30, i64 16, !13, i64 32, !13, i64 36}
!60 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !13, i64 0, !13, i64 4, !6, i64 8}
!61 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !13, i64 0, !13, i64 4, !6, i64 8}
!62 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !13, i64 0, !13, i64 4, !6, i64 8}
!63 = !{!"_ZTS19ImGuiInputTextState", !6, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !18, i64 24, !64, i64 40, !64, i64 56, !11, i64 72, !13, i64 76, !15, i64 80, !65, i64 84, !15, i64 3712, !11, i64 3716, !11, i64 3717, !11, i64 3718, !13, i64 3720}
!64 = !{!"_ZTS8ImVectorIcE", !13, i64 0, !13, i64 4, !6, i64 8}
!65 = !{!"_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, !66, i64 32}
!66 = !{!"_ZTSN5ImStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !17, i64 3582, !17, i64 3584, !13, i64 3588, !13, i64 3592}
!67 = !{!"_ZTS30ImGuiInputTextDeactivatedState", !13, i64 0, !64, i64 8}
!68 = !{!"_ZTS6ImFont", !57, i64 0, !15, i64 16, !15, i64 20, !18, i64 24, !69, i64 40, !6, i64 56, !6, i64 64, !6, i64 72, !17, i64 80, !17, i64 82, !17, i64 84, !17, i64 86, !15, i64 88, !15, i64 92, !11, i64 96, !15, i64 100, !15, i64 104, !15, i64 108, !13, i64 112, !7, i64 116}
!69 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !13, i64 0, !13, i64 4, !6, i64 8}
!70 = !{!"_ZTS21ImGuiComboPreviewData", !37, i64 0, !14, i64 16, !14, i64 24, !14, i64 32, !15, i64 40, !13, i64 44}
!71 = !{!"_ZTS20ImGuiPlatformImeData", !11, i64 0, !14, i64 4, !15, i64 12}
!72 = !{!"_ZTS16ImGuiDockContext", !30, i64 0, !73, i64 16, !74, i64 32, !11, i64 48}
!73 = !{!"_ZTS8ImVectorI16ImGuiDockRequestE", !13, i64 0, !13, i64 4, !6, i64 8}
!74 = !{!"_ZTS8ImVectorI21ImGuiDockNodeSettingsE", !13, i64 0, !13, i64 4, !6, i64 8}
!75 = !{!"_ZTS15ImGuiTextBuffer", !64, i64 0}
!76 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !13, i64 0, !13, i64 4, !6, i64 8}
!77 = !{!"_ZTS13ImChunkStreamI19ImGuiWindowSettingsE", !64, i64 0}
!78 = !{!"_ZTS13ImChunkStreamI18ImGuiTableSettingsE", !64, i64 0}
!79 = !{!"_ZTS8ImVectorI16ImGuiContextHookE", !13, i64 0, !13, i64 4, !6, i64 8}
!80 = !{!"_ZTS12ImGuiLogType", !7, i64 0}
!81 = !{!"_ZTS14ImGuiTextIndex", !44, i64 0, !13, i64 16}
!82 = !{!"_ZTS18ImGuiMetricsConfig", !11, i64 0, !11, i64 1, !11, i64 2, !11, i64 3, !11, i64 4, !11, i64 5, !11, i64 6, !11, i64 7, !11, i64 8, !13, i64 12, !13, i64 16}
!83 = !{!"_ZTS14ImGuiStackTool", !13, i64 0, !13, i64 4, !13, i64 8, !84, i64 16, !11, i64 32, !15, i64 36}
!84 = !{!"_ZTS8ImVectorI19ImGuiStackLevelInfoE", !13, i64 0, !13, i64 4, !6, i64 8}
!85 = !{!10, !13, i64 16272}
!86 = !{!87, !88, i64 0}
!87 = !{!"_ZTS15ImGuiInputEvent", !88, i64 0, !32, i64 4, !13, i64 8, !7, i64 12, !11, i64 24}
!88 = !{!"_ZTS19ImGuiInputEventType", !7, i64 0}
!89 = !{!7, !7, i64 0}
!90 = !{!12, !16, i64 3608}
!91 = !{i8 0, i8 2}
!92 = !{}
!93 = !{!11, !11, i64 0}
!94 = !{!12, !15, i64 3604}
!95 = !{!12, !15, i64 3600}
!96 = !{!12, !13, i64 3612}
!97 = !{!98, !11, i64 0}
!98 = !{!"_ZTS12ImGuiKeyData", !11, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!99 = !{!98, !15, i64 12}
!100 = !{!13, !13, i64 0}
!101 = !{!17, !17, i64 0}
!102 = !{!12, !11, i64 14304}
!103 = distinct !{!103, !104}
!104 = !{!"llvm.loop.mustprogress"}
!105 = distinct !{!105, !104}
!106 = !{!10, !13, i64 24308}
!107 = distinct !{!107, !104}
!108 = !{!10, !6, i64 16280}
!109 = !{!10, !11, i64 14312}


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