; LLVM IR from Samson-Mano/EM_Propogation_simulation :: EM_Propogation_simulation/src/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.ImGuiStyle, ptr, float, float, %struct.ImDrawListSharedData, double, i32, i32, i32, i8, i8, i8, i8, i8, ptr, %struct.ImVector.1, %struct.ImVector.1, i32, i32, %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, 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.ImGuiInputTextDeactivatedState, %struct.ImFont, i32, i32, i32, i32, float, float, i32, %struct.ImVec4, %struct.ImGuiComboPreviewData, float, float, i8, i8, float, float, float, float, i16, i16, %struct.ImVector.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, 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, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, i32, i32, %struct.ImVec2, [652 x i32], [652 x i8], [16 x float], ptr, %struct.ImVec2, [5 x i8], float, float, i32, i8, i8, i8, i8, i32, [652 x %struct.ImGuiKeyData], i8, %struct.ImVec2, [5 x %struct.ImVec2], [5 x double], [5 x i8], [5 x i8], [5 x i16], [5 x i16], [5 x i8], [5 x i8], [5 x i8], i8, [5 x float], [5 x float], [5 x float], float, i8, i8, i8, i8, i16, %struct.ImVector }
%struct.ImGuiKeyData = type { i8, float, float, float }
%struct.ImVector = type { i32, i32, ptr }
%struct.ImGuiStyle = type { float, float, %struct.ImVec2, float, float, %struct.ImVec2, %struct.ImVec2, i32, float, float, float, float, %struct.ImVec2, float, float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, float, float, float, float, float, float, float, float, i32, %struct.ImVec2, %struct.ImVec2, float, %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.0, [48 x %struct.ImVec2], float, [64 x i8], ptr }
%struct.ImVector.0 = type { i32, i32, 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.ImGuiInputTextDeactivatedState = type { i32, %struct.ImVector.24 }
%struct.ImFont = type <{ %struct.ImVector.18, float, float, %struct.ImVector, %struct.ImVector.25, 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.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, 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, 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.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 [117 x i8], align 1
@.str.177 = external hidden unnamed_addr constant [47 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb = external hidden unnamed_addr constant [36 x i8], align 1
@.str.178 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.179 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.180 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.181 = 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(14280)) #5 align 2

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

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

31:                                               ; preds = %1
  %32 = load ptr, ptr %3, align 8, !tbaa !9
  %33 = getelementptr inbounds %struct.ImGuiContext, ptr %32, i32 0, i32 238
  %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 !80
  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 !80
  br label %39

39:                                               ; preds = %379, %36
  %40 = load i32, ptr %12, align 4, !tbaa !80
  %41 = load ptr, ptr %3, align 8, !tbaa !9
  %42 = getelementptr inbounds %struct.ImGuiContext, ptr %41, i32 0, i32 18
  %43 = getelementptr inbounds %struct.ImVector.1, ptr %42, i32 0, i32 0
  %44 = load i32, ptr %43, align 8, !tbaa !81
  %45 = icmp slt i32 %40, %44
  br i1 %45, label %46, label %382

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 18
  %49 = load i32, ptr %12, align 4, !tbaa !80
  %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 !82
  %54 = icmp eq i32 %53, 1
  br i1 %54, label %55, label %91

55:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %56 = load ptr, ptr %13, align 8, !tbaa !9
  %57 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %56, i32 0, i32 3
  %58 = getelementptr inbounds %struct.ImGuiInputEventMousePos, ptr %57, i32 0, i32 0
  %59 = load float, ptr %58, align 4, !tbaa !85
  %60 = load ptr, ptr %13, align 8, !tbaa !9
  %61 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %60, i32 0, i32 3
  %62 = getelementptr inbounds %struct.ImGuiInputEventMousePos, ptr %61, i32 0, i32 1
  %63 = load float, ptr %62, align 4, !tbaa !85
  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 !80
  %68 = icmp ne i32 %67, 0
  br i1 %68, label %78, label %69

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

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

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

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

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

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

90:                                               ; preds = %88
  br label %375

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

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

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

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

108:                                              ; preds = %106
  br label %111

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

110:                                              ; No predecessors!
  br label %111

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

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

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

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

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

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

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

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

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

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

161:                                              ; preds = %159
  br label %374

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

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

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

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

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

177:                                              ; preds = %173, %167
  %178 = load ptr, ptr %13, align 8, !tbaa !9
  %179 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %178, i32 0, i32 3
  %180 = getelementptr inbounds %struct.ImGuiInputEventMouseWheel, ptr %179, i32 0, i32 0
  %181 = load float, ptr %180, align 4, !tbaa !85
  %182 = load ptr, ptr %4, align 8, !tbaa !9
  %183 = getelementptr inbounds %struct.ImGuiIO, ptr %182, i32 0, i32 62
  %184 = load float, ptr %183, align 4, !tbaa !89
  %185 = fadd float %184, %181
  store float %185, ptr %183, align 4, !tbaa !89
  %186 = load ptr, ptr %13, align 8, !tbaa !9
  %187 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %186, i32 0, i32 3
  %188 = getelementptr inbounds %struct.ImGuiInputEventMouseWheel, ptr %187, i32 0, i32 1
  %189 = load float, ptr %188, align 4, !tbaa !85
  %190 = load ptr, ptr %4, align 8, !tbaa !9
  %191 = getelementptr inbounds %struct.ImGuiIO, ptr %190, i32 0, i32 61
  %192 = load float, ptr %191, align 8, !tbaa !90
  %193 = fadd float %192, %189
  store float %193, ptr %191, align 8, !tbaa !90
  %194 = load ptr, ptr %13, align 8, !tbaa !9
  %195 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %194, i32 0, i32 3
  %196 = getelementptr inbounds %struct.ImGuiInputEventMouseWheel, ptr %195, i32 0, i32 2
  %197 = load i32, ptr %196, align 4, !tbaa !85
  %198 = load ptr, ptr %4, align 8, !tbaa !9
  %199 = getelementptr inbounds %struct.ImGuiIO, ptr %198, i32 0, i32 63
  store i32 %197, ptr %199, align 8, !tbaa !88
  store i8 1, ptr %7, align 1, !tbaa !5
  br label %373

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

205:                                              ; preds = %200
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %206 = load ptr, ptr %13, align 8, !tbaa !9
  %207 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %206, i32 0, i32 3
  %208 = getelementptr inbounds %struct.ImGuiInputEventKey, ptr %207, i32 0, i32 0
  %209 = load i32, ptr %208, align 4, !tbaa !85
  store i32 %209, ptr %17, align 4, !tbaa !91
  %210 = load i32, ptr %17, align 4, !tbaa !91
  %211 = icmp ne i32 %210, 0
  br i1 %211, label %212, label %213

212:                                              ; preds = %205
  br label %215

213:                                              ; preds = %205
  call void @__assert_fail(ptr noundef @.str.178, ptr noundef @.str.3, i32 noundef 8775, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb) #8
  unreachable

214:                                              ; No predecessors!
  br label %215

215:                                              ; preds = %214, %212
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %216 = load i32, ptr %17, align 4, !tbaa !91
  %217 = call noundef ptr @_ZN5ImGui10GetKeyDataE8ImGuiKey(i32 noundef %216)
  store ptr %217, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %218 = load ptr, ptr %18, align 8, !tbaa !9
  %219 = load ptr, ptr %3, align 8, !tbaa !9
  %220 = getelementptr inbounds %struct.ImGuiContext, ptr %219, i32 0, i32 2
  %221 = getelementptr inbounds %struct.ImGuiIO, ptr %220, i32 0, i32 69
  %222 = getelementptr inbounds [652 x %struct.ImGuiKeyData], ptr %221, i64 0, i64 0
  %223 = ptrtoint ptr %218 to i64
  %224 = ptrtoint ptr %222 to i64
  %225 = sub i64 %223, %224
  %226 = sdiv exact i64 %225, 16
  %227 = trunc i64 %226 to i32
  store i32 %227, ptr %19, align 4, !tbaa !80
  %228 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %229 = trunc i8 %228 to i1
  br i1 %229, label %230, label %253

230:                                              ; preds = %215
  %231 = load ptr, ptr %18, align 8, !tbaa !9
  %232 = getelementptr inbounds %struct.ImGuiKeyData, ptr %231, i32 0, i32 0
  %233 = load i8, ptr %232, align 4, !tbaa !93, !range !11, !noundef !12
  %234 = trunc i8 %233 to i1
  %235 = zext i1 %234 to i32
  %236 = load ptr, ptr %13, align 8, !tbaa !9
  %237 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %236, i32 0, i32 3
  %238 = getelementptr inbounds %struct.ImGuiInputEventKey, ptr %237, i32 0, i32 1
  %239 = load i8, ptr %238, align 4, !tbaa !85, !range !11, !noundef !12
  %240 = trunc i8 %239 to i1
  %241 = zext i1 %240 to i32
  %242 = icmp ne i32 %235, %241
  br i1 %242, label %243, label %253

243:                                              ; preds = %230
  %244 = load i32, ptr %19, align 4, !tbaa !80
  %245 = call noundef zeroext i1 @_ZNK10ImBitArrayILi652ELi0EE7TestBitEi(ptr noundef nonnull align 4 dereferenceable(84) %11, i32 noundef %244)
  br i1 %245, label %252, label %246

246:                                              ; preds = %243
  %247 = load i8, ptr %9, align 1, !tbaa !5, !range !11, !noundef !12
  %248 = trunc i8 %247 to i1
  br i1 %248, label %252, label %249

249:                                              ; preds = %246
  %250 = load i32, ptr %10, align 4, !tbaa !80
  %251 = icmp ne i32 %250, 0
  br i1 %251, label %252, label %253

252:                                              ; preds = %249, %246, %243
  store i32 2, ptr %15, align 4
  br label %303

253:                                              ; preds = %249, %230, %215
  %254 = load ptr, ptr %13, align 8, !tbaa !9
  %255 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %254, i32 0, i32 3
  %256 = getelementptr inbounds %struct.ImGuiInputEventKey, ptr %255, i32 0, i32 1
  %257 = load i8, ptr %256, align 4, !tbaa !85, !range !11, !noundef !12
  %258 = trunc i8 %257 to i1
  %259 = load ptr, ptr %18, align 8, !tbaa !9
  %260 = getelementptr inbounds %struct.ImGuiKeyData, ptr %259, i32 0, i32 0
  %261 = zext i1 %258 to i8
  store i8 %261, ptr %260, align 4, !tbaa !93
  %262 = load ptr, ptr %13, align 8, !tbaa !9
  %263 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %262, i32 0, i32 3
  %264 = getelementptr inbounds %struct.ImGuiInputEventKey, ptr %263, i32 0, i32 2
  %265 = load float, ptr %264, align 4, !tbaa !85
  %266 = load ptr, ptr %18, align 8, !tbaa !9
  %267 = getelementptr inbounds %struct.ImGuiKeyData, ptr %266, i32 0, i32 3
  store float %265, ptr %267, align 4, !tbaa !95
  store i8 1, ptr %8, align 1, !tbaa !5
  %268 = load i32, ptr %19, align 4, !tbaa !80
  call void @_ZN10ImBitArrayILi652ELi0EE6SetBitEi(ptr noundef nonnull align 4 dereferenceable(84) %11, i32 noundef %268)
  %269 = load ptr, ptr %18, align 8, !tbaa !9
  %270 = getelementptr inbounds %struct.ImGuiKeyData, ptr %269, i32 0, i32 0
  %271 = load i8, ptr %270, align 4, !tbaa !93, !range !11, !noundef !12
  %272 = trunc i8 %271 to i1
  %273 = load ptr, ptr %4, align 8, !tbaa !9
  %274 = getelementptr inbounds %struct.ImGuiIO, ptr %273, i32 0, i32 56
  %275 = load i32, ptr %19, align 4, !tbaa !80
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds [652 x i8], ptr %274, i64 0, i64 %276
  %278 = zext i1 %272 to i8
  store i8 %278, ptr %277, align 1, !tbaa !5
  %279 = load ptr, ptr %4, align 8, !tbaa !9
  %280 = getelementptr inbounds %struct.ImGuiIO, ptr %279, i32 0, i32 55
  %281 = load i32, ptr %19, align 4, !tbaa !80
  %282 = sext i32 %281 to i64
  %283 = getelementptr inbounds [652 x i32], ptr %280, i64 0, i64 %282
  %284 = load i32, ptr %283, align 4, !tbaa !80
  %285 = icmp ne i32 %284, -1
  br i1 %285, label %286, label %302

286:                                              ; preds = %253
  %287 = load ptr, ptr %18, align 8, !tbaa !9
  %288 = getelementptr inbounds %struct.ImGuiKeyData, ptr %287, i32 0, i32 0
  %289 = load i8, ptr %288, align 4, !tbaa !93, !range !11, !noundef !12
  %290 = trunc i8 %289 to i1
  %291 = load ptr, ptr %4, align 8, !tbaa !9
  %292 = getelementptr inbounds %struct.ImGuiIO, ptr %291, i32 0, i32 56
  %293 = load ptr, ptr %4, align 8, !tbaa !9
  %294 = getelementptr inbounds %struct.ImGuiIO, ptr %293, i32 0, i32 55
  %295 = load i32, ptr %19, align 4, !tbaa !80
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds [652 x i32], ptr %294, i64 0, i64 %296
  %298 = load i32, ptr %297, align 4, !tbaa !80
  %299 = sext i32 %298 to i64
  %300 = getelementptr inbounds [652 x i8], ptr %292, i64 0, i64 %299
  %301 = zext i1 %290 to i8
  store i8 %301, ptr %300, align 1, !tbaa !5
  br label %302

302:                                              ; preds = %286, %253
  store i32 0, ptr %15, align 4
  br label %303

303:                                              ; preds = %302, %252
  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
  %304 = load i32, ptr %15, align 4
  switch i32 %304, label %376 [
    i32 0, label %305
  ]

305:                                              ; preds = %303
  br label %372

306:                                              ; preds = %200
  %307 = load ptr, ptr %13, align 8, !tbaa !9
  %308 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %307, i32 0, i32 0
  %309 = load i32, ptr %308, align 4, !tbaa !82
  %310 = icmp eq i32 %309, 5
  br i1 %310, label %311, label %351

311:                                              ; preds = %306
  %312 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %313 = trunc i8 %312 to i1
  br i1 %313, label %314, label %330

314:                                              ; preds = %311
  %315 = load i8, ptr %8, align 1, !tbaa !5, !range !11, !noundef !12
  %316 = trunc i8 %315 to i1
  br i1 %316, label %317, label %320

317:                                              ; preds = %314
  %318 = load i8, ptr %5, align 1, !tbaa !5, !range !11, !noundef !12
  %319 = trunc i8 %318 to i1
  br i1 %319, label %329, label %320

320:                                              ; preds = %317, %314
  %321 = load i32, ptr %10, align 4, !tbaa !80
  %322 = icmp ne i32 %321, 0
  br i1 %322, label %329, label %323

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

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

329:                                              ; preds = %326, %323, %320, %317
  store i32 2, ptr %15, align 4
  br label %376

330:                                              ; preds = %326, %311
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %331 = load ptr, ptr %13, align 8, !tbaa !9
  %332 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %331, i32 0, i32 3
  %333 = getelementptr inbounds %struct.ImGuiInputEventText, ptr %332, i32 0, i32 0
  %334 = load i32, ptr %333, align 4, !tbaa !85
  store i32 %334, ptr %20, align 4, !tbaa !80
  %335 = load ptr, ptr %4, align 8, !tbaa !9
  %336 = getelementptr inbounds %struct.ImGuiIO, ptr %335, i32 0, i32 91
  call void @llvm.lifetime.start.p0(i64 2, ptr %21) #7
  %337 = load i32, ptr %20, align 4, !tbaa !80
  %338 = icmp ule i32 %337, 65535
  br i1 %338, label %339, label %343

339:                                              ; preds = %330
  %340 = load i32, ptr %20, align 4, !tbaa !80
  %341 = trunc i32 %340 to i16
  %342 = zext i16 %341 to i32
  br label %344

343:                                              ; preds = %330
  br label %344

344:                                              ; preds = %343, %339
  %345 = phi i32 [ %342, %339 ], [ 65533, %343 ]
  %346 = trunc i32 %345 to i16
  store i16 %346, ptr %21, align 2, !tbaa !96
  call void @_ZN8ImVectorItE9push_backERKt(ptr noundef nonnull align 8 dereferenceable(16) %336, ptr noundef nonnull align 2 dereferenceable(2) %21)
  call void @llvm.lifetime.end.p0(i64 2, ptr %21) #7
  %347 = load i8, ptr %5, align 1, !tbaa !5, !range !11, !noundef !12
  %348 = trunc i8 %347 to i1
  br i1 %348, label %349, label %350

349:                                              ; preds = %344
  store i8 1, ptr %9, align 1, !tbaa !5
  br label %350

350:                                              ; preds = %349, %344
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %371

351:                                              ; preds = %306
  %352 = load ptr, ptr %13, align 8, !tbaa !9
  %353 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %352, i32 0, i32 0
  %354 = load i32, ptr %353, align 4, !tbaa !82
  %355 = icmp eq i32 %354, 6
  br i1 %355, label %356, label %369

356:                                              ; preds = %351
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #7
  %357 = load ptr, ptr %13, align 8, !tbaa !9
  %358 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %357, i32 0, i32 3
  %359 = getelementptr inbounds %struct.ImGuiInputEventAppFocused, ptr %358, i32 0, i32 0
  %360 = load i8, ptr %359, align 4, !tbaa !85, !range !11, !noundef !12
  %361 = trunc i8 %360 to i1
  %362 = xor i1 %361, true
  %363 = zext i1 %362 to i8
  store i8 %363, ptr %22, align 1, !tbaa !5
  %364 = load i8, ptr %22, align 1, !tbaa !5, !range !11, !noundef !12
  %365 = trunc i8 %364 to i1
  %366 = load ptr, ptr %4, align 8, !tbaa !9
  %367 = getelementptr inbounds %struct.ImGuiIO, ptr %366, i32 0, i32 86
  %368 = zext i1 %365 to i8
  store i8 %368, ptr %367, align 8, !tbaa !97
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  br label %370

369:                                              ; preds = %351
  call void @__assert_fail(ptr noundef @.str.179, ptr noundef @.str.3, i32 noundef 8811, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb) #8
  unreachable

370:                                              ; preds = %356
  br label %371

371:                                              ; preds = %370, %350
  br label %372

372:                                              ; preds = %371, %305
  br label %373

373:                                              ; preds = %372, %177
  br label %374

374:                                              ; preds = %373, %161
  br label %375

375:                                              ; preds = %374, %90
  store i32 0, ptr %15, align 4
  br label %376

376:                                              ; preds = %375, %329, %303, %176, %159, %88
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  %377 = load i32, ptr %15, align 4
  switch i32 %377, label %468 [
    i32 0, label %378
    i32 2, label %382
  ]

378:                                              ; preds = %376
  br label %379

379:                                              ; preds = %378
  %380 = load i32, ptr %12, align 4, !tbaa !80
  %381 = add nsw i32 %380, 1
  store i32 %381, ptr %12, align 4, !tbaa !80
  br label %39, !llvm.loop !98

382:                                              ; preds = %376, %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 0, ptr %23, align 4, !tbaa !80
  br label %383

383:                                              ; preds = %395, %382
  %384 = load i32, ptr %23, align 4, !tbaa !80
  %385 = load i32, ptr %12, align 4, !tbaa !80
  %386 = icmp slt i32 %384, %385
  br i1 %386, label %388, label %387

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

388:                                              ; preds = %383
  %389 = load ptr, ptr %3, align 8, !tbaa !9
  %390 = getelementptr inbounds %struct.ImGuiContext, ptr %389, i32 0, i32 19
  %391 = load ptr, ptr %3, align 8, !tbaa !9
  %392 = getelementptr inbounds %struct.ImGuiContext, ptr %391, i32 0, i32 18
  %393 = load i32, ptr %23, align 4, !tbaa !80
  %394 = call noundef nonnull align 4 dereferenceable(25) ptr @_ZN8ImVectorI15ImGuiInputEventEixEi(ptr noundef nonnull align 8 dereferenceable(16) %392, i32 noundef %393)
  call void @_ZN8ImVectorI15ImGuiInputEventE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %390, ptr noundef nonnull align 4 dereferenceable(25) %394)
  br label %395

395:                                              ; preds = %388
  %396 = load i32, ptr %23, align 4, !tbaa !80
  %397 = add nsw i32 %396, 1
  store i32 %397, ptr %23, align 4, !tbaa !80
  br label %383, !llvm.loop !100

398:                                              ; preds = %387
  %399 = load i32, ptr %12, align 4, !tbaa !80
  %400 = icmp ne i32 %399, 0
  br i1 %400, label %401, label %433

401:                                              ; preds = %398
  %402 = load ptr, ptr %3, align 8, !tbaa !9
  %403 = getelementptr inbounds %struct.ImGuiContext, ptr %402, i32 0, i32 221
  %404 = load i32, ptr %403, align 4, !tbaa !101
  %405 = and i32 %404, 64
  %406 = icmp ne i32 %405, 0
  br i1 %406, label %407, label %433

407:                                              ; preds = %401
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  store i32 0, ptr %24, align 4, !tbaa !80
  br label %408

408:                                              ; preds = %429, %407
  %409 = load i32, ptr %24, align 4, !tbaa !80
  %410 = load ptr, ptr %3, align 8, !tbaa !9
  %411 = getelementptr inbounds %struct.ImGuiContext, ptr %410, i32 0, i32 18
  %412 = getelementptr inbounds %struct.ImVector.1, ptr %411, i32 0, i32 0
  %413 = load i32, ptr %412, align 8, !tbaa !81
  %414 = icmp slt i32 %409, %413
  br i1 %414, label %416, label %415

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

416:                                              ; preds = %408
  %417 = load i32, ptr %24, align 4, !tbaa !80
  %418 = load i32, ptr %12, align 4, !tbaa !80
  %419 = icmp slt i32 %417, %418
  br i1 %419, label %420, label %421

420:                                              ; preds = %416
  br label %422

421:                                              ; preds = %416
  br label %422

422:                                              ; preds = %421, %420
  %423 = phi ptr [ @.str.180, %420 ], [ @.str.181, %421 ]
  %424 = getelementptr inbounds [10 x i8], ptr %423, i64 0, i64 0
  %425 = load ptr, ptr %3, align 8, !tbaa !9
  %426 = getelementptr inbounds %struct.ImGuiContext, ptr %425, i32 0, i32 18
  %427 = load i32, ptr %24, align 4, !tbaa !80
  %428 = call noundef nonnull align 4 dereferenceable(25) ptr @_ZN8ImVectorI15ImGuiInputEventEixEi(ptr noundef nonnull align 8 dereferenceable(16) %426, i32 noundef %427)
  call void @_ZL20DebugPrintInputEventPKcPK15ImGuiInputEvent(ptr noundef %424, ptr noundef %428)
  br label %429

429:                                              ; preds = %422
  %430 = load i32, ptr %24, align 4, !tbaa !80
  %431 = add nsw i32 %430, 1
  store i32 %431, ptr %24, align 4, !tbaa !80
  br label %408, !llvm.loop !102

432:                                              ; preds = %415
  br label %433

433:                                              ; preds = %432, %401, %398
  %434 = load i32, ptr %12, align 4, !tbaa !80
  %435 = load ptr, ptr %3, align 8, !tbaa !9
  %436 = getelementptr inbounds %struct.ImGuiContext, ptr %435, i32 0, i32 18
  %437 = getelementptr inbounds %struct.ImVector.1, ptr %436, i32 0, i32 0
  %438 = load i32, ptr %437, align 8, !tbaa !81
  %439 = icmp eq i32 %434, %438
  br i1 %439, label %440, label %443

440:                                              ; preds = %433
  %441 = load ptr, ptr %3, align 8, !tbaa !9
  %442 = getelementptr inbounds %struct.ImGuiContext, ptr %441, i32 0, i32 18
  call void @_ZN8ImVectorI15ImGuiInputEventE6resizeEi(ptr noundef nonnull align 8 dereferenceable(16) %442, i32 noundef 0)
  br label %458

443:                                              ; preds = %433
  %444 = load ptr, ptr %3, align 8, !tbaa !9
  %445 = getelementptr inbounds %struct.ImGuiContext, ptr %444, i32 0, i32 18
  %446 = load ptr, ptr %3, align 8, !tbaa !9
  %447 = getelementptr inbounds %struct.ImGuiContext, ptr %446, i32 0, i32 18
  %448 = getelementptr inbounds %struct.ImVector.1, ptr %447, i32 0, i32 2
  %449 = load ptr, ptr %448, align 8, !tbaa !103
  %450 = load ptr, ptr %3, align 8, !tbaa !9
  %451 = getelementptr inbounds %struct.ImGuiContext, ptr %450, i32 0, i32 18
  %452 = getelementptr inbounds %struct.ImVector.1, ptr %451, i32 0, i32 2
  %453 = load ptr, ptr %452, align 8, !tbaa !103
  %454 = load i32, ptr %12, align 4, !tbaa !80
  %455 = sext i32 %454 to i64
  %456 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %453, i64 %455
  %457 = call noundef ptr @_ZN8ImVectorI15ImGuiInputEventE5eraseEPKS0_S3_(ptr noundef nonnull align 8 dereferenceable(16) %445, ptr noundef %449, ptr noundef %456)
  br label %458

458:                                              ; preds = %443, %440
  %459 = load ptr, ptr %3, align 8, !tbaa !9
  %460 = getelementptr inbounds %struct.ImGuiContext, ptr %459, i32 0, i32 2
  %461 = getelementptr inbounds %struct.ImGuiIO, ptr %460, i32 0, i32 86
  %462 = load i8, ptr %461, align 8, !tbaa !104, !range !11, !noundef !12
  %463 = trunc i8 %462 to i1
  br i1 %463, label %464, label %467

464:                                              ; preds = %458
  %465 = load ptr, ptr %3, align 8, !tbaa !9
  %466 = getelementptr inbounds %struct.ImGuiContext, ptr %465, i32 0, i32 2
  call void @_ZN7ImGuiIO14ClearInputKeysEv(ptr noundef nonnull align 8 dereferenceable(14280) %466)
  br label %467

467:                                              ; preds = %464, %458
  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

468:                                              ; preds = %376
  unreachable
}

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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !16, i64 24084}
!14 = !{!"_ZTS12ImGuiContext", !6, i64 0, !6, i64 1, !15, i64 8, !22, i64 14288, !10, i64 15360, !18, i64 15368, !18, i64 15372, !23, i64 15376, !26, i64 15904, !16, i64 15912, !16, i64 15916, !16, i64 15920, !6, i64 15924, !6, i64 15925, !6, i64 15926, !6, i64 15927, !6, i64 15928, !10, i64 15936, !27, i64 15944, !27, i64 15960, !19, i64 15976, !16, i64 15980, !28, i64 15984, !28, i64 16000, !28, i64 16016, !29, i64 16032, !30, i64 16048, !16, i64 16064, !17, i64 16068, !10, i64 16080, !10, i64 16088, !10, i64 16096, !10, i64 16104, !10, i64 16112, !17, i64 16120, !16, i64 16128, !18, i64 16132, !17, i64 16136, !17, i64 16144, !16, i64 16152, !16, i64 16156, !16, i64 16160, !6, i64 16164, !6, i64 16165, !18, i64 16168, !18, i64 16172, !16, i64 16176, !16, i64 16180, !18, i64 16184, !6, i64 16188, !6, i64 16189, !6, i64 16190, !6, i64 16191, !6, i64 16192, !6, i64 16193, !17, i64 16196, !10, i64 16208, !32, i64 16216, !16, i64 16220, !16, i64 16224, !6, i64 16228, !6, i64 16229, !10, i64 16232, !16, i64 16240, !18, i64 16244, !7, i64 16248, !33, i64 17928, !16, i64 18240, !6, i64 18244, !16, i64 18248, !16, i64 18252, !16, i64 18256, !16, i64 18260, !35, i64 18264, !36, i64 18284, !38, i64 18344, !39, i64 18456, !40, i64 18472, !41, i64 18488, !42, i64 18504, !43, i64 18520, !44, i64 18536, !45, i64 18552, !45, i64 18568, !16, i64 18584, !46, i64 18592, !10, i64 18608, !16, i64 18616, !16, i64 18620, !16, i64 18624, !16, i64 18628, !16, i64 18632, !16, i64 18636, !16, i64 18640, !16, i64 18644, !16, i64 18648, !16, i64 18652, !16, i64 18656, !32, i64 18660, !47, i64 18664, !6, i64 18668, !6, i64 18669, !6, i64 18670, !6, i64 18671, !6, i64 18672, !6, i64 18673, !6, i64 18674, !16, i64 18676, !37, i64 18680, !6, i64 18696, !6, i64 18697, !6, i64 18698, !16, i64 18700, !16, i64 18704, !16, i64 18708, !16, i64 18712, !16, i64 18716, !16, i64 18720, !37, i64 18724, !37, i64 18740, !16, i64 18756, !16, i64 18760, !16, i64 18764, !48, i64 18768, !48, i64 18816, !48, i64 18864, !48, i64 18912, !16, i64 18960, !16, i64 18964, !10, i64 18968, !10, i64 18976, !10, i64 18984, !18, i64 18992, !18, i64 18996, !6, i64 19000, !17, i64 19004, !17, i64 19012, !18, i64 19020, !16, i64 19024, !6, i64 19028, !6, i64 19029, !6, i64 19030, !16, i64 19032, !16, i64 19036, !16, i64 19040, !49, i64 19048, !37, i64 19112, !16, i64 19128, !16, i64 19132, !18, i64 19136, !16, i64 19140, !16, i64 19144, !16, i64 19148, !16, i64 19152, !50, i64 19160, !7, i64 19176, !16, i64 19192, !51, i64 19200, !10, i64 19216, !16, i64 19224, !52, i64 19232, !53, i64 19248, !55, i64 19288, !56, i64 19304, !10, i64 19320, !57, i64 19328, !59, i64 19368, !60, i64 19384, !16, i64 19400, !16, i64 19404, !18, i64 19408, !18, i64 19412, !17, i64 19416, !61, i64 19424, !65, i64 23152, !66, i64 23176, !16, i64 23296, !16, i64 23300, !16, i64 23304, !16, i64 23308, !18, i64 23312, !18, i64 23316, !16, i64 23320, !24, i64 23324, !68, i64 23340, !18, i64 23388, !18, i64 23392, !6, i64 23396, !6, i64 23397, !18, i64 23400, !18, i64 23404, !18, i64 23408, !18, i64 23412, !20, i64 23416, !20, i64 23418, !62, i64 23424, !42, i64 23440, !69, i64 23456, !69, i64 23472, !7, i64 23488, !6, i64 23489, !18, i64 23492, !70, i64 23496, !71, i64 23512, !72, i64 23528, !73, i64 23544, !74, i64 23560, !16, i64 23576, !7, i64 23584, !6, i64 23640, !75, i64 23644, !10, i64 23648, !70, i64 23656, !10, i64 23672, !10, i64 23680, !18, i64 23688, !6, i64 23692, !16, i64 23696, !16, i64 23700, !16, i64 23704, !16, i64 23708, !70, i64 23712, !76, i64 23728, !7, i64 23752, !7, i64 23753, !7, i64 23754, !6, i64 23755, !7, i64 23756, !16, i64 23760, !77, i64 23764, !78, i64 23784, !7, i64 23824, !16, i64 24064, !16, i64 24068, !18, i64 24072, !16, i64 24076, !16, i64 24080, !16, i64 24084, !62, i64 24088}
!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, !6, i64 124, !6, i64 125, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !6, i64 208, !6, i64 209, !6, i64 210, !6, i64 211, !6, i64 212, !6, i64 213, !6, i64 214, !18, i64 216, !16, i64 220, !16, i64 224, !16, i64 228, !16, i64 232, !16, i64 236, !17, i64 240, !7, i64 248, !7, i64 2856, !7, i64 3508, !10, i64 3576, !17, i64 3584, !7, i64 3592, !18, i64 3600, !18, i64 3604, !19, i64 3608, !6, i64 3612, !6, i64 3613, !6, i64 3614, !6, i64 3615, !16, i64 3616, !7, i64 3620, !6, i64 14052, !17, i64 14056, !7, i64 14064, !7, i64 14104, !7, i64 14144, !7, i64 14149, !7, i64 14154, !7, i64 14164, !7, i64 14174, !7, i64 14179, !7, i64 14184, !6, i64 14189, !7, i64 14192, !7, i64 14212, !7, i64 14232, !18, i64 14252, !6, i64 14256, !6, i64 14257, !7, i64 14258, !6, i64 14259, !20, i64 14260, !21, i64 14264}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_ZTS6ImVec2", !18, i64 0, !18, i64 4}
!18 = !{!"float", !7, i64 0}
!19 = !{!"_ZTS16ImGuiMouseSource", !7, i64 0}
!20 = !{!"short", !7, i64 0}
!21 = !{!"_ZTS8ImVectorItE", !16, i64 0, !16, i64 4, !10, i64 8}
!22 = !{!"_ZTS10ImGuiStyle", !18, i64 0, !18, i64 4, !17, i64 8, !18, i64 16, !18, i64 20, !17, i64 24, !17, i64 32, !16, i64 40, !18, i64 44, !18, i64 48, !18, i64 52, !18, i64 56, !17, i64 60, !18, i64 68, !18, i64 72, !17, i64 76, !17, i64 84, !17, i64 92, !17, i64 100, !18, i64 108, !18, i64 112, !18, i64 116, !18, i64 120, !18, i64 124, !18, i64 128, !18, i64 132, !18, i64 136, !18, i64 140, !18, i64 144, !16, i64 148, !17, i64 152, !17, i64 160, !18, i64 168, !17, i64 172, !17, i64 180, !17, i64 188, !17, i64 196, !18, i64 204, !6, i64 208, !6, i64 209, !6, i64 210, !18, i64 212, !18, i64 216, !7, i64 220}
!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 = !{!"_ZTS8ImVectorI15ImGuiInputEventE", !16, i64 0, !16, i64 4, !10, i64 8}
!28 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !16, i64 0, !16, i64 4, !10, i64 8}
!29 = !{!"_ZTS8ImVectorI20ImGuiWindowStackDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!30 = !{!"_ZTS12ImGuiStorage", !31, i64 0}
!31 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !16, i64 0, !16, i64 4, !10, i64 8}
!32 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!33 = !{!"_ZTS20ImGuiKeyRoutingTable", !7, i64 0, !34, i64 280, !34, i64 296}
!34 = !{!"_ZTS8ImVectorI19ImGuiKeyRoutingDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!35 = !{!"_ZTS17ImGuiNextItemData", !16, i64 0, !18, i64 4, !16, i64 8, !16, i64 12, !6, i64 16}
!36 = !{!"_ZTS17ImGuiLastItemData", !16, i64 0, !16, i64 4, !16, i64 8, !37, i64 12, !37, i64 28, !37, i64 44}
!37 = !{!"_ZTS6ImRect", !17, i64 0, !17, i64 8}
!38 = !{!"_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, !37, i64 60, !10, i64 80, !10, i64 88, !18, i64 96, !17, i64 100}
!39 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !16, i64 0, !16, i64 4, !10, i64 8}
!40 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !16, i64 0, !16, i64 4, !10, i64 8}
!41 = !{!"_ZTS8ImVectorIP6ImFontE", !16, i64 0, !16, i64 4, !10, i64 8}
!42 = !{!"_ZTS8ImVectorIjE", !16, i64 0, !16, i64 4, !10, i64 8}
!43 = !{!"_ZTS8ImVectorIiE", !16, i64 0, !16, i64 4, !10, i64 8}
!44 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!45 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!46 = !{!"_ZTS8ImVectorIP14ImGuiViewportPE", !16, i64 0, !16, i64 4, !10, i64 8}
!47 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!48 = !{!"_ZTS16ImGuiNavItemData", !10, i64 0, !16, i64 8, !16, i64 12, !37, i64 16, !16, i64 32, !18, i64 36, !18, i64 40, !18, i64 44}
!49 = !{!"_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}
!50 = !{!"_ZTS8ImVectorIhE", !16, i64 0, !16, i64 4, !10, i64 8}
!51 = !{!"_ZTS8ImVectorI20ImGuiListClipperDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!52 = !{!"_ZTS8ImVectorI18ImGuiTableTempDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!53 = !{!"_ZTS6ImPoolI10ImGuiTableE", !54, i64 0, !30, i64 16, !16, i64 32, !16, i64 36}
!54 = !{!"_ZTS8ImVectorI10ImGuiTableE", !16, i64 0, !16, i64 4, !10, i64 8}
!55 = !{!"_ZTS8ImVectorIfE", !16, i64 0, !16, i64 4, !10, i64 8}
!56 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !16, i64 0, !16, i64 4, !10, i64 8}
!57 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !58, i64 0, !30, i64 16, !16, i64 32, !16, i64 36}
!58 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !16, i64 0, !16, i64 4, !10, i64 8}
!59 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !16, i64 0, !16, i64 4, !10, i64 8}
!60 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !16, i64 0, !16, i64 4, !10, i64 8}
!61 = !{!"_ZTS19ImGuiInputTextState", !10, i64 0, !16, i64 8, !16, i64 12, !16, i64 16, !21, i64 24, !62, i64 40, !62, i64 56, !6, i64 72, !16, i64 76, !18, i64 80, !63, i64 84, !18, i64 3712, !6, i64 3716, !6, i64 3717, !6, i64 3718, !16, i64 3720}
!62 = !{!"_ZTS8ImVectorIcE", !16, i64 0, !16, i64 4, !10, i64 8}
!63 = !{!"_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, !64, i64 32}
!64 = !{!"_ZTSN5ImStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !20, i64 3582, !20, i64 3584, !16, i64 3588, !16, i64 3592}
!65 = !{!"_ZTS30ImGuiInputTextDeactivatedState", !16, i64 0, !62, i64 8}
!66 = !{!"_ZTS6ImFont", !55, i64 0, !18, i64 16, !18, i64 20, !21, i64 24, !67, i64 40, !10, i64 56, !10, i64 64, !10, i64 72, !20, i64 80, !20, i64 82, !20, i64 84, !20, i64 86, !18, i64 88, !18, i64 92, !6, i64 96, !18, i64 100, !18, i64 104, !18, i64 108, !16, i64 112, !7, i64 116}
!67 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !16, i64 0, !16, i64 4, !10, i64 8}
!68 = !{!"_ZTS21ImGuiComboPreviewData", !37, i64 0, !17, i64 16, !17, i64 24, !17, i64 32, !18, i64 40, !16, i64 44}
!69 = !{!"_ZTS20ImGuiPlatformImeData", !6, i64 0, !17, i64 4, !18, i64 12}
!70 = !{!"_ZTS15ImGuiTextBuffer", !62, i64 0}
!71 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !16, i64 0, !16, i64 4, !10, i64 8}
!72 = !{!"_ZTS13ImChunkStreamI19ImGuiWindowSettingsE", !62, i64 0}
!73 = !{!"_ZTS13ImChunkStreamI18ImGuiTableSettingsE", !62, i64 0}
!74 = !{!"_ZTS8ImVectorI16ImGuiContextHookE", !16, i64 0, !16, i64 4, !10, i64 8}
!75 = !{!"_ZTS12ImGuiLogType", !7, i64 0}
!76 = !{!"_ZTS14ImGuiTextIndex", !43, i64 0, !16, i64 16}
!77 = !{!"_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, !16, i64 8, !16, i64 12}
!78 = !{!"_ZTS14ImGuiStackTool", !16, i64 0, !16, i64 4, !16, i64 8, !79, i64 16, !6, i64 32, !18, i64 36}
!79 = !{!"_ZTS8ImVectorI19ImGuiStackLevelInfoE", !16, i64 0, !16, i64 4, !10, i64 8}
!80 = !{!16, !16, i64 0}
!81 = !{!14, !16, i64 15944}
!82 = !{!83, !84, i64 0}
!83 = !{!"_ZTS15ImGuiInputEvent", !84, i64 0, !32, i64 4, !16, i64 8, !7, i64 12, !6, i64 24}
!84 = !{!"_ZTS19ImGuiInputEventType", !7, i64 0}
!85 = !{!7, !7, i64 0}
!86 = !{i64 0, i64 4, !87, i64 4, i64 4, !87}
!87 = !{!18, !18, i64 0}
!88 = !{!15, !19, i64 3608}
!89 = !{!15, !18, i64 3604}
!90 = !{!15, !18, i64 3600}
!91 = !{!92, !92, i64 0}
!92 = !{!"_ZTS8ImGuiKey", !7, i64 0}
!93 = !{!94, !6, i64 0}
!94 = !{!"_ZTS12ImGuiKeyData", !6, i64 0, !18, i64 4, !18, i64 8, !18, i64 12}
!95 = !{!94, !18, i64 12}
!96 = !{!20, !20, i64 0}
!97 = !{!15, !6, i64 14256}
!98 = distinct !{!98, !99}
!99 = !{!"llvm.loop.mustprogress"}
!100 = distinct !{!100, !99}
!101 = !{!14, !16, i64 23708}
!102 = distinct !{!102, !99}
!103 = !{!14, !10, i64 15952}
!104 = !{!14, !6, i64 14264}


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

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

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

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

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

7:                                                ; preds = %1
  %8 = getelementptr inbounds i8, ptr %5, i64 24084
  %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 15944
  %14 = load i32, ptr %13, align 8, !tbaa !77
  %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 14264
  %17 = getelementptr inbounds i8, ptr %5, i64 14272
  %18 = getelementptr inbounds i8, ptr %5, i64 3628
  %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 3612
  %23 = getelementptr inbounds i8, ptr %5, i64 3608
  %24 = getelementptr inbounds i8, ptr %5, i64 3616
  %25 = getelementptr inbounds i8, ptr %5, i64 3600
  %26 = getelementptr inbounds i8, ptr %5, i64 3592
  br label %27

27:                                               ; preds = %.lr.ph, %.thread172
  %.0125200 = phi i8 [ 0, %.lr.ph ], [ %.3, %.thread172 ]
  %.0126199 = phi i8 [ 0, %.lr.ph ], [ %.2128, %.thread172 ]
  %.0129198 = phi i8 [ 0, %.lr.ph ], [ %.3132, %.thread172 ]
  %.0133197 = phi i8 [ 0, %.lr.ph ], [ %.3136, %.thread172 ]
  %.0137196 = phi i32 [ 0, %.lr.ph ], [ %.3140, %.thread172 ]
  %.0141194 = phi i32 [ 0, %.lr.ph ], [ %138, %.thread172 ]
  %28 = call noundef nonnull align 4 dereferenceable(25) ptr @_ZN8ImVectorI15ImGuiInputEventEixEi(ptr noundef nonnull align 8 dereferenceable(16) %13, i32 noundef %.0141194)
  %29 = load i32, ptr %28, align 4, !tbaa !78
  switch i32 %29, label %137 [
    i32 1, label %30
    i32 3, label %46
    i32 2, label %70
    i32 4, label %84
    i32 5, label %117
    i32 6, label %133
  ]

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

35:                                               ; preds = %30
  %.not153 = icmp eq i32 %.0137196, 0
  br i1 %.not153, label %36, label %.thread

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

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

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

.thread:                                          ; preds = %40, %38, %36, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br label %.thread177

42:                                               ; preds = %30, %40
  %43 = load i64, ptr %3, align 8
  store i64 %43, ptr %26, align 8
  %44 = getelementptr inbounds i8, ptr %28, i64 20
  %45 = load i32, ptr %44, align 4, !tbaa !81
  store i32 %45, ptr %24, align 8, !tbaa !82
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br label %.thread172

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

50:                                               ; preds = %46
  call void @__assert_fail(ptr noundef nonnull @.str.177, ptr noundef nonnull @.str.3, i32 noundef 8752, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb) #7
  unreachable

51:                                               ; preds = %46
  %52 = shl nuw nsw i32 1, %48
  br i1 %0, label %53, label %._crit_edge239

53:                                               ; preds = %51
  %54 = and i32 %52, %.0137196
  %.not152 = icmp eq i32 %54, 0
  br i1 %.not152, label %55, label %.thread177

55:                                               ; preds = %53
  %56 = trunc nuw i8 %.0126199 to i1
  br i1 %56, label %.thread177, label %57

57:                                               ; preds = %55
  %58 = getelementptr inbounds i8, ptr %28, i64 20
  %59 = load i32, ptr %58, align 4
  %60 = icmp eq i32 %59, 1
  br i1 %60, label %61, label %._crit_edge239

61:                                               ; preds = %57
  %62 = trunc nuw i8 %.0125200 to i1
  br i1 %62, label %.thread177, label %._crit_edge239

._crit_edge239:                                   ; preds = %51, %57, %61
  %63 = getelementptr inbounds i8, ptr %28, i64 16
  %64 = load i8, ptr %63, align 4, !tbaa !81, !range !83, !noundef !84
  %65 = zext nneg i32 %48 to i64
  %66 = getelementptr inbounds [5 x i8], ptr %25, i64 0, i64 %65
  store i8 %64, ptr %66, align 1, !tbaa !85
  %67 = getelementptr inbounds i8, ptr %28, i64 20
  %68 = load i32, ptr %67, align 4, !tbaa !81
  store i32 %68, ptr %24, align 8, !tbaa !82
  %69 = or i32 %52, %.0137196
  br label %.thread172

70:                                               ; preds = %27
  %71 = trunc nuw i8 %.0125200 to i1
  %72 = icmp ne i32 %.0137196, 0
  %or.cond = select i1 %71, i1 true, i1 %72
  %or.cond160 = select i1 %0, i1 %or.cond, i1 false
  br i1 %or.cond160, label %.thread177, label %73

73:                                               ; preds = %70
  %74 = getelementptr inbounds i8, ptr %28, i64 12
  %75 = load float, ptr %74, align 4, !tbaa !81
  %76 = load float, ptr %22, align 4, !tbaa !86
  %77 = fadd float %75, %76
  store float %77, ptr %22, align 4, !tbaa !86
  %78 = getelementptr inbounds i8, ptr %28, i64 16
  %79 = load float, ptr %78, align 4, !tbaa !81
  %80 = load float, ptr %23, align 8, !tbaa !87
  %81 = fadd float %79, %80
  store float %81, ptr %23, align 8, !tbaa !87
  %82 = getelementptr inbounds i8, ptr %28, i64 20
  %83 = load i32, ptr %82, align 4, !tbaa !81
  store i32 %83, ptr %24, align 8, !tbaa !82
  br label %.thread172

84:                                               ; preds = %27
  %85 = getelementptr inbounds i8, ptr %28, i64 12
  %86 = load i32, ptr %85, align 4, !tbaa !81
  %.not = icmp eq i32 %86, 0
  br i1 %.not, label %87, label %88

87:                                               ; preds = %84
  call void @__assert_fail(ptr noundef nonnull @.str.178, ptr noundef nonnull @.str.3, i32 noundef 8775, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb) #7
  unreachable

88:                                               ; preds = %84
  %89 = call noundef ptr @_ZN5ImGui10GetKeyDataE8ImGuiKey(i32 noundef %86)
  %90 = ptrtoint ptr %89 to i64
  %91 = sub i64 %90, %19
  %92 = lshr exact i64 %91, 4
  %93 = trunc i64 %92 to i32
  br i1 %0, label %94, label %103

94:                                               ; preds = %88
  %95 = load i8, ptr %89, align 4, !tbaa !88, !range !83, !noundef !84
  %96 = getelementptr inbounds i8, ptr %28, i64 16
  %97 = load i8, ptr %96, align 4, !tbaa !81, !range !83, !noundef !84
  %.not150 = icmp eq i8 %95, %97
  br i1 %.not150, label %103, label %98

98:                                               ; preds = %94
  %99 = call noundef zeroext i1 @_ZNK10ImBitArrayILi652ELi0EE7TestBitEi(ptr noundef nonnull align 4 dereferenceable(84) %2, i32 noundef %93)
  %100 = trunc nuw i8 %.0133197 to i1
  %101 = icmp ne i32 %.0137196, 0
  %102 = select i1 %99, i1 true, i1 %100
  %or.cond162 = select i1 %102, i1 true, i1 %101
  br i1 %or.cond162, label %.thread177, label %103

103:                                              ; preds = %98, %94, %88
  %104 = getelementptr inbounds i8, ptr %28, i64 16
  %105 = load i8, ptr %104, align 4, !tbaa !81, !range !83, !noundef !84
  store i8 %105, ptr %89, align 4, !tbaa !88
  %106 = getelementptr inbounds i8, ptr %28, i64 20
  %107 = load float, ptr %106, align 4, !tbaa !81
  %108 = getelementptr inbounds i8, ptr %89, i64 12
  store float %107, ptr %108, align 4, !tbaa !90
  call void @_ZN10ImBitArrayILi652ELi0EE6SetBitEi(ptr noundef nonnull align 4 dereferenceable(84) %2, i32 noundef %93)
  %109 = load i8, ptr %89, align 4, !tbaa !88, !range !83, !noundef !84
  %sext = shl i64 %91, 28
  %110 = ashr i64 %sext, 32
  %111 = getelementptr inbounds [652 x i8], ptr %20, i64 0, i64 %110
  store i8 %109, ptr %111, align 1, !tbaa !85
  %112 = getelementptr inbounds [652 x i32], ptr %21, i64 0, i64 %110
  %113 = load i32, ptr %112, align 4, !tbaa !91
  %.not151 = icmp eq i32 %113, -1
  br i1 %.not151, label %.thread172, label %114

114:                                              ; preds = %103
  %115 = sext i32 %113 to i64
  %116 = getelementptr inbounds [652 x i8], ptr %20, i64 0, i64 %115
  store i8 %109, ptr %116, align 1, !tbaa !85
  br label %.thread172

117:                                              ; preds = %27
  br i1 %0, label %118, label %127

118:                                              ; preds = %117
  %119 = trunc nuw i8 %.0129198 to i1
  br i1 %119, label %120, label %122

120:                                              ; preds = %118
  %121 = icmp ne i32 %.0137196, 0
  %or.cond7 = select i1 %12, i1 true, i1 %121
  br i1 %or.cond7, label %.thread177, label %123

122:                                              ; preds = %118
  %.old6.not = icmp eq i32 %.0137196, 0
  br i1 %.old6.not, label %123, label %.thread177

123:                                              ; preds = %120, %122
  %124 = trunc nuw i8 %.0125200 to i1
  br i1 %124, label %.thread177, label %125

125:                                              ; preds = %123
  %126 = trunc nuw i8 %.0126199 to i1
  br i1 %126, label %.thread177, label %127

127:                                              ; preds = %125, %117
  %128 = getelementptr inbounds i8, ptr %28, i64 12
  %129 = load i32, ptr %128, align 4, !tbaa !81
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %4) #6
  %130 = icmp ult i32 %129, 65536
  %131 = trunc i32 %129 to i16
  %132 = select i1 %130, i16 %131, i16 -3
  store i16 %132, ptr %4, align 2, !tbaa !92
  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 %.0133197
  br label %.thread172

133:                                              ; preds = %27
  %134 = getelementptr inbounds i8, ptr %28, i64 12
  %135 = load i8, ptr %134, align 4, !tbaa !81, !range !83, !noundef !84
  %136 = xor i8 %135, 1
  store i8 %136, ptr %16, align 8, !tbaa !93
  br label %.thread172

137:                                              ; preds = %27
  call void @__assert_fail(ptr noundef nonnull @.str.179, ptr noundef nonnull @.str.3, i32 noundef 8811, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb) #7
  unreachable

.thread172:                                       ; preds = %103, %114, %._crit_edge239, %42, %133, %127, %73
  %.3140 = phi i32 [ %.0137196, %42 ], [ %69, %._crit_edge239 ], [ %.0137196, %73 ], [ %.0137196, %127 ], [ %.0137196, %133 ], [ %.0137196, %114 ], [ %.0137196, %103 ]
  %.3136 = phi i8 [ %.0133197, %42 ], [ %.0133197, %._crit_edge239 ], [ %.0133197, %73 ], [ %spec.select, %127 ], [ %.0133197, %133 ], [ %.0133197, %114 ], [ %.0133197, %103 ]
  %.3132 = phi i8 [ %.0129198, %42 ], [ %.0129198, %._crit_edge239 ], [ %.0129198, %73 ], [ %.0129198, %127 ], [ %.0129198, %133 ], [ 1, %114 ], [ 1, %103 ]
  %.2128 = phi i8 [ %.0126199, %42 ], [ %.0126199, %._crit_edge239 ], [ 1, %73 ], [ %.0126199, %127 ], [ %.0126199, %133 ], [ %.0126199, %114 ], [ %.0126199, %103 ]
  %.3 = phi i8 [ 1, %42 ], [ %.0125200, %._crit_edge239 ], [ %.0125200, %73 ], [ %.0125200, %127 ], [ %.0125200, %133 ], [ %.0125200, %114 ], [ %.0125200, %103 ]
  %138 = add nuw nsw i32 %.0141194, 1
  %139 = load i32, ptr %13, align 8, !tbaa !77
  %140 = icmp slt i32 %138, %139
  br i1 %140, label %27, label %.lr.ph230, !llvm.loop !94

.thread177:                                       ; preds = %70, %125, %123, %122, %120, %98, %55, %53, %61, %.thread
  %.not233 = icmp eq i32 %.0141194, 0
  br i1 %.not233, label %._crit_edge..loopexit_crit_edge, label %.lr.ph230

.lr.ph230:                                        ; preds = %.thread172, %.thread177
  %.0141193248 = phi i32 [ %.0141194, %.thread177 ], [ %138, %.thread172 ]
  %141 = getelementptr inbounds i8, ptr %5, i64 15960
  br label %142

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

142:                                              ; preds = %.lr.ph230, %142
  %.0124229 = phi i32 [ 0, %.lr.ph230 ], [ %144, %142 ]
  %143 = call noundef nonnull align 4 dereferenceable(25) ptr @_ZN8ImVectorI15ImGuiInputEventEixEi(ptr noundef nonnull align 8 dereferenceable(16) %13, i32 noundef %.0124229)
  call void @_ZN8ImVectorI15ImGuiInputEventE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %141, ptr noundef nonnull align 4 dereferenceable(25) %143)
  %144 = add nuw nsw i32 %.0124229, 1
  %exitcond.not = icmp eq i32 %144, %.0141193248
  br i1 %exitcond.not, label %._crit_edge, label %142, !llvm.loop !96

._crit_edge:                                      ; preds = %142
  %145 = getelementptr inbounds i8, ptr %5, i64 23708
  %146 = load i32, ptr %145, align 4, !tbaa !97
  %147 = and i32 %146, 64
  %.not155 = icmp ne i32 %147, 0
  %.pre238 = load i32, ptr %13, align 8, !tbaa !77
  %148 = icmp sgt i32 %.pre238, 0
  %or.cond261 = select i1 %.not155, i1 %148, i1 false
  br i1 %or.cond261, label %.lr.ph232, label %.loopexit

.lr.ph232:                                        ; preds = %._crit_edge, %.lr.ph232
  %.0231 = phi i32 [ %151, %.lr.ph232 ], [ 0, %._crit_edge ]
  %149 = icmp ult i32 %.0231, %.0141193248
  %.str.180..str.181 = select i1 %149, ptr @.str.180, ptr @.str.181
  %150 = call noundef nonnull align 4 dereferenceable(25) ptr @_ZN8ImVectorI15ImGuiInputEventEixEi(ptr noundef nonnull align 8 dereferenceable(16) %13, i32 noundef %.0231)
  call void @_ZL20DebugPrintInputEventPKcPK15ImGuiInputEvent(ptr noundef nonnull %.str.180..str.181, ptr noundef nonnull %150)
  %151 = add nuw nsw i32 %.0231, 1
  %152 = load i32, ptr %13, align 8, !tbaa !77
  %153 = icmp slt i32 %151, %152
  br i1 %153, label %.lr.ph232, label %.loopexit, !llvm.loop !98

.loopexit:                                        ; preds = %.lr.ph232, %._crit_edge..loopexit_crit_edge, %._crit_edge
  %.0141193243252 = phi i32 [ 0, %._crit_edge..loopexit_crit_edge ], [ %.0141193248, %._crit_edge ], [ %.0141193248, %.lr.ph232 ]
  %154 = phi i32 [ %.pre, %._crit_edge..loopexit_crit_edge ], [ %.pre238, %._crit_edge ], [ %152, %.lr.ph232 ]
  %155 = icmp eq i32 %.0141193243252, %154
  br i1 %155, label %156, label %157

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

157:                                              ; preds = %.loopexit
  %158 = getelementptr inbounds i8, ptr %5, i64 15952
  %159 = load ptr, ptr %158, align 8, !tbaa !99
  %160 = zext nneg i32 %.0141193243252 to i64
  %161 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %159, i64 %160
  %162 = call noundef ptr @_ZN8ImVectorI15ImGuiInputEventE5eraseEPKS0_S3_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef %159, ptr noundef %161)
  br label %163

163:                                              ; preds = %157, %156
  %164 = getelementptr inbounds i8, ptr %5, i64 14264
  %165 = load i8, ptr %164, align 8, !tbaa !100, !range !83, !noundef !84
  %166 = trunc nuw i8 %165 to i1
  br i1 %166, label %167, label %168

167:                                              ; preds = %163
  call void @_ZN7ImGuiIO14ClearInputKeysEv(ptr noundef nonnull align 8 dereferenceable(14280) %6)
  br label %168

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

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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !13, i64 24084}
!10 = !{!"_ZTS12ImGuiContext", !11, i64 0, !11, i64 1, !12, i64 8, !19, i64 14288, !6, i64 15360, !15, i64 15368, !15, i64 15372, !20, i64 15376, !23, i64 15904, !13, i64 15912, !13, i64 15916, !13, i64 15920, !11, i64 15924, !11, i64 15925, !11, i64 15926, !11, i64 15927, !11, i64 15928, !6, i64 15936, !24, i64 15944, !24, i64 15960, !16, i64 15976, !13, i64 15980, !25, i64 15984, !25, i64 16000, !25, i64 16016, !26, i64 16032, !27, i64 16048, !13, i64 16064, !14, i64 16068, !6, i64 16080, !6, i64 16088, !6, i64 16096, !6, i64 16104, !6, i64 16112, !14, i64 16120, !13, i64 16128, !15, i64 16132, !14, i64 16136, !14, i64 16144, !13, i64 16152, !13, i64 16156, !13, i64 16160, !11, i64 16164, !11, i64 16165, !15, i64 16168, !15, i64 16172, !13, i64 16176, !13, i64 16180, !15, i64 16184, !11, i64 16188, !11, i64 16189, !11, i64 16190, !11, i64 16191, !11, i64 16192, !11, i64 16193, !14, i64 16196, !6, i64 16208, !29, i64 16216, !13, i64 16220, !13, i64 16224, !11, i64 16228, !11, i64 16229, !6, i64 16232, !13, i64 16240, !15, i64 16244, !7, i64 16248, !30, i64 17928, !13, i64 18240, !11, i64 18244, !13, i64 18248, !13, i64 18252, !13, i64 18256, !13, i64 18260, !32, i64 18264, !33, i64 18284, !35, i64 18344, !36, i64 18456, !37, i64 18472, !38, i64 18488, !39, i64 18504, !40, i64 18520, !41, i64 18536, !42, i64 18552, !42, i64 18568, !13, i64 18584, !43, i64 18592, !6, i64 18608, !13, i64 18616, !13, i64 18620, !13, i64 18624, !13, i64 18628, !13, i64 18632, !13, i64 18636, !13, i64 18640, !13, i64 18644, !13, i64 18648, !13, i64 18652, !13, i64 18656, !29, i64 18660, !44, i64 18664, !11, i64 18668, !11, i64 18669, !11, i64 18670, !11, i64 18671, !11, i64 18672, !11, i64 18673, !11, i64 18674, !13, i64 18676, !34, i64 18680, !11, i64 18696, !11, i64 18697, !11, i64 18698, !13, i64 18700, !13, i64 18704, !13, i64 18708, !13, i64 18712, !13, i64 18716, !13, i64 18720, !34, i64 18724, !34, i64 18740, !13, i64 18756, !13, i64 18760, !13, i64 18764, !45, i64 18768, !45, i64 18816, !45, i64 18864, !45, i64 18912, !13, i64 18960, !13, i64 18964, !6, i64 18968, !6, i64 18976, !6, i64 18984, !15, i64 18992, !15, i64 18996, !11, i64 19000, !14, i64 19004, !14, i64 19012, !15, i64 19020, !13, i64 19024, !11, i64 19028, !11, i64 19029, !11, i64 19030, !13, i64 19032, !13, i64 19036, !13, i64 19040, !46, i64 19048, !34, i64 19112, !13, i64 19128, !13, i64 19132, !15, i64 19136, !13, i64 19140, !13, i64 19144, !13, i64 19148, !13, i64 19152, !47, i64 19160, !7, i64 19176, !13, i64 19192, !48, i64 19200, !6, i64 19216, !13, i64 19224, !49, i64 19232, !50, i64 19248, !52, i64 19288, !53, i64 19304, !6, i64 19320, !54, i64 19328, !56, i64 19368, !57, i64 19384, !13, i64 19400, !13, i64 19404, !15, i64 19408, !15, i64 19412, !14, i64 19416, !58, i64 19424, !62, i64 23152, !63, i64 23176, !13, i64 23296, !13, i64 23300, !13, i64 23304, !13, i64 23308, !15, i64 23312, !15, i64 23316, !13, i64 23320, !21, i64 23324, !65, i64 23340, !15, i64 23388, !15, i64 23392, !11, i64 23396, !11, i64 23397, !15, i64 23400, !15, i64 23404, !15, i64 23408, !15, i64 23412, !17, i64 23416, !17, i64 23418, !59, i64 23424, !39, i64 23440, !66, i64 23456, !66, i64 23472, !7, i64 23488, !11, i64 23489, !15, i64 23492, !67, i64 23496, !68, i64 23512, !69, i64 23528, !70, i64 23544, !71, i64 23560, !13, i64 23576, !7, i64 23584, !11, i64 23640, !72, i64 23644, !6, i64 23648, !67, i64 23656, !6, i64 23672, !6, i64 23680, !15, i64 23688, !11, i64 23692, !13, i64 23696, !13, i64 23700, !13, i64 23704, !13, i64 23708, !67, i64 23712, !73, i64 23728, !7, i64 23752, !7, i64 23753, !7, i64 23754, !11, i64 23755, !7, i64 23756, !13, i64 23760, !74, i64 23764, !75, i64 23784, !7, i64 23824, !13, i64 24064, !13, i64 24068, !15, i64 24072, !13, i64 24076, !13, i64 24080, !13, i64 24084, !59, i64 24088}
!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, !11, i64 124, !11, i64 125, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !11, i64 208, !11, i64 209, !11, i64 210, !11, i64 211, !11, i64 212, !11, i64 213, !11, i64 214, !15, i64 216, !13, i64 220, !13, i64 224, !13, i64 228, !13, i64 232, !13, i64 236, !14, i64 240, !7, i64 248, !7, i64 2856, !7, i64 3508, !6, i64 3576, !14, i64 3584, !7, i64 3592, !15, i64 3600, !15, i64 3604, !16, i64 3608, !11, i64 3612, !11, i64 3613, !11, i64 3614, !11, i64 3615, !13, i64 3616, !7, i64 3620, !11, i64 14052, !14, i64 14056, !7, i64 14064, !7, i64 14104, !7, i64 14144, !7, i64 14149, !7, i64 14154, !7, i64 14164, !7, i64 14174, !7, i64 14179, !7, i64 14184, !11, i64 14189, !7, i64 14192, !7, i64 14212, !7, i64 14232, !15, i64 14252, !11, i64 14256, !11, i64 14257, !7, i64 14258, !11, i64 14259, !17, i64 14260, !18, i64 14264}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTS6ImVec2", !15, i64 0, !15, i64 4}
!15 = !{!"float", !7, i64 0}
!16 = !{!"_ZTS16ImGuiMouseSource", !7, i64 0}
!17 = !{!"short", !7, i64 0}
!18 = !{!"_ZTS8ImVectorItE", !13, i64 0, !13, i64 4, !6, i64 8}
!19 = !{!"_ZTS10ImGuiStyle", !15, i64 0, !15, i64 4, !14, i64 8, !15, i64 16, !15, i64 20, !14, i64 24, !14, i64 32, !13, i64 40, !15, i64 44, !15, i64 48, !15, i64 52, !15, i64 56, !14, i64 60, !15, i64 68, !15, i64 72, !14, i64 76, !14, i64 84, !14, i64 92, !14, i64 100, !15, i64 108, !15, i64 112, !15, i64 116, !15, i64 120, !15, i64 124, !15, i64 128, !15, i64 132, !15, i64 136, !15, i64 140, !15, i64 144, !13, i64 148, !14, i64 152, !14, i64 160, !15, i64 168, !14, i64 172, !14, i64 180, !14, i64 188, !14, i64 196, !15, i64 204, !11, i64 208, !11, i64 209, !11, i64 210, !15, i64 212, !15, i64 216, !7, i64 220}
!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 = !{!"_ZTS8ImVectorI15ImGuiInputEventE", !13, i64 0, !13, i64 4, !6, i64 8}
!25 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !13, i64 0, !13, i64 4, !6, i64 8}
!26 = !{!"_ZTS8ImVectorI20ImGuiWindowStackDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!27 = !{!"_ZTS12ImGuiStorage", !28, i64 0}
!28 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !13, i64 0, !13, i64 4, !6, i64 8}
!29 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!30 = !{!"_ZTS20ImGuiKeyRoutingTable", !7, i64 0, !31, i64 280, !31, i64 296}
!31 = !{!"_ZTS8ImVectorI19ImGuiKeyRoutingDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!32 = !{!"_ZTS17ImGuiNextItemData", !13, i64 0, !15, i64 4, !13, i64 8, !13, i64 12, !11, i64 16}
!33 = !{!"_ZTS17ImGuiLastItemData", !13, i64 0, !13, i64 4, !13, i64 8, !34, i64 12, !34, i64 28, !34, i64 44}
!34 = !{!"_ZTS6ImRect", !14, i64 0, !14, i64 8}
!35 = !{!"_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, !34, i64 60, !6, i64 80, !6, i64 88, !15, i64 96, !14, i64 100}
!36 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !13, i64 0, !13, i64 4, !6, i64 8}
!37 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !13, i64 0, !13, i64 4, !6, i64 8}
!38 = !{!"_ZTS8ImVectorIP6ImFontE", !13, i64 0, !13, i64 4, !6, i64 8}
!39 = !{!"_ZTS8ImVectorIjE", !13, i64 0, !13, i64 4, !6, i64 8}
!40 = !{!"_ZTS8ImVectorIiE", !13, i64 0, !13, i64 4, !6, i64 8}
!41 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!42 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!43 = !{!"_ZTS8ImVectorIP14ImGuiViewportPE", !13, i64 0, !13, i64 4, !6, i64 8}
!44 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!45 = !{!"_ZTS16ImGuiNavItemData", !6, i64 0, !13, i64 8, !13, i64 12, !34, i64 16, !13, i64 32, !15, i64 36, !15, i64 40, !15, i64 44}
!46 = !{!"_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}
!47 = !{!"_ZTS8ImVectorIhE", !13, i64 0, !13, i64 4, !6, i64 8}
!48 = !{!"_ZTS8ImVectorI20ImGuiListClipperDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!49 = !{!"_ZTS8ImVectorI18ImGuiTableTempDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!50 = !{!"_ZTS6ImPoolI10ImGuiTableE", !51, i64 0, !27, i64 16, !13, i64 32, !13, i64 36}
!51 = !{!"_ZTS8ImVectorI10ImGuiTableE", !13, i64 0, !13, i64 4, !6, i64 8}
!52 = !{!"_ZTS8ImVectorIfE", !13, i64 0, !13, i64 4, !6, i64 8}
!53 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !13, i64 0, !13, i64 4, !6, i64 8}
!54 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !55, i64 0, !27, i64 16, !13, i64 32, !13, i64 36}
!55 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !13, i64 0, !13, i64 4, !6, i64 8}
!56 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !13, i64 0, !13, i64 4, !6, i64 8}
!57 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !13, i64 0, !13, i64 4, !6, i64 8}
!58 = !{!"_ZTS19ImGuiInputTextState", !6, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !18, i64 24, !59, i64 40, !59, i64 56, !11, i64 72, !13, i64 76, !15, i64 80, !60, i64 84, !15, i64 3712, !11, i64 3716, !11, i64 3717, !11, i64 3718, !13, i64 3720}
!59 = !{!"_ZTS8ImVectorIcE", !13, i64 0, !13, i64 4, !6, i64 8}
!60 = !{!"_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, !61, i64 32}
!61 = !{!"_ZTSN5ImStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !17, i64 3582, !17, i64 3584, !13, i64 3588, !13, i64 3592}
!62 = !{!"_ZTS30ImGuiInputTextDeactivatedState", !13, i64 0, !59, i64 8}
!63 = !{!"_ZTS6ImFont", !52, i64 0, !15, i64 16, !15, i64 20, !18, i64 24, !64, i64 40, !6, i64 56, !6, i64 64, !6, i64 72, !17, i64 80, !17, i64 82, !17, i64 84, !17, i64 86, !15, i64 88, !15, i64 92, !11, i64 96, !15, i64 100, !15, i64 104, !15, i64 108, !13, i64 112, !7, i64 116}
!64 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !13, i64 0, !13, i64 4, !6, i64 8}
!65 = !{!"_ZTS21ImGuiComboPreviewData", !34, i64 0, !14, i64 16, !14, i64 24, !14, i64 32, !15, i64 40, !13, i64 44}
!66 = !{!"_ZTS20ImGuiPlatformImeData", !11, i64 0, !14, i64 4, !15, i64 12}
!67 = !{!"_ZTS15ImGuiTextBuffer", !59, i64 0}
!68 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !13, i64 0, !13, i64 4, !6, i64 8}
!69 = !{!"_ZTS13ImChunkStreamI19ImGuiWindowSettingsE", !59, i64 0}
!70 = !{!"_ZTS13ImChunkStreamI18ImGuiTableSettingsE", !59, i64 0}
!71 = !{!"_ZTS8ImVectorI16ImGuiContextHookE", !13, i64 0, !13, i64 4, !6, i64 8}
!72 = !{!"_ZTS12ImGuiLogType", !7, i64 0}
!73 = !{!"_ZTS14ImGuiTextIndex", !40, i64 0, !13, i64 16}
!74 = !{!"_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, !13, i64 8, !13, i64 12}
!75 = !{!"_ZTS14ImGuiStackTool", !13, i64 0, !13, i64 4, !13, i64 8, !76, i64 16, !11, i64 32, !15, i64 36}
!76 = !{!"_ZTS8ImVectorI19ImGuiStackLevelInfoE", !13, i64 0, !13, i64 4, !6, i64 8}
!77 = !{!10, !13, i64 15944}
!78 = !{!79, !80, i64 0}
!79 = !{!"_ZTS15ImGuiInputEvent", !80, i64 0, !29, i64 4, !13, i64 8, !7, i64 12, !11, i64 24}
!80 = !{!"_ZTS19ImGuiInputEventType", !7, i64 0}
!81 = !{!7, !7, i64 0}
!82 = !{!12, !16, i64 3608}
!83 = !{i8 0, i8 2}
!84 = !{}
!85 = !{!11, !11, i64 0}
!86 = !{!12, !15, i64 3604}
!87 = !{!12, !15, i64 3600}
!88 = !{!89, !11, i64 0}
!89 = !{!"_ZTS12ImGuiKeyData", !11, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!90 = !{!89, !15, i64 12}
!91 = !{!13, !13, i64 0}
!92 = !{!17, !17, i64 0}
!93 = !{!12, !11, i64 14256}
!94 = distinct !{!94, !95}
!95 = !{!"llvm.loop.mustprogress"}
!96 = distinct !{!96, !95}
!97 = !{!10, !13, i64 23708}
!98 = distinct !{!98, !95}
!99 = !{!10, !6, i64 15952}
!100 = !{!10, !11, i64 14264}


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