; LLVM IR from xhub/reshop :: gui/external/imgui/imgui.ll (ZN5ImGui17UpdateInputEventsEb)

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

%struct.ImBitArray.52 = type { [5 x i32] }
%struct.ImVec2 = type { float, float }
%struct.ImGuiContext = type { i8, i8, %struct.ImGuiIO, %struct.ImGuiPlatformIO, %struct.ImGuiStyle, ptr, float, float, float, float, %struct.ImDrawListSharedData, double, i32, i32, i32, i32, i8, i8, i8, i8, ptr, [16 x i8], %struct.ImVector.1, %struct.ImVector.1, i32, i32, %struct.ImVector.2, %struct.ImVector.2, %struct.ImVector.2, %struct.ImVector.3, %struct.ImGuiStorage, i32, %struct.ImVec2, i32, ptr, ptr, ptr, ptr, ptr, ptr, %struct.ImVec2, i32, i32, float, %struct.ImVec2, %struct.ImVec2, i32, i32, i32, i32, i32, float, float, i8, i8, i8, i32, i32, float, i8, i8, i8, i8, i8, i8, i8, i8, %struct.ImVec2, ptr, i32, i32, %struct.ImGuiDeactivatedItemData, %struct.ImGuiDataTypeStorage, i32, float, double, double, double, %struct.ImBitArray, [154 x %struct.ImGuiKeyOwnerData], %struct.ImGuiKeyRoutingTable, i32, i8, i32, i32, i32, i32, %struct.ImGuiNextItemData, %struct.ImGuiLastItemData, %struct.ImGuiNextWindowData, i8, i32, %struct.ImVector.6, %struct.ImVector.7, %struct.ImVector.8, %struct.ImVector.9, %struct.ImVector.10, %struct.ImVector.11, %struct.ImVector.12, %struct.ImVector.12, %struct.ImVector.13, %struct.ImVector.14, i8, i8, i8, i8, i32, ptr, i32, i32, i32, i32, i32, i32, %struct.ImVector.9, i32, float, i32, i32, i32, i64, i8, i8, i8, i8, %struct.ImGuiNavItemData, i8, i8, i8, i32, i32, i32, i32, i32, i32, %struct.ImRect, %struct.ImRect, i32, i32, i32, %struct.ImGuiNavItemData, %struct.ImGuiNavItemData, %struct.ImGuiNavItemData, %struct.ImGuiNavItemData, i32, i32, i32, i32, i8, i8, i32, i32, ptr, ptr, ptr, float, float, i8, i32, %struct.ImVec2, %struct.ImVec2, float, i8, i8, i8, i32, i32, i32, [4 x i8], %struct.ImGuiPayload, %struct.ImRect, %struct.ImRect, i32, i32, float, i32, i32, i32, i32, %struct.ImVector.15, [16 x i8], i32, %struct.ImVector.16, ptr, i32, i32, %struct.ImVector.17, %struct.ImPool, %struct.ImVector.19, %struct.ImVector.20, ptr, %struct.ImPool.21, %struct.ImVector.23, %struct.ImVector.24, %struct.ImGuiBoxSelectState, ptr, i32, %struct.ImVector.25, %struct.ImPool.26, i32, i32, float, float, i32, i32, i32, float, %struct.ImVec2, %struct.ImGuiInputTextState, %struct.ImGuiInputTextDeactivatedState, %struct.ImFont, i32, %struct.ImGuiDataTypeStorage, i32, i32, i32, i32, i32, float, float, i32, %struct.ImVec4, %struct.ImGuiComboPreviewData, %struct.ImRect, i8, i16, float, float, float, i8, i8, float, float, float, i16, i16, ptr, %struct.ImVector.28, %struct.ImVector.30, %struct.ImGuiTypingSelectState, %struct.ImGuiPlatformImeData, %struct.ImGuiPlatformImeData, i8, float, %struct.ImGuiTextBuffer, %struct.ImVector.31, %struct.ImChunkStream, %struct.ImChunkStream.32, %struct.ImVector.33, i32, [10 x ptr], i8, i32, ptr, ptr, %struct.ImGuiTextBuffer, ptr, ptr, float, i8, i32, i32, i32, ptr, ptr, %struct.ImVec2, i8, i32, %struct.ImGuiErrorRecoveryState, ptr, i32, i32, %struct.ImGuiTextBuffer, %struct.ImGuiTextIndex, i32, i32, i8, i8, i8, i32, i8, i8, i8, i32, float, %struct.ImVec4, %struct.ImGuiMetricsConfig, %struct.ImGuiIDStackTool, %struct.ImGuiDebugAllocInfo, [60 x float], i32, i32, float, i32, i32, i32, %struct.ImVector.28, [64 x i8] }
%struct.ImGuiIO = type { i32, i32, %struct.ImVec2, float, float, ptr, ptr, ptr, ptr, float, i8, ptr, %struct.ImVec2, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, float, float, float, float, float, float, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, i32, %struct.ImVec2, ptr, %struct.ImVec2, [5 x i8], float, float, i32, i8, i8, i8, i8, i32, [154 x %struct.ImGuiKeyData], i8, %struct.ImVec2, [5 x %struct.ImVec2], [5 x double], [5 x i8], [5 x i8], [5 x i16], [5 x i16], [5 x i8], [5 x i8], [5 x i8], i8, i8, [5 x float], [5 x float], [5 x float], float, i8, i8, i16, %struct.ImVector, ptr, ptr, ptr }
%struct.ImGuiKeyData = type { i8, float, float, float }
%struct.ImVector = type { i32, i32, ptr }
%struct.ImGuiPlatformIO = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, i16, ptr }
%struct.ImGuiStyle = type { float, float, %struct.ImVec2, float, float, %struct.ImVec2, %struct.ImVec2, i32, float, float, float, float, %struct.ImVec2, float, float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, float, float, float, float, float, float, float, float, float, float, float, %struct.ImVec2, i32, %struct.ImVec2, %struct.ImVec2, float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, i8, i8, i8, float, float, [56 x %struct.ImVec4], float, float, float, i32, i32 }
%struct.ImDrawListSharedData = type <{ %struct.ImVec2, ptr, ptr, float, float, float, float, %struct.ImVec4, i32, [4 x i8], %struct.ImVector.0, [48 x %struct.ImVec2], float, [64 x i8], [4 x i8] }>
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImVector.1 = type { i32, i32, ptr }
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImVector.3 = type { i32, i32, ptr }
%struct.ImGuiStorage = type { %struct.ImVector.4 }
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImGuiDeactivatedItemData = type { i32, i32, i8, i8 }
%struct.ImBitArray = type { [5 x i32] }
%struct.ImGuiKeyOwnerData = type <{ i32, i32, i8, i8, [2 x i8] }>
%struct.ImGuiKeyRoutingTable = type { [154 x i16], %struct.ImVector.5, %struct.ImVector.5 }
%struct.ImVector.5 = type { i32, i32, ptr }
%struct.ImGuiNextItemData = type <{ i32, i32, i32, [4 x i8], i64, float, i32, i32, i8, i8, %struct.ImGuiDataTypeStorage, [2 x i8], i32, [4 x i8] }>
%struct.ImGuiLastItemData = type { i32, i32, i32, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, i32 }
%struct.ImGuiNextWindowData = type { i32, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i32, i8, %struct.ImRect, ptr, ptr, float, %struct.ImVec2, i32 }
%struct.ImVector.6 = type { i32, i32, ptr }
%struct.ImVector.7 = type { i32, i32, ptr }
%struct.ImVector.8 = type { i32, i32, ptr }
%struct.ImVector.10 = type { i32, i32, ptr }
%struct.ImVector.11 = type { i32, i32, ptr }
%struct.ImVector.12 = type { i32, i32, ptr }
%struct.ImVector.13 = type { i32, i32, ptr }
%struct.ImVector.14 = type { i32, i32, ptr }
%struct.ImVector.9 = type { i32, i32, ptr }
%struct.ImGuiNavItemData = type { ptr, i32, i32, %struct.ImRect, i32, float, float, float, i64 }
%struct.ImGuiPayload = type <{ ptr, i32, i32, i32, i32, [33 x i8], i8, i8, [5 x i8] }>
%struct.ImVector.15 = type { i32, i32, ptr }
%struct.ImVector.16 = type { i32, i32, ptr }
%struct.ImVector.17 = type { i32, i32, ptr }
%struct.ImPool = type { %struct.ImVector.18, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.18 = type { i32, i32, ptr }
%struct.ImVector.19 = type { i32, i32, ptr }
%struct.ImVector.20 = type { i32, i32, ptr }
%struct.ImPool.21 = type { %struct.ImVector.22, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.22 = type { i32, i32, ptr }
%struct.ImVector.23 = type { i32, i32, ptr }
%struct.ImVector.24 = type { i32, i32, ptr }
%struct.ImGuiBoxSelectState = type <{ i32, i8, i8, i8, i8, i8, i16, i8, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, [4 x i8], ptr, i8, [3 x i8], %struct.ImRect, %struct.ImRect, %struct.ImRect, [4 x i8] }>
%struct.ImVector.25 = type { i32, i32, ptr }
%struct.ImPool.26 = type { %struct.ImVector.27, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.27 = type { i32, i32, ptr }
%struct.ImGuiInputTextState = type <{ ptr, ptr, i32, i32, i32, [4 x i8], ptr, %struct.ImVector.28, %struct.ImVector.28, %struct.ImVector.28, i32, %struct.ImVec2, float, i8, i8, i8, i8, i32, i32, [4 x i8] }>
%struct.ImGuiInputTextDeactivatedState = type { i32, %struct.ImVector.28 }
%struct.ImFont = type <{ %struct.ImVector.19, float, float, %struct.ImVector, %struct.ImVector.29, ptr, ptr, ptr, i16, i16, i16, i16, float, float, i8, [3 x i8], float, float, float, i32, [2 x i8], [2 x i8] }>
%struct.ImVector.29 = type { i32, i32, ptr }
%struct.ImGuiDataTypeStorage = type { [8 x i8] }
%struct.ImGuiComboPreviewData = type { %struct.ImRect, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, i32 }
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImVector.30 = type { i32, i32, ptr }
%struct.ImGuiTypingSelectState = type <{ %struct.ImGuiTypingSelectRequest, [64 x i8], i32, i32, float, i8, [3 x i8] }>
%struct.ImGuiTypingSelectRequest = type { i32, i32, ptr, i8, i8, i8 }
%struct.ImGuiPlatformImeData = type { i8, %struct.ImVec2, float }
%struct.ImVector.31 = type { i32, i32, ptr }
%struct.ImChunkStream = type { %struct.ImVector.28 }
%struct.ImChunkStream.32 = type { %struct.ImVector.28 }
%struct.ImVector.33 = type { i32, i32, ptr }
%struct.ImGuiErrorRecoveryState = type { i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16 }
%struct.ImGuiTextBuffer = type { %struct.ImVector.28 }
%struct.ImGuiTextIndex = type <{ %struct.ImVector.10, i32, [4 x i8] }>
%struct.ImVec4 = type { float, float, float, float }
%struct.ImGuiMetricsConfig = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i32, i32, i32 }
%struct.ImGuiIDStackTool = type { i32, i32, i32, %struct.ImVector.34, i8, float }
%struct.ImVector.34 = type { i32, i32, ptr }
%struct.ImGuiDebugAllocInfo = type { i32, i32, i16, [6 x %struct.ImGuiDebugAllocEntry] }
%struct.ImGuiDebugAllocEntry = type { i32, i16, i16 }
%struct.ImVector.28 = type { i32, i32, ptr }
%struct.ImGuiInputEvent = type <{ i32, i32, i32, %union.anon, i8, [3 x i8] }>
%union.anon = type { %struct.ImGuiInputEventMousePos }
%struct.ImGuiInputEventMousePos = type { float, float, i32 }
%struct.ImGuiInputEventMouseButton = type { i32, i8, i32 }
%struct.ImGuiInputEventMouseWheel = type { float, float, i32 }
%struct.ImGuiInputEventKey = type { i32, i8, float }
%struct.ImGuiInputEventText = type { i32 }
%struct.ImGuiInputEventAppFocused = type { i8 }

@GImGui = external dso_local global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.212 = external hidden unnamed_addr constant [47 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb = external hidden unnamed_addr constant [36 x i8], align 1
@.str.213 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.214 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.215 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.216 = external hidden unnamed_addr constant [10 x i8], align 1

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

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

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

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

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

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

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

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

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

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

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

38:                                               ; preds = %33, %1
  %39 = phi i1 [ false, %1 ], [ %37, %33 ]
  %40 = zext i1 %39 to i8
  store i8 %40, ptr %5, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #7
  store i8 0, ptr %6, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #7
  store i8 0, ptr %7, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #7
  store i8 0, ptr %8, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #7
  store i8 0, ptr %9, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #7
  store i8 0, ptr %10, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !94
  call void @llvm.lifetime.start.p0(i64 20, ptr %12) #7
  call void @_ZN10ImBitArrayILi154ELi0EEC2Ev(ptr noundef nonnull align 4 dereferenceable(20) %12)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !94
  br label %41

41:                                               ; preds = %389, %38
  %42 = load i32, ptr %13, align 4, !tbaa !94
  %43 = load ptr, ptr %3, align 8, !tbaa !9
  %44 = getelementptr inbounds %struct.ImGuiContext, ptr %43, i32 0, i32 22
  %45 = getelementptr inbounds %struct.ImVector.1, ptr %44, i32 0, i32 0
  %46 = load i32, ptr %45, align 8, !tbaa !95
  %47 = icmp slt i32 %42, %46
  br i1 %47, label %48, label %392

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

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

63:                                               ; preds = %57
  store i32 4, ptr %15, align 4
  br label %386

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

75:                                               ; preds = %64
  %76 = load i32, ptr %11, align 4, !tbaa !94
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %87, label %78

78:                                               ; preds = %75
  %79 = load i8, ptr %7, align 1, !tbaa !5, !range !11, !noundef !12
  %80 = trunc i8 %79 to i1
  br i1 %80, label %87, label %81

81:                                               ; preds = %78
  %82 = load i8, ptr %8, align 1, !tbaa !5, !range !11, !noundef !12
  %83 = trunc i8 %82 to i1
  br i1 %83, label %87, label %84

84:                                               ; preds = %81
  %85 = load i8, ptr %10, align 1, !tbaa !5, !range !11, !noundef !12
  %86 = trunc i8 %85 to i1
  br i1 %86, label %87, label %88

87:                                               ; preds = %84, %81, %78, %75
  store i32 2, ptr %15, align 4
  br label %97

88:                                               ; preds = %84, %64
  %89 = load ptr, ptr %4, align 8, !tbaa !9
  %90 = getelementptr inbounds %struct.ImGuiIO, ptr %89, i32 0, i32 65
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %90, ptr align 4 %16, i64 8, i1 false), !tbaa.struct !101
  %91 = load ptr, ptr %14, align 8, !tbaa !9
  %92 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %91, i32 0, i32 3
  %93 = getelementptr inbounds %struct.ImGuiInputEventMousePos, ptr %92, i32 0, i32 2
  %94 = load i32, ptr %93, align 4, !tbaa !100
  %95 = load ptr, ptr %4, align 8, !tbaa !9
  %96 = getelementptr inbounds %struct.ImGuiIO, ptr %95, i32 0, i32 69
  store i32 %94, ptr %96, align 8, !tbaa !103
  store i8 1, ptr %6, align 1, !tbaa !5
  store i32 0, ptr %15, align 4
  br label %97

97:                                               ; preds = %88, %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  %98 = load i32, ptr %15, align 4
  switch i32 %98, label %386 [
    i32 0, label %99
  ]

99:                                               ; preds = %97
  br label %385

100:                                              ; preds = %48
  %101 = load ptr, ptr %14, align 8, !tbaa !9
  %102 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %101, i32 0, i32 0
  %103 = load i32, ptr %102, align 4, !tbaa !96
  %104 = icmp eq i32 %103, 3
  br i1 %104, label %105, label %171

105:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %106 = load ptr, ptr %14, align 8, !tbaa !9
  %107 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %106, i32 0, i32 3
  %108 = getelementptr inbounds %struct.ImGuiInputEventMouseButton, ptr %107, i32 0, i32 0
  %109 = load i32, ptr %108, align 4, !tbaa !100
  store i32 %109, ptr %17, align 4, !tbaa !94
  %110 = load i32, ptr %17, align 4, !tbaa !94
  %111 = icmp sge i32 %110, 0
  br i1 %111, label %112, label %115

112:                                              ; preds = %105
  %113 = load i32, ptr %17, align 4, !tbaa !94
  %114 = icmp slt i32 %113, 5
  br label %115

115:                                              ; preds = %112, %105
  %116 = phi i1 [ false, %105 ], [ %114, %112 ]
  br i1 %116, label %117, label %118

117:                                              ; preds = %115
  br label %120

118:                                              ; preds = %115
  call void @__assert_fail(ptr noundef @.str.212, ptr noundef @.str.3, i32 noundef 9738, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb) #8
  unreachable

119:                                              ; No predecessors!
  br label %120

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

123:                                              ; preds = %120
  %124 = load i32, ptr %11, align 4, !tbaa !94
  %125 = load i32, ptr %17, align 4, !tbaa !94
  %126 = shl i32 1, %125
  %127 = and i32 %124, %126
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %132, label %129

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

132:                                              ; preds = %129, %123
  store i32 2, ptr %15, align 4
  br label %168

133:                                              ; preds = %129, %120
  %134 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %135 = trunc i8 %134 to i1
  br i1 %135, label %136, label %146

136:                                              ; preds = %133
  %137 = load ptr, ptr %14, align 8, !tbaa !9
  %138 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %137, i32 0, i32 3
  %139 = getelementptr inbounds %struct.ImGuiInputEventMouseButton, ptr %138, i32 0, i32 2
  %140 = load i32, ptr %139, align 4, !tbaa !100
  %141 = icmp eq i32 %140, 1
  br i1 %141, label %142, label %146

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

145:                                              ; preds = %142
  store i32 2, ptr %15, align 4
  br label %168

146:                                              ; preds = %142, %136, %133
  %147 = load ptr, ptr %14, align 8, !tbaa !9
  %148 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %147, i32 0, i32 3
  %149 = getelementptr inbounds %struct.ImGuiInputEventMouseButton, ptr %148, i32 0, i32 1
  %150 = load i8, ptr %149, align 4, !tbaa !100, !range !11, !noundef !12
  %151 = trunc i8 %150 to i1
  %152 = load ptr, ptr %4, align 8, !tbaa !9
  %153 = getelementptr inbounds %struct.ImGuiIO, ptr %152, i32 0, i32 66
  %154 = load i32, ptr %17, align 4, !tbaa !94
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [5 x i8], ptr %153, i64 0, i64 %155
  %157 = zext i1 %151 to i8
  store i8 %157, ptr %156, align 1, !tbaa !5
  %158 = load ptr, ptr %14, align 8, !tbaa !9
  %159 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %158, i32 0, i32 3
  %160 = getelementptr inbounds %struct.ImGuiInputEventMouseButton, ptr %159, i32 0, i32 2
  %161 = load i32, ptr %160, align 4, !tbaa !100
  %162 = load ptr, ptr %4, align 8, !tbaa !9
  %163 = getelementptr inbounds %struct.ImGuiIO, ptr %162, i32 0, i32 69
  store i32 %161, ptr %163, align 8, !tbaa !103
  %164 = load i32, ptr %17, align 4, !tbaa !94
  %165 = shl i32 1, %164
  %166 = load i32, ptr %11, align 4, !tbaa !94
  %167 = or i32 %166, %165
  store i32 %167, ptr %11, align 4, !tbaa !94
  store i32 0, ptr %15, align 4
  br label %168

168:                                              ; preds = %146, %145, %132
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  %169 = load i32, ptr %15, align 4
  switch i32 %169, label %386 [
    i32 0, label %170
  ]

170:                                              ; preds = %168
  br label %384

171:                                              ; preds = %100
  %172 = load ptr, ptr %14, align 8, !tbaa !9
  %173 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %172, i32 0, i32 0
  %174 = load i32, ptr %173, align 4, !tbaa !96
  %175 = icmp eq i32 %174, 2
  br i1 %175, label %176, label %209

176:                                              ; preds = %171
  %177 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %178 = trunc i8 %177 to i1
  br i1 %178, label %179, label %186

179:                                              ; preds = %176
  %180 = load i8, ptr %6, align 1, !tbaa !5, !range !11, !noundef !12
  %181 = trunc i8 %180 to i1
  br i1 %181, label %185, label %182

182:                                              ; preds = %179
  %183 = load i32, ptr %11, align 4, !tbaa !94
  %184 = icmp ne i32 %183, 0
  br i1 %184, label %185, label %186

185:                                              ; preds = %182, %179
  store i32 2, ptr %15, align 4
  br label %386

186:                                              ; preds = %182, %176
  %187 = load ptr, ptr %14, align 8, !tbaa !9
  %188 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %187, i32 0, i32 3
  %189 = getelementptr inbounds %struct.ImGuiInputEventMouseWheel, ptr %188, i32 0, i32 0
  %190 = load float, ptr %189, align 4, !tbaa !100
  %191 = load ptr, ptr %4, align 8, !tbaa !9
  %192 = getelementptr inbounds %struct.ImGuiIO, ptr %191, i32 0, i32 68
  %193 = load float, ptr %192, align 4, !tbaa !104
  %194 = fadd float %193, %190
  store float %194, ptr %192, align 4, !tbaa !104
  %195 = load ptr, ptr %14, align 8, !tbaa !9
  %196 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %195, i32 0, i32 3
  %197 = getelementptr inbounds %struct.ImGuiInputEventMouseWheel, ptr %196, i32 0, i32 1
  %198 = load float, ptr %197, align 4, !tbaa !100
  %199 = load ptr, ptr %4, align 8, !tbaa !9
  %200 = getelementptr inbounds %struct.ImGuiIO, ptr %199, i32 0, i32 67
  %201 = load float, ptr %200, align 8, !tbaa !105
  %202 = fadd float %201, %198
  store float %202, ptr %200, align 8, !tbaa !105
  %203 = load ptr, ptr %14, align 8, !tbaa !9
  %204 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %203, i32 0, i32 3
  %205 = getelementptr inbounds %struct.ImGuiInputEventMouseWheel, ptr %204, i32 0, i32 2
  %206 = load i32, ptr %205, align 4, !tbaa !100
  %207 = load ptr, ptr %4, align 8, !tbaa !9
  %208 = getelementptr inbounds %struct.ImGuiIO, ptr %207, i32 0, i32 69
  store i32 %206, ptr %208, align 8, !tbaa !103
  store i8 1, ptr %7, align 1, !tbaa !5
  br label %383

209:                                              ; preds = %171
  %210 = load ptr, ptr %14, align 8, !tbaa !9
  %211 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %210, i32 0, i32 0
  %212 = load i32, ptr %211, align 4, !tbaa !96
  %213 = icmp eq i32 %212, 4
  br i1 %213, label %214, label %308

214:                                              ; preds = %209
  %215 = load ptr, ptr %4, align 8, !tbaa !9
  %216 = getelementptr inbounds %struct.ImGuiIO, ptr %215, i32 0, i32 0
  %217 = load i32, ptr %216, align 8, !tbaa !106
  %218 = and i32 %217, 64
  %219 = icmp ne i32 %218, 0
  br i1 %219, label %220, label %221

220:                                              ; preds = %214
  store i32 4, ptr %15, align 4
  br label %386

221:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %222 = load ptr, ptr %14, align 8, !tbaa !9
  %223 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %222, i32 0, i32 3
  %224 = getelementptr inbounds %struct.ImGuiInputEventKey, ptr %223, i32 0, i32 0
  %225 = load i32, ptr %224, align 4, !tbaa !100
  store i32 %225, ptr %18, align 4, !tbaa !107
  %226 = load i32, ptr %18, align 4, !tbaa !107
  %227 = icmp ne i32 %226, 0
  br i1 %227, label %228, label %229

228:                                              ; preds = %221
  br label %231

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

230:                                              ; No predecessors!
  br label %231

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

246:                                              ; preds = %231
  %247 = load ptr, ptr %19, align 8, !tbaa !9
  %248 = getelementptr inbounds %struct.ImGuiKeyData, ptr %247, i32 0, i32 0
  %249 = load i8, ptr %248, align 4, !tbaa !108, !range !11, !noundef !12
  %250 = trunc i8 %249 to i1
  %251 = zext i1 %250 to i32
  %252 = load ptr, ptr %14, align 8, !tbaa !9
  %253 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %252, i32 0, i32 3
  %254 = getelementptr inbounds %struct.ImGuiInputEventKey, ptr %253, i32 0, i32 1
  %255 = load i8, ptr %254, align 4, !tbaa !100, !range !11, !noundef !12
  %256 = trunc i8 %255 to i1
  %257 = zext i1 %256 to i32
  %258 = icmp ne i32 %251, %257
  br i1 %258, label %259, label %266

259:                                              ; preds = %246
  %260 = load i32, ptr %20, align 4, !tbaa !94
  %261 = call noundef zeroext i1 @_ZNK10ImBitArrayILi154ELi0EE7TestBitEi(ptr noundef nonnull align 4 dereferenceable(20) %12, i32 noundef %260)
  br i1 %261, label %265, label %262

262:                                              ; preds = %259
  %263 = load i32, ptr %11, align 4, !tbaa !94
  %264 = icmp ne i32 %263, 0
  br i1 %264, label %265, label %266

265:                                              ; preds = %262, %259
  store i32 2, ptr %15, align 4
  br label %305

266:                                              ; preds = %262, %246, %231
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #7
  %267 = call noundef i32 @_ZL21GetMergedModsFromKeysv()
  %268 = load i32, ptr %18, align 4, !tbaa !107
  %269 = or i32 %267, %268
  %270 = call noundef zeroext i1 @_ZL30IsKeyChordPotentiallyCharInputi(i32 noundef %269)
  %271 = zext i1 %270 to i8
  store i8 %271, ptr %21, align 1, !tbaa !5
  %272 = load i8, ptr %5, align 1, !tbaa !5, !range !11, !noundef !12
  %273 = trunc i8 %272 to i1
  br i1 %273, label %274, label %281

274:                                              ; preds = %266
  %275 = load i8, ptr %10, align 1, !tbaa !5, !range !11, !noundef !12
  %276 = trunc i8 %275 to i1
  br i1 %276, label %277, label %281

277:                                              ; preds = %274
  %278 = load i8, ptr %21, align 1, !tbaa !5, !range !11, !noundef !12
  %279 = trunc i8 %278 to i1
  br i1 %279, label %281, label %280

280:                                              ; preds = %277
  store i32 2, ptr %15, align 4
  br label %304

281:                                              ; preds = %277, %274, %266
  %282 = load ptr, ptr %14, align 8, !tbaa !9
  %283 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %282, i32 0, i32 3
  %284 = getelementptr inbounds %struct.ImGuiInputEventKey, ptr %283, i32 0, i32 1
  %285 = load i8, ptr %284, align 4, !tbaa !100, !range !11, !noundef !12
  %286 = trunc i8 %285 to i1
  %287 = load ptr, ptr %19, align 8, !tbaa !9
  %288 = getelementptr inbounds %struct.ImGuiKeyData, ptr %287, i32 0, i32 0
  %289 = zext i1 %286 to i8
  store i8 %289, ptr %288, align 4, !tbaa !108
  %290 = load ptr, ptr %14, align 8, !tbaa !9
  %291 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %290, i32 0, i32 3
  %292 = getelementptr inbounds %struct.ImGuiInputEventKey, ptr %291, i32 0, i32 2
  %293 = load float, ptr %292, align 4, !tbaa !100
  %294 = load ptr, ptr %19, align 8, !tbaa !9
  %295 = getelementptr inbounds %struct.ImGuiKeyData, ptr %294, i32 0, i32 3
  store float %293, ptr %295, align 4, !tbaa !110
  store i8 1, ptr %8, align 1, !tbaa !5
  %296 = load i32, ptr %20, align 4, !tbaa !94
  call void @_ZN10ImBitArrayILi154ELi0EE6SetBitEi(ptr noundef nonnull align 4 dereferenceable(20) %12, i32 noundef %296)
  %297 = load i8, ptr %5, align 1, !tbaa !5, !range !11, !noundef !12
  %298 = trunc i8 %297 to i1
  br i1 %298, label %299, label %303

299:                                              ; preds = %281
  %300 = load i8, ptr %21, align 1, !tbaa !5, !range !11, !noundef !12
  %301 = trunc i8 %300 to i1
  br i1 %301, label %303, label %302

302:                                              ; preds = %299
  store i8 1, ptr %9, align 1, !tbaa !5
  br label %303

303:                                              ; preds = %302, %299, %281
  store i32 0, ptr %15, align 4
  br label %304

304:                                              ; preds = %303, %280
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  br label %305

305:                                              ; preds = %304, %265
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  %306 = load i32, ptr %15, align 4
  switch i32 %306, label %386 [
    i32 0, label %307
  ]

307:                                              ; preds = %305
  br label %382

308:                                              ; preds = %209
  %309 = load ptr, ptr %14, align 8, !tbaa !9
  %310 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %309, i32 0, i32 0
  %311 = load i32, ptr %310, align 4, !tbaa !96
  %312 = icmp eq i32 %311, 5
  br i1 %312, label %313, label %361

313:                                              ; preds = %308
  %314 = load ptr, ptr %4, align 8, !tbaa !9
  %315 = getelementptr inbounds %struct.ImGuiIO, ptr %314, i32 0, i32 0
  %316 = load i32, ptr %315, align 8, !tbaa !106
  %317 = and i32 %316, 64
  %318 = icmp ne i32 %317, 0
  br i1 %318, label %319, label %320

319:                                              ; preds = %313
  store i32 4, ptr %15, align 4
  br label %386

320:                                              ; preds = %313
  %321 = load i8, ptr %2, align 1, !tbaa !5, !range !11, !noundef !12
  %322 = trunc i8 %321 to i1
  br i1 %322, label %323, label %333

323:                                              ; preds = %320
  %324 = load i32, ptr %11, align 4, !tbaa !94
  %325 = icmp ne i32 %324, 0
  br i1 %325, label %332, label %326

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

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

332:                                              ; preds = %329, %326, %323
  store i32 2, ptr %15, align 4
  br label %386

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

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

339:                                              ; preds = %336
  store i32 2, ptr %15, align 4
  br label %386

340:                                              ; preds = %336, %333
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %341 = load ptr, ptr %14, align 8, !tbaa !9
  %342 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %341, i32 0, i32 3
  %343 = getelementptr inbounds %struct.ImGuiInputEventText, ptr %342, i32 0, i32 0
  %344 = load i32, ptr %343, align 4, !tbaa !100
  store i32 %344, ptr %22, align 4, !tbaa !94
  %345 = load ptr, ptr %4, align 8, !tbaa !9
  %346 = getelementptr inbounds %struct.ImGuiIO, ptr %345, i32 0, i32 96
  call void @llvm.lifetime.start.p0(i64 2, ptr %23) #7
  %347 = load i32, ptr %22, align 4, !tbaa !94
  %348 = icmp ule i32 %347, 65535
  br i1 %348, label %349, label %353

349:                                              ; preds = %340
  %350 = load i32, ptr %22, align 4, !tbaa !94
  %351 = trunc i32 %350 to i16
  %352 = zext i16 %351 to i32
  br label %354

353:                                              ; preds = %340
  br label %354

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

359:                                              ; preds = %354
  store i8 1, ptr %10, align 1, !tbaa !5
  br label %360

360:                                              ; preds = %359, %354
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %381

361:                                              ; preds = %308
  %362 = load ptr, ptr %14, align 8, !tbaa !9
  %363 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %362, i32 0, i32 0
  %364 = load i32, ptr %363, align 4, !tbaa !96
  %365 = icmp eq i32 %364, 6
  br i1 %365, label %366, label %379

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

379:                                              ; preds = %361
  call void @__assert_fail(ptr noundef @.str.214, ptr noundef @.str.3, i32 noundef 9803, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb) #8
  unreachable

380:                                              ; preds = %366
  br label %381

381:                                              ; preds = %380, %360
  br label %382

382:                                              ; preds = %381, %307
  br label %383

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

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

385:                                              ; preds = %384, %99
  store i32 0, ptr %15, align 4
  br label %386

386:                                              ; preds = %385, %339, %332, %319, %305, %220, %185, %168, %97, %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  %387 = load i32, ptr %15, align 4
  switch i32 %387, label %480 [
    i32 0, label %388
    i32 4, label %389
    i32 2, label %392
  ]

388:                                              ; preds = %386
  br label %389

389:                                              ; preds = %388, %386
  %390 = load i32, ptr %13, align 4, !tbaa !94
  %391 = add nsw i32 %390, 1
  store i32 %391, ptr %13, align 4, !tbaa !94
  br label %41, !llvm.loop !113

392:                                              ; preds = %386, %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  store i32 0, ptr %25, align 4, !tbaa !94
  br label %393

393:                                              ; preds = %405, %392
  %394 = load i32, ptr %25, align 4, !tbaa !94
  %395 = load i32, ptr %13, align 4, !tbaa !94
  %396 = icmp slt i32 %394, %395
  br i1 %396, label %398, label %397

397:                                              ; preds = %393
  store i32 5, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %408

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

405:                                              ; preds = %398
  %406 = load i32, ptr %25, align 4, !tbaa !94
  %407 = add nsw i32 %406, 1
  store i32 %407, ptr %25, align 4, !tbaa !94
  br label %393, !llvm.loop !115

408:                                              ; preds = %397
  %409 = load i32, ptr %13, align 4, !tbaa !94
  %410 = icmp ne i32 %409, 0
  br i1 %410, label %411, label %443

411:                                              ; preds = %408
  %412 = load ptr, ptr %3, align 8, !tbaa !9
  %413 = getelementptr inbounds %struct.ImGuiContext, ptr %412, i32 0, i32 271
  %414 = load i32, ptr %413, align 4, !tbaa !116
  %415 = and i32 %414, 128
  %416 = icmp ne i32 %415, 0
  br i1 %416, label %417, label %443

417:                                              ; preds = %411
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  store i32 0, ptr %26, align 4, !tbaa !94
  br label %418

418:                                              ; preds = %439, %417
  %419 = load i32, ptr %26, align 4, !tbaa !94
  %420 = load ptr, ptr %3, align 8, !tbaa !9
  %421 = getelementptr inbounds %struct.ImGuiContext, ptr %420, i32 0, i32 22
  %422 = getelementptr inbounds %struct.ImVector.1, ptr %421, i32 0, i32 0
  %423 = load i32, ptr %422, align 8, !tbaa !95
  %424 = icmp slt i32 %419, %423
  br i1 %424, label %426, label %425

425:                                              ; preds = %418
  store i32 8, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %442

426:                                              ; preds = %418
  %427 = load i32, ptr %26, align 4, !tbaa !94
  %428 = load i32, ptr %13, align 4, !tbaa !94
  %429 = icmp slt i32 %427, %428
  br i1 %429, label %430, label %431

430:                                              ; preds = %426
  br label %432

431:                                              ; preds = %426
  br label %432

432:                                              ; preds = %431, %430
  %433 = phi ptr [ @.str.215, %430 ], [ @.str.216, %431 ]
  %434 = getelementptr inbounds [10 x i8], ptr %433, i64 0, i64 0
  %435 = load ptr, ptr %3, align 8, !tbaa !9
  %436 = getelementptr inbounds %struct.ImGuiContext, ptr %435, i32 0, i32 22
  %437 = load i32, ptr %26, align 4, !tbaa !94
  %438 = call noundef nonnull align 4 dereferenceable(25) ptr @_ZN8ImVectorI15ImGuiInputEventEixEi(ptr noundef nonnull align 8 dereferenceable(16) %436, i32 noundef %437)
  call void @_ZL20DebugPrintInputEventPKcPK15ImGuiInputEvent(ptr noundef %434, ptr noundef %438)
  br label %439

439:                                              ; preds = %432
  %440 = load i32, ptr %26, align 4, !tbaa !94
  %441 = add nsw i32 %440, 1
  store i32 %441, ptr %26, align 4, !tbaa !94
  br label %418, !llvm.loop !117

442:                                              ; preds = %425
  br label %443

443:                                              ; preds = %442, %411, %408
  %444 = load i32, ptr %13, align 4, !tbaa !94
  %445 = load ptr, ptr %3, align 8, !tbaa !9
  %446 = getelementptr inbounds %struct.ImGuiContext, ptr %445, i32 0, i32 22
  %447 = getelementptr inbounds %struct.ImVector.1, ptr %446, i32 0, i32 0
  %448 = load i32, ptr %447, align 8, !tbaa !95
  %449 = icmp eq i32 %444, %448
  br i1 %449, label %450, label %453

450:                                              ; preds = %443
  %451 = load ptr, ptr %3, align 8, !tbaa !9
  %452 = getelementptr inbounds %struct.ImGuiContext, ptr %451, i32 0, i32 22
  call void @_ZN8ImVectorI15ImGuiInputEventE6resizeEi(ptr noundef nonnull align 8 dereferenceable(16) %452, i32 noundef 0)
  br label %468

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

468:                                              ; preds = %453, %450
  %469 = load ptr, ptr %3, align 8, !tbaa !9
  %470 = getelementptr inbounds %struct.ImGuiContext, ptr %469, i32 0, i32 2
  %471 = getelementptr inbounds %struct.ImGuiIO, ptr %470, i32 0, i32 93
  %472 = load i8, ptr %471, align 8, !tbaa !119, !range !11, !noundef !12
  %473 = trunc i8 %472 to i1
  br i1 %473, label %474, label %479

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

479:                                              ; preds = %474, %468
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 20, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  ret void

480:                                              ; preds = %386
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL30IsKeyChordPotentiallyCharInputi(i32 noundef) #5

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL21GetMergedModsFromKeysv() #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10ImBitArrayILi154ELi0EE6SetBitEi(ptr noundef nonnull align 4 dereferenceable(20), i32 noundef) #1 align 2

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !16, i64 10384}
!14 = !{!"_ZTS12ImGuiContext", !6, i64 0, !6, i64 1, !15, i64 8, !22, i64 2984, !23, i64 3056, !10, i64 4216, !18, i64 4224, !18, i64 4228, !18, i64 4232, !18, i64 4236, !25, i64 4240, !28, i64 4776, !16, i64 4784, !16, i64 4788, !16, i64 4792, !16, i64 4796, !6, i64 4800, !6, i64 4801, !6, i64 4802, !6, i64 4803, !10, i64 4808, !7, i64 4816, !29, i64 4832, !29, i64 4848, !19, i64 4864, !16, i64 4868, !30, i64 4872, !30, i64 4888, !30, i64 4904, !31, i64 4920, !32, i64 4936, !16, i64 4952, !17, i64 4956, !16, i64 4964, !10, i64 4968, !10, i64 4976, !10, i64 4984, !10, i64 4992, !10, i64 5000, !10, i64 5008, !17, i64 5016, !16, i64 5024, !16, i64 5028, !18, i64 5032, !17, i64 5036, !17, i64 5044, !16, i64 5052, !16, i64 5056, !16, i64 5060, !16, i64 5064, !16, i64 5068, !18, i64 5072, !18, i64 5076, !6, i64 5080, !6, i64 5081, !6, i64 5082, !16, i64 5084, !16, i64 5088, !18, i64 5092, !6, i64 5096, !6, i64 5097, !6, i64 5098, !6, i64 5099, !6, i64 5100, !6, i64 5101, !6, i64 5102, !16, i64 5103, !17, i64 5104, !10, i64 5112, !34, i64 5120, !16, i64 5124, !35, i64 5128, !36, i64 5140, !16, i64 5148, !18, i64 5152, !28, i64 5160, !28, i64 5168, !28, i64 5176, !37, i64 5184, !7, i64 5204, !38, i64 7056, !16, i64 7400, !6, i64 7404, !16, i64 7408, !16, i64 7412, !16, i64 7416, !16, i64 7420, !40, i64 7424, !42, i64 7480, !44, i64 7560, !6, i64 7672, !16, i64 7676, !45, i64 7680, !46, i64 7696, !47, i64 7712, !48, i64 7728, !49, i64 7744, !50, i64 7760, !51, i64 7776, !51, i64 7792, !52, i64 7808, !53, i64 7824, !6, i64 7840, !6, i64 7841, !6, i64 7842, !6, i64 7843, !16, i64 7844, !10, i64 7848, !16, i64 7856, !54, i64 7860, !16, i64 7864, !16, i64 7868, !16, i64 7872, !16, i64 7876, !48, i64 7880, !16, i64 7896, !18, i64 7900, !16, i64 7904, !16, i64 7908, !34, i64 7912, !41, i64 7920, !7, i64 7928, !6, i64 7929, !6, i64 7930, !6, i64 7931, !55, i64 7936, !6, i64 7992, !6, i64 7993, !6, i64 7994, !16, i64 7996, !16, i64 8000, !16, i64 8004, !24, i64 8008, !24, i64 8012, !24, i64 8016, !43, i64 8020, !43, i64 8036, !16, i64 8052, !16, i64 8056, !16, i64 8060, !55, i64 8064, !55, i64 8120, !55, i64 8176, !55, i64 8232, !16, i64 8288, !16, i64 8292, !16, i64 8296, !16, i64 8300, !6, i64 8304, !6, i64 8305, !16, i64 8308, !16, i64 8312, !10, i64 8320, !10, i64 8328, !10, i64 8336, !18, i64 8344, !18, i64 8348, !6, i64 8352, !56, i64 8356, !17, i64 8360, !17, i64 8368, !18, i64 8376, !6, i64 8380, !6, i64 8381, !6, i64 8382, !16, i64 8384, !16, i64 8388, !16, i64 8392, !57, i64 8400, !43, i64 8464, !43, i64 8480, !16, i64 8496, !16, i64 8500, !18, i64 8504, !16, i64 8508, !16, i64 8512, !16, i64 8516, !16, i64 8520, !58, i64 8528, !7, i64 8544, !16, i64 8560, !59, i64 8568, !10, i64 8584, !16, i64 8592, !16, i64 8596, !60, i64 8600, !61, i64 8616, !63, i64 8656, !64, i64 8672, !10, i64 8688, !65, i64 8696, !67, i64 8736, !68, i64 8752, !69, i64 8768, !10, i64 8872, !16, i64 8880, !70, i64 8888, !71, i64 8904, !16, i64 8944, !16, i64 8948, !18, i64 8952, !18, i64 8956, !16, i64 8960, !16, i64 8964, !16, i64 8968, !18, i64 8972, !17, i64 8976, !73, i64 8984, !75, i64 9104, !76, i64 9128, !16, i64 9248, !36, i64 9252, !16, i64 9260, !16, i64 9264, !16, i64 9268, !16, i64 9272, !16, i64 9276, !18, i64 9280, !18, i64 9284, !16, i64 9288, !26, i64 9292, !78, i64 9308, !43, i64 9356, !6, i64 9372, !20, i64 9374, !18, i64 9376, !18, i64 9380, !18, i64 9384, !6, i64 9388, !6, i64 9389, !18, i64 9392, !18, i64 9396, !18, i64 9400, !20, i64 9404, !20, i64 9406, !10, i64 9408, !74, i64 9416, !79, i64 9432, !80, i64 9448, !82, i64 9552, !82, i64 9568, !6, i64 9584, !18, i64 9588, !83, i64 9592, !84, i64 9608, !85, i64 9624, !86, i64 9640, !87, i64 9656, !16, i64 9672, !7, i64 9680, !6, i64 9760, !16, i64 9764, !10, i64 9768, !10, i64 9776, !83, i64 9784, !10, i64 9800, !10, i64 9808, !18, i64 9816, !6, i64 9820, !16, i64 9824, !16, i64 9828, !16, i64 9832, !10, i64 9840, !10, i64 9848, !17, i64 9856, !6, i64 9864, !16, i64 9868, !88, i64 9872, !10, i64 9896, !16, i64 9904, !16, i64 9908, !83, i64 9912, !89, i64 9928, !16, i64 9952, !16, i64 9956, !7, i64 9960, !7, i64 9961, !6, i64 9962, !16, i64 9964, !7, i64 9968, !6, i64 9969, !7, i64 9970, !16, i64 9972, !18, i64 9976, !26, i64 9980, !90, i64 9996, !91, i64 10024, !93, i64 10064, !7, i64 10124, !16, i64 10364, !16, i64 10368, !18, i64 10372, !16, i64 10376, !16, i64 10380, !16, i64 10384, !74, i64 10392, !7, i64 10408}
!15 = !{!"_ZTS7ImGuiIO", !16, i64 0, !16, i64 4, !17, i64 8, !18, i64 16, !18, i64 20, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !18, i64 56, !6, i64 60, !10, i64 64, !17, i64 72, !6, i64 80, !6, i64 81, !6, i64 82, !6, i64 83, !6, i64 84, !6, i64 85, !6, i64 86, !6, i64 87, !6, i64 88, !6, i64 89, !6, i64 90, !6, i64 91, !6, i64 92, !6, i64 93, !6, i64 94, !6, i64 95, !6, i64 96, !18, i64 100, !18, i64 104, !18, i64 108, !18, i64 112, !18, i64 116, !18, i64 120, !6, i64 124, !6, i64 125, !6, i64 126, !6, i64 127, !6, i64 128, !6, i64 129, !6, i64 130, !6, i64 131, !6, i64 132, !6, i64 133, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !6, i64 176, !6, i64 177, !6, i64 178, !6, i64 179, !6, i64 180, !6, i64 181, !6, i64 182, !18, i64 184, !16, i64 188, !16, i64 192, !16, i64 196, !16, i64 200, !17, i64 204, !10, i64 216, !17, i64 224, !7, i64 232, !18, i64 240, !18, i64 244, !19, i64 248, !6, i64 252, !6, i64 253, !6, i64 254, !6, i64 255, !16, i64 256, !7, i64 260, !6, i64 2724, !17, i64 2728, !7, i64 2736, !7, i64 2776, !7, i64 2816, !7, i64 2821, !7, i64 2826, !7, i64 2836, !7, i64 2846, !7, i64 2851, !7, i64 2856, !6, i64 2861, !6, i64 2862, !7, i64 2864, !7, i64 2884, !7, i64 2904, !18, i64 2924, !6, i64 2928, !6, i64 2929, !20, i64 2930, !21, i64 2936, !10, i64 2952, !10, i64 2960, !10, i64 2968}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_ZTS6ImVec2", !18, i64 0, !18, i64 4}
!18 = !{!"float", !7, i64 0}
!19 = !{!"_ZTS16ImGuiMouseSource", !7, i64 0}
!20 = !{!"short", !7, i64 0}
!21 = !{!"_ZTS8ImVectorItE", !16, i64 0, !16, i64 4, !10, i64 8}
!22 = !{!"_ZTS15ImGuiPlatformIO", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !20, i64 56, !10, i64 64}
!23 = !{!"_ZTS10ImGuiStyle", !18, i64 0, !18, i64 4, !17, i64 8, !18, i64 16, !18, i64 20, !17, i64 24, !17, i64 32, !24, i64 40, !18, i64 44, !18, i64 48, !18, i64 52, !18, i64 56, !17, i64 60, !18, i64 68, !18, i64 72, !17, i64 76, !17, i64 84, !17, i64 92, !17, i64 100, !18, i64 108, !18, i64 112, !18, i64 116, !18, i64 120, !18, i64 124, !18, i64 128, !18, i64 132, !18, i64 136, !18, i64 140, !18, i64 144, !18, i64 148, !18, i64 152, !18, i64 156, !17, i64 160, !24, i64 168, !17, i64 172, !17, i64 180, !18, i64 188, !17, i64 192, !17, i64 200, !17, i64 208, !17, i64 216, !18, i64 224, !6, i64 228, !6, i64 229, !6, i64 230, !18, i64 232, !18, i64 236, !7, i64 240, !18, i64 1136, !18, i64 1140, !18, i64 1144, !16, i64 1148, !16, i64 1152}
!24 = !{!"_ZTS8ImGuiDir", !7, i64 0}
!25 = !{!"_ZTS20ImDrawListSharedData", !17, i64 0, !10, i64 8, !10, i64 16, !18, i64 24, !18, i64 28, !18, i64 32, !18, i64 36, !26, i64 40, !16, i64 56, !27, i64 64, !7, i64 80, !18, i64 464, !7, i64 468}
!26 = !{!"_ZTS6ImVec4", !18, i64 0, !18, i64 4, !18, i64 8, !18, i64 12}
!27 = !{!"_ZTS8ImVectorI6ImVec2E", !16, i64 0, !16, i64 4, !10, i64 8}
!28 = !{!"double", !7, i64 0}
!29 = !{!"_ZTS8ImVectorI15ImGuiInputEventE", !16, i64 0, !16, i64 4, !10, i64 8}
!30 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !16, i64 0, !16, i64 4, !10, i64 8}
!31 = !{!"_ZTS8ImVectorI20ImGuiWindowStackDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!32 = !{!"_ZTS12ImGuiStorage", !33, i64 0}
!33 = !{!"_ZTS8ImVectorI16ImGuiStoragePairE", !16, i64 0, !16, i64 4, !10, i64 8}
!34 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!35 = !{!"_ZTS24ImGuiDeactivatedItemData", !16, i64 0, !16, i64 4, !6, i64 8, !6, i64 9}
!36 = !{!"_ZTS20ImGuiDataTypeStorage", !7, i64 0}
!37 = !{!"_ZTS10ImBitArrayILi154ELin512EE", !7, i64 0}
!38 = !{!"_ZTS20ImGuiKeyRoutingTable", !7, i64 0, !39, i64 312, !39, i64 328}
!39 = !{!"_ZTS8ImVectorI19ImGuiKeyRoutingDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!40 = !{!"_ZTS17ImGuiNextItemData", !16, i64 0, !16, i64 4, !16, i64 8, !41, i64 16, !18, i64 24, !16, i64 28, !16, i64 32, !6, i64 36, !7, i64 37, !36, i64 38, !16, i64 48}
!41 = !{!"long long", !7, i64 0}
!42 = !{!"_ZTS17ImGuiLastItemData", !16, i64 0, !16, i64 4, !16, i64 8, !43, i64 12, !43, i64 28, !43, i64 44, !43, i64 60, !16, i64 76}
!43 = !{!"_ZTS6ImRect", !17, i64 0, !17, i64 8}
!44 = !{!"_ZTS19ImGuiNextWindowData", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12, !17, i64 16, !17, i64 24, !17, i64 32, !17, i64 40, !17, i64 48, !16, i64 56, !6, i64 60, !43, i64 64, !10, i64 80, !10, i64 88, !18, i64 96, !17, i64 100, !16, i64 108}
!45 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !16, i64 0, !16, i64 4, !10, i64 8}
!46 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !16, i64 0, !16, i64 4, !10, i64 8}
!47 = !{!"_ZTS8ImVectorIP6ImFontE", !16, i64 0, !16, i64 4, !10, i64 8}
!48 = !{!"_ZTS8ImVectorI19ImGuiFocusScopeDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!49 = !{!"_ZTS8ImVectorIiE", !16, i64 0, !16, i64 4, !10, i64 8}
!50 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!51 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!52 = !{!"_ZTS8ImVectorI22ImGuiTreeNodeStackDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!53 = !{!"_ZTS8ImVectorIP14ImGuiViewportPE", !16, i64 0, !16, i64 4, !10, i64 8}
!54 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!55 = !{!"_ZTS16ImGuiNavItemData", !10, i64 0, !16, i64 8, !16, i64 12, !43, i64 16, !16, i64 32, !18, i64 36, !18, i64 40, !18, i64 44, !41, i64 48}
!56 = !{!"_ZTS8ImGuiKey", !7, i64 0}
!57 = !{!"_ZTS12ImGuiPayload", !10, i64 0, !16, i64 8, !16, i64 12, !16, i64 16, !16, i64 20, !7, i64 24, !6, i64 57, !6, i64 58}
!58 = !{!"_ZTS8ImVectorIhE", !16, i64 0, !16, i64 4, !10, i64 8}
!59 = !{!"_ZTS8ImVectorI20ImGuiListClipperDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!60 = !{!"_ZTS8ImVectorI18ImGuiTableTempDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!61 = !{!"_ZTS6ImPoolI10ImGuiTableE", !62, i64 0, !32, i64 16, !16, i64 32, !16, i64 36}
!62 = !{!"_ZTS8ImVectorI10ImGuiTableE", !16, i64 0, !16, i64 4, !10, i64 8}
!63 = !{!"_ZTS8ImVectorIfE", !16, i64 0, !16, i64 4, !10, i64 8}
!64 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !16, i64 0, !16, i64 4, !10, i64 8}
!65 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !66, i64 0, !32, i64 16, !16, i64 32, !16, i64 36}
!66 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !16, i64 0, !16, i64 4, !10, i64 8}
!67 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !16, i64 0, !16, i64 4, !10, i64 8}
!68 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !16, i64 0, !16, i64 4, !10, i64 8}
!69 = !{!"_ZTS19ImGuiBoxSelectState", !16, i64 0, !6, i64 4, !6, i64 5, !6, i64 6, !6, i64 7, !6, i64 8, !16, i64 9, !17, i64 12, !17, i64 20, !17, i64 28, !10, i64 40, !6, i64 48, !43, i64 52, !43, i64 68, !43, i64 84}
!70 = !{!"_ZTS8ImVectorI24ImGuiMultiSelectTempDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!71 = !{!"_ZTS6ImPoolI21ImGuiMultiSelectStateE", !72, i64 0, !32, i64 16, !16, i64 32, !16, i64 36}
!72 = !{!"_ZTS8ImVectorI21ImGuiMultiSelectStateE", !16, i64 0, !16, i64 4, !10, i64 8}
!73 = !{!"_ZTS19ImGuiInputTextState", !10, i64 0, !10, i64 8, !16, i64 16, !16, i64 20, !16, i64 24, !10, i64 32, !74, i64 40, !74, i64 56, !74, i64 72, !16, i64 88, !17, i64 92, !18, i64 100, !6, i64 104, !6, i64 105, !6, i64 106, !6, i64 107, !16, i64 108, !16, i64 112}
!74 = !{!"_ZTS8ImVectorIcE", !16, i64 0, !16, i64 4, !10, i64 8}
!75 = !{!"_ZTS30ImGuiInputTextDeactivatedState", !16, i64 0, !74, i64 8}
!76 = !{!"_ZTS6ImFont", !63, i64 0, !18, i64 16, !18, i64 20, !21, i64 24, !77, i64 40, !10, i64 56, !10, i64 64, !10, i64 72, !20, i64 80, !20, i64 82, !20, i64 84, !20, i64 86, !18, i64 88, !18, i64 92, !6, i64 96, !18, i64 100, !18, i64 104, !18, i64 108, !16, i64 112, !7, i64 116}
!77 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !16, i64 0, !16, i64 4, !10, i64 8}
!78 = !{!"_ZTS21ImGuiComboPreviewData", !43, i64 0, !17, i64 16, !17, i64 24, !17, i64 32, !18, i64 40, !16, i64 44}
!79 = !{!"_ZTS8ImVectorIjE", !16, i64 0, !16, i64 4, !10, i64 8}
!80 = !{!"_ZTS22ImGuiTypingSelectState", !81, i64 0, !7, i64 24, !16, i64 88, !16, i64 92, !18, i64 96, !6, i64 100}
!81 = !{!"_ZTS24ImGuiTypingSelectRequest", !16, i64 0, !16, i64 4, !10, i64 8, !6, i64 16, !6, i64 17, !7, i64 18}
!82 = !{!"_ZTS20ImGuiPlatformImeData", !6, i64 0, !17, i64 4, !18, i64 12}
!83 = !{!"_ZTS15ImGuiTextBuffer", !74, i64 0}
!84 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !16, i64 0, !16, i64 4, !10, i64 8}
!85 = !{!"_ZTS13ImChunkStreamI19ImGuiWindowSettingsE", !74, i64 0}
!86 = !{!"_ZTS13ImChunkStreamI18ImGuiTableSettingsE", !74, i64 0}
!87 = !{!"_ZTS8ImVectorI16ImGuiContextHookE", !16, i64 0, !16, i64 4, !10, i64 8}
!88 = !{!"_ZTS23ImGuiErrorRecoveryState", !20, i64 0, !20, i64 2, !20, i64 4, !20, i64 6, !20, i64 8, !20, i64 10, !20, i64 12, !20, i64 14, !20, i64 16, !20, i64 18, !20, i64 20}
!89 = !{!"_ZTS14ImGuiTextIndex", !49, i64 0, !16, i64 16}
!90 = !{!"_ZTS18ImGuiMetricsConfig", !6, i64 0, !6, i64 1, !6, i64 2, !6, i64 3, !6, i64 4, !6, i64 5, !6, i64 6, !6, i64 7, !6, i64 8, !16, i64 12, !16, i64 16, !16, i64 20, !16, i64 24}
!91 = !{!"_ZTS16ImGuiIDStackTool", !16, i64 0, !16, i64 4, !16, i64 8, !92, i64 16, !6, i64 32, !18, i64 36}
!92 = !{!"_ZTS8ImVectorI19ImGuiStackLevelInfoE", !16, i64 0, !16, i64 4, !10, i64 8}
!93 = !{!"_ZTS19ImGuiDebugAllocInfo", !16, i64 0, !16, i64 4, !20, i64 8, !7, i64 12}
!94 = !{!16, !16, i64 0}
!95 = !{!14, !16, i64 4832}
!96 = !{!97, !98, i64 0}
!97 = !{!"_ZTS15ImGuiInputEvent", !98, i64 0, !34, i64 4, !16, i64 8, !7, i64 12, !6, i64 24}
!98 = !{!"_ZTS19ImGuiInputEventType", !7, i64 0}
!99 = !{!14, !6, i64 187}
!100 = !{!7, !7, i64 0}
!101 = !{i64 0, i64 4, !102, i64 4, i64 4, !102}
!102 = !{!18, !18, i64 0}
!103 = !{!15, !19, i64 248}
!104 = !{!15, !18, i64 244}
!105 = !{!15, !18, i64 240}
!106 = !{!15, !16, i64 0}
!107 = !{!56, !56, i64 0}
!108 = !{!109, !6, i64 0}
!109 = !{!"_ZTS12ImGuiKeyData", !6, i64 0, !18, i64 4, !18, i64 8, !18, i64 12}
!110 = !{!109, !18, i64 12}
!111 = !{!20, !20, i64 0}
!112 = !{!15, !6, i64 2928}
!113 = distinct !{!113, !114}
!114 = !{!"llvm.loop.mustprogress"}
!115 = distinct !{!115, !114}
!116 = !{!14, !16, i64 9908}
!117 = distinct !{!117, !114}
!118 = !{!14, !10, i64 4840}
!119 = !{!14, !6, i64 2936}


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

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

@GImGui = external dso_local local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.212 = external hidden unnamed_addr constant [47 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb = external hidden unnamed_addr constant [36 x i8], align 1
@.str.213 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.214 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.215 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.216 = external hidden unnamed_addr constant [10 x i8], align 1

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

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

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

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

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

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

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

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

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

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

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

.lr.ph:                                           ; preds = %11
  %16 = getelementptr inbounds i8, ptr %5, i64 2936
  %17 = getelementptr inbounds i8, ptr %5, i64 2944
  %18 = getelementptr inbounds i8, ptr %5, i64 268
  %19 = ptrtoint ptr %18 to i64
  %20 = getelementptr inbounds i8, ptr %5, i64 252
  %21 = getelementptr inbounds i8, ptr %5, i64 248
  %22 = getelementptr inbounds i8, ptr %5, i64 256
  %23 = getelementptr inbounds i8, ptr %5, i64 240
  %24 = getelementptr inbounds i8, ptr %5, i64 187
  %25 = getelementptr inbounds i8, ptr %5, i64 232
  br label %26

26:                                               ; preds = %.lr.ph, %.thread179
  %.0122215 = phi i8 [ 0, %.lr.ph ], [ %.3, %.thread179 ]
  %.0123214 = phi i8 [ 0, %.lr.ph ], [ %.2125, %.thread179 ]
  %.0126213 = phi i1 [ false, %.lr.ph ], [ %.4, %.thread179 ]
  %.0130212 = phi i1 [ false, %.lr.ph ], [ %.5, %.thread179 ]
  %.0135211 = phi i8 [ 0, %.lr.ph ], [ %.3138, %.thread179 ]
  %.0139210 = phi i32 [ 0, %.lr.ph ], [ %.3142, %.thread179 ]
  %.0143208 = phi i32 [ 0, %.lr.ph ], [ %143, %.thread179 ]
  %27 = call noundef nonnull align 4 dereferenceable(25) ptr @_ZN8ImVectorI15ImGuiInputEventEixEi(ptr noundef nonnull align 8 dereferenceable(16) %13, i32 noundef %.0143208)
  %28 = load i32, ptr %27, align 4, !tbaa !92
  switch i32 %28, label %142 [
    i32 1, label %29
    i32 3, label %46
    i32 2, label %70
    i32 4, label %84
    i32 5, label %121
    i32 6, label %138
  ]

29:                                               ; preds = %26
  %30 = load i8, ptr %24, align 1, !tbaa !95, !range !96, !noundef !97
  %31 = trunc nuw i8 %30 to i1
  br i1 %31, label %.thread179, label %32

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

37:                                               ; preds = %32
  %.not157 = icmp ne i32 %.0139210, 0
  %38 = trunc nuw i8 %.0123214 to i1
  %39 = select i1 %.not157, i1 true, i1 %38
  %or.cond198 = select i1 %39, i1 true, i1 %.0126213
  br i1 %or.cond198, label %.thread, label %40

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

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

42:                                               ; preds = %32, %40
  %43 = load i64, ptr %3, align 8
  store i64 %43, ptr %25, align 8
  %44 = getelementptr inbounds i8, ptr %27, i64 20
  %45 = load i32, ptr %44, align 4, !tbaa !98
  store i32 %45, ptr %22, align 8, !tbaa !99
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br label %.thread179

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

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

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

53:                                               ; preds = %51
  %54 = and i32 %52, %.0139210
  %.not156 = icmp eq i32 %54, 0
  br i1 %.not156, label %55, label %.thread185

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

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

61:                                               ; preds = %57
  %62 = trunc nuw i8 %.0122215 to i1
  br i1 %62, label %.thread185, label %._crit_edge257

._crit_edge257:                                   ; preds = %51, %57, %61
  %63 = getelementptr inbounds i8, ptr %27, i64 16
  %64 = load i8, ptr %63, align 4, !tbaa !98, !range !96, !noundef !97
  %65 = zext nneg i32 %48 to i64
  %66 = getelementptr inbounds [5 x i8], ptr %23, i64 0, i64 %65
  store i8 %64, ptr %66, align 1, !tbaa !100
  %67 = getelementptr inbounds i8, ptr %27, i64 20
  %68 = load i32, ptr %67, align 4, !tbaa !98
  store i32 %68, ptr %22, align 8, !tbaa !99
  %69 = or i32 %52, %.0139210
  br label %.thread179

70:                                               ; preds = %26
  %71 = trunc nuw i8 %.0122215 to i1
  %72 = icmp ne i32 %.0139210, 0
  %or.cond = select i1 %71, i1 true, i1 %72
  %or.cond164 = select i1 %0, i1 %or.cond, i1 false
  br i1 %or.cond164, label %.thread185, label %73

73:                                               ; preds = %70
  %74 = getelementptr inbounds i8, ptr %27, i64 12
  %75 = load float, ptr %74, align 4, !tbaa !98
  %76 = load float, ptr %20, align 4, !tbaa !101
  %77 = fadd float %75, %76
  store float %77, ptr %20, align 4, !tbaa !101
  %78 = getelementptr inbounds i8, ptr %27, i64 16
  %79 = load float, ptr %78, align 4, !tbaa !98
  %80 = load float, ptr %21, align 8, !tbaa !102
  %81 = fadd float %79, %80
  store float %81, ptr %21, align 8, !tbaa !102
  %82 = getelementptr inbounds i8, ptr %27, i64 20
  %83 = load i32, ptr %82, align 4, !tbaa !98
  store i32 %83, ptr %22, align 8, !tbaa !99
  br label %.thread179

84:                                               ; preds = %26
  %85 = load i32, ptr %6, align 8, !tbaa !103
  %86 = and i32 %85, 64
  %.not153 = icmp eq i32 %86, 0
  br i1 %.not153, label %87, label %.thread179

87:                                               ; preds = %84
  %88 = getelementptr inbounds i8, ptr %27, i64 12
  %89 = load i32, ptr %88, align 4, !tbaa !98
  %.not154 = icmp eq i32 %89, 0
  br i1 %.not154, label %90, label %91

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

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

97:                                               ; preds = %91
  %98 = load i8, ptr %92, align 4, !tbaa !104, !range !96, !noundef !97
  %99 = getelementptr inbounds i8, ptr %27, i64 16
  %100 = load i8, ptr %99, align 4, !tbaa !98, !range !96, !noundef !97
  %.not155 = icmp eq i8 %98, %100
  br i1 %.not155, label %104, label %101

101:                                              ; preds = %97
  %102 = call noundef zeroext i1 @_ZNK10ImBitArrayILi154ELi0EE7TestBitEi(ptr noundef nonnull align 4 dereferenceable(20) %2, i32 noundef %96)
  %103 = icmp ne i32 %.0139210, 0
  %or.cond5 = select i1 %102, i1 true, i1 %103
  br i1 %or.cond5, label %.thread185, label %104

104:                                              ; preds = %101, %97, %91
  %105 = call noundef i32 @_ZL21GetMergedModsFromKeysv()
  %106 = or i32 %105, %89
  %107 = call noundef zeroext i1 @_ZL30IsKeyChordPotentiallyCharInputi(i32 noundef %106)
  br i1 %12, label %108, label %.critedge167

108:                                              ; preds = %104
  %109 = trunc nuw i8 %.0135211 to i1
  %.not165 = xor i1 %109, true
  %brmerge = or i1 %107, %.not165
  br i1 %brmerge, label %110, label %.thread185

110:                                              ; preds = %108
  %111 = getelementptr inbounds i8, ptr %27, i64 16
  %112 = load i8, ptr %111, align 4, !tbaa !98, !range !96, !noundef !97
  store i8 %112, ptr %92, align 4, !tbaa !104
  %113 = getelementptr inbounds i8, ptr %27, i64 20
  %114 = load float, ptr %113, align 4, !tbaa !98
  %115 = getelementptr inbounds i8, ptr %92, i64 12
  store float %114, ptr %115, align 4, !tbaa !106
  call void @_ZN10ImBitArrayILi154ELi0EE6SetBitEi(ptr noundef nonnull align 4 dereferenceable(20) %2, i32 noundef %96)
  %not. = xor i1 %107, true
  %spec.select = select i1 %not., i1 true, i1 %.0130212
  br label %.thread179

.critedge167:                                     ; preds = %104
  %116 = getelementptr inbounds i8, ptr %27, i64 16
  %117 = load i8, ptr %116, align 4, !tbaa !98, !range !96, !noundef !97
  store i8 %117, ptr %92, align 4, !tbaa !104
  %118 = getelementptr inbounds i8, ptr %27, i64 20
  %119 = load float, ptr %118, align 4, !tbaa !98
  %120 = getelementptr inbounds i8, ptr %92, i64 12
  store float %119, ptr %120, align 4, !tbaa !106
  call void @_ZN10ImBitArrayILi154ELi0EE6SetBitEi(ptr noundef nonnull align 4 dereferenceable(20) %2, i32 noundef %96)
  br label %.thread179

121:                                              ; preds = %26
  %122 = load i32, ptr %6, align 8, !tbaa !103
  %123 = and i32 %122, 64
  %.not = icmp eq i32 %123, 0
  br i1 %.not, label %124, label %.thread179

124:                                              ; preds = %121
  br i1 %0, label %125, label %131

125:                                              ; preds = %124
  %.not152 = icmp eq i32 %.0139210, 0
  br i1 %.not152, label %126, label %.thread185

126:                                              ; preds = %125
  %127 = trunc nuw i8 %.0122215 to i1
  %128 = trunc nuw i8 %.0123214 to i1
  %129 = select i1 %12, i1 %.0130212, i1 false
  %130 = select i1 %127, i1 true, i1 %128
  %or.cond284 = select i1 %130, i1 true, i1 %129
  br i1 %or.cond284, label %.thread185, label %132

131:                                              ; preds = %124
  %.old = select i1 %12, i1 %.0130212, i1 false
  br i1 %.old, label %.thread185, label %132

132:                                              ; preds = %126, %131
  %.0135.mux = select i1 %12, i8 1, i8 %.0135211
  %133 = getelementptr inbounds i8, ptr %27, i64 12
  %134 = load i32, ptr %133, align 4, !tbaa !98
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %4) #6
  %135 = icmp ult i32 %134, 65536
  %136 = trunc i32 %134 to i16
  %137 = select i1 %135, i16 %136, i16 -3
  store i16 %137, ptr %4, align 2, !tbaa !107
  call void @_ZN8ImVectorItE9push_backERKt(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 2 dereferenceable(2) %4)
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %4) #6
  br label %.thread179

138:                                              ; preds = %26
  %139 = getelementptr inbounds i8, ptr %27, i64 12
  %140 = load i8, ptr %139, align 4, !tbaa !98, !range !96, !noundef !97
  %141 = xor i8 %140, 1
  store i8 %141, ptr %16, align 8, !tbaa !108
  br label %.thread179

142:                                              ; preds = %26
  call void @__assert_fail(ptr noundef nonnull @.str.214, ptr noundef nonnull @.str.3, i32 noundef 9803, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui17UpdateInputEventsEb) #7
  unreachable

.thread179:                                       ; preds = %110, %.critedge167, %29, %84, %121, %._crit_edge257, %42, %138, %132, %73
  %.3142 = phi i32 [ %.0139210, %29 ], [ %.0139210, %84 ], [ %.0139210, %121 ], [ %.0139210, %42 ], [ %69, %._crit_edge257 ], [ %.0139210, %73 ], [ %.0139210, %132 ], [ %.0139210, %138 ], [ %.0139210, %.critedge167 ], [ %.0139210, %110 ]
  %.3138 = phi i8 [ %.0135211, %29 ], [ %.0135211, %84 ], [ %.0135211, %121 ], [ %.0135211, %42 ], [ %.0135211, %._crit_edge257 ], [ %.0135211, %73 ], [ %.0135.mux, %132 ], [ %.0135211, %138 ], [ %.0135211, %.critedge167 ], [ %.0135211, %110 ]
  %.5 = phi i1 [ %.0130212, %29 ], [ %.0130212, %84 ], [ %.0130212, %121 ], [ %.0130212, %42 ], [ %.0130212, %._crit_edge257 ], [ %.0130212, %73 ], [ %.0130212, %132 ], [ %.0130212, %138 ], [ %.0130212, %.critedge167 ], [ %spec.select, %110 ]
  %.4 = phi i1 [ %.0126213, %29 ], [ %.0126213, %84 ], [ %.0126213, %121 ], [ %.0126213, %42 ], [ %.0126213, %._crit_edge257 ], [ %.0126213, %73 ], [ %.0126213, %132 ], [ %.0126213, %138 ], [ true, %.critedge167 ], [ true, %110 ]
  %.2125 = phi i8 [ %.0123214, %29 ], [ %.0123214, %84 ], [ %.0123214, %121 ], [ %.0123214, %42 ], [ %.0123214, %._crit_edge257 ], [ 1, %73 ], [ %.0123214, %132 ], [ %.0123214, %138 ], [ %.0123214, %.critedge167 ], [ %.0123214, %110 ]
  %.3 = phi i8 [ %.0122215, %29 ], [ %.0122215, %84 ], [ %.0122215, %121 ], [ 1, %42 ], [ %.0122215, %._crit_edge257 ], [ %.0122215, %73 ], [ %.0122215, %132 ], [ %.0122215, %138 ], [ %.0122215, %.critedge167 ], [ %.0122215, %110 ]
  %143 = add nuw nsw i32 %.0143208, 1
  %144 = load i32, ptr %13, align 8, !tbaa !91
  %145 = icmp slt i32 %143, %144
  br i1 %145, label %26, label %.lr.ph248, !llvm.loop !109

.thread185:                                       ; preds = %70, %126, %125, %101, %108, %55, %53, %61, %131, %.thread
  %.not251 = icmp eq i32 %.0143208, 0
  br i1 %.not251, label %._crit_edge..loopexit_crit_edge, label %.lr.ph248

.lr.ph248:                                        ; preds = %.thread179, %.thread185
  %.0143207266 = phi i32 [ %.0143208, %.thread185 ], [ %143, %.thread179 ]
  %146 = getelementptr inbounds i8, ptr %5, i64 4848
  br label %147

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

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

._crit_edge:                                      ; preds = %147
  %150 = getelementptr inbounds i8, ptr %5, i64 9908
  %151 = load i32, ptr %150, align 4, !tbaa !112
  %152 = and i32 %151, 128
  %.not159 = icmp ne i32 %152, 0
  %.pre256 = load i32, ptr %13, align 8, !tbaa !91
  %153 = icmp sgt i32 %.pre256, 0
  %or.cond281 = select i1 %.not159, i1 %153, i1 false
  br i1 %or.cond281, label %.lr.ph250, label %.loopexit

.lr.ph250:                                        ; preds = %._crit_edge, %.lr.ph250
  %.0249 = phi i32 [ %156, %.lr.ph250 ], [ 0, %._crit_edge ]
  %154 = icmp ult i32 %.0249, %.0143207266
  %.str.215..str.216 = select i1 %154, ptr @.str.215, ptr @.str.216
  %155 = call noundef nonnull align 4 dereferenceable(25) ptr @_ZN8ImVectorI15ImGuiInputEventEixEi(ptr noundef nonnull align 8 dereferenceable(16) %13, i32 noundef %.0249)
  call void @_ZL20DebugPrintInputEventPKcPK15ImGuiInputEvent(ptr noundef nonnull %.str.215..str.216, ptr noundef nonnull %155)
  %156 = add nuw nsw i32 %.0249, 1
  %157 = load i32, ptr %13, align 8, !tbaa !91
  %158 = icmp slt i32 %156, %157
  br i1 %158, label %.lr.ph250, label %.loopexit, !llvm.loop !113

.loopexit:                                        ; preds = %.lr.ph250, %._crit_edge..loopexit_crit_edge, %._crit_edge
  %.0143207261270 = phi i32 [ 0, %._crit_edge..loopexit_crit_edge ], [ %.0143207266, %._crit_edge ], [ %.0143207266, %.lr.ph250 ]
  %159 = phi i32 [ %.pre, %._crit_edge..loopexit_crit_edge ], [ %.pre256, %._crit_edge ], [ %157, %.lr.ph250 ]
  %160 = icmp eq i32 %.0143207261270, %159
  br i1 %160, label %161, label %162

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

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

168:                                              ; preds = %162, %161
  %169 = getelementptr inbounds i8, ptr %5, i64 2936
  %170 = load i8, ptr %169, align 8, !tbaa !115, !range !96, !noundef !97
  %171 = trunc nuw i8 %170 to i1
  br i1 %171, label %172, label %173

172:                                              ; preds = %168
  call void @_ZN7ImGuiIO14ClearInputKeysEv(ptr noundef nonnull align 8 dereferenceable(2976) %6)
  call void @_ZN7ImGuiIO15ClearInputMouseEv(ptr noundef nonnull align 8 dereferenceable(2976) %6)
  br label %173

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL30IsKeyChordPotentiallyCharInputi(i32 noundef) local_unnamed_addr #4

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL21GetMergedModsFromKeysv() local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10ImBitArrayILi154ELi0EE6SetBitEi(ptr noundef nonnull align 4 dereferenceable(20), i32 noundef) local_unnamed_addr #1 align 2

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !13, i64 10384}
!10 = !{!"_ZTS12ImGuiContext", !11, i64 0, !11, i64 1, !12, i64 8, !19, i64 2984, !20, i64 3056, !6, i64 4216, !15, i64 4224, !15, i64 4228, !15, i64 4232, !15, i64 4236, !22, i64 4240, !25, i64 4776, !13, i64 4784, !13, i64 4788, !13, i64 4792, !13, i64 4796, !11, i64 4800, !11, i64 4801, !11, i64 4802, !11, i64 4803, !6, i64 4808, !7, i64 4816, !26, i64 4832, !26, i64 4848, !16, i64 4864, !13, i64 4868, !27, i64 4872, !27, i64 4888, !27, i64 4904, !28, i64 4920, !29, i64 4936, !13, i64 4952, !14, i64 4956, !13, i64 4964, !6, i64 4968, !6, i64 4976, !6, i64 4984, !6, i64 4992, !6, i64 5000, !6, i64 5008, !14, i64 5016, !13, i64 5024, !13, i64 5028, !15, i64 5032, !14, i64 5036, !14, i64 5044, !13, i64 5052, !13, i64 5056, !13, i64 5060, !13, i64 5064, !13, i64 5068, !15, i64 5072, !15, i64 5076, !11, i64 5080, !11, i64 5081, !11, i64 5082, !13, i64 5084, !13, i64 5088, !15, i64 5092, !11, i64 5096, !11, i64 5097, !11, i64 5098, !11, i64 5099, !11, i64 5100, !11, i64 5101, !11, i64 5102, !13, i64 5103, !14, i64 5104, !6, i64 5112, !31, i64 5120, !13, i64 5124, !32, i64 5128, !33, i64 5140, !13, i64 5148, !15, i64 5152, !25, i64 5160, !25, i64 5168, !25, i64 5176, !34, i64 5184, !7, i64 5204, !35, i64 7056, !13, i64 7400, !11, i64 7404, !13, i64 7408, !13, i64 7412, !13, i64 7416, !13, i64 7420, !37, i64 7424, !39, i64 7480, !41, i64 7560, !11, i64 7672, !13, i64 7676, !42, i64 7680, !43, i64 7696, !44, i64 7712, !45, i64 7728, !46, i64 7744, !47, i64 7760, !48, i64 7776, !48, i64 7792, !49, i64 7808, !50, i64 7824, !11, i64 7840, !11, i64 7841, !11, i64 7842, !11, i64 7843, !13, i64 7844, !6, i64 7848, !13, i64 7856, !51, i64 7860, !13, i64 7864, !13, i64 7868, !13, i64 7872, !13, i64 7876, !45, i64 7880, !13, i64 7896, !15, i64 7900, !13, i64 7904, !13, i64 7908, !31, i64 7912, !38, i64 7920, !7, i64 7928, !11, i64 7929, !11, i64 7930, !11, i64 7931, !52, i64 7936, !11, i64 7992, !11, i64 7993, !11, i64 7994, !13, i64 7996, !13, i64 8000, !13, i64 8004, !21, i64 8008, !21, i64 8012, !21, i64 8016, !40, i64 8020, !40, i64 8036, !13, i64 8052, !13, i64 8056, !13, i64 8060, !52, i64 8064, !52, i64 8120, !52, i64 8176, !52, i64 8232, !13, i64 8288, !13, i64 8292, !13, i64 8296, !13, i64 8300, !11, i64 8304, !11, i64 8305, !13, i64 8308, !13, i64 8312, !6, i64 8320, !6, i64 8328, !6, i64 8336, !15, i64 8344, !15, i64 8348, !11, i64 8352, !53, i64 8356, !14, i64 8360, !14, i64 8368, !15, i64 8376, !11, i64 8380, !11, i64 8381, !11, i64 8382, !13, i64 8384, !13, i64 8388, !13, i64 8392, !54, i64 8400, !40, i64 8464, !40, i64 8480, !13, i64 8496, !13, i64 8500, !15, i64 8504, !13, i64 8508, !13, i64 8512, !13, i64 8516, !13, i64 8520, !55, i64 8528, !7, i64 8544, !13, i64 8560, !56, i64 8568, !6, i64 8584, !13, i64 8592, !13, i64 8596, !57, i64 8600, !58, i64 8616, !60, i64 8656, !61, i64 8672, !6, i64 8688, !62, i64 8696, !64, i64 8736, !65, i64 8752, !66, i64 8768, !6, i64 8872, !13, i64 8880, !67, i64 8888, !68, i64 8904, !13, i64 8944, !13, i64 8948, !15, i64 8952, !15, i64 8956, !13, i64 8960, !13, i64 8964, !13, i64 8968, !15, i64 8972, !14, i64 8976, !70, i64 8984, !72, i64 9104, !73, i64 9128, !13, i64 9248, !33, i64 9252, !13, i64 9260, !13, i64 9264, !13, i64 9268, !13, i64 9272, !13, i64 9276, !15, i64 9280, !15, i64 9284, !13, i64 9288, !23, i64 9292, !75, i64 9308, !40, i64 9356, !11, i64 9372, !17, i64 9374, !15, i64 9376, !15, i64 9380, !15, i64 9384, !11, i64 9388, !11, i64 9389, !15, i64 9392, !15, i64 9396, !15, i64 9400, !17, i64 9404, !17, i64 9406, !6, i64 9408, !71, i64 9416, !76, i64 9432, !77, i64 9448, !79, i64 9552, !79, i64 9568, !11, i64 9584, !15, i64 9588, !80, i64 9592, !81, i64 9608, !82, i64 9624, !83, i64 9640, !84, i64 9656, !13, i64 9672, !7, i64 9680, !11, i64 9760, !13, i64 9764, !6, i64 9768, !6, i64 9776, !80, i64 9784, !6, i64 9800, !6, i64 9808, !15, i64 9816, !11, i64 9820, !13, i64 9824, !13, i64 9828, !13, i64 9832, !6, i64 9840, !6, i64 9848, !14, i64 9856, !11, i64 9864, !13, i64 9868, !85, i64 9872, !6, i64 9896, !13, i64 9904, !13, i64 9908, !80, i64 9912, !86, i64 9928, !13, i64 9952, !13, i64 9956, !7, i64 9960, !7, i64 9961, !11, i64 9962, !13, i64 9964, !7, i64 9968, !11, i64 9969, !7, i64 9970, !13, i64 9972, !15, i64 9976, !23, i64 9980, !87, i64 9996, !88, i64 10024, !90, i64 10064, !7, i64 10124, !13, i64 10364, !13, i64 10368, !15, i64 10372, !13, i64 10376, !13, i64 10380, !13, i64 10384, !71, i64 10392, !7, i64 10408}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"_ZTS7ImGuiIO", !13, i64 0, !13, i64 4, !14, i64 8, !15, i64 16, !15, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !15, i64 56, !11, i64 60, !6, i64 64, !14, i64 72, !11, i64 80, !11, i64 81, !11, i64 82, !11, i64 83, !11, i64 84, !11, i64 85, !11, i64 86, !11, i64 87, !11, i64 88, !11, i64 89, !11, i64 90, !11, i64 91, !11, i64 92, !11, i64 93, !11, i64 94, !11, i64 95, !11, i64 96, !15, i64 100, !15, i64 104, !15, i64 108, !15, i64 112, !15, i64 116, !15, i64 120, !11, i64 124, !11, i64 125, !11, i64 126, !11, i64 127, !11, i64 128, !11, i64 129, !11, i64 130, !11, i64 131, !11, i64 132, !11, i64 133, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !11, i64 176, !11, i64 177, !11, i64 178, !11, i64 179, !11, i64 180, !11, i64 181, !11, i64 182, !15, i64 184, !13, i64 188, !13, i64 192, !13, i64 196, !13, i64 200, !14, i64 204, !6, i64 216, !14, i64 224, !7, i64 232, !15, i64 240, !15, i64 244, !16, i64 248, !11, i64 252, !11, i64 253, !11, i64 254, !11, i64 255, !13, i64 256, !7, i64 260, !11, i64 2724, !14, i64 2728, !7, i64 2736, !7, i64 2776, !7, i64 2816, !7, i64 2821, !7, i64 2826, !7, i64 2836, !7, i64 2846, !7, i64 2851, !7, i64 2856, !11, i64 2861, !11, i64 2862, !7, i64 2864, !7, i64 2884, !7, i64 2904, !15, i64 2924, !11, i64 2928, !11, i64 2929, !17, i64 2930, !18, i64 2936, !6, i64 2952, !6, i64 2960, !6, i64 2968}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTS6ImVec2", !15, i64 0, !15, i64 4}
!15 = !{!"float", !7, i64 0}
!16 = !{!"_ZTS16ImGuiMouseSource", !7, i64 0}
!17 = !{!"short", !7, i64 0}
!18 = !{!"_ZTS8ImVectorItE", !13, i64 0, !13, i64 4, !6, i64 8}
!19 = !{!"_ZTS15ImGuiPlatformIO", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !17, i64 56, !6, i64 64}
!20 = !{!"_ZTS10ImGuiStyle", !15, i64 0, !15, i64 4, !14, i64 8, !15, i64 16, !15, i64 20, !14, i64 24, !14, i64 32, !21, i64 40, !15, i64 44, !15, i64 48, !15, i64 52, !15, i64 56, !14, i64 60, !15, i64 68, !15, i64 72, !14, i64 76, !14, i64 84, !14, i64 92, !14, i64 100, !15, i64 108, !15, i64 112, !15, i64 116, !15, i64 120, !15, i64 124, !15, i64 128, !15, i64 132, !15, i64 136, !15, i64 140, !15, i64 144, !15, i64 148, !15, i64 152, !15, i64 156, !14, i64 160, !21, i64 168, !14, i64 172, !14, i64 180, !15, i64 188, !14, i64 192, !14, i64 200, !14, i64 208, !14, i64 216, !15, i64 224, !11, i64 228, !11, i64 229, !11, i64 230, !15, i64 232, !15, i64 236, !7, i64 240, !15, i64 1136, !15, i64 1140, !15, i64 1144, !13, i64 1148, !13, i64 1152}
!21 = !{!"_ZTS8ImGuiDir", !7, i64 0}
!22 = !{!"_ZTS20ImDrawListSharedData", !14, i64 0, !6, i64 8, !6, i64 16, !15, i64 24, !15, i64 28, !15, i64 32, !15, i64 36, !23, i64 40, !13, i64 56, !24, i64 64, !7, i64 80, !15, i64 464, !7, i64 468}
!23 = !{!"_ZTS6ImVec4", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!24 = !{!"_ZTS8ImVectorI6ImVec2E", !13, i64 0, !13, i64 4, !6, i64 8}
!25 = !{!"double", !7, i64 0}
!26 = !{!"_ZTS8ImVectorI15ImGuiInputEventE", !13, i64 0, !13, i64 4, !6, i64 8}
!27 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !13, i64 0, !13, i64 4, !6, i64 8}
!28 = !{!"_ZTS8ImVectorI20ImGuiWindowStackDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!29 = !{!"_ZTS12ImGuiStorage", !30, i64 0}
!30 = !{!"_ZTS8ImVectorI16ImGuiStoragePairE", !13, i64 0, !13, i64 4, !6, i64 8}
!31 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!32 = !{!"_ZTS24ImGuiDeactivatedItemData", !13, i64 0, !13, i64 4, !11, i64 8, !11, i64 9}
!33 = !{!"_ZTS20ImGuiDataTypeStorage", !7, i64 0}
!34 = !{!"_ZTS10ImBitArrayILi154ELin512EE", !7, i64 0}
!35 = !{!"_ZTS20ImGuiKeyRoutingTable", !7, i64 0, !36, i64 312, !36, i64 328}
!36 = !{!"_ZTS8ImVectorI19ImGuiKeyRoutingDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!37 = !{!"_ZTS17ImGuiNextItemData", !13, i64 0, !13, i64 4, !13, i64 8, !38, i64 16, !15, i64 24, !13, i64 28, !13, i64 32, !11, i64 36, !7, i64 37, !33, i64 38, !13, i64 48}
!38 = !{!"long long", !7, i64 0}
!39 = !{!"_ZTS17ImGuiLastItemData", !13, i64 0, !13, i64 4, !13, i64 8, !40, i64 12, !40, i64 28, !40, i64 44, !40, i64 60, !13, i64 76}
!40 = !{!"_ZTS6ImRect", !14, i64 0, !14, i64 8}
!41 = !{!"_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, !13, i64 56, !11, i64 60, !40, i64 64, !6, i64 80, !6, i64 88, !15, i64 96, !14, i64 100, !13, i64 108}
!42 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !13, i64 0, !13, i64 4, !6, i64 8}
!43 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !13, i64 0, !13, i64 4, !6, i64 8}
!44 = !{!"_ZTS8ImVectorIP6ImFontE", !13, i64 0, !13, i64 4, !6, i64 8}
!45 = !{!"_ZTS8ImVectorI19ImGuiFocusScopeDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!46 = !{!"_ZTS8ImVectorIiE", !13, i64 0, !13, i64 4, !6, i64 8}
!47 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!48 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!49 = !{!"_ZTS8ImVectorI22ImGuiTreeNodeStackDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!50 = !{!"_ZTS8ImVectorIP14ImGuiViewportPE", !13, i64 0, !13, i64 4, !6, i64 8}
!51 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!52 = !{!"_ZTS16ImGuiNavItemData", !6, i64 0, !13, i64 8, !13, i64 12, !40, i64 16, !13, i64 32, !15, i64 36, !15, i64 40, !15, i64 44, !38, i64 48}
!53 = !{!"_ZTS8ImGuiKey", !7, i64 0}
!54 = !{!"_ZTS12ImGuiPayload", !6, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !7, i64 24, !11, i64 57, !11, i64 58}
!55 = !{!"_ZTS8ImVectorIhE", !13, i64 0, !13, i64 4, !6, i64 8}
!56 = !{!"_ZTS8ImVectorI20ImGuiListClipperDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!57 = !{!"_ZTS8ImVectorI18ImGuiTableTempDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!58 = !{!"_ZTS6ImPoolI10ImGuiTableE", !59, i64 0, !29, i64 16, !13, i64 32, !13, i64 36}
!59 = !{!"_ZTS8ImVectorI10ImGuiTableE", !13, i64 0, !13, i64 4, !6, i64 8}
!60 = !{!"_ZTS8ImVectorIfE", !13, i64 0, !13, i64 4, !6, i64 8}
!61 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !13, i64 0, !13, i64 4, !6, i64 8}
!62 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !63, i64 0, !29, i64 16, !13, i64 32, !13, i64 36}
!63 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !13, i64 0, !13, i64 4, !6, i64 8}
!64 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !13, i64 0, !13, i64 4, !6, i64 8}
!65 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !13, i64 0, !13, i64 4, !6, i64 8}
!66 = !{!"_ZTS19ImGuiBoxSelectState", !13, i64 0, !11, i64 4, !11, i64 5, !11, i64 6, !11, i64 7, !11, i64 8, !13, i64 9, !14, i64 12, !14, i64 20, !14, i64 28, !6, i64 40, !11, i64 48, !40, i64 52, !40, i64 68, !40, i64 84}
!67 = !{!"_ZTS8ImVectorI24ImGuiMultiSelectTempDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!68 = !{!"_ZTS6ImPoolI21ImGuiMultiSelectStateE", !69, i64 0, !29, i64 16, !13, i64 32, !13, i64 36}
!69 = !{!"_ZTS8ImVectorI21ImGuiMultiSelectStateE", !13, i64 0, !13, i64 4, !6, i64 8}
!70 = !{!"_ZTS19ImGuiInputTextState", !6, i64 0, !6, i64 8, !13, i64 16, !13, i64 20, !13, i64 24, !6, i64 32, !71, i64 40, !71, i64 56, !71, i64 72, !13, i64 88, !14, i64 92, !15, i64 100, !11, i64 104, !11, i64 105, !11, i64 106, !11, i64 107, !13, i64 108, !13, i64 112}
!71 = !{!"_ZTS8ImVectorIcE", !13, i64 0, !13, i64 4, !6, i64 8}
!72 = !{!"_ZTS30ImGuiInputTextDeactivatedState", !13, i64 0, !71, i64 8}
!73 = !{!"_ZTS6ImFont", !60, i64 0, !15, i64 16, !15, i64 20, !18, i64 24, !74, i64 40, !6, i64 56, !6, i64 64, !6, i64 72, !17, i64 80, !17, i64 82, !17, i64 84, !17, i64 86, !15, i64 88, !15, i64 92, !11, i64 96, !15, i64 100, !15, i64 104, !15, i64 108, !13, i64 112, !7, i64 116}
!74 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !13, i64 0, !13, i64 4, !6, i64 8}
!75 = !{!"_ZTS21ImGuiComboPreviewData", !40, i64 0, !14, i64 16, !14, i64 24, !14, i64 32, !15, i64 40, !13, i64 44}
!76 = !{!"_ZTS8ImVectorIjE", !13, i64 0, !13, i64 4, !6, i64 8}
!77 = !{!"_ZTS22ImGuiTypingSelectState", !78, i64 0, !7, i64 24, !13, i64 88, !13, i64 92, !15, i64 96, !11, i64 100}
!78 = !{!"_ZTS24ImGuiTypingSelectRequest", !13, i64 0, !13, i64 4, !6, i64 8, !11, i64 16, !11, i64 17, !7, i64 18}
!79 = !{!"_ZTS20ImGuiPlatformImeData", !11, i64 0, !14, i64 4, !15, i64 12}
!80 = !{!"_ZTS15ImGuiTextBuffer", !71, i64 0}
!81 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !13, i64 0, !13, i64 4, !6, i64 8}
!82 = !{!"_ZTS13ImChunkStreamI19ImGuiWindowSettingsE", !71, i64 0}
!83 = !{!"_ZTS13ImChunkStreamI18ImGuiTableSettingsE", !71, i64 0}
!84 = !{!"_ZTS8ImVectorI16ImGuiContextHookE", !13, i64 0, !13, i64 4, !6, i64 8}
!85 = !{!"_ZTS23ImGuiErrorRecoveryState", !17, i64 0, !17, i64 2, !17, i64 4, !17, i64 6, !17, i64 8, !17, i64 10, !17, i64 12, !17, i64 14, !17, i64 16, !17, i64 18, !17, i64 20}
!86 = !{!"_ZTS14ImGuiTextIndex", !46, i64 0, !13, i64 16}
!87 = !{!"_ZTS18ImGuiMetricsConfig", !11, i64 0, !11, i64 1, !11, i64 2, !11, i64 3, !11, i64 4, !11, i64 5, !11, i64 6, !11, i64 7, !11, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24}
!88 = !{!"_ZTS16ImGuiIDStackTool", !13, i64 0, !13, i64 4, !13, i64 8, !89, i64 16, !11, i64 32, !15, i64 36}
!89 = !{!"_ZTS8ImVectorI19ImGuiStackLevelInfoE", !13, i64 0, !13, i64 4, !6, i64 8}
!90 = !{!"_ZTS19ImGuiDebugAllocInfo", !13, i64 0, !13, i64 4, !17, i64 8, !7, i64 12}
!91 = !{!10, !13, i64 4832}
!92 = !{!93, !94, i64 0}
!93 = !{!"_ZTS15ImGuiInputEvent", !94, i64 0, !31, i64 4, !13, i64 8, !7, i64 12, !11, i64 24}
!94 = !{!"_ZTS19ImGuiInputEventType", !7, i64 0}
!95 = !{!10, !11, i64 187}
!96 = !{i8 0, i8 2}
!97 = !{}
!98 = !{!7, !7, i64 0}
!99 = !{!12, !16, i64 248}
!100 = !{!11, !11, i64 0}
!101 = !{!12, !15, i64 244}
!102 = !{!12, !15, i64 240}
!103 = !{!12, !13, i64 0}
!104 = !{!105, !11, i64 0}
!105 = !{!"_ZTS12ImGuiKeyData", !11, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!106 = !{!105, !15, i64 12}
!107 = !{!17, !17, i64 0}
!108 = !{!12, !11, i64 2928}
!109 = distinct !{!109, !110}
!110 = !{!"llvm.loop.mustprogress"}
!111 = distinct !{!111, !110}
!112 = !{!10, !13, i64 9908}
!113 = distinct !{!113, !110}
!114 = !{!10, !6, i64 4840}
!115 = !{!10, !11, i64 2936}


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