; LLVM IR from jan-van-bergen/GPU-Raytracer :: include/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.44 = type { [21 x i32] }
%struct.ImVec2 = type { float, float }
%struct.ImGuiContext = type <{ i8, i8, [6 x i8], %struct.ImGuiIO, %struct.ImVector.0, %struct.ImVector.0, %struct.ImGuiStyle, ptr, float, float, %struct.ImDrawListSharedData, double, i32, i32, i32, i8, i8, i8, i8, i8, [7 x i8], ptr, %struct.ImVector.1, %struct.ImVector.1, %struct.ImVector.1, %struct.ImVector.2, %struct.ImGuiStorage, i32, %struct.ImVec2, [4 x i8], ptr, ptr, ptr, ptr, ptr, %struct.ImVec2, float, i32, i32, i32, i8, i8, i8, i8, float, float, i32, i32, float, i8, i8, i8, i8, i8, i8, i8, i8, i32, i32, %struct.ImBitArray, %struct.ImVec2, [4 x i8], ptr, i32, i32, i32, i8, i8, [2 x i8], ptr, i32, float, i32, %struct.ImGuiNextItemData, %struct.ImGuiLastItemData, [4 x i8], %struct.ImGuiNextWindowData, %struct.ImVector.4, %struct.ImVector.5, %struct.ImVector.6, %struct.ImVector.7, %struct.ImVector.8, %struct.ImVector.9, %struct.ImVector.10, %struct.ImVector.10, i32, [4 x i8], %struct.ImVector.11, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, i32, %struct.ImRect, i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, %struct.ImRect, %struct.ImRect, i32, i32, i32, [4 x i8], %struct.ImGuiNavItemData, %struct.ImGuiNavItemData, %struct.ImGuiNavItemData, %struct.ImGuiNavItemData, ptr, ptr, ptr, float, float, i8, [3 x i8], float, i32, i8, i8, i8, i8, i32, i32, i32, [4 x i8], %struct.ImGuiPayload, %struct.ImRect, i32, i32, float, i32, i32, i32, i32, [4 x i8], %struct.ImVector.12, [16 x i8], i32, [4 x i8], %struct.ImVector.13, ptr, i32, [4 x i8], %struct.ImVector.14, %struct.ImPool, %struct.ImVector.16, %struct.ImVector.17, ptr, %struct.ImPool.18, %struct.ImVector.20, %struct.ImVector.21, %struct.ImVec2, %struct.ImGuiInputTextState, %struct.ImFont, i32, i32, float, float, i32, %struct.ImVec4, %struct.ImGuiComboPreviewData, float, i8, i8, [2 x i8], float, float, float, float, i16, i16, float, [4 x i8], %struct.ImVector.22, %struct.ImVector.7, %struct.ImGuiPlatformImeData, %struct.ImGuiPlatformImeData, i8, i8, [2 x i8], float, %struct.ImGuiTextBuffer, %struct.ImVector.24, %struct.ImChunkStream, %struct.ImChunkStream.25, %struct.ImVector.26, i32, i8, [3 x i8], i32, [4 x i8], ptr, %struct.ImGuiTextBuffer, ptr, ptr, float, i8, [3 x i8], i32, i32, i32, i8, [3 x i8], i32, %struct.ImGuiMetricsConfig, [4 x i8], %struct.ImGuiStackTool, [120 x float], i32, i32, float, i32, i32, i32, [3073 x i8], [7 x i8] }>
%struct.ImGuiIO = type { i32, i32, %struct.ImVec2, float, float, ptr, ptr, float, float, float, float, float, ptr, ptr, float, i8, ptr, %struct.ImVec2, i8, i8, i8, i8, i8, i8, i8, float, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, i32, i32, %struct.ImVec2, [645 x i32], [512 x i8], %struct.ImVec2, [5 x i8], float, float, i8, i8, i8, i8, [20 x float], i32, i32, [645 x %struct.ImGuiKeyData], i8, %struct.ImVec2, [5 x %struct.ImVec2], [5 x double], [5 x i8], [5 x i8], [5 x i16], [5 x i16], [5 x i8], [5 x i8], [5 x i8], [5 x float], [5 x float], [5 x float], [20 x float], [20 x float], float, i8, i8, i8, i16, %struct.ImVector }
%struct.ImGuiKeyData = type { i8, float, float, float }
%struct.ImVector = type { i32, i32, ptr }
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImGuiStyle = type { float, float, %struct.ImVec2, float, float, %struct.ImVec2, %struct.ImVec2, i32, float, float, float, float, %struct.ImVec2, float, float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, float, float, float, float, float, float, float, float, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, i8, i8, i8, float, float, [53 x %struct.ImVec4] }
%struct.ImDrawListSharedData = type { %struct.ImVec2, ptr, float, float, float, %struct.ImVec4, i32, [48 x %struct.ImVec2], float, [64 x i8], ptr }
%struct.ImVector.1 = type { i32, i32, ptr }
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImGuiStorage = type { %struct.ImVector.3 }
%struct.ImVector.3 = type { i32, i32, ptr }
%struct.ImBitArray = type { [5 x i32] }
%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.4 = type { i32, i32, ptr }
%struct.ImVector.5 = type { i32, i32, ptr }
%struct.ImVector.6 = type { i32, i32, ptr }
%struct.ImVector.8 = type { i32, i32, ptr }
%struct.ImVector.9 = type { i32, i32, ptr }
%struct.ImVector.10 = type { i32, i32, ptr }
%struct.ImVector.11 = type { i32, i32, ptr }
%struct.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.12 = type { i32, i32, ptr }
%struct.ImVector.13 = type { i32, i32, ptr }
%struct.ImVector.14 = type { i32, i32, ptr }
%struct.ImPool = type { %struct.ImVector.15, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.15 = type { i32, i32, ptr }
%struct.ImVector.16 = type { i32, i32, ptr }
%struct.ImVector.17 = type { i32, i32, ptr }
%struct.ImPool.18 = type { %struct.ImVector.19, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.19 = type { i32, i32, ptr }
%struct.ImVector.20 = type { i32, i32, ptr }
%struct.ImVector.21 = type { i32, i32, ptr }
%struct.ImGuiInputTextState = type <{ i32, i32, i32, [4 x i8], %struct.ImVector, %struct.ImVector.22, %struct.ImVector.22, i8, [3 x i8], i32, float, %"struct.ImStb::STB_TexteditState", float, i8, i8, i8, i8, i32, [4 x i8] }>
%"struct.ImStb::STB_TexteditState" = type { i32, i32, i32, i8, i32, i8, i8, i8, i8, i8, i8, i8, float, %"struct.ImStb::StbUndoState" }
%"struct.ImStb::StbUndoState" = type { [99 x %"struct.ImStb::StbUndoRecord"], [999 x i16], i16, i16, i32, i32 }
%"struct.ImStb::StbUndoRecord" = type { i32, i32, i32, i32 }
%struct.ImFont = type <{ %struct.ImVector.16, float, float, %struct.ImVector, %struct.ImVector.23, ptr, ptr, ptr, i16, i16, i16, i16, i8, [3 x i8], float, float, float, i32, [2 x i8], [2 x i8] }>
%struct.ImVector.23 = 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.22 = type { i32, i32, ptr }
%struct.ImVector.7 = type { i32, i32, ptr }
%struct.ImGuiPlatformImeData = type { i8, %struct.ImVec2, float }
%struct.ImVector.24 = type { i32, i32, ptr }
%struct.ImChunkStream = type { %struct.ImVector.22 }
%struct.ImChunkStream.25 = type { %struct.ImVector.22 }
%struct.ImVector.26 = type { i32, i32, ptr }
%struct.ImGuiTextBuffer = type { %struct.ImVector.22 }
%struct.ImGuiMetricsConfig = type { i8, i8, i8, i8, i8, i8, i32, i32 }
%struct.ImGuiStackTool = type { i32, i32, i32, %struct.ImVector.27 }
%struct.ImVector.27 = type { i32, i32, ptr }
%struct.ImGuiInputEvent = type <{ i32, i32, %union.anon, i8, [3 x i8] }>
%union.anon = type { %struct.ImGuiInputEventKey }
%struct.ImGuiInputEventKey = type { i32, i8, float }
%struct.ImGuiInputEventMousePos = type { float, float }
%struct.ImGuiInputEventMouseButton = type { i32, i8 }
%struct.ImGuiInputEventMouseWheel = type { float, float }
%struct.ImGuiInputEventText = type { i32 }
%struct.ImGuiInputEventAppFocused = type { i8 }

@GImGui = external dso_local global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.153 = external hidden unnamed_addr constant [47 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb = external hidden unnamed_addr constant [36 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [22 x i8], align 1

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN5ImGui15IsMousePosValidEPK6ImVec2(ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5ImGui20GetMergedKeyModFlagsEv() #1

; 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) #6 {
  %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 i32, align 4
  %10 = alloca %struct.ImBitArray.44, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca %struct.ImVec2, align 4
  %14 = alloca %struct.ImVec2, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i16, align 2
  %22 = alloca i32, align 4
  %23 = zext i1 %0 to i8
  store i8 %23, ptr %2, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  %24 = load ptr, ptr @GImGui, align 8, !tbaa !9
  store ptr %24, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  %25 = load ptr, ptr %3, align 8, !tbaa !9
  %26 = getelementptr inbounds %struct.ImGuiContext, ptr %25, i32 0, i32 3
  store ptr %26, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #7
  store i8 0, 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 4, ptr %9) #7
  store i32 0, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 84, ptr %10) #7
  call void @_ZN10ImBitArrayILi645ELi0EEC2Ev(ptr noundef nonnull align 4 dereferenceable(84) %10)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !11
  br label %27

27:                                               ; preds = %426, %1
  %28 = load i32, ptr %11, align 4, !tbaa !11
  %29 = load ptr, ptr %3, align 8, !tbaa !9
  %30 = getelementptr inbounds %struct.ImGuiContext, ptr %29, i32 0, i32 4
  %31 = getelementptr inbounds %struct.ImVector.0, ptr %30, i32 0, i32 0
  %32 = load i32, ptr %31, align 8, !tbaa !13
  %33 = icmp slt i32 %28, %32
  br i1 %33, label %34, label %429

34:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %35 = load ptr, ptr %3, align 8, !tbaa !9
  %36 = getelementptr inbounds %struct.ImGuiContext, ptr %35, i32 0, i32 4
  %37 = load i32, ptr %11, align 4, !tbaa !11
  %38 = call noundef nonnull align 4 dereferenceable(21) ptr @_ZN8ImVectorI15ImGuiInputEventEixEi(ptr noundef nonnull align 8 dereferenceable(16) %36, i32 noundef %37)
  store ptr %38, ptr %12, align 8, !tbaa !9
  %39 = load ptr, ptr %12, align 8, !tbaa !9
  %40 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %39, i32 0, i32 0
  %41 = load i32, ptr %40, align 4, !tbaa !74
  %42 = icmp eq i32 %41, 1
  br i1 %42, label %43, label %99

43:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %44 = load ptr, ptr %12, align 8, !tbaa !9
  %45 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %44, i32 0, i32 2
  %46 = getelementptr inbounds %struct.ImGuiInputEventMousePos, ptr %45, i32 0, i32 0
  %47 = load float, ptr %46, align 4, !tbaa !77
  %48 = load ptr, ptr %12, align 8, !tbaa !9
  %49 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %48, i32 0, i32 2
  %50 = getelementptr inbounds %struct.ImGuiInputEventMousePos, ptr %49, i32 0, i32 1
  %51 = load float, ptr %50, align 4, !tbaa !77
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %13, float noundef %47, float noundef %51)
  %52 = call noundef zeroext i1 @_ZN5ImGui15IsMousePosValidEPK6ImVec2(ptr noundef %13)
  br i1 %52, label %53, label %60

53:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %54 = getelementptr inbounds %struct.ImVec2, ptr %13, i32 0, i32 0
  %55 = load float, ptr %54, align 4, !tbaa !78
  %56 = call noundef float @_ZL13ImFloorSignedf(float noundef %55)
  %57 = getelementptr inbounds %struct.ImVec2, ptr %13, i32 0, i32 1
  %58 = load float, ptr %57, align 4, !tbaa !79
  %59 = call noundef float @_ZL13ImFloorSignedf(float noundef %58)
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %14, float noundef %56, float noundef %59)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %14, i64 8, i1 false), !tbaa.struct !80
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %60

60:                                               ; preds = %53, %43
  %61 = load ptr, ptr %4, align 8, !tbaa !9
  %62 = getelementptr inbounds %struct.ImGuiIO, ptr %61, i32 0, i32 52
  %63 = getelementptr inbounds %struct.ImVec2, ptr %62, i32 0, i32 0
  %64 = load float, ptr %63, align 4, !tbaa !82
  %65 = getelementptr inbounds %struct.ImVec2, ptr %13, i32 0, i32 0
  %66 = load float, ptr %65, align 4, !tbaa !78
  %67 = fcmp une float %64, %66
  br i1 %67, label %76, label %68

68:                                               ; preds = %60
  %69 = load ptr, ptr %4, align 8, !tbaa !9
  %70 = getelementptr inbounds %struct.ImGuiIO, ptr %69, i32 0, i32 52
  %71 = getelementptr inbounds %struct.ImVec2, ptr %70, i32 0, i32 1
  %72 = load float, ptr %71, align 4, !tbaa !83
  %73 = getelementptr inbounds %struct.ImVec2, ptr %13, i32 0, i32 1
  %74 = load float, ptr %73, align 4, !tbaa !79
  %75 = fcmp une float %72, %74
  br i1 %75, label %76, label %95

76:                                               ; preds = %68, %60
  %77 = load i8, ptr %2, align 1, !tbaa !5, !range !84, !noundef !85
  %78 = trunc i8 %77 to i1
  br i1 %78, label %79, label %92

79:                                               ; preds = %76
  %80 = load i32, ptr %9, align 4, !tbaa !11
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %91, label %82

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

85:                                               ; preds = %82
  %86 = load i8, ptr %7, align 1, !tbaa !5, !range !84, !noundef !85
  %87 = trunc i8 %86 to i1
  br i1 %87, label %91, label %88

88:                                               ; preds = %85
  %89 = load i8, ptr %8, align 1, !tbaa !5, !range !84, !noundef !85
  %90 = trunc i8 %89 to i1
  br i1 %90, label %91, label %92

91:                                               ; preds = %88, %85, %82, %79
  store i32 2, ptr %15, align 4
  br label %96

92:                                               ; preds = %88, %76
  %93 = load ptr, ptr %4, align 8, !tbaa !9
  %94 = getelementptr inbounds %struct.ImGuiIO, ptr %93, i32 0, i32 52
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %94, ptr align 4 %13, i64 8, i1 false), !tbaa.struct !80
  store i8 1, ptr %5, align 1, !tbaa !5
  br label %95

95:                                               ; preds = %92, %68
  store i32 0, ptr %15, align 4
  br label %96

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

98:                                               ; preds = %96
  br label %422

99:                                               ; preds = %34
  %100 = load ptr, ptr %12, align 8, !tbaa !9
  %101 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %100, i32 0, i32 0
  %102 = load i32, ptr %101, align 4, !tbaa !74
  %103 = icmp eq i32 %102, 3
  br i1 %103, label %104, label %168

104:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %105 = load ptr, ptr %12, align 8, !tbaa !9
  %106 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %105, i32 0, i32 2
  %107 = getelementptr inbounds %struct.ImGuiInputEventMouseButton, ptr %106, i32 0, i32 0
  %108 = load i32, ptr %107, align 4, !tbaa !77
  store i32 %108, ptr %16, align 4, !tbaa !11
  %109 = load i32, ptr %16, align 4, !tbaa !11
  %110 = icmp sge i32 %109, 0
  br i1 %110, label %111, label %114

111:                                              ; preds = %104
  %112 = load i32, ptr %16, align 4, !tbaa !11
  %113 = icmp slt i32 %112, 5
  br label %114

114:                                              ; preds = %111, %104
  %115 = phi i1 [ false, %104 ], [ %113, %111 ]
  br i1 %115, label %116, label %117

116:                                              ; preds = %114
  br label %119

117:                                              ; preds = %114
  call void @__assert_fail(ptr noundef @.str.153, ptr noundef @.str.4, i32 noundef 7811, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb) #8
  unreachable

118:                                              ; No predecessors!
  br label %119

119:                                              ; preds = %118, %116
  %120 = load ptr, ptr %4, align 8, !tbaa !9
  %121 = getelementptr inbounds %struct.ImGuiIO, ptr %120, i32 0, i32 53
  %122 = load i32, ptr %16, align 4, !tbaa !11
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [5 x i8], ptr %121, i64 0, i64 %123
  %125 = load i8, ptr %124, align 1, !tbaa !5, !range !84, !noundef !85
  %126 = trunc i8 %125 to i1
  %127 = zext i1 %126 to i32
  %128 = load ptr, ptr %12, align 8, !tbaa !9
  %129 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %128, i32 0, i32 2
  %130 = getelementptr inbounds %struct.ImGuiInputEventMouseButton, ptr %129, i32 0, i32 1
  %131 = load i8, ptr %130, align 4, !tbaa !77, !range !84, !noundef !85
  %132 = trunc i8 %131 to i1
  %133 = zext i1 %132 to i32
  %134 = icmp ne i32 %127, %133
  br i1 %134, label %135, label %164

135:                                              ; preds = %119
  %136 = load i8, ptr %2, align 1, !tbaa !5, !range !84, !noundef !85
  %137 = trunc i8 %136 to i1
  br i1 %137, label %138, label %148

138:                                              ; preds = %135
  %139 = load i32, ptr %9, align 4, !tbaa !11
  %140 = load i32, ptr %16, align 4, !tbaa !11
  %141 = shl i32 1, %140
  %142 = and i32 %139, %141
  %143 = icmp ne i32 %142, 0
  br i1 %143, label %147, label %144

144:                                              ; preds = %138
  %145 = load i8, ptr %6, align 1, !tbaa !5, !range !84, !noundef !85
  %146 = trunc i8 %145 to i1
  br i1 %146, label %147, label %148

147:                                              ; preds = %144, %138
  store i32 2, ptr %15, align 4
  br label %165

148:                                              ; preds = %144, %135
  %149 = load ptr, ptr %12, align 8, !tbaa !9
  %150 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %149, i32 0, i32 2
  %151 = getelementptr inbounds %struct.ImGuiInputEventMouseButton, ptr %150, i32 0, i32 1
  %152 = load i8, ptr %151, align 4, !tbaa !77, !range !84, !noundef !85
  %153 = trunc i8 %152 to i1
  %154 = load ptr, ptr %4, align 8, !tbaa !9
  %155 = getelementptr inbounds %struct.ImGuiIO, ptr %154, i32 0, i32 53
  %156 = load i32, ptr %16, align 4, !tbaa !11
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [5 x i8], ptr %155, i64 0, i64 %157
  %159 = zext i1 %153 to i8
  store i8 %159, ptr %158, align 1, !tbaa !5
  %160 = load i32, ptr %16, align 4, !tbaa !11
  %161 = shl i32 1, %160
  %162 = load i32, ptr %9, align 4, !tbaa !11
  %163 = or i32 %162, %161
  store i32 %163, ptr %9, align 4, !tbaa !11
  br label %164

164:                                              ; preds = %148, %119
  store i32 0, ptr %15, align 4
  br label %165

165:                                              ; preds = %164, %147
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  %166 = load i32, ptr %15, align 4
  switch i32 %166, label %423 [
    i32 0, label %167
  ]

167:                                              ; preds = %165
  br label %421

168:                                              ; preds = %99
  %169 = load ptr, ptr %12, align 8, !tbaa !9
  %170 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %169, i32 0, i32 0
  %171 = load i32, ptr %170, align 4, !tbaa !74
  %172 = icmp eq i32 %171, 2
  br i1 %172, label %173, label %213

173:                                              ; preds = %168
  %174 = load ptr, ptr %12, align 8, !tbaa !9
  %175 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %174, i32 0, i32 2
  %176 = getelementptr inbounds %struct.ImGuiInputEventMouseWheel, ptr %175, i32 0, i32 0
  %177 = load float, ptr %176, align 4, !tbaa !77
  %178 = fcmp une float %177, 0.000000e+00
  br i1 %178, label %185, label %179

179:                                              ; preds = %173
  %180 = load ptr, ptr %12, align 8, !tbaa !9
  %181 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %180, i32 0, i32 2
  %182 = getelementptr inbounds %struct.ImGuiInputEventMouseWheel, ptr %181, i32 0, i32 1
  %183 = load float, ptr %182, align 4, !tbaa !77
  %184 = fcmp une float %183, 0.000000e+00
  br i1 %184, label %185, label %212

185:                                              ; preds = %179, %173
  %186 = load i8, ptr %2, align 1, !tbaa !5, !range !84, !noundef !85
  %187 = trunc i8 %186 to i1
  br i1 %187, label %188, label %195

188:                                              ; preds = %185
  %189 = load i8, ptr %6, align 1, !tbaa !5, !range !84, !noundef !85
  %190 = trunc i8 %189 to i1
  br i1 %190, label %194, label %191

191:                                              ; preds = %188
  %192 = load i32, ptr %9, align 4, !tbaa !11
  %193 = icmp ne i32 %192, 0
  br i1 %193, label %194, label %195

194:                                              ; preds = %191, %188
  store i32 2, ptr %15, align 4
  br label %423

195:                                              ; preds = %191, %185
  %196 = load ptr, ptr %12, align 8, !tbaa !9
  %197 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %196, i32 0, i32 2
  %198 = getelementptr inbounds %struct.ImGuiInputEventMouseWheel, ptr %197, i32 0, i32 0
  %199 = load float, ptr %198, align 4, !tbaa !77
  %200 = load ptr, ptr %4, align 8, !tbaa !9
  %201 = getelementptr inbounds %struct.ImGuiIO, ptr %200, i32 0, i32 55
  %202 = load float, ptr %201, align 8, !tbaa !86
  %203 = fadd float %202, %199
  store float %203, ptr %201, align 8, !tbaa !86
  %204 = load ptr, ptr %12, align 8, !tbaa !9
  %205 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %204, i32 0, i32 2
  %206 = getelementptr inbounds %struct.ImGuiInputEventMouseWheel, ptr %205, i32 0, i32 1
  %207 = load float, ptr %206, align 4, !tbaa !77
  %208 = load ptr, ptr %4, align 8, !tbaa !9
  %209 = getelementptr inbounds %struct.ImGuiIO, ptr %208, i32 0, i32 54
  %210 = load float, ptr %209, align 4, !tbaa !87
  %211 = fadd float %210, %207
  store float %211, ptr %209, align 4, !tbaa !87
  store i8 1, ptr %6, align 1, !tbaa !5
  br label %212

212:                                              ; preds = %195, %179
  br label %420

213:                                              ; preds = %168
  %214 = load ptr, ptr %12, align 8, !tbaa !9
  %215 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %214, i32 0, i32 0
  %216 = load i32, ptr %215, align 4, !tbaa !74
  %217 = icmp eq i32 %216, 4
  br i1 %217, label %218, label %363

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

225:                                              ; preds = %218
  br label %228

226:                                              ; preds = %218
  call void @__assert_fail(ptr noundef @.str.154, ptr noundef @.str.4, i32 noundef 7836, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb) #8
  unreachable

227:                                              ; No predecessors!
  br label %228

228:                                              ; preds = %227, %225
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %229 = load i32, ptr %17, align 4, !tbaa !11
  %230 = sub nsw i32 %229, 0
  store i32 %230, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %231 = load ptr, ptr %4, align 8, !tbaa !9
  %232 = getelementptr inbounds %struct.ImGuiIO, ptr %231, i32 0, i32 63
  %233 = load i32, ptr %18, align 4, !tbaa !11
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds [645 x %struct.ImGuiKeyData], ptr %232, i64 0, i64 %234
  store ptr %235, ptr %19, align 8, !tbaa !9
  %236 = load ptr, ptr %19, align 8, !tbaa !9
  %237 = getelementptr inbounds %struct.ImGuiKeyData, ptr %236, i32 0, i32 0
  %238 = load i8, ptr %237, align 4, !tbaa !88, !range !84, !noundef !85
  %239 = trunc i8 %238 to i1
  %240 = zext i1 %239 to i32
  %241 = load ptr, ptr %12, align 8, !tbaa !9
  %242 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %241, i32 0, i32 2
  %243 = getelementptr inbounds %struct.ImGuiInputEventKey, ptr %242, i32 0, i32 1
  %244 = load i8, ptr %243, align 4, !tbaa !77, !range !84, !noundef !85
  %245 = trunc i8 %244 to i1
  %246 = zext i1 %245 to i32
  %247 = icmp ne i32 %240, %246
  br i1 %247, label %257, label %248

248:                                              ; preds = %228
  %249 = load ptr, ptr %19, align 8, !tbaa !9
  %250 = getelementptr inbounds %struct.ImGuiKeyData, ptr %249, i32 0, i32 3
  %251 = load float, ptr %250, align 4, !tbaa !90
  %252 = load ptr, ptr %12, align 8, !tbaa !9
  %253 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %252, i32 0, i32 2
  %254 = getelementptr inbounds %struct.ImGuiInputEventKey, ptr %253, i32 0, i32 2
  %255 = load float, ptr %254, align 4, !tbaa !77
  %256 = fcmp une float %251, %255
  br i1 %256, label %257, label %359

257:                                              ; preds = %248, %228
  %258 = load i8, ptr %2, align 1, !tbaa !5, !range !84, !noundef !85
  %259 = trunc i8 %258 to i1
  br i1 %259, label %260, label %283

260:                                              ; preds = %257
  %261 = load ptr, ptr %19, align 8, !tbaa !9
  %262 = getelementptr inbounds %struct.ImGuiKeyData, ptr %261, i32 0, i32 0
  %263 = load i8, ptr %262, align 4, !tbaa !88, !range !84, !noundef !85
  %264 = trunc i8 %263 to i1
  %265 = zext i1 %264 to i32
  %266 = load ptr, ptr %12, align 8, !tbaa !9
  %267 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %266, i32 0, i32 2
  %268 = getelementptr inbounds %struct.ImGuiInputEventKey, ptr %267, i32 0, i32 1
  %269 = load i8, ptr %268, align 4, !tbaa !77, !range !84, !noundef !85
  %270 = trunc i8 %269 to i1
  %271 = zext i1 %270 to i32
  %272 = icmp ne i32 %265, %271
  br i1 %272, label %273, label %283

273:                                              ; preds = %260
  %274 = load i32, ptr %18, align 4, !tbaa !11
  %275 = call noundef zeroext i1 @_ZNK10ImBitArrayILi645ELi0EE7TestBitEi(ptr noundef nonnull align 4 dereferenceable(84) %10, i32 noundef %274)
  br i1 %275, label %282, label %276

276:                                              ; preds = %273
  %277 = load i8, ptr %8, align 1, !tbaa !5, !range !84, !noundef !85
  %278 = trunc i8 %277 to i1
  br i1 %278, label %282, label %279

279:                                              ; preds = %276
  %280 = load i32, ptr %9, align 4, !tbaa !11
  %281 = icmp ne i32 %280, 0
  br i1 %281, label %282, label %283

282:                                              ; preds = %279, %276, %273
  store i32 2, ptr %15, align 4
  br label %360

283:                                              ; preds = %279, %260, %257
  %284 = load ptr, ptr %12, align 8, !tbaa !9
  %285 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %284, i32 0, i32 2
  %286 = getelementptr inbounds %struct.ImGuiInputEventKey, ptr %285, i32 0, i32 1
  %287 = load i8, ptr %286, align 4, !tbaa !77, !range !84, !noundef !85
  %288 = trunc i8 %287 to i1
  %289 = load ptr, ptr %19, align 8, !tbaa !9
  %290 = getelementptr inbounds %struct.ImGuiKeyData, ptr %289, i32 0, i32 0
  %291 = zext i1 %288 to i8
  store i8 %291, ptr %290, align 4, !tbaa !88
  %292 = load ptr, ptr %12, align 8, !tbaa !9
  %293 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %292, i32 0, i32 2
  %294 = getelementptr inbounds %struct.ImGuiInputEventKey, ptr %293, i32 0, i32 2
  %295 = load float, ptr %294, align 4, !tbaa !77
  %296 = load ptr, ptr %19, align 8, !tbaa !9
  %297 = getelementptr inbounds %struct.ImGuiKeyData, ptr %296, i32 0, i32 3
  store float %295, ptr %297, align 4, !tbaa !90
  store i8 1, ptr %7, align 1, !tbaa !5
  %298 = load i32, ptr %18, align 4, !tbaa !11
  call void @_ZN10ImBitArrayILi645ELi0EE6SetBitEi(ptr noundef nonnull align 4 dereferenceable(84) %10, i32 noundef %298)
  %299 = load i32, ptr %17, align 4, !tbaa !11
  %300 = icmp eq i32 %299, 641
  br i1 %300, label %310, label %301

301:                                              ; preds = %283
  %302 = load i32, ptr %17, align 4, !tbaa !11
  %303 = icmp eq i32 %302, 642
  br i1 %303, label %310, label %304

304:                                              ; preds = %301
  %305 = load i32, ptr %17, align 4, !tbaa !11
  %306 = icmp eq i32 %305, 643
  br i1 %306, label %310, label %307

307:                                              ; preds = %304
  %308 = load i32, ptr %17, align 4, !tbaa !11
  %309 = icmp eq i32 %308, 644
  br i1 %309, label %310, label %358

310:                                              ; preds = %307, %304, %301, %283
  %311 = load i32, ptr %17, align 4, !tbaa !11
  %312 = icmp eq i32 %311, 641
  br i1 %312, label %313, label %321

313:                                              ; preds = %310
  %314 = load ptr, ptr %19, align 8, !tbaa !9
  %315 = getelementptr inbounds %struct.ImGuiKeyData, ptr %314, i32 0, i32 0
  %316 = load i8, ptr %315, align 4, !tbaa !88, !range !84, !noundef !85
  %317 = trunc i8 %316 to i1
  %318 = load ptr, ptr %4, align 8, !tbaa !9
  %319 = getelementptr inbounds %struct.ImGuiIO, ptr %318, i32 0, i32 56
  %320 = zext i1 %317 to i8
  store i8 %320, ptr %319, align 4, !tbaa !91
  br label %321

321:                                              ; preds = %313, %310
  %322 = load i32, ptr %17, align 4, !tbaa !11
  %323 = icmp eq i32 %322, 642
  br i1 %323, label %324, label %332

324:                                              ; preds = %321
  %325 = load ptr, ptr %19, align 8, !tbaa !9
  %326 = getelementptr inbounds %struct.ImGuiKeyData, ptr %325, i32 0, i32 0
  %327 = load i8, ptr %326, align 4, !tbaa !88, !range !84, !noundef !85
  %328 = trunc i8 %327 to i1
  %329 = load ptr, ptr %4, align 8, !tbaa !9
  %330 = getelementptr inbounds %struct.ImGuiIO, ptr %329, i32 0, i32 57
  %331 = zext i1 %328 to i8
  store i8 %331, ptr %330, align 1, !tbaa !92
  br label %332

332:                                              ; preds = %324, %321
  %333 = load i32, ptr %17, align 4, !tbaa !11
  %334 = icmp eq i32 %333, 643
  br i1 %334, label %335, label %343

335:                                              ; preds = %332
  %336 = load ptr, ptr %19, align 8, !tbaa !9
  %337 = getelementptr inbounds %struct.ImGuiKeyData, ptr %336, i32 0, i32 0
  %338 = load i8, ptr %337, align 4, !tbaa !88, !range !84, !noundef !85
  %339 = trunc i8 %338 to i1
  %340 = load ptr, ptr %4, align 8, !tbaa !9
  %341 = getelementptr inbounds %struct.ImGuiIO, ptr %340, i32 0, i32 58
  %342 = zext i1 %339 to i8
  store i8 %342, ptr %341, align 2, !tbaa !93
  br label %343

343:                                              ; preds = %335, %332
  %344 = load i32, ptr %17, align 4, !tbaa !11
  %345 = icmp eq i32 %344, 644
  br i1 %345, label %346, label %354

346:                                              ; preds = %343
  %347 = load ptr, ptr %19, align 8, !tbaa !9
  %348 = getelementptr inbounds %struct.ImGuiKeyData, ptr %347, i32 0, i32 0
  %349 = load i8, ptr %348, align 4, !tbaa !88, !range !84, !noundef !85
  %350 = trunc i8 %349 to i1
  %351 = load ptr, ptr %4, align 8, !tbaa !9
  %352 = getelementptr inbounds %struct.ImGuiIO, ptr %351, i32 0, i32 59
  %353 = zext i1 %350 to i8
  store i8 %353, ptr %352, align 1, !tbaa !94
  br label %354

354:                                              ; preds = %346, %343
  %355 = call noundef i32 @_ZN5ImGui20GetMergedKeyModFlagsEv()
  %356 = load ptr, ptr %4, align 8, !tbaa !9
  %357 = getelementptr inbounds %struct.ImGuiIO, ptr %356, i32 0, i32 61
  store i32 %355, ptr %357, align 8, !tbaa !95
  br label %358

358:                                              ; preds = %354, %307
  br label %359

359:                                              ; preds = %358, %248
  store i32 0, ptr %15, align 4
  br label %360

360:                                              ; preds = %359, %282
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  %361 = load i32, ptr %15, align 4
  switch i32 %361, label %423 [
    i32 0, label %362
  ]

362:                                              ; preds = %360
  br label %419

363:                                              ; preds = %213
  %364 = load ptr, ptr %12, align 8, !tbaa !9
  %365 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %364, i32 0, i32 0
  %366 = load i32, ptr %365, align 4, !tbaa !74
  %367 = icmp eq i32 %366, 5
  br i1 %367, label %368, label %401

368:                                              ; preds = %363
  %369 = load i8, ptr %2, align 1, !tbaa !5, !range !84, !noundef !85
  %370 = trunc i8 %369 to i1
  br i1 %370, label %371, label %384

371:                                              ; preds = %368
  %372 = load i8, ptr %7, align 1, !tbaa !5, !range !84, !noundef !85
  %373 = trunc i8 %372 to i1
  br i1 %373, label %383, label %374

374:                                              ; preds = %371
  %375 = load i32, ptr %9, align 4, !tbaa !11
  %376 = icmp ne i32 %375, 0
  br i1 %376, label %383, label %377

377:                                              ; preds = %374
  %378 = load i8, ptr %5, align 1, !tbaa !5, !range !84, !noundef !85
  %379 = trunc i8 %378 to i1
  br i1 %379, label %383, label %380

380:                                              ; preds = %377
  %381 = load i8, ptr %6, align 1, !tbaa !5, !range !84, !noundef !85
  %382 = trunc i8 %381 to i1
  br i1 %382, label %383, label %384

383:                                              ; preds = %380, %377, %374, %371
  store i32 2, ptr %15, align 4
  br label %423

384:                                              ; preds = %380, %368
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %385 = load ptr, ptr %12, align 8, !tbaa !9
  %386 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %385, i32 0, i32 2
  %387 = getelementptr inbounds %struct.ImGuiInputEventText, ptr %386, i32 0, i32 0
  %388 = load i32, ptr %387, align 4, !tbaa !77
  store i32 %388, ptr %20, align 4, !tbaa !11
  %389 = load ptr, ptr %4, align 8, !tbaa !9
  %390 = getelementptr inbounds %struct.ImGuiIO, ptr %389, i32 0, i32 85
  call void @llvm.lifetime.start.p0(i64 2, ptr %21) #7
  %391 = load i32, ptr %20, align 4, !tbaa !11
  %392 = icmp ule i32 %391, 65535
  br i1 %392, label %393, label %397

393:                                              ; preds = %384
  %394 = load i32, ptr %20, align 4, !tbaa !11
  %395 = trunc i32 %394 to i16
  %396 = zext i16 %395 to i32
  br label %398

397:                                              ; preds = %384
  br label %398

398:                                              ; preds = %397, %393
  %399 = phi i32 [ %396, %393 ], [ 65533, %397 ]
  %400 = trunc i32 %399 to i16
  store i16 %400, ptr %21, align 2, !tbaa !96
  call void @_ZN8ImVectorItE9push_backERKt(ptr noundef nonnull align 8 dereferenceable(16) %390, ptr noundef nonnull align 2 dereferenceable(2) %21)
  call void @llvm.lifetime.end.p0(i64 2, ptr %21) #7
  store i8 1, ptr %8, align 1, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %418

401:                                              ; preds = %363
  %402 = load ptr, ptr %12, align 8, !tbaa !9
  %403 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %402, i32 0, i32 0
  %404 = load i32, ptr %403, align 4, !tbaa !74
  %405 = icmp eq i32 %404, 6
  br i1 %405, label %406, label %416

406:                                              ; preds = %401
  %407 = load ptr, ptr %12, align 8, !tbaa !9
  %408 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %407, i32 0, i32 2
  %409 = getelementptr inbounds %struct.ImGuiInputEventAppFocused, ptr %408, i32 0, i32 0
  %410 = load i8, ptr %409, align 4, !tbaa !77, !range !84, !noundef !85
  %411 = trunc i8 %410 to i1
  %412 = xor i1 %411, true
  %413 = load ptr, ptr %4, align 8, !tbaa !9
  %414 = getelementptr inbounds %struct.ImGuiIO, ptr %413, i32 0, i32 81
  %415 = zext i1 %412 to i8
  store i8 %415, ptr %414, align 8, !tbaa !97
  br label %417

416:                                              ; preds = %401
  call void @__assert_fail(ptr noundef @.str.155, ptr noundef @.str.4, i32 noundef 7876, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb) #8
  unreachable

417:                                              ; preds = %406
  br label %418

418:                                              ; preds = %417, %398
  br label %419

419:                                              ; preds = %418, %362
  br label %420

420:                                              ; preds = %419, %212
  br label %421

421:                                              ; preds = %420, %167
  br label %422

422:                                              ; preds = %421, %98
  store i32 0, ptr %15, align 4
  br label %423

423:                                              ; preds = %422, %383, %360, %194, %165, %96
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  %424 = load i32, ptr %15, align 4
  switch i32 %424, label %483 [
    i32 0, label %425
    i32 2, label %429
  ]

425:                                              ; preds = %423
  br label %426

426:                                              ; preds = %425
  %427 = load i32, ptr %11, align 4, !tbaa !11
  %428 = add nsw i32 %427, 1
  store i32 %428, ptr %11, align 4, !tbaa !11
  br label %27, !llvm.loop !98

429:                                              ; preds = %423, %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 0, ptr %22, align 4, !tbaa !11
  br label %430

430:                                              ; preds = %442, %429
  %431 = load i32, ptr %22, align 4, !tbaa !11
  %432 = load i32, ptr %11, align 4, !tbaa !11
  %433 = icmp slt i32 %431, %432
  br i1 %433, label %435, label %434

434:                                              ; preds = %430
  store i32 5, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %445

435:                                              ; preds = %430
  %436 = load ptr, ptr %3, align 8, !tbaa !9
  %437 = getelementptr inbounds %struct.ImGuiContext, ptr %436, i32 0, i32 5
  %438 = load ptr, ptr %3, align 8, !tbaa !9
  %439 = getelementptr inbounds %struct.ImGuiContext, ptr %438, i32 0, i32 4
  %440 = load i32, ptr %22, align 4, !tbaa !11
  %441 = call noundef nonnull align 4 dereferenceable(21) ptr @_ZN8ImVectorI15ImGuiInputEventEixEi(ptr noundef nonnull align 8 dereferenceable(16) %439, i32 noundef %440)
  call void @_ZN8ImVectorI15ImGuiInputEventE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %437, ptr noundef nonnull align 4 dereferenceable(21) %441)
  br label %442

442:                                              ; preds = %435
  %443 = load i32, ptr %22, align 4, !tbaa !11
  %444 = add nsw i32 %443, 1
  store i32 %444, ptr %22, align 4, !tbaa !11
  br label %430, !llvm.loop !100

445:                                              ; preds = %434
  %446 = load i32, ptr %11, align 4, !tbaa !11
  %447 = load ptr, ptr %3, align 8, !tbaa !9
  %448 = getelementptr inbounds %struct.ImGuiContext, ptr %447, i32 0, i32 4
  %449 = getelementptr inbounds %struct.ImVector.0, ptr %448, i32 0, i32 0
  %450 = load i32, ptr %449, align 8, !tbaa !13
  %451 = icmp eq i32 %446, %450
  br i1 %451, label %452, label %455

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

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

470:                                              ; preds = %455, %452
  %471 = load ptr, ptr %3, align 8, !tbaa !9
  %472 = getelementptr inbounds %struct.ImGuiContext, ptr %471, i32 0, i32 3
  %473 = getelementptr inbounds %struct.ImGuiIO, ptr %472, i32 0, i32 81
  %474 = load i8, ptr %473, align 8, !tbaa !102, !range !84, !noundef !85
  %475 = trunc i8 %474 to i1
  br i1 %475, label %476, label %482

476:                                              ; preds = %470
  %477 = load ptr, ptr %3, align 8, !tbaa !9
  %478 = getelementptr inbounds %struct.ImGuiContext, ptr %477, i32 0, i32 3
  call void @_ZN7ImGuiIO14ClearInputKeysEv(ptr noundef nonnull align 8 dereferenceable(14160) %478)
  %479 = load ptr, ptr %3, align 8, !tbaa !9
  %480 = getelementptr inbounds %struct.ImGuiContext, ptr %479, i32 0, i32 3
  %481 = getelementptr inbounds %struct.ImGuiIO, ptr %480, i32 0, i32 81
  store i8 0, ptr %481, align 8, !tbaa !102
  br label %482

482:                                              ; preds = %476, %470
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 84, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, 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

483:                                              ; preds = %423
  unreachable
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL13ImFloorSignedf(float noundef) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10ImBitArrayILi645ELi0EE6SetBitEi(ptr noundef nonnull align 4 dereferenceable(84), i32 noundef) #6 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN8ImVectorI15ImGuiInputEventE5eraseEPKS0_S3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, ptr noundef) #5 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 = { 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 = { 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 #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 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 14168}
!14 = !{!"_ZTS12ImGuiContext", !6, i64 0, !6, i64 1, !15, i64 8, !20, i64 14168, !20, i64 14184, !21, i64 14200, !10, i64 15248, !17, i64 15256, !17, i64 15260, !22, i64 15264, !24, i64 15776, !12, i64 15784, !12, i64 15788, !12, i64 15792, !6, i64 15796, !6, i64 15797, !6, i64 15798, !6, i64 15799, !6, i64 15800, !10, i64 15808, !25, i64 15816, !25, i64 15832, !25, i64 15848, !26, i64 15864, !27, i64 15880, !12, i64 15896, !16, i64 15900, !10, i64 15912, !10, i64 15920, !10, i64 15928, !10, i64 15936, !10, i64 15944, !16, i64 15952, !17, i64 15960, !12, i64 15964, !12, i64 15968, !12, i64 15972, !6, i64 15976, !6, i64 15977, !6, i64 15978, !6, i64 15979, !17, i64 15980, !17, i64 15984, !12, i64 15988, !12, i64 15992, !17, i64 15996, !6, i64 16000, !6, i64 16001, !6, i64 16002, !6, i64 16003, !6, i64 16004, !6, i64 16005, !6, i64 16006, !12, i64 16008, !12, i64 16012, !29, i64 16016, !16, i64 16036, !10, i64 16048, !30, i64 16056, !12, i64 16060, !12, i64 16064, !6, i64 16068, !6, i64 16069, !10, i64 16072, !12, i64 16080, !17, i64 16084, !12, i64 16088, !31, i64 16092, !32, i64 16112, !34, i64 16176, !35, i64 16288, !36, i64 16304, !37, i64 16320, !38, i64 16336, !39, i64 16352, !40, i64 16368, !41, i64 16384, !41, i64 16400, !12, i64 16416, !42, i64 16424, !10, i64 16440, !12, i64 16448, !12, i64 16452, !12, i64 16456, !12, i64 16460, !12, i64 16464, !12, i64 16468, !12, i64 16472, !12, i64 16476, !12, i64 16480, !12, i64 16484, !12, i64 16488, !12, i64 16492, !30, i64 16496, !43, i64 16500, !6, i64 16504, !6, i64 16505, !6, i64 16506, !6, i64 16507, !6, i64 16508, !6, i64 16509, !6, i64 16510, !12, i64 16512, !33, i64 16516, !6, i64 16532, !6, i64 16533, !6, i64 16534, !12, i64 16536, !12, i64 16540, !12, i64 16544, !12, i64 16548, !12, i64 16552, !12, i64 16556, !33, i64 16560, !33, i64 16576, !12, i64 16592, !12, i64 16596, !12, i64 16600, !44, i64 16608, !44, i64 16656, !44, i64 16704, !44, i64 16752, !10, i64 16800, !10, i64 16808, !10, i64 16816, !17, i64 16824, !17, i64 16828, !6, i64 16832, !17, i64 16836, !12, i64 16840, !6, i64 16844, !6, i64 16845, !6, i64 16846, !12, i64 16848, !12, i64 16852, !12, i64 16856, !45, i64 16864, !33, i64 16928, !12, i64 16944, !12, i64 16948, !17, i64 16952, !12, i64 16956, !12, i64 16960, !12, i64 16964, !12, i64 16968, !46, i64 16976, !7, i64 16992, !12, i64 17008, !47, i64 17016, !10, i64 17032, !12, i64 17040, !48, i64 17048, !49, i64 17064, !51, i64 17104, !52, i64 17120, !10, i64 17136, !53, i64 17144, !55, i64 17184, !56, i64 17200, !16, i64 17216, !57, i64 17224, !61, i64 20944, !12, i64 21056, !12, i64 21060, !17, i64 21064, !17, i64 21068, !12, i64 21072, !23, i64 21076, !63, i64 21092, !17, i64 21140, !6, i64 21144, !6, i64 21145, !17, i64 21148, !17, i64 21152, !17, i64 21156, !17, i64 21160, !18, i64 21164, !18, i64 21166, !17, i64 21168, !58, i64 21176, !38, i64 21192, !64, i64 21208, !64, i64 21224, !7, i64 21240, !6, i64 21241, !17, i64 21244, !65, i64 21248, !66, i64 21264, !67, i64 21280, !68, i64 21296, !69, i64 21312, !12, i64 21328, !6, i64 21332, !70, i64 21336, !10, i64 21344, !65, i64 21352, !10, i64 21368, !10, i64 21376, !17, i64 21384, !6, i64 21388, !12, i64 21392, !12, i64 21396, !12, i64 21400, !6, i64 21404, !12, i64 21408, !71, i64 21412, !72, i64 21432, !7, i64 21464, !12, i64 21944, !12, i64 21948, !17, i64 21952, !12, i64 21956, !12, i64 21960, !12, i64 21964, !7, i64 21968}
!15 = !{!"_ZTS7ImGuiIO", !12, i64 0, !12, i64 4, !16, i64 8, !17, i64 16, !17, i64 20, !10, i64 24, !10, i64 32, !17, i64 40, !17, i64 44, !17, i64 48, !17, i64 52, !17, i64 56, !10, i64 64, !10, i64 72, !17, i64 80, !6, i64 84, !10, i64 88, !16, i64 96, !6, i64 104, !6, i64 105, !6, i64 106, !6, i64 107, !6, i64 108, !6, i64 109, !6, i64 110, !17, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !6, i64 200, !6, i64 201, !6, i64 202, !6, i64 203, !6, i64 204, !6, i64 205, !6, i64 206, !17, i64 208, !12, i64 212, !12, i64 216, !12, i64 220, !12, i64 224, !12, i64 228, !16, i64 232, !7, i64 240, !7, i64 2820, !16, i64 3332, !7, i64 3340, !17, i64 3348, !17, i64 3352, !6, i64 3356, !6, i64 3357, !6, i64 3358, !6, i64 3359, !7, i64 3360, !12, i64 3440, !12, i64 3444, !7, i64 3448, !6, i64 13768, !16, i64 13772, !7, i64 13780, !7, i64 13824, !7, i64 13864, !7, i64 13869, !7, i64 13874, !7, i64 13884, !7, i64 13894, !7, i64 13899, !7, i64 13904, !7, i64 13912, !7, i64 13932, !7, i64 13952, !7, i64 13972, !7, i64 14052, !17, i64 14132, !6, i64 14136, !7, i64 14137, !6, i64 14138, !18, i64 14140, !19, i64 14144}
!16 = !{!"_ZTS6ImVec2", !17, i64 0, !17, i64 4}
!17 = !{!"float", !7, i64 0}
!18 = !{!"short", !7, i64 0}
!19 = !{!"_ZTS8ImVectorItE", !12, i64 0, !12, i64 4, !10, i64 8}
!20 = !{!"_ZTS8ImVectorI15ImGuiInputEventE", !12, i64 0, !12, i64 4, !10, i64 8}
!21 = !{!"_ZTS10ImGuiStyle", !17, i64 0, !17, i64 4, !16, i64 8, !17, i64 16, !17, i64 20, !16, i64 24, !16, i64 32, !12, i64 40, !17, i64 44, !17, i64 48, !17, i64 52, !17, i64 56, !16, i64 60, !17, i64 68, !17, i64 72, !16, i64 76, !16, i64 84, !16, i64 92, !16, i64 100, !17, i64 108, !17, i64 112, !17, i64 116, !17, i64 120, !17, i64 124, !17, i64 128, !17, i64 132, !17, i64 136, !17, i64 140, !17, i64 144, !12, i64 148, !16, i64 152, !16, i64 160, !16, i64 168, !16, i64 176, !17, i64 184, !6, i64 188, !6, i64 189, !6, i64 190, !17, i64 192, !17, i64 196, !7, i64 200}
!22 = !{!"_ZTS20ImDrawListSharedData", !16, i64 0, !10, i64 8, !17, i64 16, !17, i64 20, !17, i64 24, !23, i64 28, !12, i64 44, !7, i64 48, !17, i64 432, !7, i64 436, !10, i64 504}
!23 = !{!"_ZTS6ImVec4", !17, i64 0, !17, i64 4, !17, i64 8, !17, i64 12}
!24 = !{!"double", !7, i64 0}
!25 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !12, i64 0, !12, i64 4, !10, i64 8}
!26 = !{!"_ZTS8ImVectorI20ImGuiWindowStackDataE", !12, i64 0, !12, i64 4, !10, i64 8}
!27 = !{!"_ZTS12ImGuiStorage", !28, i64 0}
!28 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !12, i64 0, !12, i64 4, !10, i64 8}
!29 = !{!"_ZTS10ImBitArrayILi133ELin512EE", !7, i64 0}
!30 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!31 = !{!"_ZTS17ImGuiNextItemData", !12, i64 0, !17, i64 4, !12, i64 8, !12, i64 12, !6, i64 16}
!32 = !{!"_ZTS17ImGuiLastItemData", !12, i64 0, !12, i64 4, !12, i64 8, !33, i64 12, !33, i64 28, !33, i64 44}
!33 = !{!"_ZTS6ImRect", !16, i64 0, !16, i64 8}
!34 = !{!"_ZTS19ImGuiNextWindowData", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !16, i64 16, !16, i64 24, !16, i64 32, !16, i64 40, !16, i64 48, !6, i64 56, !33, i64 60, !10, i64 80, !10, i64 88, !17, i64 96, !16, i64 100}
!35 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !12, i64 0, !12, i64 4, !10, i64 8}
!36 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !12, i64 0, !12, i64 4, !10, i64 8}
!37 = !{!"_ZTS8ImVectorIP6ImFontE", !12, i64 0, !12, i64 4, !10, i64 8}
!38 = !{!"_ZTS8ImVectorIjE", !12, i64 0, !12, i64 4, !10, i64 8}
!39 = !{!"_ZTS8ImVectorIiE", !12, i64 0, !12, i64 4, !10, i64 8}
!40 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !12, i64 0, !12, i64 4, !10, i64 8}
!41 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !12, i64 0, !12, i64 4, !10, i64 8}
!42 = !{!"_ZTS8ImVectorIP14ImGuiViewportPE", !12, i64 0, !12, i64 4, !10, i64 8}
!43 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!44 = !{!"_ZTS16ImGuiNavItemData", !10, i64 0, !12, i64 8, !12, i64 12, !33, i64 16, !12, i64 32, !17, i64 36, !17, i64 40, !17, i64 44}
!45 = !{!"_ZTS12ImGuiPayload", !10, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !7, i64 24, !6, i64 57, !6, i64 58}
!46 = !{!"_ZTS8ImVectorIhE", !12, i64 0, !12, i64 4, !10, i64 8}
!47 = !{!"_ZTS8ImVectorI20ImGuiListClipperDataE", !12, i64 0, !12, i64 4, !10, i64 8}
!48 = !{!"_ZTS8ImVectorI18ImGuiTableTempDataE", !12, i64 0, !12, i64 4, !10, i64 8}
!49 = !{!"_ZTS6ImPoolI10ImGuiTableE", !50, i64 0, !27, i64 16, !12, i64 32, !12, i64 36}
!50 = !{!"_ZTS8ImVectorI10ImGuiTableE", !12, i64 0, !12, i64 4, !10, i64 8}
!51 = !{!"_ZTS8ImVectorIfE", !12, i64 0, !12, i64 4, !10, i64 8}
!52 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !12, i64 0, !12, i64 4, !10, i64 8}
!53 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !54, i64 0, !27, i64 16, !12, i64 32, !12, i64 36}
!54 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !12, i64 0, !12, i64 4, !10, i64 8}
!55 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !12, i64 0, !12, i64 4, !10, i64 8}
!56 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !12, i64 0, !12, i64 4, !10, i64 8}
!57 = !{!"_ZTS19ImGuiInputTextState", !12, i64 0, !12, i64 4, !12, i64 8, !19, i64 16, !58, i64 32, !58, i64 48, !6, i64 64, !12, i64 68, !17, i64 72, !59, i64 76, !17, i64 3704, !6, i64 3708, !6, i64 3709, !6, i64 3710, !12, i64 3712}
!58 = !{!"_ZTS8ImVectorIcE", !12, i64 0, !12, i64 4, !10, i64 8}
!59 = !{!"_ZTSN5ImStb17STB_TexteditStateE", !12, i64 0, !12, i64 4, !12, i64 8, !7, i64 12, !12, i64 16, !7, i64 20, !7, i64 21, !7, i64 22, !7, i64 23, !7, i64 24, !7, i64 25, !7, i64 26, !17, i64 28, !60, i64 32}
!60 = !{!"_ZTSN5ImStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !18, i64 3582, !18, i64 3584, !12, i64 3588, !12, i64 3592}
!61 = !{!"_ZTS6ImFont", !51, i64 0, !17, i64 16, !17, i64 20, !19, i64 24, !62, i64 40, !10, i64 56, !10, i64 64, !10, i64 72, !18, i64 80, !18, i64 82, !18, i64 84, !18, i64 86, !6, i64 88, !17, i64 92, !17, i64 96, !17, i64 100, !12, i64 104, !7, i64 108}
!62 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !12, i64 0, !12, i64 4, !10, i64 8}
!63 = !{!"_ZTS21ImGuiComboPreviewData", !33, i64 0, !16, i64 16, !16, i64 24, !16, i64 32, !17, i64 40, !12, i64 44}
!64 = !{!"_ZTS20ImGuiPlatformImeData", !6, i64 0, !16, i64 4, !17, i64 12}
!65 = !{!"_ZTS15ImGuiTextBuffer", !58, i64 0}
!66 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !12, i64 0, !12, i64 4, !10, i64 8}
!67 = !{!"_ZTS13ImChunkStreamI19ImGuiWindowSettingsE", !58, i64 0}
!68 = !{!"_ZTS13ImChunkStreamI18ImGuiTableSettingsE", !58, i64 0}
!69 = !{!"_ZTS8ImVectorI16ImGuiContextHookE", !12, i64 0, !12, i64 4, !10, i64 8}
!70 = !{!"_ZTS12ImGuiLogType", !7, i64 0}
!71 = !{!"_ZTS18ImGuiMetricsConfig", !6, i64 0, !6, i64 1, !6, i64 2, !6, i64 3, !6, i64 4, !6, i64 5, !12, i64 8, !12, i64 12}
!72 = !{!"_ZTS14ImGuiStackTool", !12, i64 0, !12, i64 4, !12, i64 8, !73, i64 16}
!73 = !{!"_ZTS8ImVectorI19ImGuiStackLevelInfoE", !12, i64 0, !12, i64 4, !10, i64 8}
!74 = !{!75, !76, i64 0}
!75 = !{!"_ZTS15ImGuiInputEvent", !76, i64 0, !30, i64 4, !7, i64 8, !6, i64 20}
!76 = !{!"_ZTS19ImGuiInputEventType", !7, i64 0}
!77 = !{!7, !7, i64 0}
!78 = !{!16, !17, i64 0}
!79 = !{!16, !17, i64 4}
!80 = !{i64 0, i64 4, !81, i64 4, i64 4, !81}
!81 = !{!17, !17, i64 0}
!82 = !{!15, !17, i64 3332}
!83 = !{!15, !17, i64 3336}
!84 = !{i8 0, i8 2}
!85 = !{}
!86 = !{!15, !17, i64 3352}
!87 = !{!15, !17, i64 3348}
!88 = !{!89, !6, i64 0}
!89 = !{!"_ZTS12ImGuiKeyData", !6, i64 0, !17, i64 4, !17, i64 8, !17, i64 12}
!90 = !{!89, !17, i64 12}
!91 = !{!15, !6, i64 3356}
!92 = !{!15, !6, i64 3357}
!93 = !{!15, !6, i64 3358}
!94 = !{!15, !6, i64 3359}
!95 = !{!15, !12, i64 3440}
!96 = !{!18, !18, i64 0}
!97 = !{!15, !6, i64 14136}
!98 = distinct !{!98, !99}
!99 = !{!"llvm.loop.mustprogress"}
!100 = distinct !{!100, !99}
!101 = !{!14, !10, i64 14176}
!102 = !{!14, !6, i64 14144}


; 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.44 = type { [21 x i32] }
%struct.ImVec2 = type { float, float }
%struct.ImGuiKeyData = type { i8, float, float, float }
%struct.ImGuiInputEvent = type <{ i32, i32, %union.anon, i8, [3 x i8] }>
%union.anon = type { %struct.ImGuiInputEventKey }
%struct.ImGuiInputEventKey = type { i32, i8, float }

@GImGui = external dso_local local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.153 = external hidden unnamed_addr constant [47 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb = external hidden unnamed_addr constant [36 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [22 x i8], align 1

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN5ImGui15IsMousePosValidEPK6ImVec2(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5ImGui20GetMergedKeyModFlagsEv() local_unnamed_addr #1

; 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 #5 {
  %2 = alloca %struct.ImBitArray.44, align 4
  %3 = alloca %struct.ImVec2, align 8
  %4 = alloca %struct.ImVec2, align 8
  %5 = alloca i16, align 2
  %6 = load ptr, ptr @GImGui, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %6, i64 8
  call void @llvm.lifetime.start.p0(i64 84, ptr nonnull %2) #6
  call void @_ZN10ImBitArrayILi645ELi0EEC2Ev(ptr noundef nonnull align 4 dereferenceable(84) %2)
  %8 = getelementptr inbounds i8, ptr %6, i64 14168
  %9 = load i32, ptr %8, align 8, !tbaa !9
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %1
  %11 = getelementptr inbounds i8, ptr %6, i64 14144
  %12 = getelementptr inbounds i8, ptr %6, i64 14152
  %13 = getelementptr inbounds i8, ptr %6, i64 3456
  %14 = getelementptr inbounds i8, ptr %6, i64 3367
  %15 = getelementptr inbounds i8, ptr %6, i64 3366
  %16 = getelementptr inbounds i8, ptr %6, i64 3365
  %17 = getelementptr inbounds i8, ptr %6, i64 3364
  %18 = getelementptr inbounds i8, ptr %6, i64 3448
  %19 = getelementptr inbounds i8, ptr %6, i64 3360
  %20 = getelementptr inbounds i8, ptr %6, i64 3356
  %21 = getelementptr inbounds i8, ptr %6, i64 3348
  %22 = getelementptr inbounds i8, ptr %3, i64 4
  %23 = getelementptr inbounds i8, ptr %6, i64 3340
  %24 = getelementptr inbounds i8, ptr %6, i64 3344
  br label %25

25:                                               ; preds = %.lr.ph, %.thread167
  %.0126205 = phi i1 [ false, %.lr.ph ], [ %.4, %.thread167 ]
  %.0127204 = phi i8 [ 0, %.lr.ph ], [ %.2129, %.thread167 ]
  %.0130203 = phi i8 [ 0, %.lr.ph ], [ %.4134, %.thread167 ]
  %.0135202 = phi i8 [ 0, %.lr.ph ], [ %.2137, %.thread167 ]
  %.0138201 = phi i32 [ 0, %.lr.ph ], [ %.4142, %.thread167 ]
  %.0147198 = phi i32 [ 0, %.lr.ph ], [ %146, %.thread167 ]
  %26 = call noundef nonnull align 4 dereferenceable(21) ptr @_ZN8ImVectorI15ImGuiInputEventEixEi(ptr noundef nonnull align 8 dereferenceable(16) %8, i32 noundef %.0147198)
  %27 = load i32, ptr %26, align 4, !tbaa !72
  switch i32 %27, label %145 [
    i32 1, label %28
    i32 3, label %60
    i32 2, label %78
    i32 4, label %94
    i32 5, label %129
    i32 6, label %141
  ]

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

34:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %35 = call noundef float @_ZL13ImFloorSignedf(float noundef %.pre234)
  %36 = load float, ptr %22, align 4, !tbaa !77
  %37 = call noundef float @_ZL13ImFloorSignedf(float noundef %36)
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %4, float noundef %35, float noundef %37)
  %38 = load i64, ptr %4, align 8
  store i64 %38, ptr %3, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  %39 = trunc i64 %38 to i32
  %40 = bitcast i32 %39 to float
  br label %41

41:                                               ; preds = %34, %28
  %42 = phi float [ %40, %34 ], [ %.pre234, %28 ]
  %43 = load float, ptr %23, align 4, !tbaa !78
  %44 = fcmp une float %43, %42
  br i1 %44, label %49, label %45

45:                                               ; preds = %41
  %46 = load float, ptr %24, align 4, !tbaa !79
  %47 = load float, ptr %22, align 4, !tbaa !77
  %48 = fcmp une float %46, %47
  br i1 %48, label %49, label %59

49:                                               ; preds = %45, %41
  br i1 %0, label %50, label %57

50:                                               ; preds = %49
  %.not155 = icmp eq i32 %.0138201, 0
  br i1 %.not155, label %51, label %.thread

51:                                               ; preds = %50
  %52 = trunc nuw i8 %.0127204 to i1
  br i1 %52, label %.thread, label %53

53:                                               ; preds = %51
  %54 = trunc nuw i8 %.0130203 to i1
  br i1 %54, label %.thread, label %55

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

57:                                               ; preds = %55, %49
  %58 = load i64, ptr %3, align 8
  store i64 %58, ptr %23, align 4
  br label %59

.thread:                                          ; preds = %55, %53, %51, %50
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br label %.thread179

59:                                               ; preds = %45, %57
  %.2 = phi i1 [ true, %57 ], [ %.0126205, %45 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br label %.thread167

60:                                               ; preds = %25
  %61 = getelementptr inbounds i8, ptr %26, i64 8
  %62 = load i32, ptr %61, align 4, !tbaa !75
  %63 = icmp ult i32 %62, 5
  br i1 %63, label %65, label %64

64:                                               ; preds = %60
  call void @__assert_fail(ptr noundef nonnull @.str.153, ptr noundef nonnull @.str.4, i32 noundef 7811, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb) #7
  unreachable

65:                                               ; preds = %60
  %66 = zext nneg i32 %62 to i64
  %67 = getelementptr inbounds [5 x i8], ptr %21, i64 0, i64 %66
  %68 = load i8, ptr %67, align 1, !tbaa !80, !range !81, !noundef !82
  %69 = getelementptr inbounds i8, ptr %26, i64 12
  %70 = load i8, ptr %69, align 4, !tbaa !75, !range !81, !noundef !82
  %.not153 = icmp eq i8 %68, %70
  br i1 %.not153, label %.thread167, label %71

71:                                               ; preds = %65
  %72 = shl nuw nsw i32 1, %62
  br i1 %0, label %73, label %._crit_edge235

73:                                               ; preds = %71
  %74 = and i32 %72, %.0138201
  %.not154 = icmp eq i32 %74, 0
  br i1 %.not154, label %75, label %.thread179

75:                                               ; preds = %73
  %76 = trunc nuw i8 %.0127204 to i1
  br i1 %76, label %.thread179, label %._crit_edge235

._crit_edge235:                                   ; preds = %71, %75
  store i8 %70, ptr %67, align 1, !tbaa !80
  %77 = or i32 %72, %.0138201
  br label %.thread167

78:                                               ; preds = %25
  %79 = getelementptr inbounds i8, ptr %26, i64 8
  %80 = load float, ptr %79, align 4, !tbaa !75
  %81 = fcmp une float %80, 0.000000e+00
  %82 = getelementptr inbounds i8, ptr %26, i64 12
  %83 = load float, ptr %82, align 4
  %84 = fcmp une float %83, 0.000000e+00
  %or.cond158 = select i1 %81, i1 true, i1 %84
  br i1 %or.cond158, label %85, label %.thread167

85:                                               ; preds = %78
  %86 = trunc nuw i8 %.0127204 to i1
  %87 = icmp ne i32 %.0138201, 0
  %or.cond = select i1 %86, i1 true, i1 %87
  %or.cond160 = select i1 %0, i1 %or.cond, i1 false
  br i1 %or.cond160, label %.thread179, label %88

88:                                               ; preds = %85
  %89 = load float, ptr %19, align 8, !tbaa !83
  %90 = fadd float %80, %89
  store float %90, ptr %19, align 8, !tbaa !83
  %91 = load float, ptr %82, align 4, !tbaa !75
  %92 = load float, ptr %20, align 4, !tbaa !84
  %93 = fadd float %91, %92
  store float %93, ptr %20, align 4, !tbaa !84
  br label %.thread167

94:                                               ; preds = %25
  %95 = getelementptr inbounds i8, ptr %26, i64 8
  %96 = load i32, ptr %95, align 4, !tbaa !75
  %.not = icmp eq i32 %96, 0
  br i1 %.not, label %97, label %98

97:                                               ; preds = %94
  call void @__assert_fail(ptr noundef nonnull @.str.154, ptr noundef nonnull @.str.4, i32 noundef 7836, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb) #7
  unreachable

98:                                               ; preds = %94
  %99 = sext i32 %96 to i64
  %100 = getelementptr inbounds [645 x %struct.ImGuiKeyData], ptr %13, i64 0, i64 %99
  %101 = load i8, ptr %100, align 4, !tbaa !85, !range !81, !noundef !82
  %102 = getelementptr inbounds i8, ptr %26, i64 12
  %103 = load i8, ptr %102, align 4, !tbaa !75, !range !81, !noundef !82
  %.not151 = icmp eq i8 %101, %103
  br i1 %.not151, label %104, label %.thread171

104:                                              ; preds = %98
  %105 = getelementptr inbounds i8, ptr %100, i64 12
  %106 = load float, ptr %105, align 4, !tbaa !87
  %107 = getelementptr inbounds i8, ptr %26, i64 16
  %108 = load float, ptr %107, align 4, !tbaa !75
  %109 = fcmp une float %106, %108
  br i1 %109, label %115, label %.thread167

.thread171:                                       ; preds = %98
  br i1 %0, label %110, label %115

110:                                              ; preds = %.thread171
  %111 = call noundef zeroext i1 @_ZNK10ImBitArrayILi645ELi0EE7TestBitEi(ptr noundef nonnull align 4 dereferenceable(84) %2, i32 noundef %96)
  %112 = trunc nuw i8 %.0135202 to i1
  %113 = icmp ne i32 %.0138201, 0
  %114 = select i1 %111, i1 true, i1 %112
  %or.cond162 = select i1 %114, i1 true, i1 %113
  br i1 %or.cond162, label %.thread179, label %._crit_edge233

._crit_edge233:                                   ; preds = %110
  %.pre = load i8, ptr %102, align 4, !tbaa !75, !range !81
  br label %115

115:                                              ; preds = %._crit_edge233, %104, %.thread171
  %116 = phi i8 [ %.pre, %._crit_edge233 ], [ %101, %104 ], [ %103, %.thread171 ]
  store i8 %116, ptr %100, align 4, !tbaa !85
  %117 = getelementptr inbounds i8, ptr %26, i64 16
  %118 = load float, ptr %117, align 4, !tbaa !75
  %119 = getelementptr inbounds i8, ptr %100, i64 12
  store float %118, ptr %119, align 4, !tbaa !87
  call void @_ZN10ImBitArrayILi645ELi0EE6SetBitEi(ptr noundef nonnull align 4 dereferenceable(84) %2, i32 noundef %96)
  %120 = add i32 %96, -641
  %or.cond11 = icmp ult i32 %120, 4
  br i1 %or.cond11, label %121, label %.thread167

121:                                              ; preds = %115
  %122 = load i8, ptr %100, align 4, !tbaa !85, !range !81, !noundef !82
  switch i32 %96, label %default.unreachable [
    i32 641, label %123
    i32 642, label %124
    i32 643, label %125
    i32 644, label %126
  ]

123:                                              ; preds = %121
  store i8 %122, ptr %17, align 4, !tbaa !88
  br label %127

124:                                              ; preds = %121
  store i8 %122, ptr %16, align 1, !tbaa !89
  br label %127

125:                                              ; preds = %121
  store i8 %122, ptr %15, align 2, !tbaa !90
  br label %127

126:                                              ; preds = %121
  store i8 %122, ptr %14, align 1, !tbaa !91
  br label %127

default.unreachable:                              ; preds = %121
  unreachable

127:                                              ; preds = %125, %124, %123, %126
  %128 = call noundef i32 @_ZN5ImGui20GetMergedKeyModFlagsEv()
  store i32 %128, ptr %18, align 8, !tbaa !92
  br label %.thread167

129:                                              ; preds = %25
  br i1 %0, label %130, label %135

130:                                              ; preds = %129
  %131 = trunc nuw i8 %.0130203 to i1
  %132 = icmp ne i32 %.0138201, 0
  %or.cond13 = select i1 %131, i1 true, i1 %132
  %brmerge = select i1 %or.cond13, i1 true, i1 %.0126205
  br i1 %brmerge, label %.thread179, label %133

133:                                              ; preds = %130
  %134 = trunc nuw i8 %.0127204 to i1
  br i1 %134, label %.thread179, label %135

135:                                              ; preds = %133, %129
  %136 = getelementptr inbounds i8, ptr %26, i64 8
  %137 = load i32, ptr %136, align 4, !tbaa !75
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %5) #6
  %138 = icmp ult i32 %137, 65536
  %139 = trunc i32 %137 to i16
  %140 = select i1 %138, i16 %139, i16 -3
  store i16 %140, ptr %5, align 2, !tbaa !93
  call void @_ZN8ImVectorItE9push_backERKt(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 2 dereferenceable(2) %5)
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %5) #6
  br label %.thread167

141:                                              ; preds = %25
  %142 = getelementptr inbounds i8, ptr %26, i64 8
  %143 = load i8, ptr %142, align 4, !tbaa !75, !range !81, !noundef !82
  %144 = xor i8 %143, 1
  store i8 %144, ptr %11, align 8, !tbaa !94
  br label %.thread167

145:                                              ; preds = %25
  call void @__assert_fail(ptr noundef nonnull @.str.155, ptr noundef nonnull @.str.4, i32 noundef 7876, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb) #7
  unreachable

.thread167:                                       ; preds = %104, %115, %127, %65, %._crit_edge235, %59, %78, %141, %135, %88
  %.4142 = phi i32 [ %.0138201, %59 ], [ %.0138201, %88 ], [ %.0138201, %135 ], [ %.0138201, %141 ], [ %.0138201, %78 ], [ %.0138201, %65 ], [ %77, %._crit_edge235 ], [ %.0138201, %127 ], [ %.0138201, %115 ], [ %.0138201, %104 ]
  %.2137 = phi i8 [ %.0135202, %59 ], [ %.0135202, %88 ], [ 1, %135 ], [ %.0135202, %141 ], [ %.0135202, %78 ], [ %.0135202, %65 ], [ %.0135202, %._crit_edge235 ], [ %.0135202, %127 ], [ %.0135202, %115 ], [ %.0135202, %104 ]
  %.4134 = phi i8 [ %.0130203, %59 ], [ %.0130203, %88 ], [ %.0130203, %135 ], [ %.0130203, %141 ], [ %.0130203, %78 ], [ %.0130203, %65 ], [ %.0130203, %._crit_edge235 ], [ 1, %127 ], [ 1, %115 ], [ %.0130203, %104 ]
  %.2129 = phi i8 [ %.0127204, %59 ], [ 1, %88 ], [ %.0127204, %135 ], [ %.0127204, %141 ], [ %.0127204, %78 ], [ %.0127204, %65 ], [ %.0127204, %._crit_edge235 ], [ %.0127204, %127 ], [ %.0127204, %115 ], [ %.0127204, %104 ]
  %.4 = phi i1 [ %.2, %59 ], [ %.0126205, %88 ], [ %.0126205, %135 ], [ %.0126205, %141 ], [ %.0126205, %78 ], [ %.0126205, %65 ], [ %.0126205, %._crit_edge235 ], [ %.0126205, %127 ], [ %.0126205, %115 ], [ %.0126205, %104 ]
  %146 = add nuw nsw i32 %.0147198, 1
  %147 = load i32, ptr %8, align 8, !tbaa !9
  %148 = icmp slt i32 %146, %147
  br i1 %148, label %25, label %.lr.ph226, !llvm.loop !95

.thread179:                                       ; preds = %85, %133, %75, %73, %110, %130, %.thread
  %.not227 = icmp eq i32 %.0147198, 0
  br i1 %.not227, label %._crit_edge, label %.lr.ph226

.lr.ph226:                                        ; preds = %.thread167, %.thread179
  %.0147197243 = phi i32 [ %.0147198, %.thread179 ], [ %146, %.thread167 ]
  %149 = getelementptr inbounds i8, ptr %6, i64 14184
  br label %152

._crit_edge:                                      ; preds = %152, %1, %.thread179
  %.0147197239 = phi i32 [ 0, %.thread179 ], [ 0, %1 ], [ %.0147197243, %152 ]
  %150 = load i32, ptr %8, align 8, !tbaa !9
  %151 = icmp eq i32 %.0147197239, %150
  br i1 %151, label %155, label %156

152:                                              ; preds = %.lr.ph226, %152
  %.0225 = phi i32 [ 0, %.lr.ph226 ], [ %154, %152 ]
  %153 = call noundef nonnull align 4 dereferenceable(21) ptr @_ZN8ImVectorI15ImGuiInputEventEixEi(ptr noundef nonnull align 8 dereferenceable(16) %8, i32 noundef %.0225)
  call void @_ZN8ImVectorI15ImGuiInputEventE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %149, ptr noundef nonnull align 4 dereferenceable(21) %153)
  %154 = add nuw nsw i32 %.0225, 1
  %exitcond.not = icmp eq i32 %154, %.0147197243
  br i1 %exitcond.not, label %._crit_edge, label %152, !llvm.loop !97

155:                                              ; preds = %._crit_edge
  call void @_ZN8ImVectorI15ImGuiInputEventE6resizeEi(ptr noundef nonnull align 8 dereferenceable(16) %8, i32 noundef 0)
  br label %162

156:                                              ; preds = %._crit_edge
  %157 = getelementptr inbounds i8, ptr %6, i64 14176
  %158 = load ptr, ptr %157, align 8, !tbaa !98
  %159 = zext nneg i32 %.0147197239 to i64
  %160 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %158, i64 %159
  %161 = call noundef ptr @_ZN8ImVectorI15ImGuiInputEventE5eraseEPKS0_S3_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef %158, ptr noundef %160)
  br label %162

162:                                              ; preds = %156, %155
  %163 = getelementptr inbounds i8, ptr %6, i64 14144
  %164 = load i8, ptr %163, align 8, !tbaa !99, !range !81, !noundef !82
  %165 = trunc nuw i8 %164 to i1
  br i1 %165, label %166, label %167

166:                                              ; preds = %162
  call void @_ZN7ImGuiIO14ClearInputKeysEv(ptr noundef nonnull align 8 dereferenceable(14160) %7)
  store i8 0, ptr %163, align 8, !tbaa !99
  br label %167

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL13ImFloorSignedf(float noundef) local_unnamed_addr #4

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

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

; 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 #4 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 = { 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 #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 = { 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 14168}
!10 = !{!"_ZTS12ImGuiContext", !11, i64 0, !11, i64 1, !12, i64 8, !18, i64 14168, !18, i64 14184, !19, i64 14200, !6, i64 15248, !15, i64 15256, !15, i64 15260, !20, i64 15264, !22, i64 15776, !13, i64 15784, !13, i64 15788, !13, i64 15792, !11, i64 15796, !11, i64 15797, !11, i64 15798, !11, i64 15799, !11, i64 15800, !6, i64 15808, !23, i64 15816, !23, i64 15832, !23, i64 15848, !24, i64 15864, !25, i64 15880, !13, i64 15896, !14, i64 15900, !6, i64 15912, !6, i64 15920, !6, i64 15928, !6, i64 15936, !6, i64 15944, !14, i64 15952, !15, i64 15960, !13, i64 15964, !13, i64 15968, !13, i64 15972, !11, i64 15976, !11, i64 15977, !11, i64 15978, !11, i64 15979, !15, i64 15980, !15, i64 15984, !13, i64 15988, !13, i64 15992, !15, i64 15996, !11, i64 16000, !11, i64 16001, !11, i64 16002, !11, i64 16003, !11, i64 16004, !11, i64 16005, !11, i64 16006, !13, i64 16008, !13, i64 16012, !27, i64 16016, !14, i64 16036, !6, i64 16048, !28, i64 16056, !13, i64 16060, !13, i64 16064, !11, i64 16068, !11, i64 16069, !6, i64 16072, !13, i64 16080, !15, i64 16084, !13, i64 16088, !29, i64 16092, !30, i64 16112, !32, i64 16176, !33, i64 16288, !34, i64 16304, !35, i64 16320, !36, i64 16336, !37, i64 16352, !38, i64 16368, !39, i64 16384, !39, i64 16400, !13, i64 16416, !40, i64 16424, !6, i64 16440, !13, i64 16448, !13, i64 16452, !13, i64 16456, !13, i64 16460, !13, i64 16464, !13, i64 16468, !13, i64 16472, !13, i64 16476, !13, i64 16480, !13, i64 16484, !13, i64 16488, !13, i64 16492, !28, i64 16496, !41, i64 16500, !11, i64 16504, !11, i64 16505, !11, i64 16506, !11, i64 16507, !11, i64 16508, !11, i64 16509, !11, i64 16510, !13, i64 16512, !31, i64 16516, !11, i64 16532, !11, i64 16533, !11, i64 16534, !13, i64 16536, !13, i64 16540, !13, i64 16544, !13, i64 16548, !13, i64 16552, !13, i64 16556, !31, i64 16560, !31, i64 16576, !13, i64 16592, !13, i64 16596, !13, i64 16600, !42, i64 16608, !42, i64 16656, !42, i64 16704, !42, i64 16752, !6, i64 16800, !6, i64 16808, !6, i64 16816, !15, i64 16824, !15, i64 16828, !11, i64 16832, !15, i64 16836, !13, i64 16840, !11, i64 16844, !11, i64 16845, !11, i64 16846, !13, i64 16848, !13, i64 16852, !13, i64 16856, !43, i64 16864, !31, i64 16928, !13, i64 16944, !13, i64 16948, !15, i64 16952, !13, i64 16956, !13, i64 16960, !13, i64 16964, !13, i64 16968, !44, i64 16976, !7, i64 16992, !13, i64 17008, !45, i64 17016, !6, i64 17032, !13, i64 17040, !46, i64 17048, !47, i64 17064, !49, i64 17104, !50, i64 17120, !6, i64 17136, !51, i64 17144, !53, i64 17184, !54, i64 17200, !14, i64 17216, !55, i64 17224, !59, i64 20944, !13, i64 21056, !13, i64 21060, !15, i64 21064, !15, i64 21068, !13, i64 21072, !21, i64 21076, !61, i64 21092, !15, i64 21140, !11, i64 21144, !11, i64 21145, !15, i64 21148, !15, i64 21152, !15, i64 21156, !15, i64 21160, !16, i64 21164, !16, i64 21166, !15, i64 21168, !56, i64 21176, !36, i64 21192, !62, i64 21208, !62, i64 21224, !7, i64 21240, !11, i64 21241, !15, i64 21244, !63, i64 21248, !64, i64 21264, !65, i64 21280, !66, i64 21296, !67, i64 21312, !13, i64 21328, !11, i64 21332, !68, i64 21336, !6, i64 21344, !63, i64 21352, !6, i64 21368, !6, i64 21376, !15, i64 21384, !11, i64 21388, !13, i64 21392, !13, i64 21396, !13, i64 21400, !11, i64 21404, !13, i64 21408, !69, i64 21412, !70, i64 21432, !7, i64 21464, !13, i64 21944, !13, i64 21948, !15, i64 21952, !13, i64 21956, !13, i64 21960, !13, i64 21964, !7, i64 21968}
!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, !6, i64 64, !6, i64 72, !15, i64 80, !11, i64 84, !6, i64 88, !14, i64 96, !11, i64 104, !11, i64 105, !11, i64 106, !11, i64 107, !11, i64 108, !11, i64 109, !11, i64 110, !15, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !11, i64 200, !11, i64 201, !11, i64 202, !11, i64 203, !11, i64 204, !11, i64 205, !11, i64 206, !15, i64 208, !13, i64 212, !13, i64 216, !13, i64 220, !13, i64 224, !13, i64 228, !14, i64 232, !7, i64 240, !7, i64 2820, !14, i64 3332, !7, i64 3340, !15, i64 3348, !15, i64 3352, !11, i64 3356, !11, i64 3357, !11, i64 3358, !11, i64 3359, !7, i64 3360, !13, i64 3440, !13, i64 3444, !7, i64 3448, !11, i64 13768, !14, i64 13772, !7, i64 13780, !7, i64 13824, !7, i64 13864, !7, i64 13869, !7, i64 13874, !7, i64 13884, !7, i64 13894, !7, i64 13899, !7, i64 13904, !7, i64 13912, !7, i64 13932, !7, i64 13952, !7, i64 13972, !7, i64 14052, !15, i64 14132, !11, i64 14136, !7, i64 14137, !11, i64 14138, !16, i64 14140, !17, i64 14144}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTS6ImVec2", !15, i64 0, !15, i64 4}
!15 = !{!"float", !7, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = !{!"_ZTS8ImVectorItE", !13, i64 0, !13, i64 4, !6, i64 8}
!18 = !{!"_ZTS8ImVectorI15ImGuiInputEventE", !13, i64 0, !13, i64 4, !6, i64 8}
!19 = !{!"_ZTS10ImGuiStyle", !15, i64 0, !15, i64 4, !14, i64 8, !15, i64 16, !15, i64 20, !14, i64 24, !14, i64 32, !13, i64 40, !15, i64 44, !15, i64 48, !15, i64 52, !15, i64 56, !14, i64 60, !15, i64 68, !15, i64 72, !14, i64 76, !14, i64 84, !14, i64 92, !14, i64 100, !15, i64 108, !15, i64 112, !15, i64 116, !15, i64 120, !15, i64 124, !15, i64 128, !15, i64 132, !15, i64 136, !15, i64 140, !15, i64 144, !13, i64 148, !14, i64 152, !14, i64 160, !14, i64 168, !14, i64 176, !15, i64 184, !11, i64 188, !11, i64 189, !11, i64 190, !15, i64 192, !15, i64 196, !7, i64 200}
!20 = !{!"_ZTS20ImDrawListSharedData", !14, i64 0, !6, i64 8, !15, i64 16, !15, i64 20, !15, i64 24, !21, i64 28, !13, i64 44, !7, i64 48, !15, i64 432, !7, i64 436, !6, i64 504}
!21 = !{!"_ZTS6ImVec4", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!22 = !{!"double", !7, i64 0}
!23 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !13, i64 0, !13, i64 4, !6, i64 8}
!24 = !{!"_ZTS8ImVectorI20ImGuiWindowStackDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!25 = !{!"_ZTS12ImGuiStorage", !26, i64 0}
!26 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !13, i64 0, !13, i64 4, !6, i64 8}
!27 = !{!"_ZTS10ImBitArrayILi133ELin512EE", !7, i64 0}
!28 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!29 = !{!"_ZTS17ImGuiNextItemData", !13, i64 0, !15, i64 4, !13, i64 8, !13, i64 12, !11, i64 16}
!30 = !{!"_ZTS17ImGuiLastItemData", !13, i64 0, !13, i64 4, !13, i64 8, !31, i64 12, !31, i64 28, !31, i64 44}
!31 = !{!"_ZTS6ImRect", !14, i64 0, !14, i64 8}
!32 = !{!"_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, !31, i64 60, !6, i64 80, !6, i64 88, !15, i64 96, !14, i64 100}
!33 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !13, i64 0, !13, i64 4, !6, i64 8}
!34 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !13, i64 0, !13, i64 4, !6, i64 8}
!35 = !{!"_ZTS8ImVectorIP6ImFontE", !13, i64 0, !13, i64 4, !6, i64 8}
!36 = !{!"_ZTS8ImVectorIjE", !13, i64 0, !13, i64 4, !6, i64 8}
!37 = !{!"_ZTS8ImVectorIiE", !13, i64 0, !13, i64 4, !6, i64 8}
!38 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!39 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!40 = !{!"_ZTS8ImVectorIP14ImGuiViewportPE", !13, i64 0, !13, i64 4, !6, i64 8}
!41 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!42 = !{!"_ZTS16ImGuiNavItemData", !6, i64 0, !13, i64 8, !13, i64 12, !31, i64 16, !13, i64 32, !15, i64 36, !15, i64 40, !15, i64 44}
!43 = !{!"_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}
!44 = !{!"_ZTS8ImVectorIhE", !13, i64 0, !13, i64 4, !6, i64 8}
!45 = !{!"_ZTS8ImVectorI20ImGuiListClipperDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!46 = !{!"_ZTS8ImVectorI18ImGuiTableTempDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!47 = !{!"_ZTS6ImPoolI10ImGuiTableE", !48, i64 0, !25, i64 16, !13, i64 32, !13, i64 36}
!48 = !{!"_ZTS8ImVectorI10ImGuiTableE", !13, i64 0, !13, i64 4, !6, i64 8}
!49 = !{!"_ZTS8ImVectorIfE", !13, i64 0, !13, i64 4, !6, i64 8}
!50 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !13, i64 0, !13, i64 4, !6, i64 8}
!51 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !52, i64 0, !25, i64 16, !13, i64 32, !13, i64 36}
!52 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !13, i64 0, !13, i64 4, !6, i64 8}
!53 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !13, i64 0, !13, i64 4, !6, i64 8}
!54 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !13, i64 0, !13, i64 4, !6, i64 8}
!55 = !{!"_ZTS19ImGuiInputTextState", !13, i64 0, !13, i64 4, !13, i64 8, !17, i64 16, !56, i64 32, !56, i64 48, !11, i64 64, !13, i64 68, !15, i64 72, !57, i64 76, !15, i64 3704, !11, i64 3708, !11, i64 3709, !11, i64 3710, !13, i64 3712}
!56 = !{!"_ZTS8ImVectorIcE", !13, i64 0, !13, i64 4, !6, i64 8}
!57 = !{!"_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, !58, i64 32}
!58 = !{!"_ZTSN5ImStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !16, i64 3582, !16, i64 3584, !13, i64 3588, !13, i64 3592}
!59 = !{!"_ZTS6ImFont", !49, i64 0, !15, i64 16, !15, i64 20, !17, i64 24, !60, i64 40, !6, i64 56, !6, i64 64, !6, i64 72, !16, i64 80, !16, i64 82, !16, i64 84, !16, i64 86, !11, i64 88, !15, i64 92, !15, i64 96, !15, i64 100, !13, i64 104, !7, i64 108}
!60 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !13, i64 0, !13, i64 4, !6, i64 8}
!61 = !{!"_ZTS21ImGuiComboPreviewData", !31, i64 0, !14, i64 16, !14, i64 24, !14, i64 32, !15, i64 40, !13, i64 44}
!62 = !{!"_ZTS20ImGuiPlatformImeData", !11, i64 0, !14, i64 4, !15, i64 12}
!63 = !{!"_ZTS15ImGuiTextBuffer", !56, i64 0}
!64 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !13, i64 0, !13, i64 4, !6, i64 8}
!65 = !{!"_ZTS13ImChunkStreamI19ImGuiWindowSettingsE", !56, i64 0}
!66 = !{!"_ZTS13ImChunkStreamI18ImGuiTableSettingsE", !56, i64 0}
!67 = !{!"_ZTS8ImVectorI16ImGuiContextHookE", !13, i64 0, !13, i64 4, !6, i64 8}
!68 = !{!"_ZTS12ImGuiLogType", !7, i64 0}
!69 = !{!"_ZTS18ImGuiMetricsConfig", !11, i64 0, !11, i64 1, !11, i64 2, !11, i64 3, !11, i64 4, !11, i64 5, !13, i64 8, !13, i64 12}
!70 = !{!"_ZTS14ImGuiStackTool", !13, i64 0, !13, i64 4, !13, i64 8, !71, i64 16}
!71 = !{!"_ZTS8ImVectorI19ImGuiStackLevelInfoE", !13, i64 0, !13, i64 4, !6, i64 8}
!72 = !{!73, !74, i64 0}
!73 = !{!"_ZTS15ImGuiInputEvent", !74, i64 0, !28, i64 4, !7, i64 8, !11, i64 20}
!74 = !{!"_ZTS19ImGuiInputEventType", !7, i64 0}
!75 = !{!7, !7, i64 0}
!76 = !{!14, !15, i64 0}
!77 = !{!14, !15, i64 4}
!78 = !{!12, !15, i64 3332}
!79 = !{!12, !15, i64 3336}
!80 = !{!11, !11, i64 0}
!81 = !{i8 0, i8 2}
!82 = !{}
!83 = !{!12, !15, i64 3352}
!84 = !{!12, !15, i64 3348}
!85 = !{!86, !11, i64 0}
!86 = !{!"_ZTS12ImGuiKeyData", !11, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!87 = !{!86, !15, i64 12}
!88 = !{!12, !11, i64 3356}
!89 = !{!12, !11, i64 3357}
!90 = !{!12, !11, i64 3358}
!91 = !{!12, !11, i64 3359}
!92 = !{!12, !13, i64 3440}
!93 = !{!16, !16, i64 0}
!94 = !{!12, !11, i64 14136}
!95 = distinct !{!95, !96}
!96 = !{!"llvm.loop.mustprogress"}
!97 = distinct !{!97, !96}
!98 = !{!10, !6, i64 14176}
!99 = !{!10, !11, i64 14144}


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