; LLVM IR from l1mey112/yr11-physics-applied :: cimgui/imgui/imgui.ll (ZN5ImGui17UpdateInputEventsEb)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

@GImGui = external dso_local global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.175 = external hidden unnamed_addr constant [47 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb = external hidden unnamed_addr constant [36 x i8], align 1
@.str.176 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.177 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.178 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.179 = 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(21)) #4 align 2

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

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

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

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

31:                                               ; preds = %1
  %32 = load ptr, ptr %3, align 8, !tbaa !9
  %33 = getelementptr inbounds %struct.ImGuiContext, ptr %32, i32 0, i32 232
  %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 !78
  call void @llvm.lifetime.start.p0(i64 84, ptr %11) #7
  call void @_ZN10ImBitArrayILi652ELi0EEC2Ev(ptr noundef nonnull align 4 dereferenceable(84) %11)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !78
  br label %39

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

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 3
  %49 = load i32, ptr %12, align 4, !tbaa !78
  %50 = call noundef nonnull align 4 dereferenceable(21) 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 !80
  %54 = icmp eq i32 %53, 1
  br i1 %54, label %55, label %85

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

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

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

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

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

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

79:                                               ; preds = %75, %55
  %80 = load ptr, ptr %4, align 8, !tbaa !9
  %81 = getelementptr inbounds %struct.ImGuiIO, ptr %80, i32 0, i32 56
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %81, ptr align 4 %14, i64 8, i1 false), !tbaa.struct !84
  store i8 1, ptr %6, align 1, !tbaa !5
  store i32 0, ptr %15, align 4
  br label %82

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

84:                                               ; preds = %82
  br label %344

85:                                               ; preds = %46
  %86 = load ptr, ptr %13, align 8, !tbaa !9
  %87 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %86, i32 0, i32 0
  %88 = load i32, ptr %87, align 4, !tbaa !80
  %89 = icmp eq i32 %88, 3
  br i1 %89, label %90, label %137

90:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %91 = load ptr, ptr %13, align 8, !tbaa !9
  %92 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %91, i32 0, i32 2
  %93 = getelementptr inbounds %struct.ImGuiInputEventMouseButton, ptr %92, i32 0, i32 0
  %94 = load i32, ptr %93, align 4, !tbaa !83
  store i32 %94, ptr %16, align 4, !tbaa !78
  %95 = load i32, ptr %16, align 4, !tbaa !78
  %96 = icmp sge i32 %95, 0
  br i1 %96, label %97, label %100

97:                                               ; preds = %90
  %98 = load i32, ptr %16, align 4, !tbaa !78
  %99 = icmp slt i32 %98, 5
  br label %100

100:                                              ; preds = %97, %90
  %101 = phi i1 [ false, %90 ], [ %99, %97 ]
  br i1 %101, label %102, label %103

102:                                              ; preds = %100
  br label %105

103:                                              ; preds = %100
  call void @__assert_fail(ptr noundef @.str.175, ptr noundef @.str.4, i32 noundef 8605, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb) #8
  unreachable

104:                                              ; No predecessors!
  br label %105

105:                                              ; preds = %104, %102
  %106 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %107 = trunc i8 %106 to i1
  br i1 %107, label %108, label %118

108:                                              ; preds = %105
  %109 = load i32, ptr %10, align 4, !tbaa !78
  %110 = load i32, ptr %16, align 4, !tbaa !78
  %111 = shl i32 1, %110
  %112 = and i32 %109, %111
  %113 = icmp ne i32 %112, 0
  br i1 %113, label %117, label %114

114:                                              ; preds = %108
  %115 = load i8, ptr %7, align 1, !tbaa !5, !range !11, !noundef !12
  %116 = trunc i8 %115 to i1
  br i1 %116, label %117, label %118

117:                                              ; preds = %114, %108
  store i32 2, ptr %15, align 4
  br label %134

118:                                              ; preds = %114, %105
  %119 = load ptr, ptr %13, align 8, !tbaa !9
  %120 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %119, i32 0, i32 2
  %121 = getelementptr inbounds %struct.ImGuiInputEventMouseButton, ptr %120, i32 0, i32 1
  %122 = load i8, ptr %121, align 4, !tbaa !83, !range !11, !noundef !12
  %123 = trunc i8 %122 to i1
  %124 = load ptr, ptr %4, align 8, !tbaa !9
  %125 = getelementptr inbounds %struct.ImGuiIO, ptr %124, i32 0, i32 57
  %126 = load i32, ptr %16, align 4, !tbaa !78
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [5 x i8], ptr %125, i64 0, i64 %127
  %129 = zext i1 %123 to i8
  store i8 %129, ptr %128, align 1, !tbaa !5
  %130 = load i32, ptr %16, align 4, !tbaa !78
  %131 = shl i32 1, %130
  %132 = load i32, ptr %10, align 4, !tbaa !78
  %133 = or i32 %132, %131
  store i32 %133, ptr %10, align 4, !tbaa !78
  store i32 0, ptr %15, align 4
  br label %134

134:                                              ; preds = %118, %117
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  %135 = load i32, ptr %15, align 4
  switch i32 %135, label %345 [
    i32 0, label %136
  ]

136:                                              ; preds = %134
  br label %343

137:                                              ; preds = %85
  %138 = load ptr, ptr %13, align 8, !tbaa !9
  %139 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %138, i32 0, i32 0
  %140 = load i32, ptr %139, align 4, !tbaa !80
  %141 = icmp eq i32 %140, 2
  br i1 %141, label %142, label %169

142:                                              ; preds = %137
  %143 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %144 = trunc i8 %143 to i1
  br i1 %144, label %145, label %152

145:                                              ; preds = %142
  %146 = load i8, ptr %6, align 1, !tbaa !5, !range !11, !noundef !12
  %147 = trunc i8 %146 to i1
  br i1 %147, label %151, label %148

148:                                              ; preds = %145
  %149 = load i32, ptr %10, align 4, !tbaa !78
  %150 = icmp ne i32 %149, 0
  br i1 %150, label %151, label %152

151:                                              ; preds = %148, %145
  store i32 2, ptr %15, align 4
  br label %345

152:                                              ; preds = %148, %142
  %153 = load ptr, ptr %13, align 8, !tbaa !9
  %154 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %153, i32 0, i32 2
  %155 = getelementptr inbounds %struct.ImGuiInputEventMouseWheel, ptr %154, i32 0, i32 0
  %156 = load float, ptr %155, align 4, !tbaa !83
  %157 = load ptr, ptr %4, align 8, !tbaa !9
  %158 = getelementptr inbounds %struct.ImGuiIO, ptr %157, i32 0, i32 59
  %159 = load float, ptr %158, align 8, !tbaa !86
  %160 = fadd float %159, %156
  store float %160, ptr %158, align 8, !tbaa !86
  %161 = load ptr, ptr %13, align 8, !tbaa !9
  %162 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %161, i32 0, i32 2
  %163 = getelementptr inbounds %struct.ImGuiInputEventMouseWheel, ptr %162, i32 0, i32 1
  %164 = load float, ptr %163, align 4, !tbaa !83
  %165 = load ptr, ptr %4, align 8, !tbaa !9
  %166 = getelementptr inbounds %struct.ImGuiIO, ptr %165, i32 0, i32 58
  %167 = load float, ptr %166, align 4, !tbaa !87
  %168 = fadd float %167, %164
  store float %168, ptr %166, align 4, !tbaa !87
  store i8 1, ptr %7, align 1, !tbaa !5
  br label %342

169:                                              ; preds = %137
  %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 !80
  %173 = icmp eq i32 %172, 4
  br i1 %173, label %174, label %275

174:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %175 = load ptr, ptr %13, align 8, !tbaa !9
  %176 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %175, i32 0, i32 2
  %177 = getelementptr inbounds %struct.ImGuiInputEventKey, ptr %176, i32 0, i32 0
  %178 = load i32, ptr %177, align 4, !tbaa !83
  store i32 %178, ptr %17, align 4, !tbaa !88
  %179 = load i32, ptr %17, align 4, !tbaa !88
  %180 = icmp ne i32 %179, 0
  br i1 %180, label %181, label %182

181:                                              ; preds = %174
  br label %184

182:                                              ; preds = %174
  call void @__assert_fail(ptr noundef @.str.176, ptr noundef @.str.4, i32 noundef 8624, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb) #8
  unreachable

183:                                              ; No predecessors!
  br label %184

184:                                              ; preds = %183, %181
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %185 = load i32, ptr %17, align 4, !tbaa !88
  %186 = call noundef ptr @_ZN5ImGui10GetKeyDataE8ImGuiKey(i32 noundef %185)
  store ptr %186, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %187 = load ptr, ptr %18, align 8, !tbaa !9
  %188 = load ptr, ptr %3, align 8, !tbaa !9
  %189 = getelementptr inbounds %struct.ImGuiContext, ptr %188, i32 0, i32 2
  %190 = getelementptr inbounds %struct.ImGuiIO, ptr %189, i32 0, i32 65
  %191 = getelementptr inbounds [652 x %struct.ImGuiKeyData], ptr %190, i64 0, i64 0
  %192 = ptrtoint ptr %187 to i64
  %193 = ptrtoint ptr %191 to i64
  %194 = sub i64 %192, %193
  %195 = sdiv exact i64 %194, 16
  %196 = trunc i64 %195 to i32
  store i32 %196, ptr %19, align 4, !tbaa !78
  %197 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %198 = trunc i8 %197 to i1
  br i1 %198, label %199, label %222

199:                                              ; preds = %184
  %200 = load ptr, ptr %18, align 8, !tbaa !9
  %201 = getelementptr inbounds %struct.ImGuiKeyData, ptr %200, i32 0, i32 0
  %202 = load i8, ptr %201, align 4, !tbaa !90, !range !11, !noundef !12
  %203 = trunc i8 %202 to i1
  %204 = zext i1 %203 to i32
  %205 = load ptr, ptr %13, align 8, !tbaa !9
  %206 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %205, i32 0, i32 2
  %207 = getelementptr inbounds %struct.ImGuiInputEventKey, ptr %206, i32 0, i32 1
  %208 = load i8, ptr %207, align 4, !tbaa !83, !range !11, !noundef !12
  %209 = trunc i8 %208 to i1
  %210 = zext i1 %209 to i32
  %211 = icmp ne i32 %204, %210
  br i1 %211, label %212, label %222

212:                                              ; preds = %199
  %213 = load i32, ptr %19, align 4, !tbaa !78
  %214 = call noundef zeroext i1 @_ZNK10ImBitArrayILi652ELi0EE7TestBitEi(ptr noundef nonnull align 4 dereferenceable(84) %11, i32 noundef %213)
  br i1 %214, label %221, label %215

215:                                              ; preds = %212
  %216 = load i8, ptr %9, align 1, !tbaa !5, !range !11, !noundef !12
  %217 = trunc i8 %216 to i1
  br i1 %217, label %221, label %218

218:                                              ; preds = %215
  %219 = load i32, ptr %10, align 4, !tbaa !78
  %220 = icmp ne i32 %219, 0
  br i1 %220, label %221, label %222

221:                                              ; preds = %218, %215, %212
  store i32 2, ptr %15, align 4
  br label %272

222:                                              ; preds = %218, %199, %184
  %223 = load ptr, ptr %13, align 8, !tbaa !9
  %224 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %223, i32 0, i32 2
  %225 = getelementptr inbounds %struct.ImGuiInputEventKey, ptr %224, i32 0, i32 1
  %226 = load i8, ptr %225, align 4, !tbaa !83, !range !11, !noundef !12
  %227 = trunc i8 %226 to i1
  %228 = load ptr, ptr %18, align 8, !tbaa !9
  %229 = getelementptr inbounds %struct.ImGuiKeyData, ptr %228, i32 0, i32 0
  %230 = zext i1 %227 to i8
  store i8 %230, ptr %229, align 4, !tbaa !90
  %231 = load ptr, ptr %13, align 8, !tbaa !9
  %232 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %231, i32 0, i32 2
  %233 = getelementptr inbounds %struct.ImGuiInputEventKey, ptr %232, i32 0, i32 2
  %234 = load float, ptr %233, align 4, !tbaa !83
  %235 = load ptr, ptr %18, align 8, !tbaa !9
  %236 = getelementptr inbounds %struct.ImGuiKeyData, ptr %235, i32 0, i32 3
  store float %234, ptr %236, align 4, !tbaa !92
  store i8 1, ptr %8, align 1, !tbaa !5
  %237 = load i32, ptr %19, align 4, !tbaa !78
  call void @_ZN10ImBitArrayILi652ELi0EE6SetBitEi(ptr noundef nonnull align 4 dereferenceable(84) %11, i32 noundef %237)
  %238 = load ptr, ptr %18, align 8, !tbaa !9
  %239 = getelementptr inbounds %struct.ImGuiKeyData, ptr %238, i32 0, i32 0
  %240 = load i8, ptr %239, align 4, !tbaa !90, !range !11, !noundef !12
  %241 = trunc i8 %240 to i1
  %242 = load ptr, ptr %4, align 8, !tbaa !9
  %243 = getelementptr inbounds %struct.ImGuiIO, ptr %242, i32 0, i32 54
  %244 = load i32, ptr %19, align 4, !tbaa !78
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [652 x i8], ptr %243, i64 0, i64 %245
  %247 = zext i1 %241 to i8
  store i8 %247, ptr %246, align 1, !tbaa !5
  %248 = load ptr, ptr %4, align 8, !tbaa !9
  %249 = getelementptr inbounds %struct.ImGuiIO, ptr %248, i32 0, i32 53
  %250 = load i32, ptr %19, align 4, !tbaa !78
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds [652 x i32], ptr %249, i64 0, i64 %251
  %253 = load i32, ptr %252, align 4, !tbaa !78
  %254 = icmp ne i32 %253, -1
  br i1 %254, label %255, label %271

255:                                              ; preds = %222
  %256 = load ptr, ptr %18, align 8, !tbaa !9
  %257 = getelementptr inbounds %struct.ImGuiKeyData, ptr %256, i32 0, i32 0
  %258 = load i8, ptr %257, align 4, !tbaa !90, !range !11, !noundef !12
  %259 = trunc i8 %258 to i1
  %260 = load ptr, ptr %4, align 8, !tbaa !9
  %261 = getelementptr inbounds %struct.ImGuiIO, ptr %260, i32 0, i32 54
  %262 = load ptr, ptr %4, align 8, !tbaa !9
  %263 = getelementptr inbounds %struct.ImGuiIO, ptr %262, i32 0, i32 53
  %264 = load i32, ptr %19, align 4, !tbaa !78
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds [652 x i32], ptr %263, i64 0, i64 %265
  %267 = load i32, ptr %266, align 4, !tbaa !78
  %268 = sext i32 %267 to i64
  %269 = getelementptr inbounds [652 x i8], ptr %261, i64 0, i64 %268
  %270 = zext i1 %259 to i8
  store i8 %270, ptr %269, align 1, !tbaa !5
  br label %271

271:                                              ; preds = %255, %222
  store i32 0, ptr %15, align 4
  br label %272

272:                                              ; preds = %271, %221
  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
  %273 = load i32, ptr %15, align 4
  switch i32 %273, label %345 [
    i32 0, label %274
  ]

274:                                              ; preds = %272
  br label %341

275:                                              ; preds = %169
  %276 = load ptr, ptr %13, align 8, !tbaa !9
  %277 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %276, i32 0, i32 0
  %278 = load i32, ptr %277, align 4, !tbaa !80
  %279 = icmp eq i32 %278, 5
  br i1 %279, label %280, label %320

280:                                              ; preds = %275
  %281 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %282 = trunc i8 %281 to i1
  br i1 %282, label %283, label %299

283:                                              ; preds = %280
  %284 = load i8, ptr %8, align 1, !tbaa !5, !range !11, !noundef !12
  %285 = trunc i8 %284 to i1
  br i1 %285, label %286, label %289

286:                                              ; preds = %283
  %287 = load i8, ptr %5, align 1, !tbaa !5, !range !11, !noundef !12
  %288 = trunc i8 %287 to i1
  br i1 %288, label %298, label %289

289:                                              ; preds = %286, %283
  %290 = load i32, ptr %10, align 4, !tbaa !78
  %291 = icmp ne i32 %290, 0
  br i1 %291, label %298, label %292

292:                                              ; preds = %289
  %293 = load i8, ptr %6, align 1, !tbaa !5, !range !11, !noundef !12
  %294 = trunc i8 %293 to i1
  br i1 %294, label %298, label %295

295:                                              ; preds = %292
  %296 = load i8, ptr %7, align 1, !tbaa !5, !range !11, !noundef !12
  %297 = trunc i8 %296 to i1
  br i1 %297, label %298, label %299

298:                                              ; preds = %295, %292, %289, %286
  store i32 2, ptr %15, align 4
  br label %345

299:                                              ; preds = %295, %280
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %300 = load ptr, ptr %13, align 8, !tbaa !9
  %301 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %300, i32 0, i32 2
  %302 = getelementptr inbounds %struct.ImGuiInputEventText, ptr %301, i32 0, i32 0
  %303 = load i32, ptr %302, align 4, !tbaa !83
  store i32 %303, ptr %20, align 4, !tbaa !78
  %304 = load ptr, ptr %4, align 8, !tbaa !9
  %305 = getelementptr inbounds %struct.ImGuiIO, ptr %304, i32 0, i32 86
  call void @llvm.lifetime.start.p0(i64 2, ptr %21) #7
  %306 = load i32, ptr %20, align 4, !tbaa !78
  %307 = icmp ule i32 %306, 65535
  br i1 %307, label %308, label %312

308:                                              ; preds = %299
  %309 = load i32, ptr %20, align 4, !tbaa !78
  %310 = trunc i32 %309 to i16
  %311 = zext i16 %310 to i32
  br label %313

312:                                              ; preds = %299
  br label %313

313:                                              ; preds = %312, %308
  %314 = phi i32 [ %311, %308 ], [ 65533, %312 ]
  %315 = trunc i32 %314 to i16
  store i16 %315, ptr %21, align 2, !tbaa !93
  call void @_ZN8ImVectorItE9push_backERKt(ptr noundef nonnull align 8 dereferenceable(16) %305, ptr noundef nonnull align 2 dereferenceable(2) %21)
  call void @llvm.lifetime.end.p0(i64 2, ptr %21) #7
  %316 = load i8, ptr %5, align 1, !tbaa !5, !range !11, !noundef !12
  %317 = trunc i8 %316 to i1
  br i1 %317, label %318, label %319

318:                                              ; preds = %313
  store i8 1, ptr %9, align 1, !tbaa !5
  br label %319

319:                                              ; preds = %318, %313
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %340

320:                                              ; preds = %275
  %321 = load ptr, ptr %13, align 8, !tbaa !9
  %322 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %321, i32 0, i32 0
  %323 = load i32, ptr %322, align 4, !tbaa !80
  %324 = icmp eq i32 %323, 6
  br i1 %324, label %325, label %338

325:                                              ; preds = %320
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #7
  %326 = load ptr, ptr %13, align 8, !tbaa !9
  %327 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %326, i32 0, i32 2
  %328 = getelementptr inbounds %struct.ImGuiInputEventAppFocused, ptr %327, i32 0, i32 0
  %329 = load i8, ptr %328, align 4, !tbaa !83, !range !11, !noundef !12
  %330 = trunc i8 %329 to i1
  %331 = xor i1 %330, true
  %332 = zext i1 %331 to i8
  store i8 %332, ptr %22, align 1, !tbaa !5
  %333 = load i8, ptr %22, align 1, !tbaa !5, !range !11, !noundef !12
  %334 = trunc i8 %333 to i1
  %335 = load ptr, ptr %4, align 8, !tbaa !9
  %336 = getelementptr inbounds %struct.ImGuiIO, ptr %335, i32 0, i32 81
  %337 = zext i1 %334 to i8
  store i8 %337, ptr %336, align 8, !tbaa !94
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  br label %339

338:                                              ; preds = %320
  call void @__assert_fail(ptr noundef @.str.177, ptr noundef @.str.4, i32 noundef 8660, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb) #8
  unreachable

339:                                              ; preds = %325
  br label %340

340:                                              ; preds = %339, %319
  br label %341

341:                                              ; preds = %340, %274
  br label %342

342:                                              ; preds = %341, %152
  br label %343

343:                                              ; preds = %342, %136
  br label %344

344:                                              ; preds = %343, %84
  store i32 0, ptr %15, align 4
  br label %345

345:                                              ; preds = %344, %298, %272, %151, %134, %82
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  %346 = load i32, ptr %15, align 4
  switch i32 %346, label %437 [
    i32 0, label %347
    i32 2, label %351
  ]

347:                                              ; preds = %345
  br label %348

348:                                              ; preds = %347
  %349 = load i32, ptr %12, align 4, !tbaa !78
  %350 = add nsw i32 %349, 1
  store i32 %350, ptr %12, align 4, !tbaa !78
  br label %39, !llvm.loop !95

351:                                              ; preds = %345, %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 0, ptr %23, align 4, !tbaa !78
  br label %352

352:                                              ; preds = %364, %351
  %353 = load i32, ptr %23, align 4, !tbaa !78
  %354 = load i32, ptr %12, align 4, !tbaa !78
  %355 = icmp slt i32 %353, %354
  br i1 %355, label %357, label %356

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

357:                                              ; preds = %352
  %358 = load ptr, ptr %3, align 8, !tbaa !9
  %359 = getelementptr inbounds %struct.ImGuiContext, ptr %358, i32 0, i32 4
  %360 = load ptr, ptr %3, align 8, !tbaa !9
  %361 = getelementptr inbounds %struct.ImGuiContext, ptr %360, i32 0, i32 3
  %362 = load i32, ptr %23, align 4, !tbaa !78
  %363 = call noundef nonnull align 4 dereferenceable(21) ptr @_ZN8ImVectorI15ImGuiInputEventEixEi(ptr noundef nonnull align 8 dereferenceable(16) %361, i32 noundef %362)
  call void @_ZN8ImVectorI15ImGuiInputEventE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %359, ptr noundef nonnull align 4 dereferenceable(21) %363)
  br label %364

364:                                              ; preds = %357
  %365 = load i32, ptr %23, align 4, !tbaa !78
  %366 = add nsw i32 %365, 1
  store i32 %366, ptr %23, align 4, !tbaa !78
  br label %352, !llvm.loop !97

367:                                              ; preds = %356
  %368 = load i32, ptr %12, align 4, !tbaa !78
  %369 = icmp ne i32 %368, 0
  br i1 %369, label %370, label %402

370:                                              ; preds = %367
  %371 = load ptr, ptr %3, align 8, !tbaa !9
  %372 = getelementptr inbounds %struct.ImGuiContext, ptr %371, i32 0, i32 217
  %373 = load i32, ptr %372, align 4, !tbaa !98
  %374 = and i32 %373, 32
  %375 = icmp ne i32 %374, 0
  br i1 %375, label %376, label %402

376:                                              ; preds = %370
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  store i32 0, ptr %24, align 4, !tbaa !78
  br label %377

377:                                              ; preds = %398, %376
  %378 = load i32, ptr %24, align 4, !tbaa !78
  %379 = load ptr, ptr %3, align 8, !tbaa !9
  %380 = getelementptr inbounds %struct.ImGuiContext, ptr %379, i32 0, i32 3
  %381 = getelementptr inbounds %struct.ImVector.0, ptr %380, i32 0, i32 0
  %382 = load i32, ptr %381, align 8, !tbaa !79
  %383 = icmp slt i32 %378, %382
  br i1 %383, label %385, label %384

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

385:                                              ; preds = %377
  %386 = load i32, ptr %24, align 4, !tbaa !78
  %387 = load i32, ptr %12, align 4, !tbaa !78
  %388 = icmp slt i32 %386, %387
  br i1 %388, label %389, label %390

389:                                              ; preds = %385
  br label %391

390:                                              ; preds = %385
  br label %391

391:                                              ; preds = %390, %389
  %392 = phi ptr [ @.str.178, %389 ], [ @.str.179, %390 ]
  %393 = getelementptr inbounds [10 x i8], ptr %392, i64 0, i64 0
  %394 = load ptr, ptr %3, align 8, !tbaa !9
  %395 = getelementptr inbounds %struct.ImGuiContext, ptr %394, i32 0, i32 3
  %396 = load i32, ptr %24, align 4, !tbaa !78
  %397 = call noundef nonnull align 4 dereferenceable(21) ptr @_ZN8ImVectorI15ImGuiInputEventEixEi(ptr noundef nonnull align 8 dereferenceable(16) %395, i32 noundef %396)
  call void @_ZL20DebugPrintInputEventPKcPK15ImGuiInputEvent(ptr noundef %393, ptr noundef %397)
  br label %398

398:                                              ; preds = %391
  %399 = load i32, ptr %24, align 4, !tbaa !78
  %400 = add nsw i32 %399, 1
  store i32 %400, ptr %24, align 4, !tbaa !78
  br label %377, !llvm.loop !99

401:                                              ; preds = %384
  br label %402

402:                                              ; preds = %401, %370, %367
  %403 = load i32, ptr %12, align 4, !tbaa !78
  %404 = load ptr, ptr %3, align 8, !tbaa !9
  %405 = getelementptr inbounds %struct.ImGuiContext, ptr %404, i32 0, i32 3
  %406 = getelementptr inbounds %struct.ImVector.0, ptr %405, i32 0, i32 0
  %407 = load i32, ptr %406, align 8, !tbaa !79
  %408 = icmp eq i32 %403, %407
  br i1 %408, label %409, label %412

409:                                              ; preds = %402
  %410 = load ptr, ptr %3, align 8, !tbaa !9
  %411 = getelementptr inbounds %struct.ImGuiContext, ptr %410, i32 0, i32 3
  call void @_ZN8ImVectorI15ImGuiInputEventE6resizeEi(ptr noundef nonnull align 8 dereferenceable(16) %411, i32 noundef 0)
  br label %427

412:                                              ; preds = %402
  %413 = load ptr, ptr %3, align 8, !tbaa !9
  %414 = getelementptr inbounds %struct.ImGuiContext, ptr %413, i32 0, i32 3
  %415 = load ptr, ptr %3, align 8, !tbaa !9
  %416 = getelementptr inbounds %struct.ImGuiContext, ptr %415, i32 0, i32 3
  %417 = getelementptr inbounds %struct.ImVector.0, ptr %416, i32 0, i32 2
  %418 = load ptr, ptr %417, align 8, !tbaa !100
  %419 = load ptr, ptr %3, align 8, !tbaa !9
  %420 = getelementptr inbounds %struct.ImGuiContext, ptr %419, i32 0, i32 3
  %421 = getelementptr inbounds %struct.ImVector.0, ptr %420, i32 0, i32 2
  %422 = load ptr, ptr %421, align 8, !tbaa !100
  %423 = load i32, ptr %12, align 4, !tbaa !78
  %424 = sext i32 %423 to i64
  %425 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %422, i64 %424
  %426 = call noundef ptr @_ZN8ImVectorI15ImGuiInputEventE5eraseEPKS0_S3_(ptr noundef nonnull align 8 dereferenceable(16) %414, ptr noundef %418, ptr noundef %425)
  br label %427

427:                                              ; preds = %412, %409
  %428 = load ptr, ptr %3, align 8, !tbaa !9
  %429 = getelementptr inbounds %struct.ImGuiContext, ptr %428, i32 0, i32 2
  %430 = getelementptr inbounds %struct.ImGuiIO, ptr %429, i32 0, i32 81
  %431 = load i8, ptr %430, align 8, !tbaa !101, !range !11, !noundef !12
  %432 = trunc i8 %431 to i1
  br i1 %432, label %433, label %436

433:                                              ; preds = %427
  %434 = load ptr, ptr %3, align 8, !tbaa !9
  %435 = getelementptr inbounds %struct.ImGuiContext, ptr %434, i32 0, i32 2
  call void @_ZN7ImGuiIO14ClearInputKeysEv(ptr noundef nonnull align 8 dereferenceable(14264) %435)
  br label %436

436:                                              ; preds = %433, %427
  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

437:                                              ; preds = %345
  unreachable
}

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !16, i64 23996}
!14 = !{!"_ZTS12ImGuiContext", !6, i64 0, !6, i64 1, !15, i64 8, !21, i64 14272, !21, i64 14288, !22, i64 14304, !10, i64 15352, !18, i64 15360, !18, i64 15364, !23, i64 15368, !26, i64 15896, !16, i64 15904, !16, i64 15908, !16, i64 15912, !6, i64 15916, !6, i64 15917, !6, i64 15918, !6, i64 15919, !6, i64 15920, !10, i64 15928, !27, i64 15936, !27, i64 15952, !27, i64 15968, !28, i64 15984, !29, i64 16000, !16, i64 16016, !17, i64 16020, !10, i64 16032, !10, i64 16040, !10, i64 16048, !10, i64 16056, !10, i64 16064, !17, i64 16072, !16, i64 16080, !18, i64 16084, !17, i64 16088, !17, i64 16096, !16, i64 16104, !16, i64 16108, !16, i64 16112, !6, i64 16116, !6, i64 16117, !18, i64 16120, !18, i64 16124, !16, i64 16128, !16, i64 16132, !18, i64 16136, !6, i64 16140, !6, i64 16141, !6, i64 16142, !6, i64 16143, !6, i64 16144, !6, i64 16145, !17, i64 16148, !10, i64 16160, !31, i64 16168, !16, i64 16172, !16, i64 16176, !6, i64 16180, !6, i64 16181, !10, i64 16184, !16, i64 16192, !18, i64 16196, !7, i64 16200, !32, i64 17880, !16, i64 18192, !6, i64 18196, !16, i64 18200, !16, i64 18204, !16, i64 18208, !16, i64 18212, !34, i64 18216, !35, i64 18236, !37, i64 18296, !38, i64 18408, !39, i64 18424, !40, i64 18440, !41, i64 18456, !42, i64 18472, !43, i64 18488, !44, i64 18504, !44, i64 18520, !16, i64 18536, !45, i64 18544, !10, i64 18560, !16, i64 18568, !16, i64 18572, !16, i64 18576, !16, i64 18580, !16, i64 18584, !16, i64 18588, !16, i64 18592, !16, i64 18596, !16, i64 18600, !16, i64 18604, !16, i64 18608, !16, i64 18612, !31, i64 18616, !46, i64 18620, !6, i64 18624, !6, i64 18625, !6, i64 18626, !6, i64 18627, !6, i64 18628, !6, i64 18629, !6, i64 18630, !16, i64 18632, !36, i64 18636, !6, i64 18652, !6, i64 18653, !6, i64 18654, !16, i64 18656, !16, i64 18660, !16, i64 18664, !16, i64 18668, !16, i64 18672, !16, i64 18676, !36, i64 18680, !36, i64 18696, !16, i64 18712, !16, i64 18716, !16, i64 18720, !47, i64 18728, !47, i64 18776, !47, i64 18824, !47, i64 18872, !16, i64 18920, !16, i64 18924, !10, i64 18928, !10, i64 18936, !10, i64 18944, !18, i64 18952, !18, i64 18956, !6, i64 18960, !17, i64 18964, !17, i64 18972, !18, i64 18980, !16, i64 18984, !6, i64 18988, !6, i64 18989, !6, i64 18990, !16, i64 18992, !16, i64 18996, !16, i64 19000, !48, i64 19008, !36, i64 19072, !16, i64 19088, !16, i64 19092, !18, i64 19096, !16, i64 19100, !16, i64 19104, !16, i64 19108, !16, i64 19112, !49, i64 19120, !7, i64 19136, !16, i64 19152, !50, i64 19160, !10, i64 19176, !16, i64 19184, !51, i64 19192, !52, i64 19208, !54, i64 19248, !55, i64 19264, !10, i64 19280, !56, i64 19288, !58, i64 19328, !59, i64 19344, !16, i64 19360, !16, i64 19364, !18, i64 19368, !18, i64 19372, !17, i64 19376, !60, i64 19384, !64, i64 23112, !16, i64 23224, !16, i64 23228, !18, i64 23232, !18, i64 23236, !16, i64 23240, !24, i64 23244, !66, i64 23260, !18, i64 23308, !18, i64 23312, !6, i64 23316, !6, i64 23317, !18, i64 23320, !18, i64 23324, !18, i64 23328, !18, i64 23332, !19, i64 23336, !19, i64 23338, !61, i64 23344, !41, i64 23360, !67, i64 23376, !67, i64 23392, !7, i64 23408, !6, i64 23409, !18, i64 23412, !68, i64 23416, !69, i64 23432, !70, i64 23448, !71, i64 23464, !72, i64 23480, !16, i64 23496, !7, i64 23504, !6, i64 23560, !73, i64 23564, !10, i64 23568, !68, i64 23576, !10, i64 23592, !10, i64 23600, !18, i64 23608, !6, i64 23612, !16, i64 23616, !16, i64 23620, !16, i64 23624, !16, i64 23628, !68, i64 23632, !74, i64 23648, !7, i64 23672, !6, i64 23673, !7, i64 23674, !16, i64 23676, !75, i64 23680, !76, i64 23696, !7, i64 23736, !16, i64 23976, !16, i64 23980, !18, i64 23984, !16, i64 23988, !16, i64 23992, !16, i64 23996, !61, i64 24000}
!15 = !{!"_ZTS7ImGuiIO", !16, i64 0, !16, i64 4, !17, i64 8, !18, i64 16, !18, i64 20, !10, i64 24, !10, i64 32, !18, i64 40, !18, i64 44, !18, i64 48, !18, i64 52, !18, i64 56, !18, i64 60, !18, i64 64, !10, i64 72, !10, i64 80, !18, i64 88, !6, i64 92, !10, i64 96, !17, i64 104, !6, i64 112, !6, i64 113, !6, i64 114, !6, i64 115, !6, i64 116, !6, i64 117, !6, i64 118, !6, i64 119, !18, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !6, i64 208, !6, i64 209, !6, i64 210, !6, i64 211, !6, i64 212, !6, i64 213, !6, i64 214, !18, i64 216, !16, i64 220, !16, i64 224, !16, i64 228, !16, i64 232, !16, i64 236, !17, i64 240, !7, i64 248, !7, i64 2856, !7, i64 3508, !17, i64 3572, !7, i64 3580, !18, i64 3588, !18, i64 3592, !6, i64 3596, !6, i64 3597, !6, i64 3598, !6, i64 3599, !16, i64 3600, !7, i64 3604, !6, i64 14036, !17, i64 14040, !7, i64 14048, !7, i64 14088, !7, i64 14128, !7, i64 14133, !7, i64 14138, !7, i64 14148, !7, i64 14158, !7, i64 14163, !7, i64 14168, !7, i64 14176, !7, i64 14196, !7, i64 14216, !18, i64 14236, !6, i64 14240, !6, i64 14241, !7, i64 14242, !6, i64 14243, !19, i64 14244, !20, i64 14248}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_ZTS6ImVec2", !18, i64 0, !18, i64 4}
!18 = !{!"float", !7, i64 0}
!19 = !{!"short", !7, i64 0}
!20 = !{!"_ZTS8ImVectorItE", !16, i64 0, !16, i64 4, !10, i64 8}
!21 = !{!"_ZTS8ImVectorI15ImGuiInputEventE", !16, i64 0, !16, i64 4, !10, i64 8}
!22 = !{!"_ZTS10ImGuiStyle", !18, i64 0, !18, i64 4, !17, i64 8, !18, i64 16, !18, i64 20, !17, i64 24, !17, i64 32, !16, i64 40, !18, i64 44, !18, i64 48, !18, i64 52, !18, i64 56, !17, i64 60, !18, i64 68, !18, i64 72, !17, i64 76, !17, i64 84, !17, i64 92, !17, i64 100, !18, i64 108, !18, i64 112, !18, i64 116, !18, i64 120, !18, i64 124, !18, i64 128, !18, i64 132, !18, i64 136, !18, i64 140, !18, i64 144, !16, i64 148, !17, i64 152, !17, i64 160, !17, i64 168, !17, i64 176, !18, i64 184, !6, i64 188, !6, i64 189, !6, i64 190, !18, i64 192, !18, i64 196, !7, i64 200}
!23 = !{!"_ZTS20ImDrawListSharedData", !17, i64 0, !10, i64 8, !18, i64 16, !18, i64 20, !18, i64 24, !24, i64 28, !16, i64 44, !25, i64 48, !7, i64 64, !18, i64 448, !7, i64 452, !10, i64 520}
!24 = !{!"_ZTS6ImVec4", !18, i64 0, !18, i64 4, !18, i64 8, !18, i64 12}
!25 = !{!"_ZTS8ImVectorI6ImVec2E", !16, i64 0, !16, i64 4, !10, i64 8}
!26 = !{!"double", !7, i64 0}
!27 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !16, i64 0, !16, i64 4, !10, i64 8}
!28 = !{!"_ZTS8ImVectorI20ImGuiWindowStackDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!29 = !{!"_ZTS12ImGuiStorage", !30, i64 0}
!30 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !16, i64 0, !16, i64 4, !10, i64 8}
!31 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!32 = !{!"_ZTS20ImGuiKeyRoutingTable", !7, i64 0, !33, i64 280, !33, i64 296}
!33 = !{!"_ZTS8ImVectorI19ImGuiKeyRoutingDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!34 = !{!"_ZTS17ImGuiNextItemData", !16, i64 0, !18, i64 4, !16, i64 8, !16, i64 12, !6, i64 16}
!35 = !{!"_ZTS17ImGuiLastItemData", !16, i64 0, !16, i64 4, !16, i64 8, !36, i64 12, !36, i64 28, !36, i64 44}
!36 = !{!"_ZTS6ImRect", !17, i64 0, !17, i64 8}
!37 = !{!"_ZTS19ImGuiNextWindowData", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12, !17, i64 16, !17, i64 24, !17, i64 32, !17, i64 40, !17, i64 48, !6, i64 56, !36, i64 60, !10, i64 80, !10, i64 88, !18, i64 96, !17, i64 100}
!38 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !16, i64 0, !16, i64 4, !10, i64 8}
!39 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !16, i64 0, !16, i64 4, !10, i64 8}
!40 = !{!"_ZTS8ImVectorIP6ImFontE", !16, i64 0, !16, i64 4, !10, i64 8}
!41 = !{!"_ZTS8ImVectorIjE", !16, i64 0, !16, i64 4, !10, i64 8}
!42 = !{!"_ZTS8ImVectorIiE", !16, i64 0, !16, i64 4, !10, i64 8}
!43 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!44 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!45 = !{!"_ZTS8ImVectorIP14ImGuiViewportPE", !16, i64 0, !16, i64 4, !10, i64 8}
!46 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!47 = !{!"_ZTS16ImGuiNavItemData", !10, i64 0, !16, i64 8, !16, i64 12, !36, i64 16, !16, i64 32, !18, i64 36, !18, i64 40, !18, i64 44}
!48 = !{!"_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}
!49 = !{!"_ZTS8ImVectorIhE", !16, i64 0, !16, i64 4, !10, i64 8}
!50 = !{!"_ZTS8ImVectorI20ImGuiListClipperDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!51 = !{!"_ZTS8ImVectorI18ImGuiTableTempDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!52 = !{!"_ZTS6ImPoolI10ImGuiTableE", !53, i64 0, !29, i64 16, !16, i64 32, !16, i64 36}
!53 = !{!"_ZTS8ImVectorI10ImGuiTableE", !16, i64 0, !16, i64 4, !10, i64 8}
!54 = !{!"_ZTS8ImVectorIfE", !16, i64 0, !16, i64 4, !10, i64 8}
!55 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !16, i64 0, !16, i64 4, !10, i64 8}
!56 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !57, i64 0, !29, i64 16, !16, i64 32, !16, i64 36}
!57 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !16, i64 0, !16, i64 4, !10, i64 8}
!58 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !16, i64 0, !16, i64 4, !10, i64 8}
!59 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !16, i64 0, !16, i64 4, !10, i64 8}
!60 = !{!"_ZTS19ImGuiInputTextState", !10, i64 0, !16, i64 8, !16, i64 12, !16, i64 16, !20, i64 24, !61, i64 40, !61, i64 56, !6, i64 72, !16, i64 76, !18, i64 80, !62, i64 84, !18, i64 3712, !6, i64 3716, !6, i64 3717, !6, i64 3718, !16, i64 3720}
!61 = !{!"_ZTS8ImVectorIcE", !16, i64 0, !16, i64 4, !10, i64 8}
!62 = !{!"_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, !63, i64 32}
!63 = !{!"_ZTSN5ImStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !19, i64 3582, !19, i64 3584, !16, i64 3588, !16, i64 3592}
!64 = !{!"_ZTS6ImFont", !54, i64 0, !18, i64 16, !18, i64 20, !20, i64 24, !65, i64 40, !10, i64 56, !10, i64 64, !10, i64 72, !19, i64 80, !19, i64 82, !19, i64 84, !19, i64 86, !6, i64 88, !18, i64 92, !18, i64 96, !18, i64 100, !16, i64 104, !7, i64 108}
!65 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !16, i64 0, !16, i64 4, !10, i64 8}
!66 = !{!"_ZTS21ImGuiComboPreviewData", !36, i64 0, !17, i64 16, !17, i64 24, !17, i64 32, !18, i64 40, !16, i64 44}
!67 = !{!"_ZTS20ImGuiPlatformImeData", !6, i64 0, !17, i64 4, !18, i64 12}
!68 = !{!"_ZTS15ImGuiTextBuffer", !61, i64 0}
!69 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !16, i64 0, !16, i64 4, !10, i64 8}
!70 = !{!"_ZTS13ImChunkStreamI19ImGuiWindowSettingsE", !61, i64 0}
!71 = !{!"_ZTS13ImChunkStreamI18ImGuiTableSettingsE", !61, i64 0}
!72 = !{!"_ZTS8ImVectorI16ImGuiContextHookE", !16, i64 0, !16, i64 4, !10, i64 8}
!73 = !{!"_ZTS12ImGuiLogType", !7, i64 0}
!74 = !{!"_ZTS14ImGuiTextIndex", !42, i64 0, !16, i64 16}
!75 = !{!"_ZTS18ImGuiMetricsConfig", !6, i64 0, !6, i64 1, !6, i64 2, !6, i64 3, !6, i64 4, !6, i64 5, !6, i64 6, !16, i64 8, !16, i64 12}
!76 = !{!"_ZTS14ImGuiStackTool", !16, i64 0, !16, i64 4, !16, i64 8, !77, i64 16, !6, i64 32, !18, i64 36}
!77 = !{!"_ZTS8ImVectorI19ImGuiStackLevelInfoE", !16, i64 0, !16, i64 4, !10, i64 8}
!78 = !{!16, !16, i64 0}
!79 = !{!14, !16, i64 14272}
!80 = !{!81, !82, i64 0}
!81 = !{!"_ZTS15ImGuiInputEvent", !82, i64 0, !31, i64 4, !7, i64 8, !6, i64 20}
!82 = !{!"_ZTS19ImGuiInputEventType", !7, i64 0}
!83 = !{!7, !7, i64 0}
!84 = !{i64 0, i64 4, !85, i64 4, i64 4, !85}
!85 = !{!18, !18, i64 0}
!86 = !{!15, !18, i64 3592}
!87 = !{!15, !18, i64 3588}
!88 = !{!89, !89, i64 0}
!89 = !{!"_ZTS8ImGuiKey", !7, i64 0}
!90 = !{!91, !6, i64 0}
!91 = !{!"_ZTS12ImGuiKeyData", !6, i64 0, !18, i64 4, !18, i64 8, !18, i64 12}
!92 = !{!91, !18, i64 12}
!93 = !{!19, !19, i64 0}
!94 = !{!15, !6, i64 14240}
!95 = distinct !{!95, !96}
!96 = !{!"llvm.loop.mustprogress"}
!97 = distinct !{!97, !96}
!98 = !{!14, !16, i64 23628}
!99 = distinct !{!99, !96}
!100 = !{!14, !10, i64 14280}
!101 = !{!14, !6, i64 14248}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

@GImGui = external dso_local local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.175 = external hidden unnamed_addr constant [47 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb = external hidden unnamed_addr constant [36 x i8], align 1
@.str.176 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.177 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.178 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.179 = 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(21)) local_unnamed_addr #3 align 2

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

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

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

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

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

11:                                               ; preds = %7, %1
  %12 = phi i1 [ false, %1 ], [ %10, %7 ]
  call void @llvm.lifetime.start.p0(i64 84, ptr nonnull %2) #6
  call void @_ZN10ImBitArrayILi652ELi0EEC2Ev(ptr noundef nonnull align 4 dereferenceable(84) %2)
  %13 = getelementptr inbounds i8, ptr %5, i64 14272
  %14 = load i32, ptr %13, align 8, !tbaa !75
  %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 14248
  %17 = getelementptr inbounds i8, ptr %5, i64 14256
  %18 = getelementptr inbounds i8, ptr %5, i64 3612
  %19 = ptrtoint ptr %18 to i64
  %20 = getelementptr inbounds i8, ptr %5, i64 2864
  %21 = getelementptr inbounds i8, ptr %5, i64 256
  %22 = getelementptr inbounds i8, ptr %5, i64 3600
  %23 = getelementptr inbounds i8, ptr %5, i64 3596
  %24 = getelementptr inbounds i8, ptr %5, i64 3588
  %25 = getelementptr inbounds i8, ptr %5, i64 3580
  br label %26

26:                                               ; preds = %.lr.ph, %.thread160
  %.0116188 = phi i8 [ 0, %.lr.ph ], [ %.3, %.thread160 ]
  %.0117187 = phi i8 [ 0, %.lr.ph ], [ %.2119, %.thread160 ]
  %.0120186 = phi i8 [ 0, %.lr.ph ], [ %.3123, %.thread160 ]
  %.0124185 = phi i8 [ 0, %.lr.ph ], [ %.3127, %.thread160 ]
  %.0128184 = phi i32 [ 0, %.lr.ph ], [ %.3131, %.thread160 ]
  %.0132182 = phi i32 [ 0, %.lr.ph ], [ %125, %.thread160 ]
  %27 = call noundef nonnull align 4 dereferenceable(21) ptr @_ZN8ImVectorI15ImGuiInputEventEixEi(ptr noundef nonnull align 8 dereferenceable(16) %13, i32 noundef %.0132182)
  %28 = load i32, ptr %27, align 4, !tbaa !76
  switch i32 %28, label %124 [
    i32 1, label %29
    i32 3, label %43
    i32 2, label %59
    i32 4, label %71
    i32 5, label %104
    i32 6, label %120
  ]

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

34:                                               ; preds = %29
  %.not144 = icmp eq i32 %.0128184, 0
  br i1 %.not144, label %35, label %.thread

35:                                               ; preds = %34
  %36 = trunc nuw i8 %.0117187 to i1
  br i1 %36, label %.thread, label %37

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

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

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

41:                                               ; preds = %29, %39
  %42 = load i64, ptr %3, align 8
  store i64 %42, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br label %.thread160

43:                                               ; preds = %26
  %44 = getelementptr inbounds i8, ptr %27, i64 8
  %45 = load i32, ptr %44, align 4, !tbaa !79
  %46 = icmp ult i32 %45, 5
  br i1 %46, label %48, label %47

47:                                               ; preds = %43
  call void @__assert_fail(ptr noundef nonnull @.str.175, ptr noundef nonnull @.str.4, i32 noundef 8605, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb) #7
  unreachable

48:                                               ; preds = %43
  %49 = shl nuw nsw i32 1, %45
  br i1 %0, label %50, label %._crit_edge224

50:                                               ; preds = %48
  %51 = and i32 %49, %.0128184
  %.not143 = icmp eq i32 %51, 0
  br i1 %.not143, label %52, label %.thread165

52:                                               ; preds = %50
  %53 = trunc nuw i8 %.0117187 to i1
  br i1 %53, label %.thread165, label %._crit_edge224

._crit_edge224:                                   ; preds = %48, %52
  %54 = getelementptr inbounds i8, ptr %27, i64 12
  %55 = load i8, ptr %54, align 4, !tbaa !79, !range !80, !noundef !81
  %56 = zext nneg i32 %45 to i64
  %57 = getelementptr inbounds [5 x i8], ptr %24, i64 0, i64 %56
  store i8 %55, ptr %57, align 1, !tbaa !82
  %58 = or i32 %49, %.0128184
  br label %.thread160

59:                                               ; preds = %26
  %60 = trunc nuw i8 %.0116188 to i1
  %61 = icmp ne i32 %.0128184, 0
  %or.cond = select i1 %60, i1 true, i1 %61
  %or.cond148 = select i1 %0, i1 %or.cond, i1 false
  br i1 %or.cond148, label %.thread165, label %62

62:                                               ; preds = %59
  %63 = getelementptr inbounds i8, ptr %27, i64 8
  %64 = load float, ptr %63, align 4, !tbaa !79
  %65 = load float, ptr %22, align 8, !tbaa !83
  %66 = fadd float %64, %65
  store float %66, ptr %22, align 8, !tbaa !83
  %67 = getelementptr inbounds i8, ptr %27, i64 12
  %68 = load float, ptr %67, align 4, !tbaa !79
  %69 = load float, ptr %23, align 4, !tbaa !84
  %70 = fadd float %68, %69
  store float %70, ptr %23, align 4, !tbaa !84
  br label %.thread160

71:                                               ; preds = %26
  %72 = getelementptr inbounds i8, ptr %27, i64 8
  %73 = load i32, ptr %72, align 4, !tbaa !79
  %.not = icmp eq i32 %73, 0
  br i1 %.not, label %74, label %75

74:                                               ; preds = %71
  call void @__assert_fail(ptr noundef nonnull @.str.176, ptr noundef nonnull @.str.4, i32 noundef 8624, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb) #7
  unreachable

75:                                               ; preds = %71
  %76 = call noundef ptr @_ZN5ImGui10GetKeyDataE8ImGuiKey(i32 noundef %73)
  %77 = ptrtoint ptr %76 to i64
  %78 = sub i64 %77, %19
  %79 = lshr exact i64 %78, 4
  %80 = trunc i64 %79 to i32
  br i1 %0, label %81, label %90

81:                                               ; preds = %75
  %82 = load i8, ptr %76, align 4, !tbaa !85, !range !80, !noundef !81
  %83 = getelementptr inbounds i8, ptr %27, i64 12
  %84 = load i8, ptr %83, align 4, !tbaa !79, !range !80, !noundef !81
  %.not141 = icmp eq i8 %82, %84
  br i1 %.not141, label %90, label %85

85:                                               ; preds = %81
  %86 = call noundef zeroext i1 @_ZNK10ImBitArrayILi652ELi0EE7TestBitEi(ptr noundef nonnull align 4 dereferenceable(84) %2, i32 noundef %80)
  %87 = trunc nuw i8 %.0124185 to i1
  %88 = icmp ne i32 %.0128184, 0
  %89 = select i1 %86, i1 true, i1 %87
  %or.cond150 = select i1 %89, i1 true, i1 %88
  br i1 %or.cond150, label %.thread165, label %90

90:                                               ; preds = %85, %81, %75
  %91 = getelementptr inbounds i8, ptr %27, i64 12
  %92 = load i8, ptr %91, align 4, !tbaa !79, !range !80, !noundef !81
  store i8 %92, ptr %76, align 4, !tbaa !85
  %93 = getelementptr inbounds i8, ptr %27, i64 16
  %94 = load float, ptr %93, align 4, !tbaa !79
  %95 = getelementptr inbounds i8, ptr %76, i64 12
  store float %94, ptr %95, align 4, !tbaa !87
  call void @_ZN10ImBitArrayILi652ELi0EE6SetBitEi(ptr noundef nonnull align 4 dereferenceable(84) %2, i32 noundef %80)
  %96 = load i8, ptr %76, align 4, !tbaa !85, !range !80, !noundef !81
  %sext = shl i64 %78, 28
  %97 = ashr i64 %sext, 32
  %98 = getelementptr inbounds [652 x i8], ptr %20, i64 0, i64 %97
  store i8 %96, ptr %98, align 1, !tbaa !82
  %99 = getelementptr inbounds [652 x i32], ptr %21, i64 0, i64 %97
  %100 = load i32, ptr %99, align 4, !tbaa !88
  %.not142 = icmp eq i32 %100, -1
  br i1 %.not142, label %.thread160, label %101

101:                                              ; preds = %90
  %102 = sext i32 %100 to i64
  %103 = getelementptr inbounds [652 x i8], ptr %20, i64 0, i64 %102
  store i8 %96, ptr %103, align 1, !tbaa !82
  br label %.thread160

104:                                              ; preds = %26
  br i1 %0, label %105, label %114

105:                                              ; preds = %104
  %106 = trunc nuw i8 %.0120186 to i1
  br i1 %106, label %107, label %109

107:                                              ; preds = %105
  %108 = icmp ne i32 %.0128184, 0
  %or.cond7 = select i1 %12, i1 true, i1 %108
  br i1 %or.cond7, label %.thread165, label %110

109:                                              ; preds = %105
  %.old6.not = icmp eq i32 %.0128184, 0
  br i1 %.old6.not, label %110, label %.thread165

110:                                              ; preds = %107, %109
  %111 = trunc nuw i8 %.0116188 to i1
  br i1 %111, label %.thread165, label %112

112:                                              ; preds = %110
  %113 = trunc nuw i8 %.0117187 to i1
  br i1 %113, label %.thread165, label %114

114:                                              ; preds = %112, %104
  %115 = getelementptr inbounds i8, ptr %27, i64 8
  %116 = load i32, ptr %115, align 4, !tbaa !79
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %4) #6
  %117 = icmp ult i32 %116, 65536
  %118 = trunc i32 %116 to i16
  %119 = select i1 %117, i16 %118, i16 -3
  store i16 %119, ptr %4, align 2, !tbaa !89
  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 %.0124185
  br label %.thread160

120:                                              ; preds = %26
  %121 = getelementptr inbounds i8, ptr %27, i64 8
  %122 = load i8, ptr %121, align 4, !tbaa !79, !range !80, !noundef !81
  %123 = xor i8 %122, 1
  store i8 %123, ptr %16, align 8, !tbaa !90
  br label %.thread160

124:                                              ; preds = %26
  call void @__assert_fail(ptr noundef nonnull @.str.177, ptr noundef nonnull @.str.4, i32 noundef 8660, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb) #7
  unreachable

.thread160:                                       ; preds = %90, %101, %._crit_edge224, %41, %120, %114, %62
  %.3131 = phi i32 [ %.0128184, %41 ], [ %58, %._crit_edge224 ], [ %.0128184, %62 ], [ %.0128184, %114 ], [ %.0128184, %120 ], [ %.0128184, %101 ], [ %.0128184, %90 ]
  %.3127 = phi i8 [ %.0124185, %41 ], [ %.0124185, %._crit_edge224 ], [ %.0124185, %62 ], [ %spec.select, %114 ], [ %.0124185, %120 ], [ %.0124185, %101 ], [ %.0124185, %90 ]
  %.3123 = phi i8 [ %.0120186, %41 ], [ %.0120186, %._crit_edge224 ], [ %.0120186, %62 ], [ %.0120186, %114 ], [ %.0120186, %120 ], [ 1, %101 ], [ 1, %90 ]
  %.2119 = phi i8 [ %.0117187, %41 ], [ %.0117187, %._crit_edge224 ], [ 1, %62 ], [ %.0117187, %114 ], [ %.0117187, %120 ], [ %.0117187, %101 ], [ %.0117187, %90 ]
  %.3 = phi i8 [ 1, %41 ], [ %.0116188, %._crit_edge224 ], [ %.0116188, %62 ], [ %.0116188, %114 ], [ %.0116188, %120 ], [ %.0116188, %101 ], [ %.0116188, %90 ]
  %125 = add nuw nsw i32 %.0132182, 1
  %126 = load i32, ptr %13, align 8, !tbaa !75
  %127 = icmp slt i32 %125, %126
  br i1 %127, label %26, label %.lr.ph215, !llvm.loop !91

.thread165:                                       ; preds = %59, %112, %110, %109, %107, %85, %52, %50, %.thread
  %.not218 = icmp eq i32 %.0132182, 0
  br i1 %.not218, label %._crit_edge..loopexit_crit_edge, label %.lr.ph215

.lr.ph215:                                        ; preds = %.thread160, %.thread165
  %.0132181233 = phi i32 [ %.0132182, %.thread165 ], [ %125, %.thread160 ]
  %128 = getelementptr inbounds i8, ptr %5, i64 14288
  br label %129

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

129:                                              ; preds = %.lr.ph215, %129
  %.0115214 = phi i32 [ 0, %.lr.ph215 ], [ %131, %129 ]
  %130 = call noundef nonnull align 4 dereferenceable(21) ptr @_ZN8ImVectorI15ImGuiInputEventEixEi(ptr noundef nonnull align 8 dereferenceable(16) %13, i32 noundef %.0115214)
  call void @_ZN8ImVectorI15ImGuiInputEventE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %128, ptr noundef nonnull align 4 dereferenceable(21) %130)
  %131 = add nuw nsw i32 %.0115214, 1
  %exitcond.not = icmp eq i32 %131, %.0132181233
  br i1 %exitcond.not, label %._crit_edge, label %129, !llvm.loop !93

._crit_edge:                                      ; preds = %129
  %132 = getelementptr inbounds i8, ptr %5, i64 23628
  %133 = load i32, ptr %132, align 4, !tbaa !94
  %134 = and i32 %133, 32
  %.not146 = icmp ne i32 %134, 0
  %.pre223 = load i32, ptr %13, align 8, !tbaa !75
  %135 = icmp sgt i32 %.pre223, 0
  %or.cond246 = select i1 %.not146, i1 %135, i1 false
  br i1 %or.cond246, label %.lr.ph217, label %.loopexit

.lr.ph217:                                        ; preds = %._crit_edge, %.lr.ph217
  %.0216 = phi i32 [ %138, %.lr.ph217 ], [ 0, %._crit_edge ]
  %136 = icmp ult i32 %.0216, %.0132181233
  %.str.178..str.179 = select i1 %136, ptr @.str.178, ptr @.str.179
  %137 = call noundef nonnull align 4 dereferenceable(21) ptr @_ZN8ImVectorI15ImGuiInputEventEixEi(ptr noundef nonnull align 8 dereferenceable(16) %13, i32 noundef %.0216)
  call void @_ZL20DebugPrintInputEventPKcPK15ImGuiInputEvent(ptr noundef nonnull %.str.178..str.179, ptr noundef nonnull %137)
  %138 = add nuw nsw i32 %.0216, 1
  %139 = load i32, ptr %13, align 8, !tbaa !75
  %140 = icmp slt i32 %138, %139
  br i1 %140, label %.lr.ph217, label %.loopexit, !llvm.loop !95

.loopexit:                                        ; preds = %.lr.ph217, %._crit_edge..loopexit_crit_edge, %._crit_edge
  %.0132181228237 = phi i32 [ 0, %._crit_edge..loopexit_crit_edge ], [ %.0132181233, %._crit_edge ], [ %.0132181233, %.lr.ph217 ]
  %141 = phi i32 [ %.pre, %._crit_edge..loopexit_crit_edge ], [ %.pre223, %._crit_edge ], [ %139, %.lr.ph217 ]
  %142 = icmp eq i32 %.0132181228237, %141
  br i1 %142, label %143, label %144

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

144:                                              ; preds = %.loopexit
  %145 = getelementptr inbounds i8, ptr %5, i64 14280
  %146 = load ptr, ptr %145, align 8, !tbaa !96
  %147 = zext nneg i32 %.0132181228237 to i64
  %148 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %146, i64 %147
  %149 = call noundef ptr @_ZN8ImVectorI15ImGuiInputEventE5eraseEPKS0_S3_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef %146, ptr noundef %148)
  br label %150

150:                                              ; preds = %144, %143
  %151 = getelementptr inbounds i8, ptr %5, i64 14248
  %152 = load i8, ptr %151, align 8, !tbaa !97, !range !80, !noundef !81
  %153 = trunc nuw i8 %152 to i1
  br i1 %153, label %154, label %155

154:                                              ; preds = %150
  call void @_ZN7ImGuiIO14ClearInputKeysEv(ptr noundef nonnull align 8 dereferenceable(14264) %6)
  br label %155

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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !13, i64 23996}
!10 = !{!"_ZTS12ImGuiContext", !11, i64 0, !11, i64 1, !12, i64 8, !18, i64 14272, !18, i64 14288, !19, i64 14304, !6, i64 15352, !15, i64 15360, !15, i64 15364, !20, i64 15368, !23, i64 15896, !13, i64 15904, !13, i64 15908, !13, i64 15912, !11, i64 15916, !11, i64 15917, !11, i64 15918, !11, i64 15919, !11, i64 15920, !6, i64 15928, !24, i64 15936, !24, i64 15952, !24, i64 15968, !25, i64 15984, !26, i64 16000, !13, i64 16016, !14, i64 16020, !6, i64 16032, !6, i64 16040, !6, i64 16048, !6, i64 16056, !6, i64 16064, !14, i64 16072, !13, i64 16080, !15, i64 16084, !14, i64 16088, !14, i64 16096, !13, i64 16104, !13, i64 16108, !13, i64 16112, !11, i64 16116, !11, i64 16117, !15, i64 16120, !15, i64 16124, !13, i64 16128, !13, i64 16132, !15, i64 16136, !11, i64 16140, !11, i64 16141, !11, i64 16142, !11, i64 16143, !11, i64 16144, !11, i64 16145, !14, i64 16148, !6, i64 16160, !28, i64 16168, !13, i64 16172, !13, i64 16176, !11, i64 16180, !11, i64 16181, !6, i64 16184, !13, i64 16192, !15, i64 16196, !7, i64 16200, !29, i64 17880, !13, i64 18192, !11, i64 18196, !13, i64 18200, !13, i64 18204, !13, i64 18208, !13, i64 18212, !31, i64 18216, !32, i64 18236, !34, i64 18296, !35, i64 18408, !36, i64 18424, !37, i64 18440, !38, i64 18456, !39, i64 18472, !40, i64 18488, !41, i64 18504, !41, i64 18520, !13, i64 18536, !42, i64 18544, !6, i64 18560, !13, i64 18568, !13, i64 18572, !13, i64 18576, !13, i64 18580, !13, i64 18584, !13, i64 18588, !13, i64 18592, !13, i64 18596, !13, i64 18600, !13, i64 18604, !13, i64 18608, !13, i64 18612, !28, i64 18616, !43, i64 18620, !11, i64 18624, !11, i64 18625, !11, i64 18626, !11, i64 18627, !11, i64 18628, !11, i64 18629, !11, i64 18630, !13, i64 18632, !33, i64 18636, !11, i64 18652, !11, i64 18653, !11, i64 18654, !13, i64 18656, !13, i64 18660, !13, i64 18664, !13, i64 18668, !13, i64 18672, !13, i64 18676, !33, i64 18680, !33, i64 18696, !13, i64 18712, !13, i64 18716, !13, i64 18720, !44, i64 18728, !44, i64 18776, !44, i64 18824, !44, i64 18872, !13, i64 18920, !13, i64 18924, !6, i64 18928, !6, i64 18936, !6, i64 18944, !15, i64 18952, !15, i64 18956, !11, i64 18960, !14, i64 18964, !14, i64 18972, !15, i64 18980, !13, i64 18984, !11, i64 18988, !11, i64 18989, !11, i64 18990, !13, i64 18992, !13, i64 18996, !13, i64 19000, !45, i64 19008, !33, i64 19072, !13, i64 19088, !13, i64 19092, !15, i64 19096, !13, i64 19100, !13, i64 19104, !13, i64 19108, !13, i64 19112, !46, i64 19120, !7, i64 19136, !13, i64 19152, !47, i64 19160, !6, i64 19176, !13, i64 19184, !48, i64 19192, !49, i64 19208, !51, i64 19248, !52, i64 19264, !6, i64 19280, !53, i64 19288, !55, i64 19328, !56, i64 19344, !13, i64 19360, !13, i64 19364, !15, i64 19368, !15, i64 19372, !14, i64 19376, !57, i64 19384, !61, i64 23112, !13, i64 23224, !13, i64 23228, !15, i64 23232, !15, i64 23236, !13, i64 23240, !21, i64 23244, !63, i64 23260, !15, i64 23308, !15, i64 23312, !11, i64 23316, !11, i64 23317, !15, i64 23320, !15, i64 23324, !15, i64 23328, !15, i64 23332, !16, i64 23336, !16, i64 23338, !58, i64 23344, !38, i64 23360, !64, i64 23376, !64, i64 23392, !7, i64 23408, !11, i64 23409, !15, i64 23412, !65, i64 23416, !66, i64 23432, !67, i64 23448, !68, i64 23464, !69, i64 23480, !13, i64 23496, !7, i64 23504, !11, i64 23560, !70, i64 23564, !6, i64 23568, !65, i64 23576, !6, i64 23592, !6, i64 23600, !15, i64 23608, !11, i64 23612, !13, i64 23616, !13, i64 23620, !13, i64 23624, !13, i64 23628, !65, i64 23632, !71, i64 23648, !7, i64 23672, !11, i64 23673, !7, i64 23674, !13, i64 23676, !72, i64 23680, !73, i64 23696, !7, i64 23736, !13, i64 23976, !13, i64 23980, !15, i64 23984, !13, i64 23988, !13, i64 23992, !13, i64 23996, !58, i64 24000}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"_ZTS7ImGuiIO", !13, i64 0, !13, i64 4, !14, i64 8, !15, i64 16, !15, i64 20, !6, i64 24, !6, i64 32, !15, i64 40, !15, i64 44, !15, i64 48, !15, i64 52, !15, i64 56, !15, i64 60, !15, i64 64, !6, i64 72, !6, i64 80, !15, i64 88, !11, i64 92, !6, i64 96, !14, i64 104, !11, i64 112, !11, i64 113, !11, i64 114, !11, i64 115, !11, i64 116, !11, i64 117, !11, i64 118, !11, i64 119, !15, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !11, i64 208, !11, i64 209, !11, i64 210, !11, i64 211, !11, i64 212, !11, i64 213, !11, i64 214, !15, i64 216, !13, i64 220, !13, i64 224, !13, i64 228, !13, i64 232, !13, i64 236, !14, i64 240, !7, i64 248, !7, i64 2856, !7, i64 3508, !14, i64 3572, !7, i64 3580, !15, i64 3588, !15, i64 3592, !11, i64 3596, !11, i64 3597, !11, i64 3598, !11, i64 3599, !13, i64 3600, !7, i64 3604, !11, i64 14036, !14, i64 14040, !7, i64 14048, !7, i64 14088, !7, i64 14128, !7, i64 14133, !7, i64 14138, !7, i64 14148, !7, i64 14158, !7, i64 14163, !7, i64 14168, !7, i64 14176, !7, i64 14196, !7, i64 14216, !15, i64 14236, !11, i64 14240, !11, i64 14241, !7, i64 14242, !11, i64 14243, !16, i64 14244, !17, i64 14248}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTS6ImVec2", !15, i64 0, !15, i64 4}
!15 = !{!"float", !7, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = !{!"_ZTS8ImVectorItE", !13, i64 0, !13, i64 4, !6, i64 8}
!18 = !{!"_ZTS8ImVectorI15ImGuiInputEventE", !13, i64 0, !13, i64 4, !6, i64 8}
!19 = !{!"_ZTS10ImGuiStyle", !15, i64 0, !15, i64 4, !14, i64 8, !15, i64 16, !15, i64 20, !14, i64 24, !14, i64 32, !13, i64 40, !15, i64 44, !15, i64 48, !15, i64 52, !15, i64 56, !14, i64 60, !15, i64 68, !15, i64 72, !14, i64 76, !14, i64 84, !14, i64 92, !14, i64 100, !15, i64 108, !15, i64 112, !15, i64 116, !15, i64 120, !15, i64 124, !15, i64 128, !15, i64 132, !15, i64 136, !15, i64 140, !15, i64 144, !13, i64 148, !14, i64 152, !14, i64 160, !14, i64 168, !14, i64 176, !15, i64 184, !11, i64 188, !11, i64 189, !11, i64 190, !15, i64 192, !15, i64 196, !7, i64 200}
!20 = !{!"_ZTS20ImDrawListSharedData", !14, i64 0, !6, i64 8, !15, i64 16, !15, i64 20, !15, i64 24, !21, i64 28, !13, i64 44, !22, i64 48, !7, i64 64, !15, i64 448, !7, i64 452, !6, i64 520}
!21 = !{!"_ZTS6ImVec4", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!22 = !{!"_ZTS8ImVectorI6ImVec2E", !13, i64 0, !13, i64 4, !6, i64 8}
!23 = !{!"double", !7, i64 0}
!24 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !13, i64 0, !13, i64 4, !6, i64 8}
!25 = !{!"_ZTS8ImVectorI20ImGuiWindowStackDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!26 = !{!"_ZTS12ImGuiStorage", !27, i64 0}
!27 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !13, i64 0, !13, i64 4, !6, i64 8}
!28 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!29 = !{!"_ZTS20ImGuiKeyRoutingTable", !7, i64 0, !30, i64 280, !30, i64 296}
!30 = !{!"_ZTS8ImVectorI19ImGuiKeyRoutingDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!31 = !{!"_ZTS17ImGuiNextItemData", !13, i64 0, !15, i64 4, !13, i64 8, !13, i64 12, !11, i64 16}
!32 = !{!"_ZTS17ImGuiLastItemData", !13, i64 0, !13, i64 4, !13, i64 8, !33, i64 12, !33, i64 28, !33, i64 44}
!33 = !{!"_ZTS6ImRect", !14, i64 0, !14, i64 8}
!34 = !{!"_ZTS19ImGuiNextWindowData", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !11, i64 56, !33, i64 60, !6, i64 80, !6, i64 88, !15, i64 96, !14, i64 100}
!35 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !13, i64 0, !13, i64 4, !6, i64 8}
!36 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !13, i64 0, !13, i64 4, !6, i64 8}
!37 = !{!"_ZTS8ImVectorIP6ImFontE", !13, i64 0, !13, i64 4, !6, i64 8}
!38 = !{!"_ZTS8ImVectorIjE", !13, i64 0, !13, i64 4, !6, i64 8}
!39 = !{!"_ZTS8ImVectorIiE", !13, i64 0, !13, i64 4, !6, i64 8}
!40 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!41 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!42 = !{!"_ZTS8ImVectorIP14ImGuiViewportPE", !13, i64 0, !13, i64 4, !6, i64 8}
!43 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!44 = !{!"_ZTS16ImGuiNavItemData", !6, i64 0, !13, i64 8, !13, i64 12, !33, i64 16, !13, i64 32, !15, i64 36, !15, i64 40, !15, i64 44}
!45 = !{!"_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}
!46 = !{!"_ZTS8ImVectorIhE", !13, i64 0, !13, i64 4, !6, i64 8}
!47 = !{!"_ZTS8ImVectorI20ImGuiListClipperDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!48 = !{!"_ZTS8ImVectorI18ImGuiTableTempDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!49 = !{!"_ZTS6ImPoolI10ImGuiTableE", !50, i64 0, !26, i64 16, !13, i64 32, !13, i64 36}
!50 = !{!"_ZTS8ImVectorI10ImGuiTableE", !13, i64 0, !13, i64 4, !6, i64 8}
!51 = !{!"_ZTS8ImVectorIfE", !13, i64 0, !13, i64 4, !6, i64 8}
!52 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !13, i64 0, !13, i64 4, !6, i64 8}
!53 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !54, i64 0, !26, i64 16, !13, i64 32, !13, i64 36}
!54 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !13, i64 0, !13, i64 4, !6, i64 8}
!55 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !13, i64 0, !13, i64 4, !6, i64 8}
!56 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !13, i64 0, !13, i64 4, !6, i64 8}
!57 = !{!"_ZTS19ImGuiInputTextState", !6, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !17, i64 24, !58, i64 40, !58, i64 56, !11, i64 72, !13, i64 76, !15, i64 80, !59, i64 84, !15, i64 3712, !11, i64 3716, !11, i64 3717, !11, i64 3718, !13, i64 3720}
!58 = !{!"_ZTS8ImVectorIcE", !13, i64 0, !13, i64 4, !6, i64 8}
!59 = !{!"_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, !60, i64 32}
!60 = !{!"_ZTSN5ImStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !16, i64 3582, !16, i64 3584, !13, i64 3588, !13, i64 3592}
!61 = !{!"_ZTS6ImFont", !51, i64 0, !15, i64 16, !15, i64 20, !17, i64 24, !62, i64 40, !6, i64 56, !6, i64 64, !6, i64 72, !16, i64 80, !16, i64 82, !16, i64 84, !16, i64 86, !11, i64 88, !15, i64 92, !15, i64 96, !15, i64 100, !13, i64 104, !7, i64 108}
!62 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !13, i64 0, !13, i64 4, !6, i64 8}
!63 = !{!"_ZTS21ImGuiComboPreviewData", !33, i64 0, !14, i64 16, !14, i64 24, !14, i64 32, !15, i64 40, !13, i64 44}
!64 = !{!"_ZTS20ImGuiPlatformImeData", !11, i64 0, !14, i64 4, !15, i64 12}
!65 = !{!"_ZTS15ImGuiTextBuffer", !58, i64 0}
!66 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !13, i64 0, !13, i64 4, !6, i64 8}
!67 = !{!"_ZTS13ImChunkStreamI19ImGuiWindowSettingsE", !58, i64 0}
!68 = !{!"_ZTS13ImChunkStreamI18ImGuiTableSettingsE", !58, i64 0}
!69 = !{!"_ZTS8ImVectorI16ImGuiContextHookE", !13, i64 0, !13, i64 4, !6, i64 8}
!70 = !{!"_ZTS12ImGuiLogType", !7, i64 0}
!71 = !{!"_ZTS14ImGuiTextIndex", !39, i64 0, !13, i64 16}
!72 = !{!"_ZTS18ImGuiMetricsConfig", !11, i64 0, !11, i64 1, !11, i64 2, !11, i64 3, !11, i64 4, !11, i64 5, !11, i64 6, !13, i64 8, !13, i64 12}
!73 = !{!"_ZTS14ImGuiStackTool", !13, i64 0, !13, i64 4, !13, i64 8, !74, i64 16, !11, i64 32, !15, i64 36}
!74 = !{!"_ZTS8ImVectorI19ImGuiStackLevelInfoE", !13, i64 0, !13, i64 4, !6, i64 8}
!75 = !{!10, !13, i64 14272}
!76 = !{!77, !78, i64 0}
!77 = !{!"_ZTS15ImGuiInputEvent", !78, i64 0, !28, i64 4, !7, i64 8, !11, i64 20}
!78 = !{!"_ZTS19ImGuiInputEventType", !7, i64 0}
!79 = !{!7, !7, i64 0}
!80 = !{i8 0, i8 2}
!81 = !{}
!82 = !{!11, !11, i64 0}
!83 = !{!12, !15, i64 3592}
!84 = !{!12, !15, i64 3588}
!85 = !{!86, !11, i64 0}
!86 = !{!"_ZTS12ImGuiKeyData", !11, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!87 = !{!86, !15, i64 12}
!88 = !{!13, !13, i64 0}
!89 = !{!16, !16, i64 0}
!90 = !{!12, !11, i64 14240}
!91 = distinct !{!91, !92}
!92 = !{!"llvm.loop.mustprogress"}
!93 = distinct !{!93, !92}
!94 = !{!10, !13, i64 23628}
!95 = distinct !{!95, !92}
!96 = !{!10, !6, i64 14280}
!97 = !{!10, !11, i64 14248}


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