; LLVM IR from hadryansalles/Luz :: deps/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.52 = 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, i32, ptr, ptr, ptr, ptr, ptr, %struct.ImVec2, i32, i32, float, %struct.ImVec2, %struct.ImVec2, i32, i32, i32, i8, i8, float, float, i32, i32, float, i8, i8, i8, i8, i8, i8, i8, i8, %struct.ImVec2, ptr, i32, i32, i8, i8, ptr, i32, float, double, double, double, %struct.ImBitArray, [154 x %struct.ImGuiKeyOwnerData], %struct.ImGuiKeyRoutingTable, i32, i8, i32, i32, i32, i32, i32, [4 x i8], %struct.ImGuiNextItemData, %struct.ImGuiLastItemData, [4 x i8], %struct.ImGuiNextWindowData, i8, i32, %struct.ImVector.8, %struct.ImVector.9, %struct.ImVector.10, %struct.ImVector.11, %struct.ImVector.12, %struct.ImVector.13, %struct.ImVector.14, %struct.ImVector.14, %struct.ImVector.15, i32, %struct.ImVector.16, float, ptr, ptr, ptr, i32, %struct.ImGuiPlatformMonitor, i32, i32, i32, ptr, i32, i32, %struct.ImVector.11, i32, i32, i32, i32, i32, float, i32, i32, i32, i32, i32, i32, i32, i64, i8, 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, %struct.ImRect, i32, i32, float, i32, i32, i32, i32, %struct.ImVector.17, [16 x i8], i32, %struct.ImVector.18, ptr, i32, i32, %struct.ImVector.19, %struct.ImPool, %struct.ImVector.21, %struct.ImVector.22, ptr, %struct.ImPool.23, %struct.ImVector.25, %struct.ImVector.26, 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, %struct.ImRect, i8, float, float, i8, i8, float, float, float, float, i16, i16, i16, %struct.ImVector.27, %struct.ImVector.29, %struct.ImGuiTypingSelectState, %struct.ImGuiPlatformImeData, %struct.ImGuiPlatformImeData, i32, [4 x i8], %struct.ImGuiDockContext, ptr, i8, float, %struct.ImGuiTextBuffer, %struct.ImVector.32, %struct.ImChunkStream, %struct.ImChunkStream.33, %struct.ImVector.34, i32, [11 x ptr], i8, i32, ptr, %struct.ImGuiTextBuffer, ptr, ptr, float, i8, i32, i32, i32, i32, %struct.ImGuiTextBuffer, %struct.ImGuiTextIndex, i32, i8, i8, i8, i32, i8, i8, i8, i32, float, %struct.ImVec4, %struct.ImGuiMetricsConfig, %struct.ImGuiIDStackTool, %struct.ImGuiDebugAllocInfo, ptr, [60 x float], i32, i32, float, i32, i32, i32, %struct.ImVector.27, [64 x i8] }
%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, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i16, i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, i32, %struct.ImVec2, [666 x i32], [666 x i8], [16 x float], ptr, %struct.ImVec2, [5 x i8], float, float, i32, i32, i8, i8, i8, i8, i32, [666 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, 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.ImBitArray = type { [5 x i32] }
%struct.ImGuiKeyOwnerData = type <{ i32, i32, i8, i8, [2 x i8] }>
%struct.ImGuiKeyRoutingTable = type { [154 x i16], %struct.ImVector.7, %struct.ImVector.7 }
%struct.ImVector.7 = type { i32, i32, ptr }
%struct.ImGuiNextItemData = type <{ i32, i32, i64, float, i32, i8, i8, [6 x i8] }>
%struct.ImGuiLastItemData = type { i32, i32, i32, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect }
%struct.ImGuiNextWindowData = type <{ i32, i32, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i32, i8, i8, [2 x i8], %struct.ImRect, [4 x i8], ptr, ptr, float, i32, i32, %struct.ImGuiWindowClass, %struct.ImVec2, [4 x i8] }>
%struct.ImGuiWindowClass = type <{ i32, 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.ImVector.16 = type { i32, i32, ptr }
%struct.ImGuiPlatformMonitor = type { %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, ptr }
%struct.ImVector.11 = type { i32, i32, ptr }
%struct.ImGuiNavItemData = type <{ ptr, i32, i32, %struct.ImRect, i32, [4 x i8], i64, float, float, float, [4 x i8] }>
%struct.ImGuiPayload = type <{ ptr, i32, i32, i32, i32, [33 x i8], i8, i8, [5 x i8] }>
%struct.ImVector.17 = type { i32, i32, ptr }
%struct.ImVector.18 = type { i32, i32, ptr }
%struct.ImVector.19 = type { i32, i32, ptr }
%struct.ImPool = type { %struct.ImVector.20, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.20 = type { i32, i32, ptr }
%struct.ImVector.21 = type { i32, i32, ptr }
%struct.ImVector.22 = type { i32, i32, ptr }
%struct.ImPool.23 = type { %struct.ImVector.24, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.24 = type { i32, i32, ptr }
%struct.ImVector.25 = type { i32, i32, ptr }
%struct.ImVector.26 = type { i32, i32, ptr }
%struct.ImGuiInputTextState = type <{ ptr, i32, i32, i32, [4 x i8], %struct.ImVector, %struct.ImVector.27, %struct.ImVector.27, 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.27 }
%struct.ImFont = type <{ %struct.ImVector.21, float, float, %struct.ImVector, %struct.ImVector.28, 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.28 = type { i32, i32, ptr }
%struct.ImGuiComboPreviewData = type { %struct.ImRect, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, i32 }
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImVector.29 = type { i32, i32, ptr }
%struct.ImGuiTypingSelectState = type <{ %struct.ImGuiTypingSelectRequest, [64 x i8], i32, i32, float, i8, [3 x i8] }>
%struct.ImGuiTypingSelectRequest = type { i32, i32, ptr, i8, i8, i8 }
%struct.ImGuiPlatformImeData = type { i8, %struct.ImVec2, float }
%struct.ImGuiDockContext = type <{ %struct.ImGuiStorage, %struct.ImVector.30, %struct.ImVector.31, i8, [7 x i8] }>
%struct.ImVector.30 = type { i32, i32, ptr }
%struct.ImVector.31 = type { i32, i32, ptr }
%struct.ImVector.32 = type { i32, i32, ptr }
%struct.ImChunkStream = type { %struct.ImVector.27 }
%struct.ImChunkStream.33 = type { %struct.ImVector.27 }
%struct.ImVector.34 = type { i32, i32, ptr }
%struct.ImGuiTextBuffer = type { %struct.ImVector.27 }
%struct.ImGuiTextIndex = type <{ %struct.ImVector.12, i32, [4 x i8] }>
%struct.ImVec4 = type { float, float, float, float }
%struct.ImGuiMetricsConfig = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i32 }
%struct.ImGuiIDStackTool = type { i32, i32, i32, %struct.ImVector.35, i8, float }
%struct.ImVector.35 = type { i32, i32, ptr }
%struct.ImGuiDebugAllocInfo = type { i32, i32, i16, [6 x %struct.ImGuiDebugAllocEntry] }
%struct.ImGuiDebugAllocEntry = type { i32, i16, i16 }
%struct.ImVector.27 = 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 [72 x i8], align 1
@.str.221 = external hidden unnamed_addr constant [47 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb = external hidden unnamed_addr constant [36 x i8], align 1
@.str.222 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.223 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.224 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.225 = 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(14616)) #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.52, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %struct.ImVec2, 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 286
  %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 !95
  call void @llvm.lifetime.start.p0(i64 84, ptr %11) #7
  call void @_ZN10ImBitArrayILi666ELi0EEC2Ev(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 !95
  br label %39

39:                                               ; preds = %399, %36
  %40 = load i32, ptr %12, align 4, !tbaa !95
  %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 !96
  %45 = icmp slt i32 %40, %44
  br i1 %45, label %46, label %402

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 !95
  %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 !97
  %54 = icmp eq i32 %53, 1
  br i1 %54, label %55, label %98

55:                                               ; preds = %46
  %56 = load ptr, ptr %3, align 8, !tbaa !9
  %57 = getelementptr inbounds %struct.ImGuiContext, ptr %56, i32 0, i32 2
  %58 = getelementptr inbounds %struct.ImGuiIO, ptr %57, i32 0, i32 53
  %59 = load i8, ptr %58, align 1, !tbaa !100, !range !11, !noundef !12
  %60 = trunc i8 %59 to i1
  br i1 %60, label %61, label %62

61:                                               ; preds = %55
  store i32 4, ptr %14, align 4
  br label %396

62:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %63 = load ptr, ptr %13, align 8, !tbaa !9
  %64 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %63, i32 0, i32 3
  %65 = getelementptr inbounds %struct.ImGuiInputEventMousePos, ptr %64, i32 0, i32 0
  %66 = load float, ptr %65, align 4, !tbaa !101
  %67 = load ptr, ptr %13, align 8, !tbaa !9
  %68 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %67, i32 0, i32 3
  %69 = getelementptr inbounds %struct.ImGuiInputEventMousePos, ptr %68, i32 0, i32 1
  %70 = load float, ptr %69, align 4, !tbaa !101
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %15, float noundef %66, float noundef %70)
  %71 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %72 = trunc i8 %71 to i1
  br i1 %72, label %73, label %86

73:                                               ; preds = %62
  %74 = load i32, ptr %10, align 4, !tbaa !95
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %85, label %76

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

79:                                               ; preds = %76
  %80 = load i8, ptr %8, align 1, !tbaa !5, !range !11, !noundef !12
  %81 = trunc i8 %80 to i1
  br i1 %81, label %85, label %82

82:                                               ; preds = %79
  %83 = load i8, ptr %9, align 1, !tbaa !5, !range !11, !noundef !12
  %84 = trunc i8 %83 to i1
  br i1 %84, label %85, label %86

85:                                               ; preds = %82, %79, %76, %73
  store i32 2, ptr %14, align 4
  br label %95

86:                                               ; preds = %82, %62
  %87 = load ptr, ptr %4, align 8, !tbaa !9
  %88 = getelementptr inbounds %struct.ImGuiIO, ptr %87, i32 0, i32 67
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %88, ptr align 4 %15, i64 8, i1 false), !tbaa.struct !102
  %89 = load ptr, ptr %13, align 8, !tbaa !9
  %90 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %89, i32 0, i32 3
  %91 = getelementptr inbounds %struct.ImGuiInputEventMousePos, ptr %90, i32 0, i32 2
  %92 = load i32, ptr %91, align 4, !tbaa !101
  %93 = load ptr, ptr %4, align 8, !tbaa !9
  %94 = getelementptr inbounds %struct.ImGuiIO, ptr %93, i32 0, i32 71
  store i32 %92, ptr %94, align 8, !tbaa !104
  store i8 1, ptr %6, align 1, !tbaa !5
  store i32 0, ptr %14, align 4
  br label %95

95:                                               ; preds = %86, %85
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  %96 = load i32, ptr %14, align 4
  switch i32 %96, label %396 [
    i32 0, label %97
  ]

97:                                               ; preds = %95
  br label %395

98:                                               ; preds = %46
  %99 = load ptr, ptr %13, align 8, !tbaa !9
  %100 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %99, i32 0, i32 0
  %101 = load i32, ptr %100, align 4, !tbaa !97
  %102 = icmp eq i32 %101, 3
  br i1 %102, label %103, label %169

103:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %104 = load ptr, ptr %13, align 8, !tbaa !9
  %105 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %104, i32 0, i32 3
  %106 = getelementptr inbounds %struct.ImGuiInputEventMouseButton, ptr %105, i32 0, i32 0
  %107 = load i32, ptr %106, align 4, !tbaa !101
  store i32 %107, ptr %16, align 4, !tbaa !95
  %108 = load i32, ptr %16, align 4, !tbaa !95
  %109 = icmp sge i32 %108, 0
  br i1 %109, label %110, label %113

110:                                              ; preds = %103
  %111 = load i32, ptr %16, align 4, !tbaa !95
  %112 = icmp slt i32 %111, 5
  br label %113

113:                                              ; preds = %110, %103
  %114 = phi i1 [ false, %103 ], [ %112, %110 ]
  br i1 %114, label %115, label %116

115:                                              ; preds = %113
  br label %118

116:                                              ; preds = %113
  call void @__assert_fail(ptr noundef @.str.221, ptr noundef @.str.3, i32 noundef 9832, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb) #8
  unreachable

117:                                              ; No predecessors!
  br label %118

118:                                              ; preds = %117, %115
  %119 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %120 = trunc i8 %119 to i1
  br i1 %120, label %121, label %131

121:                                              ; preds = %118
  %122 = load i32, ptr %10, align 4, !tbaa !95
  %123 = load i32, ptr %16, align 4, !tbaa !95
  %124 = shl i32 1, %123
  %125 = and i32 %122, %124
  %126 = icmp ne i32 %125, 0
  br i1 %126, label %130, label %127

127:                                              ; preds = %121
  %128 = load i8, ptr %7, align 1, !tbaa !5, !range !11, !noundef !12
  %129 = trunc i8 %128 to i1
  br i1 %129, label %130, label %131

130:                                              ; preds = %127, %121
  store i32 2, ptr %14, align 4
  br label %166

131:                                              ; preds = %127, %118
  %132 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %133 = trunc i8 %132 to i1
  br i1 %133, label %134, label %144

134:                                              ; preds = %131
  %135 = load ptr, ptr %13, align 8, !tbaa !9
  %136 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %135, i32 0, i32 3
  %137 = getelementptr inbounds %struct.ImGuiInputEventMouseButton, ptr %136, i32 0, i32 2
  %138 = load i32, ptr %137, align 4, !tbaa !101
  %139 = icmp eq i32 %138, 1
  br i1 %139, label %140, label %144

140:                                              ; preds = %134
  %141 = load i8, ptr %6, align 1, !tbaa !5, !range !11, !noundef !12
  %142 = trunc i8 %141 to i1
  br i1 %142, label %143, label %144

143:                                              ; preds = %140
  store i32 2, ptr %14, align 4
  br label %166

144:                                              ; preds = %140, %134, %131
  %145 = load ptr, ptr %13, align 8, !tbaa !9
  %146 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %145, i32 0, i32 3
  %147 = getelementptr inbounds %struct.ImGuiInputEventMouseButton, ptr %146, i32 0, i32 1
  %148 = load i8, ptr %147, align 4, !tbaa !101, !range !11, !noundef !12
  %149 = trunc i8 %148 to i1
  %150 = load ptr, ptr %4, align 8, !tbaa !9
  %151 = getelementptr inbounds %struct.ImGuiIO, ptr %150, i32 0, i32 68
  %152 = load i32, ptr %16, align 4, !tbaa !95
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [5 x i8], ptr %151, i64 0, i64 %153
  %155 = zext i1 %149 to i8
  store i8 %155, ptr %154, align 1, !tbaa !5
  %156 = load ptr, ptr %13, align 8, !tbaa !9
  %157 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %156, i32 0, i32 3
  %158 = getelementptr inbounds %struct.ImGuiInputEventMouseButton, ptr %157, i32 0, i32 2
  %159 = load i32, ptr %158, align 4, !tbaa !101
  %160 = load ptr, ptr %4, align 8, !tbaa !9
  %161 = getelementptr inbounds %struct.ImGuiIO, ptr %160, i32 0, i32 71
  store i32 %159, ptr %161, align 8, !tbaa !104
  %162 = load i32, ptr %16, align 4, !tbaa !95
  %163 = shl i32 1, %162
  %164 = load i32, ptr %10, align 4, !tbaa !95
  %165 = or i32 %164, %163
  store i32 %165, ptr %10, align 4, !tbaa !95
  store i32 0, ptr %14, align 4
  br label %166

166:                                              ; preds = %144, %143, %130
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  %167 = load i32, ptr %14, align 4
  switch i32 %167, label %396 [
    i32 0, label %168
  ]

168:                                              ; preds = %166
  br label %394

169:                                              ; preds = %98
  %170 = load ptr, ptr %13, align 8, !tbaa !9
  %171 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %170, i32 0, i32 0
  %172 = load i32, ptr %171, align 4, !tbaa !97
  %173 = icmp eq i32 %172, 2
  br i1 %173, label %174, label %207

174:                                              ; preds = %169
  %175 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %176 = trunc i8 %175 to i1
  br i1 %176, label %177, label %184

177:                                              ; preds = %174
  %178 = load i8, ptr %6, align 1, !tbaa !5, !range !11, !noundef !12
  %179 = trunc i8 %178 to i1
  br i1 %179, label %183, label %180

180:                                              ; preds = %177
  %181 = load i32, ptr %10, align 4, !tbaa !95
  %182 = icmp ne i32 %181, 0
  br i1 %182, label %183, label %184

183:                                              ; preds = %180, %177
  store i32 2, ptr %14, align 4
  br label %396

184:                                              ; preds = %180, %174
  %185 = load ptr, ptr %13, align 8, !tbaa !9
  %186 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %185, i32 0, i32 3
  %187 = getelementptr inbounds %struct.ImGuiInputEventMouseWheel, ptr %186, i32 0, i32 0
  %188 = load float, ptr %187, align 4, !tbaa !101
  %189 = load ptr, ptr %4, align 8, !tbaa !9
  %190 = getelementptr inbounds %struct.ImGuiIO, ptr %189, i32 0, i32 70
  %191 = load float, ptr %190, align 4, !tbaa !105
  %192 = fadd float %191, %188
  store float %192, ptr %190, align 4, !tbaa !105
  %193 = load ptr, ptr %13, align 8, !tbaa !9
  %194 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %193, i32 0, i32 3
  %195 = getelementptr inbounds %struct.ImGuiInputEventMouseWheel, ptr %194, i32 0, i32 1
  %196 = load float, ptr %195, align 4, !tbaa !101
  %197 = load ptr, ptr %4, align 8, !tbaa !9
  %198 = getelementptr inbounds %struct.ImGuiIO, ptr %197, i32 0, i32 69
  %199 = load float, ptr %198, align 8, !tbaa !106
  %200 = fadd float %199, %196
  store float %200, ptr %198, align 8, !tbaa !106
  %201 = load ptr, ptr %13, align 8, !tbaa !9
  %202 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %201, i32 0, i32 3
  %203 = getelementptr inbounds %struct.ImGuiInputEventMouseWheel, ptr %202, i32 0, i32 2
  %204 = load i32, ptr %203, align 4, !tbaa !101
  %205 = load ptr, ptr %4, align 8, !tbaa !9
  %206 = getelementptr inbounds %struct.ImGuiIO, ptr %205, i32 0, i32 71
  store i32 %204, ptr %206, align 8, !tbaa !104
  store i8 1, ptr %7, align 1, !tbaa !5
  br label %393

207:                                              ; preds = %169
  %208 = load ptr, ptr %13, align 8, !tbaa !9
  %209 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %208, i32 0, i32 0
  %210 = load i32, ptr %209, align 4, !tbaa !97
  %211 = icmp eq i32 %210, 4
  br i1 %211, label %212, label %219

212:                                              ; preds = %207
  %213 = load ptr, ptr %13, align 8, !tbaa !9
  %214 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %213, i32 0, i32 3
  %215 = getelementptr inbounds %struct.ImGuiInputEventMouseViewport, ptr %214, i32 0, i32 0
  %216 = load i32, ptr %215, align 4, !tbaa !101
  %217 = load ptr, ptr %4, align 8, !tbaa !9
  %218 = getelementptr inbounds %struct.ImGuiIO, ptr %217, i32 0, i32 72
  store i32 %216, ptr %218, align 4, !tbaa !107
  br label %392

219:                                              ; preds = %207
  %220 = load ptr, ptr %13, align 8, !tbaa !9
  %221 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %220, i32 0, i32 0
  %222 = load i32, ptr %221, align 4, !tbaa !97
  %223 = icmp eq i32 %222, 5
  br i1 %223, label %224, label %325

224:                                              ; preds = %219
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %225 = load ptr, ptr %13, align 8, !tbaa !9
  %226 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %225, i32 0, i32 3
  %227 = getelementptr inbounds %struct.ImGuiInputEventKey, ptr %226, i32 0, i32 0
  %228 = load i32, ptr %227, align 4, !tbaa !101
  store i32 %228, ptr %17, align 4, !tbaa !108
  %229 = load i32, ptr %17, align 4, !tbaa !108
  %230 = icmp ne i32 %229, 0
  br i1 %230, label %231, label %232

231:                                              ; preds = %224
  br label %234

232:                                              ; preds = %224
  call void @__assert_fail(ptr noundef @.str.222, ptr noundef @.str.3, i32 noundef 9859, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb) #8
  unreachable

233:                                              ; No predecessors!
  br label %234

234:                                              ; preds = %233, %231
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %235 = load i32, ptr %17, align 4, !tbaa !108
  %236 = call noundef ptr @_ZN5ImGui10GetKeyDataE8ImGuiKey(i32 noundef %235)
  store ptr %236, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %237 = load ptr, ptr %18, align 8, !tbaa !9
  %238 = load ptr, ptr %3, align 8, !tbaa !9
  %239 = getelementptr inbounds %struct.ImGuiContext, ptr %238, i32 0, i32 2
  %240 = getelementptr inbounds %struct.ImGuiIO, ptr %239, i32 0, i32 78
  %241 = getelementptr inbounds [666 x %struct.ImGuiKeyData], ptr %240, i64 0, i64 0
  %242 = ptrtoint ptr %237 to i64
  %243 = ptrtoint ptr %241 to i64
  %244 = sub i64 %242, %243
  %245 = sdiv exact i64 %244, 16
  %246 = trunc i64 %245 to i32
  store i32 %246, ptr %19, align 4, !tbaa !95
  %247 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %248 = trunc i8 %247 to i1
  br i1 %248, label %249, label %272

249:                                              ; preds = %234
  %250 = load ptr, ptr %18, align 8, !tbaa !9
  %251 = getelementptr inbounds %struct.ImGuiKeyData, ptr %250, i32 0, i32 0
  %252 = load i8, ptr %251, align 4, !tbaa !110, !range !11, !noundef !12
  %253 = trunc i8 %252 to i1
  %254 = zext i1 %253 to i32
  %255 = load ptr, ptr %13, align 8, !tbaa !9
  %256 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %255, i32 0, i32 3
  %257 = getelementptr inbounds %struct.ImGuiInputEventKey, ptr %256, i32 0, i32 1
  %258 = load i8, ptr %257, align 4, !tbaa !101, !range !11, !noundef !12
  %259 = trunc i8 %258 to i1
  %260 = zext i1 %259 to i32
  %261 = icmp ne i32 %254, %260
  br i1 %261, label %262, label %272

262:                                              ; preds = %249
  %263 = load i32, ptr %19, align 4, !tbaa !95
  %264 = call noundef zeroext i1 @_ZNK10ImBitArrayILi666ELi0EE7TestBitEi(ptr noundef nonnull align 4 dereferenceable(84) %11, i32 noundef %263)
  br i1 %264, label %271, label %265

265:                                              ; preds = %262
  %266 = load i8, ptr %9, align 1, !tbaa !5, !range !11, !noundef !12
  %267 = trunc i8 %266 to i1
  br i1 %267, label %271, label %268

268:                                              ; preds = %265
  %269 = load i32, ptr %10, align 4, !tbaa !95
  %270 = icmp ne i32 %269, 0
  br i1 %270, label %271, label %272

271:                                              ; preds = %268, %265, %262
  store i32 2, ptr %14, align 4
  br label %322

272:                                              ; preds = %268, %249, %234
  %273 = load ptr, ptr %13, align 8, !tbaa !9
  %274 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %273, i32 0, i32 3
  %275 = getelementptr inbounds %struct.ImGuiInputEventKey, ptr %274, i32 0, i32 1
  %276 = load i8, ptr %275, align 4, !tbaa !101, !range !11, !noundef !12
  %277 = trunc i8 %276 to i1
  %278 = load ptr, ptr %18, align 8, !tbaa !9
  %279 = getelementptr inbounds %struct.ImGuiKeyData, ptr %278, i32 0, i32 0
  %280 = zext i1 %277 to i8
  store i8 %280, ptr %279, align 4, !tbaa !110
  %281 = load ptr, ptr %13, align 8, !tbaa !9
  %282 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %281, i32 0, i32 3
  %283 = getelementptr inbounds %struct.ImGuiInputEventKey, ptr %282, i32 0, i32 2
  %284 = load float, ptr %283, align 4, !tbaa !101
  %285 = load ptr, ptr %18, align 8, !tbaa !9
  %286 = getelementptr inbounds %struct.ImGuiKeyData, ptr %285, i32 0, i32 3
  store float %284, ptr %286, align 4, !tbaa !112
  store i8 1, ptr %8, align 1, !tbaa !5
  %287 = load i32, ptr %19, align 4, !tbaa !95
  call void @_ZN10ImBitArrayILi666ELi0EE6SetBitEi(ptr noundef nonnull align 4 dereferenceable(84) %11, i32 noundef %287)
  %288 = load ptr, ptr %18, align 8, !tbaa !9
  %289 = getelementptr inbounds %struct.ImGuiKeyData, ptr %288, i32 0, i32 0
  %290 = load i8, ptr %289, align 4, !tbaa !110, !range !11, !noundef !12
  %291 = trunc i8 %290 to i1
  %292 = load ptr, ptr %4, align 8, !tbaa !9
  %293 = getelementptr inbounds %struct.ImGuiIO, ptr %292, i32 0, i32 64
  %294 = load i32, ptr %19, align 4, !tbaa !95
  %295 = sext i32 %294 to i64
  %296 = getelementptr inbounds [666 x i8], ptr %293, i64 0, i64 %295
  %297 = zext i1 %291 to i8
  store i8 %297, ptr %296, align 1, !tbaa !5
  %298 = load ptr, ptr %4, align 8, !tbaa !9
  %299 = getelementptr inbounds %struct.ImGuiIO, ptr %298, i32 0, i32 63
  %300 = load i32, ptr %19, align 4, !tbaa !95
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds [666 x i32], ptr %299, i64 0, i64 %301
  %303 = load i32, ptr %302, align 4, !tbaa !95
  %304 = icmp ne i32 %303, -1
  br i1 %304, label %305, label %321

305:                                              ; preds = %272
  %306 = load ptr, ptr %18, align 8, !tbaa !9
  %307 = getelementptr inbounds %struct.ImGuiKeyData, ptr %306, i32 0, i32 0
  %308 = load i8, ptr %307, align 4, !tbaa !110, !range !11, !noundef !12
  %309 = trunc i8 %308 to i1
  %310 = load ptr, ptr %4, align 8, !tbaa !9
  %311 = getelementptr inbounds %struct.ImGuiIO, ptr %310, i32 0, i32 64
  %312 = load ptr, ptr %4, align 8, !tbaa !9
  %313 = getelementptr inbounds %struct.ImGuiIO, ptr %312, i32 0, i32 63
  %314 = load i32, ptr %19, align 4, !tbaa !95
  %315 = sext i32 %314 to i64
  %316 = getelementptr inbounds [666 x i32], ptr %313, i64 0, i64 %315
  %317 = load i32, ptr %316, align 4, !tbaa !95
  %318 = sext i32 %317 to i64
  %319 = getelementptr inbounds [666 x i8], ptr %311, i64 0, i64 %318
  %320 = zext i1 %309 to i8
  store i8 %320, ptr %319, align 1, !tbaa !5
  br label %321

321:                                              ; preds = %305, %272
  store i32 0, ptr %14, align 4
  br label %322

322:                                              ; preds = %321, %271
  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
  %323 = load i32, ptr %14, align 4
  switch i32 %323, label %396 [
    i32 0, label %324
  ]

324:                                              ; preds = %322
  br label %391

325:                                              ; preds = %219
  %326 = load ptr, ptr %13, align 8, !tbaa !9
  %327 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %326, i32 0, i32 0
  %328 = load i32, ptr %327, align 4, !tbaa !97
  %329 = icmp eq i32 %328, 6
  br i1 %329, label %330, label %370

330:                                              ; preds = %325
  %331 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %332 = trunc i8 %331 to i1
  br i1 %332, label %333, label %349

333:                                              ; preds = %330
  %334 = load i8, ptr %8, align 1, !tbaa !5, !range !11, !noundef !12
  %335 = trunc i8 %334 to i1
  br i1 %335, label %336, label %339

336:                                              ; preds = %333
  %337 = load i8, ptr %5, align 1, !tbaa !5, !range !11, !noundef !12
  %338 = trunc i8 %337 to i1
  br i1 %338, label %348, label %339

339:                                              ; preds = %336, %333
  %340 = load i32, ptr %10, align 4, !tbaa !95
  %341 = icmp ne i32 %340, 0
  br i1 %341, label %348, label %342

342:                                              ; preds = %339
  %343 = load i8, ptr %6, align 1, !tbaa !5, !range !11, !noundef !12
  %344 = trunc i8 %343 to i1
  br i1 %344, label %348, label %345

345:                                              ; preds = %342
  %346 = load i8, ptr %7, align 1, !tbaa !5, !range !11, !noundef !12
  %347 = trunc i8 %346 to i1
  br i1 %347, label %348, label %349

348:                                              ; preds = %345, %342, %339, %336
  store i32 2, ptr %14, align 4
  br label %396

349:                                              ; preds = %345, %330
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %350 = load ptr, ptr %13, align 8, !tbaa !9
  %351 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %350, i32 0, i32 3
  %352 = getelementptr inbounds %struct.ImGuiInputEventText, ptr %351, i32 0, i32 0
  %353 = load i32, ptr %352, align 4, !tbaa !101
  store i32 %353, ptr %20, align 4, !tbaa !95
  %354 = load ptr, ptr %4, align 8, !tbaa !9
  %355 = getelementptr inbounds %struct.ImGuiIO, ptr %354, i32 0, i32 101
  call void @llvm.lifetime.start.p0(i64 2, ptr %21) #7
  %356 = load i32, ptr %20, align 4, !tbaa !95
  %357 = icmp ule i32 %356, 65535
  br i1 %357, label %358, label %362

358:                                              ; preds = %349
  %359 = load i32, ptr %20, align 4, !tbaa !95
  %360 = trunc i32 %359 to i16
  %361 = zext i16 %360 to i32
  br label %363

362:                                              ; preds = %349
  br label %363

363:                                              ; preds = %362, %358
  %364 = phi i32 [ %361, %358 ], [ 65533, %362 ]
  %365 = trunc i32 %364 to i16
  store i16 %365, ptr %21, align 2, !tbaa !113
  call void @_ZN8ImVectorItE9push_backERKt(ptr noundef nonnull align 8 dereferenceable(16) %355, ptr noundef nonnull align 2 dereferenceable(2) %21)
  call void @llvm.lifetime.end.p0(i64 2, ptr %21) #7
  %366 = load i8, ptr %5, align 1, !tbaa !5, !range !11, !noundef !12
  %367 = trunc i8 %366 to i1
  br i1 %367, label %368, label %369

368:                                              ; preds = %363
  store i8 1, ptr %9, align 1, !tbaa !5
  br label %369

369:                                              ; preds = %368, %363
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %390

370:                                              ; preds = %325
  %371 = load ptr, ptr %13, align 8, !tbaa !9
  %372 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %371, i32 0, i32 0
  %373 = load i32, ptr %372, align 4, !tbaa !97
  %374 = icmp eq i32 %373, 7
  br i1 %374, label %375, label %388

375:                                              ; preds = %370
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #7
  %376 = load ptr, ptr %13, align 8, !tbaa !9
  %377 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %376, i32 0, i32 3
  %378 = getelementptr inbounds %struct.ImGuiInputEventAppFocused, ptr %377, i32 0, i32 0
  %379 = load i8, ptr %378, align 4, !tbaa !101, !range !11, !noundef !12
  %380 = trunc i8 %379 to i1
  %381 = xor i1 %380, true
  %382 = zext i1 %381 to i8
  store i8 %382, ptr %22, align 1, !tbaa !5
  %383 = load i8, ptr %22, align 1, !tbaa !5, !range !11, !noundef !12
  %384 = trunc i8 %383 to i1
  %385 = load ptr, ptr %4, align 8, !tbaa !9
  %386 = getelementptr inbounds %struct.ImGuiIO, ptr %385, i32 0, i32 96
  %387 = zext i1 %384 to i8
  store i8 %387, ptr %386, align 8, !tbaa !114
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  br label %389

388:                                              ; preds = %370
  call void @__assert_fail(ptr noundef @.str.223, ptr noundef @.str.3, i32 noundef 9895, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb) #8
  unreachable

389:                                              ; preds = %375
  br label %390

390:                                              ; preds = %389, %369
  br label %391

391:                                              ; preds = %390, %324
  br label %392

392:                                              ; preds = %391, %212
  br label %393

393:                                              ; preds = %392, %184
  br label %394

394:                                              ; preds = %393, %168
  br label %395

395:                                              ; preds = %394, %97
  store i32 0, ptr %14, align 4
  br label %396

396:                                              ; preds = %395, %348, %322, %183, %166, %95, %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  %397 = load i32, ptr %14, align 4
  switch i32 %397, label %488 [
    i32 0, label %398
    i32 4, label %399
    i32 2, label %402
  ]

398:                                              ; preds = %396
  br label %399

399:                                              ; preds = %398, %396
  %400 = load i32, ptr %12, align 4, !tbaa !95
  %401 = add nsw i32 %400, 1
  store i32 %401, ptr %12, align 4, !tbaa !95
  br label %39, !llvm.loop !115

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

403:                                              ; preds = %415, %402
  %404 = load i32, ptr %23, align 4, !tbaa !95
  %405 = load i32, ptr %12, align 4, !tbaa !95
  %406 = icmp slt i32 %404, %405
  br i1 %406, label %408, label %407

407:                                              ; preds = %403
  store i32 5, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %418

408:                                              ; preds = %403
  %409 = load ptr, ptr %3, align 8, !tbaa !9
  %410 = getelementptr inbounds %struct.ImGuiContext, ptr %409, i32 0, i32 23
  %411 = load ptr, ptr %3, align 8, !tbaa !9
  %412 = getelementptr inbounds %struct.ImGuiContext, ptr %411, i32 0, i32 22
  %413 = load i32, ptr %23, align 4, !tbaa !95
  %414 = call noundef nonnull align 4 dereferenceable(25) ptr @_ZN8ImVectorI15ImGuiInputEventEixEi(ptr noundef nonnull align 8 dereferenceable(16) %412, i32 noundef %413)
  call void @_ZN8ImVectorI15ImGuiInputEventE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %410, ptr noundef nonnull align 4 dereferenceable(25) %414)
  br label %415

415:                                              ; preds = %408
  %416 = load i32, ptr %23, align 4, !tbaa !95
  %417 = add nsw i32 %416, 1
  store i32 %417, ptr %23, align 4, !tbaa !95
  br label %403, !llvm.loop !117

418:                                              ; preds = %407
  %419 = load i32, ptr %12, align 4, !tbaa !95
  %420 = icmp ne i32 %419, 0
  br i1 %420, label %421, label %453

421:                                              ; preds = %418
  %422 = load ptr, ptr %3, align 8, !tbaa !9
  %423 = getelementptr inbounds %struct.ImGuiContext, ptr %422, i32 0, i32 262
  %424 = load i32, ptr %423, align 4, !tbaa !118
  %425 = and i32 %424, 64
  %426 = icmp ne i32 %425, 0
  br i1 %426, label %427, label %453

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

428:                                              ; preds = %449, %427
  %429 = load i32, ptr %24, align 4, !tbaa !95
  %430 = load ptr, ptr %3, align 8, !tbaa !9
  %431 = getelementptr inbounds %struct.ImGuiContext, ptr %430, i32 0, i32 22
  %432 = getelementptr inbounds %struct.ImVector.3, ptr %431, i32 0, i32 0
  %433 = load i32, ptr %432, align 8, !tbaa !96
  %434 = icmp slt i32 %429, %433
  br i1 %434, label %436, label %435

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

436:                                              ; preds = %428
  %437 = load i32, ptr %24, align 4, !tbaa !95
  %438 = load i32, ptr %12, align 4, !tbaa !95
  %439 = icmp slt i32 %437, %438
  br i1 %439, label %440, label %441

440:                                              ; preds = %436
  br label %442

441:                                              ; preds = %436
  br label %442

442:                                              ; preds = %441, %440
  %443 = phi ptr [ @.str.224, %440 ], [ @.str.225, %441 ]
  %444 = getelementptr inbounds [10 x i8], ptr %443, i64 0, i64 0
  %445 = load ptr, ptr %3, align 8, !tbaa !9
  %446 = getelementptr inbounds %struct.ImGuiContext, ptr %445, i32 0, i32 22
  %447 = load i32, ptr %24, align 4, !tbaa !95
  %448 = call noundef nonnull align 4 dereferenceable(25) ptr @_ZN8ImVectorI15ImGuiInputEventEixEi(ptr noundef nonnull align 8 dereferenceable(16) %446, i32 noundef %447)
  call void @_ZL20DebugPrintInputEventPKcPK15ImGuiInputEvent(ptr noundef %444, ptr noundef %448)
  br label %449

449:                                              ; preds = %442
  %450 = load i32, ptr %24, align 4, !tbaa !95
  %451 = add nsw i32 %450, 1
  store i32 %451, ptr %24, align 4, !tbaa !95
  br label %428, !llvm.loop !119

452:                                              ; preds = %435
  br label %453

453:                                              ; preds = %452, %421, %418
  %454 = load i32, ptr %12, align 4, !tbaa !95
  %455 = load ptr, ptr %3, align 8, !tbaa !9
  %456 = getelementptr inbounds %struct.ImGuiContext, ptr %455, i32 0, i32 22
  %457 = getelementptr inbounds %struct.ImVector.3, ptr %456, i32 0, i32 0
  %458 = load i32, ptr %457, align 8, !tbaa !96
  %459 = icmp eq i32 %454, %458
  br i1 %459, label %460, label %463

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

463:                                              ; preds = %453
  %464 = load ptr, ptr %3, align 8, !tbaa !9
  %465 = getelementptr inbounds %struct.ImGuiContext, ptr %464, i32 0, i32 22
  %466 = load ptr, ptr %3, align 8, !tbaa !9
  %467 = getelementptr inbounds %struct.ImGuiContext, ptr %466, i32 0, i32 22
  %468 = getelementptr inbounds %struct.ImVector.3, ptr %467, i32 0, i32 2
  %469 = load ptr, ptr %468, align 8, !tbaa !120
  %470 = load ptr, ptr %3, align 8, !tbaa !9
  %471 = getelementptr inbounds %struct.ImGuiContext, ptr %470, i32 0, i32 22
  %472 = getelementptr inbounds %struct.ImVector.3, ptr %471, i32 0, i32 2
  %473 = load ptr, ptr %472, align 8, !tbaa !120
  %474 = load i32, ptr %12, align 4, !tbaa !95
  %475 = sext i32 %474 to i64
  %476 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %473, i64 %475
  %477 = call noundef ptr @_ZN8ImVectorI15ImGuiInputEventE5eraseEPKS0_S3_(ptr noundef nonnull align 8 dereferenceable(16) %465, ptr noundef %469, ptr noundef %476)
  br label %478

478:                                              ; preds = %463, %460
  %479 = load ptr, ptr %3, align 8, !tbaa !9
  %480 = getelementptr inbounds %struct.ImGuiContext, ptr %479, i32 0, i32 2
  %481 = getelementptr inbounds %struct.ImGuiIO, ptr %480, i32 0, i32 96
  %482 = load i8, ptr %481, align 8, !tbaa !121, !range !11, !noundef !12
  %483 = trunc i8 %482 to i1
  br i1 %483, label %484, label %487

484:                                              ; preds = %478
  %485 = load ptr, ptr %3, align 8, !tbaa !9
  %486 = getelementptr inbounds %struct.ImGuiContext, ptr %485, i32 0, i32 2
  call void @_ZN7ImGuiIO14ClearInputKeysEv(ptr noundef nonnull align 8 dereferenceable(14616) %486)
  br label %487

487:                                              ; preds = %484, %478
  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

488:                                              ; preds = %396
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10ImBitArrayILi666ELi0EEC2Ev(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 @_ZNK10ImBitArrayILi666ELi0EE7TestBitEi(ptr noundef nonnull align 4 dereferenceable(84), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10ImBitArrayILi666ELi0EE6SetBitEi(ptr noundef nonnull align 4 dereferenceable(84), i32 noundef) #1 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 25676}
!14 = !{!"_ZTS12ImGuiContext", !6, i64 0, !6, i64 1, !15, i64 8, !22, i64 14624, !25, i64 14840, !16, i64 15972, !16, i64 15976, !10, i64 15984, !18, i64 15992, !18, i64 15996, !26, i64 16000, !29, i64 16528, !16, i64 16536, !16, i64 16540, !16, i64 16544, !16, i64 16548, !6, i64 16552, !6, i64 16553, !6, i64 16554, !6, i64 16555, !6, i64 16556, !10, i64 16560, !30, i64 16568, !30, i64 16584, !20, i64 16600, !16, i64 16604, !31, i64 16608, !31, i64 16624, !31, i64 16640, !32, i64 16656, !33, i64 16672, !16, i64 16688, !17, i64 16692, !16, i64 16700, !10, i64 16704, !10, i64 16712, !10, i64 16720, !10, i64 16728, !10, i64 16736, !17, i64 16744, !16, i64 16752, !16, i64 16756, !18, i64 16760, !17, i64 16764, !17, i64 16772, !16, i64 16780, !16, i64 16784, !16, i64 16788, !6, i64 16792, !6, i64 16793, !18, i64 16796, !18, i64 16800, !16, i64 16804, !16, i64 16808, !18, i64 16812, !6, i64 16816, !6, i64 16817, !6, i64 16818, !6, i64 16819, !6, i64 16820, !6, i64 16821, !6, i64 16822, !16, i64 16823, !17, i64 16824, !10, i64 16832, !35, i64 16840, !16, i64 16844, !6, i64 16848, !6, i64 16849, !10, i64 16856, !16, i64 16864, !18, i64 16868, !29, i64 16872, !29, i64 16880, !29, i64 16888, !36, i64 16896, !7, i64 16916, !37, i64 18768, !16, i64 19112, !6, i64 19116, !16, i64 19120, !16, i64 19124, !16, i64 19128, !16, i64 19132, !16, i64 19136, !39, i64 19144, !41, i64 19176, !43, i64 19256, !6, i64 19416, !16, i64 19420, !45, i64 19424, !46, i64 19440, !47, i64 19456, !48, i64 19472, !49, i64 19488, !50, i64 19504, !51, i64 19520, !51, i64 19536, !52, i64 19552, !16, i64 19568, !53, i64 19576, !18, i64 19592, !10, i64 19600, !10, i64 19608, !10, i64 19616, !16, i64 19624, !54, i64 19632, !16, i64 19680, !16, i64 19684, !16, i64 19688, !10, i64 19696, !16, i64 19704, !16, i64 19708, !48, i64 19712, !16, i64 19728, !16, i64 19732, !16, i64 19736, !16, i64 19740, !16, i64 19744, !18, i64 19748, !16, i64 19752, !16, i64 19756, !16, i64 19760, !16, i64 19764, !16, i64 19768, !35, i64 19772, !55, i64 19776, !40, i64 19784, !6, i64 19792, !6, i64 19793, !6, i64 19794, !6, i64 19795, !6, i64 19796, !6, i64 19797, !6, i64 19798, !56, i64 19800, !6, i64 19864, !6, i64 19865, !6, i64 19866, !16, i64 19868, !16, i64 19872, !16, i64 19876, !16, i64 19880, !16, i64 19884, !16, i64 19888, !42, i64 19892, !42, i64 19908, !16, i64 19924, !16, i64 19928, !16, i64 19932, !56, i64 19936, !56, i64 20000, !56, i64 20064, !56, i64 20128, !16, i64 20192, !16, i64 20196, !10, i64 20200, !10, i64 20208, !10, i64 20216, !18, i64 20224, !18, i64 20228, !6, i64 20232, !17, i64 20236, !17, i64 20244, !18, i64 20252, !6, i64 20256, !6, i64 20257, !6, i64 20258, !16, i64 20260, !16, i64 20264, !16, i64 20268, !57, i64 20272, !42, i64 20336, !42, i64 20352, !16, i64 20368, !16, i64 20372, !18, i64 20376, !16, i64 20380, !16, i64 20384, !16, i64 20388, !16, i64 20392, !58, i64 20400, !7, i64 20416, !16, i64 20432, !59, i64 20440, !10, i64 20456, !16, i64 20464, !16, i64 20468, !60, i64 20472, !61, i64 20488, !63, i64 20528, !64, i64 20544, !10, i64 20560, !65, i64 20568, !67, i64 20608, !68, i64 20624, !16, i64 20640, !16, i64 20644, !18, i64 20648, !18, i64 20652, !16, i64 20656, !16, i64 20660, !16, i64 20664, !18, i64 20668, !17, i64 20672, !69, i64 20680, !73, i64 24408, !74, i64 24432, !16, i64 24552, !16, i64 24556, !16, i64 24560, !16, i64 24564, !18, i64 24568, !18, i64 24572, !16, i64 24576, !27, i64 24580, !76, i64 24596, !42, i64 24644, !6, i64 24660, !18, i64 24664, !18, i64 24668, !6, i64 24672, !6, i64 24673, !18, i64 24676, !18, i64 24680, !18, i64 24684, !18, i64 24688, !19, i64 24692, !19, i64 24694, !19, i64 24696, !70, i64 24704, !77, i64 24720, !78, i64 24736, !80, i64 24840, !80, i64 24856, !16, i64 24872, !81, i64 24880, !10, i64 24936, !6, i64 24944, !18, i64 24948, !84, i64 24952, !85, i64 24968, !86, i64 24984, !87, i64 25000, !88, i64 25016, !16, i64 25032, !7, i64 25040, !6, i64 25128, !89, i64 25132, !10, i64 25136, !84, i64 25144, !10, i64 25160, !10, i64 25168, !18, i64 25176, !6, i64 25180, !16, i64 25184, !16, i64 25188, !16, i64 25192, !16, i64 25196, !84, i64 25200, !90, i64 25216, !16, i64 25240, !7, i64 25244, !7, i64 25245, !6, i64 25246, !16, i64 25248, !7, i64 25252, !6, i64 25253, !7, i64 25254, !16, i64 25256, !18, i64 25260, !27, i64 25264, !91, i64 25280, !92, i64 25304, !94, i64 25344, !10, i64 25408, !7, i64 25416, !16, i64 25656, !16, i64 25660, !18, i64 25664, !16, i64 25668, !16, i64 25672, !16, i64 25676, !70, i64 25680, !7, i64 25696}
!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, !6, i64 124, !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, !19, i64 200, !6, i64 202, !6, i64 203, !6, i64 204, !6, i64 205, !6, i64 206, !6, i64 207, !6, i64 208, !18, i64 212, !16, i64 216, !16, i64 220, !16, i64 224, !16, i64 228, !17, i64 232, !7, i64 240, !7, i64 2904, !7, i64 3572, !10, i64 3640, !17, i64 3648, !7, i64 3656, !18, i64 3664, !18, i64 3668, !20, i64 3672, !16, i64 3676, !6, i64 3680, !6, i64 3681, !6, i64 3682, !6, i64 3683, !16, i64 3684, !7, i64 3688, !6, i64 14344, !17, i64 14348, !7, i64 14356, !7, i64 14400, !7, i64 14440, !7, i64 14445, !7, i64 14450, !7, i64 14460, !7, i64 14470, !7, i64 14475, !7, i64 14480, !6, i64 14485, !7, i64 14488, !7, i64 14508, !7, i64 14528, !7, i64 14568, !18, i64 14588, !6, i64 14592, !6, i64 14593, !7, i64 14594, !6, i64 14595, !19, i64 14596, !21, i64 14600}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_ZTS6ImVec2", !18, i64 0, !18, i64 4}
!18 = !{!"float", !7, i64 0}
!19 = !{!"short", !7, i64 0}
!20 = !{!"_ZTS16ImGuiMouseSource", !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, !18, i64 148, !18, i64 152, !16, i64 156, !17, i64 160, !17, i64 168, !18, i64 176, !17, i64 180, !17, i64 188, !17, i64 196, !17, i64 204, !18, i64 212, !18, i64 216, !6, i64 220, !6, i64 221, !6, i64 222, !18, i64 224, !18, i64 228, !7, i64 232, !18, i64 1112, !18, i64 1116, !18, i64 1120, !16, i64 1124, !16, i64 1128}
!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 = !{!"_ZTS10ImBitArrayILi154ELin512EE", !7, i64 0}
!37 = !{!"_ZTS20ImGuiKeyRoutingTable", !7, i64 0, !38, i64 312, !38, i64 328}
!38 = !{!"_ZTS8ImVectorI19ImGuiKeyRoutingDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!39 = !{!"_ZTS17ImGuiNextItemData", !16, i64 0, !16, i64 4, !40, i64 8, !18, i64 16, !16, i64 20, !6, i64 24, !16, i64 25}
!40 = !{!"long long", !7, i64 0}
!41 = !{!"_ZTS17ImGuiLastItemData", !16, i64 0, !16, i64 4, !16, i64 8, !42, i64 12, !42, i64 28, !42, i64 44, !42, i64 60}
!42 = !{!"_ZTS6ImRect", !17, i64 0, !17, i64 8}
!43 = !{!"_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, !16, i64 60, !6, i64 64, !6, i64 65, !42, i64 68, !10, i64 88, !10, i64 96, !18, i64 104, !16, i64 108, !16, i64 112, !44, i64 116, !17, i64 148}
!44 = !{!"_ZTS16ImGuiWindowClass", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12, !16, i64 16, !16, i64 20, !16, i64 24, !6, i64 28, !6, i64 29}
!45 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !16, i64 0, !16, i64 4, !10, i64 8}
!46 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !16, i64 0, !16, i64 4, !10, i64 8}
!47 = !{!"_ZTS8ImVectorIP6ImFontE", !16, i64 0, !16, i64 4, !10, i64 8}
!48 = !{!"_ZTS8ImVectorI19ImGuiFocusScopeDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!49 = !{!"_ZTS8ImVectorIiE", !16, i64 0, !16, i64 4, !10, i64 8}
!50 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!51 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!52 = !{!"_ZTS8ImVectorI20ImGuiNavTreeNodeDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!53 = !{!"_ZTS8ImVectorIP14ImGuiViewportPE", !16, i64 0, !16, i64 4, !10, i64 8}
!54 = !{!"_ZTS20ImGuiPlatformMonitor", !17, i64 0, !17, i64 8, !17, i64 16, !17, i64 24, !18, i64 32, !10, i64 40}
!55 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!56 = !{!"_ZTS16ImGuiNavItemData", !10, i64 0, !16, i64 8, !16, i64 12, !42, i64 16, !16, i64 32, !40, i64 40, !18, i64 48, !18, i64 52, !18, i64 56}
!57 = !{!"_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}
!58 = !{!"_ZTS8ImVectorIhE", !16, i64 0, !16, i64 4, !10, i64 8}
!59 = !{!"_ZTS8ImVectorI20ImGuiListClipperDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!60 = !{!"_ZTS8ImVectorI18ImGuiTableTempDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!61 = !{!"_ZTS6ImPoolI10ImGuiTableE", !62, i64 0, !33, i64 16, !16, i64 32, !16, i64 36}
!62 = !{!"_ZTS8ImVectorI10ImGuiTableE", !16, i64 0, !16, i64 4, !10, i64 8}
!63 = !{!"_ZTS8ImVectorIfE", !16, i64 0, !16, i64 4, !10, i64 8}
!64 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !16, i64 0, !16, i64 4, !10, i64 8}
!65 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !66, i64 0, !33, i64 16, !16, i64 32, !16, i64 36}
!66 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !16, i64 0, !16, i64 4, !10, i64 8}
!67 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !16, i64 0, !16, i64 4, !10, i64 8}
!68 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !16, i64 0, !16, i64 4, !10, i64 8}
!69 = !{!"_ZTS19ImGuiInputTextState", !10, i64 0, !16, i64 8, !16, i64 12, !16, i64 16, !21, i64 24, !70, i64 40, !70, i64 56, !6, i64 72, !16, i64 76, !18, i64 80, !71, i64 84, !18, i64 3712, !6, i64 3716, !6, i64 3717, !6, i64 3718, !16, i64 3720}
!70 = !{!"_ZTS8ImVectorIcE", !16, i64 0, !16, i64 4, !10, i64 8}
!71 = !{!"_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, !72, i64 32}
!72 = !{!"_ZTSN5ImStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !19, i64 3582, !19, i64 3584, !16, i64 3588, !16, i64 3592}
!73 = !{!"_ZTS30ImGuiInputTextDeactivatedState", !16, i64 0, !70, i64 8}
!74 = !{!"_ZTS6ImFont", !63, i64 0, !18, i64 16, !18, i64 20, !21, i64 24, !75, i64 40, !10, i64 56, !10, i64 64, !10, i64 72, !19, i64 80, !19, i64 82, !19, i64 84, !19, 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}
!75 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !16, i64 0, !16, i64 4, !10, i64 8}
!76 = !{!"_ZTS21ImGuiComboPreviewData", !42, i64 0, !17, i64 16, !17, i64 24, !17, i64 32, !18, i64 40, !16, i64 44}
!77 = !{!"_ZTS8ImVectorIjE", !16, i64 0, !16, i64 4, !10, i64 8}
!78 = !{!"_ZTS22ImGuiTypingSelectState", !79, i64 0, !7, i64 24, !16, i64 88, !16, i64 92, !18, i64 96, !6, i64 100}
!79 = !{!"_ZTS24ImGuiTypingSelectRequest", !16, i64 0, !16, i64 4, !10, i64 8, !6, i64 16, !6, i64 17, !7, i64 18}
!80 = !{!"_ZTS20ImGuiPlatformImeData", !6, i64 0, !17, i64 4, !18, i64 12}
!81 = !{!"_ZTS16ImGuiDockContext", !33, i64 0, !82, i64 16, !83, i64 32, !6, i64 48}
!82 = !{!"_ZTS8ImVectorI16ImGuiDockRequestE", !16, i64 0, !16, i64 4, !10, i64 8}
!83 = !{!"_ZTS8ImVectorI21ImGuiDockNodeSettingsE", !16, i64 0, !16, i64 4, !10, i64 8}
!84 = !{!"_ZTS15ImGuiTextBuffer", !70, i64 0}
!85 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !16, i64 0, !16, i64 4, !10, i64 8}
!86 = !{!"_ZTS13ImChunkStreamI19ImGuiWindowSettingsE", !70, i64 0}
!87 = !{!"_ZTS13ImChunkStreamI18ImGuiTableSettingsE", !70, i64 0}
!88 = !{!"_ZTS8ImVectorI16ImGuiContextHookE", !16, i64 0, !16, i64 4, !10, i64 8}
!89 = !{!"_ZTS12ImGuiLogType", !7, i64 0}
!90 = !{!"_ZTS14ImGuiTextIndex", !49, i64 0, !16, i64 16}
!91 = !{!"_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, !6, i64 9, !16, i64 12, !16, i64 16}
!92 = !{!"_ZTS16ImGuiIDStackTool", !16, i64 0, !16, i64 4, !16, i64 8, !93, i64 16, !6, i64 32, !18, i64 36}
!93 = !{!"_ZTS8ImVectorI19ImGuiStackLevelInfoE", !16, i64 0, !16, i64 4, !10, i64 8}
!94 = !{!"_ZTS19ImGuiDebugAllocInfo", !16, i64 0, !16, i64 4, !19, i64 8, !7, i64 12}
!95 = !{!16, !16, i64 0}
!96 = !{!14, !16, i64 16568}
!97 = !{!98, !99, i64 0}
!98 = !{!"_ZTS15ImGuiInputEvent", !99, i64 0, !35, i64 4, !16, i64 8, !7, i64 12, !6, i64 24}
!99 = !{!"_ZTS19ImGuiInputEventType", !7, i64 0}
!100 = !{!14, !6, i64 213}
!101 = !{!7, !7, i64 0}
!102 = !{i64 0, i64 4, !103, i64 4, i64 4, !103}
!103 = !{!18, !18, i64 0}
!104 = !{!15, !20, i64 3672}
!105 = !{!15, !18, i64 3668}
!106 = !{!15, !18, i64 3664}
!107 = !{!15, !16, i64 3676}
!108 = !{!109, !109, i64 0}
!109 = !{!"_ZTS8ImGuiKey", !7, i64 0}
!110 = !{!111, !6, i64 0}
!111 = !{!"_ZTS12ImGuiKeyData", !6, i64 0, !18, i64 4, !18, i64 8, !18, i64 12}
!112 = !{!111, !18, i64 12}
!113 = !{!19, !19, i64 0}
!114 = !{!15, !6, i64 14592}
!115 = distinct !{!115, !116}
!116 = !{!"llvm.loop.mustprogress"}
!117 = distinct !{!117, !116}
!118 = !{!14, !16, i64 25196}
!119 = distinct !{!119, !116}
!120 = !{!14, !10, i64 16576}
!121 = !{!14, !6, i64 14600}


; 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.52 = 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 [72 x i8], align 1
@.str.221 = external hidden unnamed_addr constant [47 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb = external hidden unnamed_addr constant [36 x i8], align 1
@.str.222 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.223 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.224 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.225 = 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(14616)) 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.52, 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 25676
  %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 @_ZN10ImBitArrayILi666ELi0EEC2Ev(ptr noundef nonnull align 4 dereferenceable(84) %2)
  %13 = getelementptr inbounds i8, ptr %5, i64 16568
  %14 = load i32, ptr %13, align 8, !tbaa !92
  %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 14600
  %17 = getelementptr inbounds i8, ptr %5, i64 14608
  %18 = getelementptr inbounds i8, ptr %5, i64 3696
  %19 = ptrtoint ptr %18 to i64
  %20 = getelementptr inbounds i8, ptr %5, i64 2912
  %21 = getelementptr inbounds i8, ptr %5, i64 248
  %22 = getelementptr inbounds i8, ptr %5, i64 3684
  %23 = getelementptr inbounds i8, ptr %5, i64 3676
  %24 = getelementptr inbounds i8, ptr %5, i64 3672
  %25 = getelementptr inbounds i8, ptr %5, i64 3680
  %26 = getelementptr inbounds i8, ptr %5, i64 3664
  %27 = getelementptr inbounds i8, ptr %5, i64 213
  %28 = getelementptr inbounds i8, ptr %5, i64 3656
  br label %29

29:                                               ; preds = %.lr.ph, %.thread176
  %.0129205 = phi i8 [ 0, %.lr.ph ], [ %.3, %.thread176 ]
  %.0130204 = phi i8 [ 0, %.lr.ph ], [ %.2132, %.thread176 ]
  %.0133203 = phi i8 [ 0, %.lr.ph ], [ %.3136, %.thread176 ]
  %.0137202 = phi i8 [ 0, %.lr.ph ], [ %.3140, %.thread176 ]
  %.0141201 = phi i32 [ 0, %.lr.ph ], [ %.3144, %.thread176 ]
  %.0145199 = phi i32 [ 0, %.lr.ph ], [ %146, %.thread176 ]
  %30 = call noundef nonnull align 4 dereferenceable(25) ptr @_ZN8ImVectorI15ImGuiInputEventEixEi(ptr noundef nonnull align 8 dereferenceable(16) %13, i32 noundef %.0145199)
  %31 = load i32, ptr %30, align 4, !tbaa !93
  switch i32 %31, label %145 [
    i32 1, label %32
    i32 3, label %51
    i32 2, label %75
    i32 4, label %89
    i32 5, label %92
    i32 6, label %125
    i32 7, label %141
  ]

32:                                               ; preds = %29
  %33 = load i8, ptr %27, align 1, !tbaa !96, !range !97, !noundef !98
  %34 = trunc nuw i8 %33 to i1
  br i1 %34, label %.thread176, label %35

35:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %36 = getelementptr inbounds i8, ptr %30, i64 12
  %37 = load float, ptr %36, align 4, !tbaa !99
  %38 = getelementptr inbounds i8, ptr %30, i64 16
  %39 = load float, ptr %38, align 4, !tbaa !99
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %3, float noundef %37, float noundef %39)
  br i1 %0, label %40, label %47

40:                                               ; preds = %35
  %.not157 = icmp eq i32 %.0141201, 0
  br i1 %.not157, label %41, label %.thread

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

43:                                               ; preds = %41
  %44 = trunc nuw i8 %.0133203 to i1
  br i1 %44, label %.thread, label %45

45:                                               ; preds = %43
  %46 = trunc nuw i8 %.0137202 to i1
  br i1 %46, label %.thread, label %47

.thread:                                          ; preds = %45, %43, %41, %40
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br label %.thread181

47:                                               ; preds = %35, %45
  %48 = load i64, ptr %3, align 8
  store i64 %48, ptr %28, align 8
  %49 = getelementptr inbounds i8, ptr %30, i64 20
  %50 = load i32, ptr %49, align 4, !tbaa !99
  store i32 %50, ptr %25, align 8, !tbaa !100
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br label %.thread176

51:                                               ; preds = %29
  %52 = getelementptr inbounds i8, ptr %30, i64 12
  %53 = load i32, ptr %52, align 4, !tbaa !99
  %54 = icmp ult i32 %53, 5
  br i1 %54, label %56, label %55

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

56:                                               ; preds = %51
  %57 = shl nuw nsw i32 1, %53
  br i1 %0, label %58, label %._crit_edge244

58:                                               ; preds = %56
  %59 = and i32 %57, %.0141201
  %.not156 = icmp eq i32 %59, 0
  br i1 %.not156, label %60, label %.thread181

60:                                               ; preds = %58
  %61 = trunc nuw i8 %.0130204 to i1
  br i1 %61, label %.thread181, label %62

62:                                               ; preds = %60
  %63 = getelementptr inbounds i8, ptr %30, i64 20
  %64 = load i32, ptr %63, align 4
  %65 = icmp eq i32 %64, 1
  br i1 %65, label %66, label %._crit_edge244

66:                                               ; preds = %62
  %67 = trunc nuw i8 %.0129205 to i1
  br i1 %67, label %.thread181, label %._crit_edge244

._crit_edge244:                                   ; preds = %56, %62, %66
  %68 = getelementptr inbounds i8, ptr %30, i64 16
  %69 = load i8, ptr %68, align 4, !tbaa !99, !range !97, !noundef !98
  %70 = zext nneg i32 %53 to i64
  %71 = getelementptr inbounds [5 x i8], ptr %26, i64 0, i64 %70
  store i8 %69, ptr %71, align 1, !tbaa !101
  %72 = getelementptr inbounds i8, ptr %30, i64 20
  %73 = load i32, ptr %72, align 4, !tbaa !99
  store i32 %73, ptr %25, align 8, !tbaa !100
  %74 = or i32 %57, %.0141201
  br label %.thread176

75:                                               ; preds = %29
  %76 = trunc nuw i8 %.0129205 to i1
  %77 = icmp ne i32 %.0141201, 0
  %or.cond = select i1 %76, i1 true, i1 %77
  %or.cond164 = select i1 %0, i1 %or.cond, i1 false
  br i1 %or.cond164, label %.thread181, label %78

78:                                               ; preds = %75
  %79 = getelementptr inbounds i8, ptr %30, i64 12
  %80 = load float, ptr %79, align 4, !tbaa !99
  %81 = load float, ptr %23, align 4, !tbaa !102
  %82 = fadd float %80, %81
  store float %82, ptr %23, align 4, !tbaa !102
  %83 = getelementptr inbounds i8, ptr %30, i64 16
  %84 = load float, ptr %83, align 4, !tbaa !99
  %85 = load float, ptr %24, align 8, !tbaa !103
  %86 = fadd float %84, %85
  store float %86, ptr %24, align 8, !tbaa !103
  %87 = getelementptr inbounds i8, ptr %30, i64 20
  %88 = load i32, ptr %87, align 4, !tbaa !99
  store i32 %88, ptr %25, align 8, !tbaa !100
  br label %.thread176

89:                                               ; preds = %29
  %90 = getelementptr inbounds i8, ptr %30, i64 12
  %91 = load i32, ptr %90, align 4, !tbaa !99
  store i32 %91, ptr %22, align 4, !tbaa !104
  br label %.thread176

92:                                               ; preds = %29
  %93 = getelementptr inbounds i8, ptr %30, i64 12
  %94 = load i32, ptr %93, align 4, !tbaa !99
  %.not = icmp eq i32 %94, 0
  br i1 %.not, label %95, label %96

95:                                               ; preds = %92
  call void @__assert_fail(ptr noundef nonnull @.str.222, ptr noundef nonnull @.str.3, i32 noundef 9859, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb) #7
  unreachable

96:                                               ; preds = %92
  %97 = call noundef ptr @_ZN5ImGui10GetKeyDataE8ImGuiKey(i32 noundef %94)
  %98 = ptrtoint ptr %97 to i64
  %99 = sub i64 %98, %19
  %100 = lshr exact i64 %99, 4
  %101 = trunc i64 %100 to i32
  br i1 %0, label %102, label %111

102:                                              ; preds = %96
  %103 = load i8, ptr %97, align 4, !tbaa !105, !range !97, !noundef !98
  %104 = getelementptr inbounds i8, ptr %30, i64 16
  %105 = load i8, ptr %104, align 4, !tbaa !99, !range !97, !noundef !98
  %.not154 = icmp eq i8 %103, %105
  br i1 %.not154, label %111, label %106

106:                                              ; preds = %102
  %107 = call noundef zeroext i1 @_ZNK10ImBitArrayILi666ELi0EE7TestBitEi(ptr noundef nonnull align 4 dereferenceable(84) %2, i32 noundef %101)
  %108 = trunc nuw i8 %.0137202 to i1
  %109 = icmp ne i32 %.0141201, 0
  %110 = select i1 %107, i1 true, i1 %108
  %or.cond166 = select i1 %110, i1 true, i1 %109
  br i1 %or.cond166, label %.thread181, label %111

111:                                              ; preds = %106, %102, %96
  %112 = getelementptr inbounds i8, ptr %30, i64 16
  %113 = load i8, ptr %112, align 4, !tbaa !99, !range !97, !noundef !98
  store i8 %113, ptr %97, align 4, !tbaa !105
  %114 = getelementptr inbounds i8, ptr %30, i64 20
  %115 = load float, ptr %114, align 4, !tbaa !99
  %116 = getelementptr inbounds i8, ptr %97, i64 12
  store float %115, ptr %116, align 4, !tbaa !107
  call void @_ZN10ImBitArrayILi666ELi0EE6SetBitEi(ptr noundef nonnull align 4 dereferenceable(84) %2, i32 noundef %101)
  %117 = load i8, ptr %97, align 4, !tbaa !105, !range !97, !noundef !98
  %sext = shl i64 %99, 28
  %118 = ashr i64 %sext, 32
  %119 = getelementptr inbounds [666 x i8], ptr %20, i64 0, i64 %118
  store i8 %117, ptr %119, align 1, !tbaa !101
  %120 = getelementptr inbounds [666 x i32], ptr %21, i64 0, i64 %118
  %121 = load i32, ptr %120, align 4, !tbaa !108
  %.not155 = icmp eq i32 %121, -1
  br i1 %.not155, label %.thread176, label %122

122:                                              ; preds = %111
  %123 = sext i32 %121 to i64
  %124 = getelementptr inbounds [666 x i8], ptr %20, i64 0, i64 %123
  store i8 %117, ptr %124, align 1, !tbaa !101
  br label %.thread176

125:                                              ; preds = %29
  br i1 %0, label %126, label %135

126:                                              ; preds = %125
  %127 = trunc nuw i8 %.0133203 to i1
  br i1 %127, label %128, label %130

128:                                              ; preds = %126
  %129 = icmp ne i32 %.0141201, 0
  %or.cond7 = select i1 %12, i1 true, i1 %129
  br i1 %or.cond7, label %.thread181, label %131

130:                                              ; preds = %126
  %.old6.not = icmp eq i32 %.0141201, 0
  br i1 %.old6.not, label %131, label %.thread181

131:                                              ; preds = %128, %130
  %132 = trunc nuw i8 %.0129205 to i1
  br i1 %132, label %.thread181, label %133

133:                                              ; preds = %131
  %134 = trunc nuw i8 %.0130204 to i1
  br i1 %134, label %.thread181, label %135

135:                                              ; preds = %133, %125
  %136 = getelementptr inbounds i8, ptr %30, i64 12
  %137 = load i32, ptr %136, align 4, !tbaa !99
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %4) #6
  %138 = icmp ult i32 %137, 65536
  %139 = trunc i32 %137 to i16
  %140 = select i1 %138, i16 %139, i16 -3
  store i16 %140, ptr %4, align 2, !tbaa !109
  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 %.0137202
  br label %.thread176

141:                                              ; preds = %29
  %142 = getelementptr inbounds i8, ptr %30, i64 12
  %143 = load i8, ptr %142, align 4, !tbaa !99, !range !97, !noundef !98
  %144 = xor i8 %143, 1
  store i8 %144, ptr %16, align 8, !tbaa !110
  br label %.thread176

145:                                              ; preds = %29
  call void @__assert_fail(ptr noundef nonnull @.str.223, ptr noundef nonnull @.str.3, i32 noundef 9895, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb) #7
  unreachable

.thread176:                                       ; preds = %111, %122, %32, %._crit_edge244, %47, %89, %135, %141, %78
  %.3144 = phi i32 [ %.0141201, %32 ], [ %.0141201, %47 ], [ %74, %._crit_edge244 ], [ %.0141201, %78 ], [ %.0141201, %89 ], [ %.0141201, %135 ], [ %.0141201, %141 ], [ %.0141201, %122 ], [ %.0141201, %111 ]
  %.3140 = phi i8 [ %.0137202, %32 ], [ %.0137202, %47 ], [ %.0137202, %._crit_edge244 ], [ %.0137202, %78 ], [ %.0137202, %89 ], [ %spec.select, %135 ], [ %.0137202, %141 ], [ %.0137202, %122 ], [ %.0137202, %111 ]
  %.3136 = phi i8 [ %.0133203, %32 ], [ %.0133203, %47 ], [ %.0133203, %._crit_edge244 ], [ %.0133203, %78 ], [ %.0133203, %89 ], [ %.0133203, %135 ], [ %.0133203, %141 ], [ 1, %122 ], [ 1, %111 ]
  %.2132 = phi i8 [ %.0130204, %32 ], [ %.0130204, %47 ], [ %.0130204, %._crit_edge244 ], [ 1, %78 ], [ %.0130204, %89 ], [ %.0130204, %135 ], [ %.0130204, %141 ], [ %.0130204, %122 ], [ %.0130204, %111 ]
  %.3 = phi i8 [ %.0129205, %32 ], [ 1, %47 ], [ %.0129205, %._crit_edge244 ], [ %.0129205, %78 ], [ %.0129205, %89 ], [ %.0129205, %135 ], [ %.0129205, %141 ], [ %.0129205, %122 ], [ %.0129205, %111 ]
  %146 = add nuw nsw i32 %.0145199, 1
  %147 = load i32, ptr %13, align 8, !tbaa !92
  %148 = icmp slt i32 %146, %147
  br i1 %148, label %29, label %.lr.ph235, !llvm.loop !111

.thread181:                                       ; preds = %75, %133, %131, %130, %128, %106, %60, %58, %66, %.thread
  %.not238 = icmp eq i32 %.0145199, 0
  br i1 %.not238, label %._crit_edge..loopexit_crit_edge, label %.lr.ph235

.lr.ph235:                                        ; preds = %.thread176, %.thread181
  %.0145198253 = phi i32 [ %.0145199, %.thread181 ], [ %146, %.thread176 ]
  %149 = getelementptr inbounds i8, ptr %5, i64 16584
  br label %150

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

150:                                              ; preds = %.lr.ph235, %150
  %.0128234 = phi i32 [ 0, %.lr.ph235 ], [ %152, %150 ]
  %151 = call noundef nonnull align 4 dereferenceable(25) ptr @_ZN8ImVectorI15ImGuiInputEventEixEi(ptr noundef nonnull align 8 dereferenceable(16) %13, i32 noundef %.0128234)
  call void @_ZN8ImVectorI15ImGuiInputEventE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %149, ptr noundef nonnull align 4 dereferenceable(25) %151)
  %152 = add nuw nsw i32 %.0128234, 1
  %exitcond.not = icmp eq i32 %152, %.0145198253
  br i1 %exitcond.not, label %._crit_edge, label %150, !llvm.loop !113

._crit_edge:                                      ; preds = %150
  %153 = getelementptr inbounds i8, ptr %5, i64 25196
  %154 = load i32, ptr %153, align 4, !tbaa !114
  %155 = and i32 %154, 64
  %.not159 = icmp ne i32 %155, 0
  %.pre243 = load i32, ptr %13, align 8, !tbaa !92
  %156 = icmp sgt i32 %.pre243, 0
  %or.cond266 = select i1 %.not159, i1 %156, i1 false
  br i1 %or.cond266, label %.lr.ph237, label %.loopexit

.lr.ph237:                                        ; preds = %._crit_edge, %.lr.ph237
  %.0236 = phi i32 [ %159, %.lr.ph237 ], [ 0, %._crit_edge ]
  %157 = icmp ult i32 %.0236, %.0145198253
  %.str.224..str.225 = select i1 %157, ptr @.str.224, ptr @.str.225
  %158 = call noundef nonnull align 4 dereferenceable(25) ptr @_ZN8ImVectorI15ImGuiInputEventEixEi(ptr noundef nonnull align 8 dereferenceable(16) %13, i32 noundef %.0236)
  call void @_ZL20DebugPrintInputEventPKcPK15ImGuiInputEvent(ptr noundef nonnull %.str.224..str.225, ptr noundef nonnull %158)
  %159 = add nuw nsw i32 %.0236, 1
  %160 = load i32, ptr %13, align 8, !tbaa !92
  %161 = icmp slt i32 %159, %160
  br i1 %161, label %.lr.ph237, label %.loopexit, !llvm.loop !115

.loopexit:                                        ; preds = %.lr.ph237, %._crit_edge..loopexit_crit_edge, %._crit_edge
  %.0145198248257 = phi i32 [ 0, %._crit_edge..loopexit_crit_edge ], [ %.0145198253, %._crit_edge ], [ %.0145198253, %.lr.ph237 ]
  %162 = phi i32 [ %.pre, %._crit_edge..loopexit_crit_edge ], [ %.pre243, %._crit_edge ], [ %160, %.lr.ph237 ]
  %163 = icmp eq i32 %.0145198248257, %162
  br i1 %163, label %164, label %165

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

165:                                              ; preds = %.loopexit
  %166 = getelementptr inbounds i8, ptr %5, i64 16576
  %167 = load ptr, ptr %166, align 8, !tbaa !116
  %168 = zext nneg i32 %.0145198248257 to i64
  %169 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %167, i64 %168
  %170 = call noundef ptr @_ZN8ImVectorI15ImGuiInputEventE5eraseEPKS0_S3_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef %167, ptr noundef %169)
  br label %171

171:                                              ; preds = %165, %164
  %172 = getelementptr inbounds i8, ptr %5, i64 14600
  %173 = load i8, ptr %172, align 8, !tbaa !117, !range !97, !noundef !98
  %174 = trunc nuw i8 %173 to i1
  br i1 %174, label %175, label %176

175:                                              ; preds = %171
  call void @_ZN7ImGuiIO14ClearInputKeysEv(ptr noundef nonnull align 8 dereferenceable(14616) %6)
  br label %176

176:                                              ; preds = %175, %171
  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 @_ZN10ImBitArrayILi666ELi0EEC2Ev(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 @_ZNK10ImBitArrayILi666ELi0EE7TestBitEi(ptr noundef nonnull align 4 dereferenceable(84), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10ImBitArrayILi666ELi0EE6SetBitEi(ptr noundef nonnull align 4 dereferenceable(84), i32 noundef) local_unnamed_addr #1 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 25676}
!10 = !{!"_ZTS12ImGuiContext", !11, i64 0, !11, i64 1, !12, i64 8, !19, i64 14624, !22, i64 14840, !13, i64 15972, !13, i64 15976, !6, i64 15984, !15, i64 15992, !15, i64 15996, !23, i64 16000, !26, i64 16528, !13, i64 16536, !13, i64 16540, !13, i64 16544, !13, i64 16548, !11, i64 16552, !11, i64 16553, !11, i64 16554, !11, i64 16555, !11, i64 16556, !6, i64 16560, !27, i64 16568, !27, i64 16584, !17, i64 16600, !13, i64 16604, !28, i64 16608, !28, i64 16624, !28, i64 16640, !29, i64 16656, !30, i64 16672, !13, i64 16688, !14, i64 16692, !13, i64 16700, !6, i64 16704, !6, i64 16712, !6, i64 16720, !6, i64 16728, !6, i64 16736, !14, i64 16744, !13, i64 16752, !13, i64 16756, !15, i64 16760, !14, i64 16764, !14, i64 16772, !13, i64 16780, !13, i64 16784, !13, i64 16788, !11, i64 16792, !11, i64 16793, !15, i64 16796, !15, i64 16800, !13, i64 16804, !13, i64 16808, !15, i64 16812, !11, i64 16816, !11, i64 16817, !11, i64 16818, !11, i64 16819, !11, i64 16820, !11, i64 16821, !11, i64 16822, !13, i64 16823, !14, i64 16824, !6, i64 16832, !32, i64 16840, !13, i64 16844, !11, i64 16848, !11, i64 16849, !6, i64 16856, !13, i64 16864, !15, i64 16868, !26, i64 16872, !26, i64 16880, !26, i64 16888, !33, i64 16896, !7, i64 16916, !34, i64 18768, !13, i64 19112, !11, i64 19116, !13, i64 19120, !13, i64 19124, !13, i64 19128, !13, i64 19132, !13, i64 19136, !36, i64 19144, !38, i64 19176, !40, i64 19256, !11, i64 19416, !13, i64 19420, !42, i64 19424, !43, i64 19440, !44, i64 19456, !45, i64 19472, !46, i64 19488, !47, i64 19504, !48, i64 19520, !48, i64 19536, !49, i64 19552, !13, i64 19568, !50, i64 19576, !15, i64 19592, !6, i64 19600, !6, i64 19608, !6, i64 19616, !13, i64 19624, !51, i64 19632, !13, i64 19680, !13, i64 19684, !13, i64 19688, !6, i64 19696, !13, i64 19704, !13, i64 19708, !45, i64 19712, !13, i64 19728, !13, i64 19732, !13, i64 19736, !13, i64 19740, !13, i64 19744, !15, i64 19748, !13, i64 19752, !13, i64 19756, !13, i64 19760, !13, i64 19764, !13, i64 19768, !32, i64 19772, !52, i64 19776, !37, i64 19784, !11, i64 19792, !11, i64 19793, !11, i64 19794, !11, i64 19795, !11, i64 19796, !11, i64 19797, !11, i64 19798, !53, i64 19800, !11, i64 19864, !11, i64 19865, !11, i64 19866, !13, i64 19868, !13, i64 19872, !13, i64 19876, !13, i64 19880, !13, i64 19884, !13, i64 19888, !39, i64 19892, !39, i64 19908, !13, i64 19924, !13, i64 19928, !13, i64 19932, !53, i64 19936, !53, i64 20000, !53, i64 20064, !53, i64 20128, !13, i64 20192, !13, i64 20196, !6, i64 20200, !6, i64 20208, !6, i64 20216, !15, i64 20224, !15, i64 20228, !11, i64 20232, !14, i64 20236, !14, i64 20244, !15, i64 20252, !11, i64 20256, !11, i64 20257, !11, i64 20258, !13, i64 20260, !13, i64 20264, !13, i64 20268, !54, i64 20272, !39, i64 20336, !39, i64 20352, !13, i64 20368, !13, i64 20372, !15, i64 20376, !13, i64 20380, !13, i64 20384, !13, i64 20388, !13, i64 20392, !55, i64 20400, !7, i64 20416, !13, i64 20432, !56, i64 20440, !6, i64 20456, !13, i64 20464, !13, i64 20468, !57, i64 20472, !58, i64 20488, !60, i64 20528, !61, i64 20544, !6, i64 20560, !62, i64 20568, !64, i64 20608, !65, i64 20624, !13, i64 20640, !13, i64 20644, !15, i64 20648, !15, i64 20652, !13, i64 20656, !13, i64 20660, !13, i64 20664, !15, i64 20668, !14, i64 20672, !66, i64 20680, !70, i64 24408, !71, i64 24432, !13, i64 24552, !13, i64 24556, !13, i64 24560, !13, i64 24564, !15, i64 24568, !15, i64 24572, !13, i64 24576, !24, i64 24580, !73, i64 24596, !39, i64 24644, !11, i64 24660, !15, i64 24664, !15, i64 24668, !11, i64 24672, !11, i64 24673, !15, i64 24676, !15, i64 24680, !15, i64 24684, !15, i64 24688, !16, i64 24692, !16, i64 24694, !16, i64 24696, !67, i64 24704, !74, i64 24720, !75, i64 24736, !77, i64 24840, !77, i64 24856, !13, i64 24872, !78, i64 24880, !6, i64 24936, !11, i64 24944, !15, i64 24948, !81, i64 24952, !82, i64 24968, !83, i64 24984, !84, i64 25000, !85, i64 25016, !13, i64 25032, !7, i64 25040, !11, i64 25128, !86, i64 25132, !6, i64 25136, !81, i64 25144, !6, i64 25160, !6, i64 25168, !15, i64 25176, !11, i64 25180, !13, i64 25184, !13, i64 25188, !13, i64 25192, !13, i64 25196, !81, i64 25200, !87, i64 25216, !13, i64 25240, !7, i64 25244, !7, i64 25245, !11, i64 25246, !13, i64 25248, !7, i64 25252, !11, i64 25253, !7, i64 25254, !13, i64 25256, !15, i64 25260, !24, i64 25264, !88, i64 25280, !89, i64 25304, !91, i64 25344, !6, i64 25408, !7, i64 25416, !13, i64 25656, !13, i64 25660, !15, i64 25664, !13, i64 25668, !13, i64 25672, !13, i64 25676, !67, i64 25680, !7, i64 25696}
!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, !11, i64 124, !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, !16, i64 200, !11, i64 202, !11, i64 203, !11, i64 204, !11, i64 205, !11, i64 206, !11, i64 207, !11, i64 208, !15, i64 212, !13, i64 216, !13, i64 220, !13, i64 224, !13, i64 228, !14, i64 232, !7, i64 240, !7, i64 2904, !7, i64 3572, !6, i64 3640, !14, i64 3648, !7, i64 3656, !15, i64 3664, !15, i64 3668, !17, i64 3672, !13, i64 3676, !11, i64 3680, !11, i64 3681, !11, i64 3682, !11, i64 3683, !13, i64 3684, !7, i64 3688, !11, i64 14344, !14, i64 14348, !7, i64 14356, !7, i64 14400, !7, i64 14440, !7, i64 14445, !7, i64 14450, !7, i64 14460, !7, i64 14470, !7, i64 14475, !7, i64 14480, !11, i64 14485, !7, i64 14488, !7, i64 14508, !7, i64 14528, !7, i64 14568, !15, i64 14588, !11, i64 14592, !11, i64 14593, !7, i64 14594, !11, i64 14595, !16, i64 14596, !18, i64 14600}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTS6ImVec2", !15, i64 0, !15, i64 4}
!15 = !{!"float", !7, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = !{!"_ZTS16ImGuiMouseSource", !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, !15, i64 148, !15, i64 152, !13, i64 156, !14, i64 160, !14, i64 168, !15, i64 176, !14, i64 180, !14, i64 188, !14, i64 196, !14, i64 204, !15, i64 212, !15, i64 216, !11, i64 220, !11, i64 221, !11, i64 222, !15, i64 224, !15, i64 228, !7, i64 232, !15, i64 1112, !15, i64 1116, !15, i64 1120, !13, i64 1124, !13, i64 1128}
!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 = !{!"_ZTS10ImBitArrayILi154ELin512EE", !7, i64 0}
!34 = !{!"_ZTS20ImGuiKeyRoutingTable", !7, i64 0, !35, i64 312, !35, i64 328}
!35 = !{!"_ZTS8ImVectorI19ImGuiKeyRoutingDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!36 = !{!"_ZTS17ImGuiNextItemData", !13, i64 0, !13, i64 4, !37, i64 8, !15, i64 16, !13, i64 20, !11, i64 24, !13, i64 25}
!37 = !{!"long long", !7, i64 0}
!38 = !{!"_ZTS17ImGuiLastItemData", !13, i64 0, !13, i64 4, !13, i64 8, !39, i64 12, !39, i64 28, !39, i64 44, !39, i64 60}
!39 = !{!"_ZTS6ImRect", !14, i64 0, !14, i64 8}
!40 = !{!"_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, !13, i64 60, !11, i64 64, !11, i64 65, !39, i64 68, !6, i64 88, !6, i64 96, !15, i64 104, !13, i64 108, !13, i64 112, !41, i64 116, !14, i64 148}
!41 = !{!"_ZTS16ImGuiWindowClass", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !11, i64 28, !11, i64 29}
!42 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !13, i64 0, !13, i64 4, !6, i64 8}
!43 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !13, i64 0, !13, i64 4, !6, i64 8}
!44 = !{!"_ZTS8ImVectorIP6ImFontE", !13, i64 0, !13, i64 4, !6, i64 8}
!45 = !{!"_ZTS8ImVectorI19ImGuiFocusScopeDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!46 = !{!"_ZTS8ImVectorIiE", !13, i64 0, !13, i64 4, !6, i64 8}
!47 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!48 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!49 = !{!"_ZTS8ImVectorI20ImGuiNavTreeNodeDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!50 = !{!"_ZTS8ImVectorIP14ImGuiViewportPE", !13, i64 0, !13, i64 4, !6, i64 8}
!51 = !{!"_ZTS20ImGuiPlatformMonitor", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !15, i64 32, !6, i64 40}
!52 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!53 = !{!"_ZTS16ImGuiNavItemData", !6, i64 0, !13, i64 8, !13, i64 12, !39, i64 16, !13, i64 32, !37, i64 40, !15, i64 48, !15, i64 52, !15, i64 56}
!54 = !{!"_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}
!55 = !{!"_ZTS8ImVectorIhE", !13, i64 0, !13, i64 4, !6, i64 8}
!56 = !{!"_ZTS8ImVectorI20ImGuiListClipperDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!57 = !{!"_ZTS8ImVectorI18ImGuiTableTempDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!58 = !{!"_ZTS6ImPoolI10ImGuiTableE", !59, i64 0, !30, i64 16, !13, i64 32, !13, i64 36}
!59 = !{!"_ZTS8ImVectorI10ImGuiTableE", !13, i64 0, !13, i64 4, !6, i64 8}
!60 = !{!"_ZTS8ImVectorIfE", !13, i64 0, !13, i64 4, !6, i64 8}
!61 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !13, i64 0, !13, i64 4, !6, i64 8}
!62 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !63, i64 0, !30, i64 16, !13, i64 32, !13, i64 36}
!63 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !13, i64 0, !13, i64 4, !6, i64 8}
!64 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !13, i64 0, !13, i64 4, !6, i64 8}
!65 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !13, i64 0, !13, i64 4, !6, i64 8}
!66 = !{!"_ZTS19ImGuiInputTextState", !6, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !18, i64 24, !67, i64 40, !67, i64 56, !11, i64 72, !13, i64 76, !15, i64 80, !68, i64 84, !15, i64 3712, !11, i64 3716, !11, i64 3717, !11, i64 3718, !13, i64 3720}
!67 = !{!"_ZTS8ImVectorIcE", !13, i64 0, !13, i64 4, !6, i64 8}
!68 = !{!"_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, !69, i64 32}
!69 = !{!"_ZTSN5ImStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !16, i64 3582, !16, i64 3584, !13, i64 3588, !13, i64 3592}
!70 = !{!"_ZTS30ImGuiInputTextDeactivatedState", !13, i64 0, !67, i64 8}
!71 = !{!"_ZTS6ImFont", !60, i64 0, !15, i64 16, !15, i64 20, !18, i64 24, !72, i64 40, !6, i64 56, !6, i64 64, !6, i64 72, !16, i64 80, !16, i64 82, !16, i64 84, !16, 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}
!72 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !13, i64 0, !13, i64 4, !6, i64 8}
!73 = !{!"_ZTS21ImGuiComboPreviewData", !39, i64 0, !14, i64 16, !14, i64 24, !14, i64 32, !15, i64 40, !13, i64 44}
!74 = !{!"_ZTS8ImVectorIjE", !13, i64 0, !13, i64 4, !6, i64 8}
!75 = !{!"_ZTS22ImGuiTypingSelectState", !76, i64 0, !7, i64 24, !13, i64 88, !13, i64 92, !15, i64 96, !11, i64 100}
!76 = !{!"_ZTS24ImGuiTypingSelectRequest", !13, i64 0, !13, i64 4, !6, i64 8, !11, i64 16, !11, i64 17, !7, i64 18}
!77 = !{!"_ZTS20ImGuiPlatformImeData", !11, i64 0, !14, i64 4, !15, i64 12}
!78 = !{!"_ZTS16ImGuiDockContext", !30, i64 0, !79, i64 16, !80, i64 32, !11, i64 48}
!79 = !{!"_ZTS8ImVectorI16ImGuiDockRequestE", !13, i64 0, !13, i64 4, !6, i64 8}
!80 = !{!"_ZTS8ImVectorI21ImGuiDockNodeSettingsE", !13, i64 0, !13, i64 4, !6, i64 8}
!81 = !{!"_ZTS15ImGuiTextBuffer", !67, i64 0}
!82 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !13, i64 0, !13, i64 4, !6, i64 8}
!83 = !{!"_ZTS13ImChunkStreamI19ImGuiWindowSettingsE", !67, i64 0}
!84 = !{!"_ZTS13ImChunkStreamI18ImGuiTableSettingsE", !67, i64 0}
!85 = !{!"_ZTS8ImVectorI16ImGuiContextHookE", !13, i64 0, !13, i64 4, !6, i64 8}
!86 = !{!"_ZTS12ImGuiLogType", !7, i64 0}
!87 = !{!"_ZTS14ImGuiTextIndex", !46, i64 0, !13, i64 16}
!88 = !{!"_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, !11, i64 9, !13, i64 12, !13, i64 16}
!89 = !{!"_ZTS16ImGuiIDStackTool", !13, i64 0, !13, i64 4, !13, i64 8, !90, i64 16, !11, i64 32, !15, i64 36}
!90 = !{!"_ZTS8ImVectorI19ImGuiStackLevelInfoE", !13, i64 0, !13, i64 4, !6, i64 8}
!91 = !{!"_ZTS19ImGuiDebugAllocInfo", !13, i64 0, !13, i64 4, !16, i64 8, !7, i64 12}
!92 = !{!10, !13, i64 16568}
!93 = !{!94, !95, i64 0}
!94 = !{!"_ZTS15ImGuiInputEvent", !95, i64 0, !32, i64 4, !13, i64 8, !7, i64 12, !11, i64 24}
!95 = !{!"_ZTS19ImGuiInputEventType", !7, i64 0}
!96 = !{!10, !11, i64 213}
!97 = !{i8 0, i8 2}
!98 = !{}
!99 = !{!7, !7, i64 0}
!100 = !{!12, !17, i64 3672}
!101 = !{!11, !11, i64 0}
!102 = !{!12, !15, i64 3668}
!103 = !{!12, !15, i64 3664}
!104 = !{!12, !13, i64 3676}
!105 = !{!106, !11, i64 0}
!106 = !{!"_ZTS12ImGuiKeyData", !11, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!107 = !{!106, !15, i64 12}
!108 = !{!13, !13, i64 0}
!109 = !{!16, !16, i64 0}
!110 = !{!12, !11, i64 14592}
!111 = distinct !{!111, !112}
!112 = !{!"llvm.loop.mustprogress"}
!113 = distinct !{!113, !112}
!114 = !{!10, !13, i64 25196}
!115 = distinct !{!115, !112}
!116 = !{!10, !6, i64 16576}
!117 = !{!10, !11, i64 14600}


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