; LLVM IR from aap/librw :: skeleton/imgui/imgui.ll (ZN5ImGui17UpdateInputEventsEb)

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

%struct.ImBitArray.52 = type { [21 x i32] }
%struct.ImVec2 = type { float, float }
%struct.ImGuiContext = type { i8, i8, [6 x i8], %struct.ImGuiIO, %struct.ImGuiStyle, ptr, float, float, float, float, %struct.ImDrawListSharedData, double, i32, i32, i32, i8, 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, float, float, i8, i8, i8, i32, i32, float, i8, i8, i8, i8, i8, i8, i8, i8, %struct.ImVec2, ptr, i32, i32, i8, i8, ptr, i32, float, double, double, double, %struct.ImBitArray, [154 x %struct.ImGuiKeyOwnerData], %struct.ImGuiKeyRoutingTable, i32, i8, i32, i32, i32, i32, %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, ptr, i32, i32, i32, i32, i32, i32, i32, %struct.ImVector.9, i32, float, i32, i32, i32, i64, i8, i8, i8, i8, i8, i8, i8, %struct.ImGuiNavItemData, i8, i8, i8, i32, i32, i32, i32, i32, i32, %struct.ImRect, %struct.ImRect, i32, i32, i32, %struct.ImGuiNavItemData, %struct.ImGuiNavItemData, %struct.ImGuiNavItemData, %struct.ImGuiNavItemData, i32, i32, 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, i16, %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, [9 x ptr], i8, i32, ptr, %struct.ImGuiTextBuffer, ptr, ptr, float, i8, i32, i32, i32, i32, %struct.ImGuiTextBuffer, %struct.ImGuiTextIndex, i32, i8, i8, i8, i32, i8, i8, i8, i32, float, %struct.ImVec4, %struct.ImGuiMetricsConfig, %struct.ImGuiIDStackTool, %struct.ImGuiDebugAllocInfo, [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, [3 x i8], ptr, %struct.ImVec2, i8, i8, i8, i8, i8, i8, i8, i8, i8, [3 x i8], float, float, float, float, float, float, i8, i8, i8, i8, i8, [7 x i8], ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i16, i8, i8, i8, i8, i8, i8, i8, [3 x i8], float, i32, i32, i32, i32, %struct.ImVec2, ptr, %struct.ImVec2, [5 x i8], [3 x i8], float, float, i32, i8, i8, i8, i8, i32, [666 x %struct.ImGuiKeyData], i8, [3 x 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, i8, [5 x float], [5 x float], [5 x float], float, i8, i8, i8, i8, i16, [2 x i8], %struct.ImVector, [666 x i32], [666 x i8], [2 x i8], [16 x float], [4 x i8] }>
%struct.ImGuiKeyData = type { i8, float, float, float }
%struct.ImVector = type { i32, i32, ptr }
%struct.ImGuiStyle = type { float, float, %struct.ImVec2, float, float, %struct.ImVec2, %struct.ImVec2, i32, float, float, float, float, %struct.ImVec2, float, float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, float, float, float, float, float, float, float, float, 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, float, float, float, float, %struct.ImVec4, i32, %struct.ImVector.0, [48 x %struct.ImVec2], float, [64 x i8], ptr }
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImVector.1 = type { i32, i32, ptr }
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImVector.3 = type { i32, i32, ptr }
%struct.ImGuiStorage = type { %struct.ImVector.4 }
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.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, i32, i32, i32, %struct.ImVector, %struct.ImVector.28, %struct.ImVector.28, i8, i32, float, %"struct.ImStb::STB_TexteditState", float, i8, i8, i8, i32, i8, i32, i32 }
%"struct.ImStb::STB_TexteditState" = type { i32, i32, i32, i8, i32, i8, i8, i8, i8, i8, i8, i8, float, %"struct.ImStb::StbUndoState" }
%"struct.ImStb::StbUndoState" = type { [99 x %"struct.ImStb::StbUndoRecord"], [999 x i16], i16, i16, i32, i32 }
%"struct.ImStb::StbUndoRecord" = type { i32, i32, i32, i32 }
%struct.ImGuiInputTextDeactivatedState = type { i32, %struct.ImVector.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.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 [68 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(14580)) #5 align 2

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

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

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

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

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

39:                                               ; preds = %400, %36
  %40 = load i32, ptr %12, align 4, !tbaa !94
  %41 = load ptr, ptr %3, align 8, !tbaa !9
  %42 = getelementptr inbounds %struct.ImGuiContext, ptr %41, i32 0, i32 22
  %43 = getelementptr inbounds %struct.ImVector.1, ptr %42, i32 0, i32 0
  %44 = load i32, ptr %43, align 8, !tbaa !95
  %45 = icmp slt i32 %40, %44
  br i1 %45, label %46, label %403

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

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

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

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

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

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

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

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

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

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

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

97:                                               ; preds = %95
  br label %396

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

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

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

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

115:                                              ; preds = %113
  br label %118

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

117:                                              ; No predecessors!
  br label %118

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

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

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

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

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

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

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

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

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

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

168:                                              ; preds = %166
  br label %395

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

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

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

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

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

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

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

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

218:                                              ; preds = %212
  store i32 4, ptr %14, align 4
  br label %397

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

226:                                              ; preds = %219
  br label %229

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

228:                                              ; No predecessors!
  br label %229

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

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

257:                                              ; preds = %244
  %258 = load i32, ptr %19, align 4, !tbaa !94
  %259 = call noundef zeroext i1 @_ZNK10ImBitArrayILi666ELi0EE7TestBitEi(ptr noundef nonnull align 4 dereferenceable(84) %11, i32 noundef %258)
  br i1 %259, label %266, label %260

260:                                              ; preds = %257
  %261 = load i8, ptr %9, align 1, !tbaa !5, !range !11, !noundef !12
  %262 = trunc i8 %261 to i1
  br i1 %262, label %266, label %263

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

266:                                              ; preds = %263, %260, %257
  store i32 2, ptr %14, align 4
  br label %317

267:                                              ; preds = %263, %244, %229
  %268 = load ptr, ptr %13, align 8, !tbaa !9
  %269 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %268, i32 0, i32 3
  %270 = getelementptr inbounds %struct.ImGuiInputEventKey, ptr %269, i32 0, i32 1
  %271 = load i8, ptr %270, align 4, !tbaa !100, !range !11, !noundef !12
  %272 = trunc i8 %271 to i1
  %273 = load ptr, ptr %18, align 8, !tbaa !9
  %274 = getelementptr inbounds %struct.ImGuiKeyData, ptr %273, i32 0, i32 0
  %275 = zext i1 %272 to i8
  store i8 %275, ptr %274, align 4, !tbaa !108
  %276 = load ptr, ptr %13, align 8, !tbaa !9
  %277 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %276, i32 0, i32 3
  %278 = getelementptr inbounds %struct.ImGuiInputEventKey, ptr %277, i32 0, i32 2
  %279 = load float, ptr %278, align 4, !tbaa !100
  %280 = load ptr, ptr %18, align 8, !tbaa !9
  %281 = getelementptr inbounds %struct.ImGuiKeyData, ptr %280, i32 0, i32 3
  store float %279, ptr %281, align 4, !tbaa !110
  store i8 1, ptr %8, align 1, !tbaa !5
  %282 = load i32, ptr %19, align 4, !tbaa !94
  call void @_ZN10ImBitArrayILi666ELi0EE6SetBitEi(ptr noundef nonnull align 4 dereferenceable(84) %11, i32 noundef %282)
  %283 = load ptr, ptr %18, align 8, !tbaa !9
  %284 = getelementptr inbounds %struct.ImGuiKeyData, ptr %283, i32 0, i32 0
  %285 = load i8, ptr %284, align 4, !tbaa !108, !range !11, !noundef !12
  %286 = trunc i8 %285 to i1
  %287 = load ptr, ptr %4, align 8, !tbaa !9
  %288 = getelementptr inbounds %struct.ImGuiIO, ptr %287, i32 0, i32 102
  %289 = load i32, ptr %19, align 4, !tbaa !94
  %290 = sext i32 %289 to i64
  %291 = getelementptr inbounds [666 x i8], ptr %288, i64 0, i64 %290
  %292 = zext i1 %286 to i8
  store i8 %292, ptr %291, align 1, !tbaa !5
  %293 = load ptr, ptr %4, align 8, !tbaa !9
  %294 = getelementptr inbounds %struct.ImGuiIO, ptr %293, i32 0, i32 101
  %295 = load i32, ptr %19, align 4, !tbaa !94
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds [666 x i32], ptr %294, i64 0, i64 %296
  %298 = load i32, ptr %297, align 4, !tbaa !94
  %299 = icmp ne i32 %298, -1
  br i1 %299, label %300, label %316

300:                                              ; preds = %267
  %301 = load ptr, ptr %18, align 8, !tbaa !9
  %302 = getelementptr inbounds %struct.ImGuiKeyData, ptr %301, i32 0, i32 0
  %303 = load i8, ptr %302, align 4, !tbaa !108, !range !11, !noundef !12
  %304 = trunc i8 %303 to i1
  %305 = load ptr, ptr %4, align 8, !tbaa !9
  %306 = getelementptr inbounds %struct.ImGuiIO, ptr %305, i32 0, i32 102
  %307 = load ptr, ptr %4, align 8, !tbaa !9
  %308 = getelementptr inbounds %struct.ImGuiIO, ptr %307, i32 0, i32 101
  %309 = load i32, ptr %19, align 4, !tbaa !94
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds [666 x i32], ptr %308, i64 0, i64 %310
  %312 = load i32, ptr %311, align 4, !tbaa !94
  %313 = sext i32 %312 to i64
  %314 = getelementptr inbounds [666 x i8], ptr %306, i64 0, i64 %313
  %315 = zext i1 %304 to i8
  store i8 %315, ptr %314, align 1, !tbaa !5
  br label %316

316:                                              ; preds = %300, %267
  store i32 0, ptr %14, align 4
  br label %317

317:                                              ; preds = %316, %266
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  %318 = load i32, ptr %14, align 4
  switch i32 %318, label %397 [
    i32 0, label %319
  ]

319:                                              ; preds = %317
  br label %393

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

325:                                              ; preds = %320
  %326 = load ptr, ptr %4, align 8, !tbaa !9
  %327 = getelementptr inbounds %struct.ImGuiIO, ptr %326, i32 0, i32 0
  %328 = load i32, ptr %327, align 8, !tbaa !106
  %329 = and i32 %328, 64
  %330 = icmp ne i32 %329, 0
  br i1 %330, label %331, label %332

331:                                              ; preds = %325
  store i32 4, ptr %14, align 4
  br label %397

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

335:                                              ; preds = %332
  %336 = load i8, ptr %8, align 1, !tbaa !5, !range !11, !noundef !12
  %337 = trunc i8 %336 to i1
  br i1 %337, label %338, label %341

338:                                              ; preds = %335
  %339 = load i8, ptr %5, align 1, !tbaa !5, !range !11, !noundef !12
  %340 = trunc i8 %339 to i1
  br i1 %340, label %350, label %341

341:                                              ; preds = %338, %335
  %342 = load i32, ptr %10, align 4, !tbaa !94
  %343 = icmp ne i32 %342, 0
  br i1 %343, label %350, label %344

344:                                              ; preds = %341
  %345 = load i8, ptr %6, align 1, !tbaa !5, !range !11, !noundef !12
  %346 = trunc i8 %345 to i1
  br i1 %346, label %350, label %347

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

350:                                              ; preds = %347, %344, %341, %338
  store i32 2, ptr %14, align 4
  br label %397

351:                                              ; preds = %347, %332
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %352 = load ptr, ptr %13, align 8, !tbaa !9
  %353 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %352, i32 0, i32 3
  %354 = getelementptr inbounds %struct.ImGuiInputEventText, ptr %353, i32 0, i32 0
  %355 = load i32, ptr %354, align 4, !tbaa !100
  store i32 %355, ptr %20, align 4, !tbaa !94
  %356 = load ptr, ptr %4, align 8, !tbaa !9
  %357 = getelementptr inbounds %struct.ImGuiIO, ptr %356, i32 0, i32 100
  call void @llvm.lifetime.start.p0(i64 2, ptr %21) #7
  %358 = load i32, ptr %20, align 4, !tbaa !94
  %359 = icmp ule i32 %358, 65535
  br i1 %359, label %360, label %364

360:                                              ; preds = %351
  %361 = load i32, ptr %20, align 4, !tbaa !94
  %362 = trunc i32 %361 to i16
  %363 = zext i16 %362 to i32
  br label %365

364:                                              ; preds = %351
  br label %365

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

370:                                              ; preds = %365
  store i8 1, ptr %9, align 1, !tbaa !5
  br label %371

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

372:                                              ; preds = %320
  %373 = load ptr, ptr %13, align 8, !tbaa !9
  %374 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %373, i32 0, i32 0
  %375 = load i32, ptr %374, align 4, !tbaa !96
  %376 = icmp eq i32 %375, 6
  br i1 %376, label %377, label %390

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

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

391:                                              ; preds = %377
  br label %392

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

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

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

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

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

397:                                              ; preds = %396, %350, %331, %317, %218, %183, %166, %95, %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  %398 = load i32, ptr %14, align 4
  switch i32 %398, label %491 [
    i32 0, label %399
    i32 4, label %400
    i32 2, label %403
  ]

399:                                              ; preds = %397
  br label %400

400:                                              ; preds = %399, %397
  %401 = load i32, ptr %12, align 4, !tbaa !94
  %402 = add nsw i32 %401, 1
  store i32 %402, ptr %12, align 4, !tbaa !94
  br label %39, !llvm.loop !113

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

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

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

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

416:                                              ; preds = %409
  %417 = load i32, ptr %23, align 4, !tbaa !94
  %418 = add nsw i32 %417, 1
  store i32 %418, ptr %23, align 4, !tbaa !94
  br label %404, !llvm.loop !115

419:                                              ; preds = %408
  %420 = load i32, ptr %12, align 4, !tbaa !94
  %421 = icmp ne i32 %420, 0
  br i1 %421, label %422, label %454

422:                                              ; preds = %419
  %423 = load ptr, ptr %3, align 8, !tbaa !9
  %424 = getelementptr inbounds %struct.ImGuiContext, ptr %423, i32 0, i32 260
  %425 = load i32, ptr %424, align 4, !tbaa !116
  %426 = and i32 %425, 64
  %427 = icmp ne i32 %426, 0
  br i1 %427, label %428, label %454

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

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

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

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

441:                                              ; preds = %437
  br label %443

442:                                              ; preds = %437
  br label %443

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

450:                                              ; preds = %443
  %451 = load i32, ptr %24, align 4, !tbaa !94
  %452 = add nsw i32 %451, 1
  store i32 %452, ptr %24, align 4, !tbaa !94
  br label %429, !llvm.loop !117

453:                                              ; preds = %436
  br label %454

454:                                              ; preds = %453, %422, %419
  %455 = load i32, ptr %12, align 4, !tbaa !94
  %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 0
  %459 = load i32, ptr %458, align 8, !tbaa !95
  %460 = icmp eq i32 %455, %459
  br i1 %460, label %461, label %464

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

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

479:                                              ; preds = %464, %461
  %480 = load ptr, ptr %3, align 8, !tbaa !9
  %481 = getelementptr inbounds %struct.ImGuiContext, ptr %480, i32 0, i32 3
  %482 = getelementptr inbounds %struct.ImGuiIO, ptr %481, i32 0, i32 94
  %483 = load i8, ptr %482, align 8, !tbaa !119, !range !11, !noundef !12
  %484 = trunc i8 %483 to i1
  br i1 %484, label %485, label %490

485:                                              ; preds = %479
  %486 = load ptr, ptr %3, align 8, !tbaa !9
  %487 = getelementptr inbounds %struct.ImGuiContext, ptr %486, i32 0, i32 3
  call void @_ZN7ImGuiIO14ClearInputKeysEv(ptr noundef nonnull align 8 dereferenceable(14580) %487)
  %488 = load ptr, ptr %3, align 8, !tbaa !9
  %489 = getelementptr inbounds %struct.ImGuiContext, ptr %488, i32 0, i32 3
  call void @_ZN7ImGuiIO15ClearInputMouseEv(ptr noundef nonnull align 8 dereferenceable(14580) %489)
  br label %490

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

491:                                              ; preds = %397
  unreachable
}

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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !16, i64 25432}
!14 = !{!"_ZTS12ImGuiContext", !6, i64 0, !6, i64 1, !15, i64 8, !22, i64 14592, !10, i64 15752, !18, i64 15760, !18, i64 15764, !18, i64 15768, !18, i64 15772, !24, i64 15776, !27, i64 16312, !16, i64 16320, !16, i64 16324, !16, i64 16328, !6, i64 16332, !6, i64 16333, !6, i64 16334, !6, i64 16335, !6, i64 16336, !10, i64 16344, !7, i64 16352, !28, i64 16368, !28, i64 16384, !20, i64 16400, !16, i64 16404, !29, i64 16408, !29, i64 16424, !29, i64 16440, !30, i64 16456, !31, i64 16472, !16, i64 16488, !17, i64 16492, !16, i64 16500, !10, i64 16504, !10, i64 16512, !10, i64 16520, !10, i64 16528, !10, i64 16536, !10, i64 16544, !17, i64 16552, !16, i64 16560, !16, i64 16564, !18, i64 16568, !17, i64 16572, !17, i64 16580, !16, i64 16588, !16, i64 16592, !16, i64 16596, !18, i64 16600, !18, i64 16604, !6, i64 16608, !6, i64 16609, !6, i64 16610, !16, i64 16612, !16, i64 16616, !18, i64 16620, !6, i64 16624, !6, i64 16625, !6, i64 16626, !6, i64 16627, !6, i64 16628, !6, i64 16629, !6, i64 16630, !16, i64 16631, !17, i64 16632, !10, i64 16640, !33, i64 16648, !16, i64 16652, !6, i64 16656, !6, i64 16657, !10, i64 16664, !16, i64 16672, !18, i64 16676, !27, i64 16680, !27, i64 16688, !27, i64 16696, !34, i64 16704, !7, i64 16724, !35, i64 18576, !16, i64 18920, !6, i64 18924, !16, i64 18928, !16, i64 18932, !16, i64 18936, !16, i64 18940, !37, i64 18944, !40, i64 19000, !42, i64 19080, !6, i64 19192, !16, i64 19196, !43, i64 19200, !44, i64 19216, !45, i64 19232, !46, i64 19248, !47, i64 19264, !48, i64 19280, !49, i64 19296, !49, i64 19312, !50, i64 19328, !51, i64 19344, !10, i64 19360, !16, i64 19368, !16, i64 19372, !52, i64 19376, !16, i64 19380, !16, i64 19384, !16, i64 19388, !16, i64 19392, !46, i64 19400, !16, i64 19416, !18, i64 19420, !16, i64 19424, !16, i64 19428, !33, i64 19432, !38, i64 19440, !6, i64 19448, !6, i64 19449, !6, i64 19450, !6, i64 19451, !6, i64 19452, !6, i64 19453, !6, i64 19454, !53, i64 19456, !6, i64 19512, !6, i64 19513, !6, i64 19514, !16, i64 19516, !16, i64 19520, !16, i64 19524, !23, i64 19528, !23, i64 19532, !23, i64 19536, !41, i64 19540, !41, i64 19556, !16, i64 19572, !16, i64 19576, !16, i64 19580, !53, i64 19584, !53, i64 19640, !53, i64 19696, !53, i64 19752, !16, i64 19808, !16, i64 19812, !16, i64 19816, !16, i64 19820, !6, i64 19824, !6, i64 19825, !16, i64 19828, !16, i64 19832, !10, i64 19840, !10, i64 19848, !10, i64 19856, !18, i64 19864, !18, i64 19868, !6, i64 19872, !54, i64 19876, !17, i64 19880, !17, i64 19888, !18, i64 19896, !6, i64 19900, !6, i64 19901, !6, i64 19902, !16, i64 19904, !16, i64 19908, !16, i64 19912, !55, i64 19920, !41, i64 19984, !41, i64 20000, !16, i64 20016, !16, i64 20020, !18, i64 20024, !16, i64 20028, !16, i64 20032, !16, i64 20036, !16, i64 20040, !56, i64 20048, !7, i64 20064, !16, i64 20080, !57, i64 20088, !10, i64 20104, !16, i64 20112, !16, i64 20116, !58, i64 20120, !59, i64 20136, !61, i64 20176, !62, i64 20192, !10, i64 20208, !63, i64 20216, !65, i64 20256, !66, i64 20272, !67, i64 20288, !10, i64 20392, !16, i64 20400, !68, i64 20408, !69, i64 20424, !16, i64 20464, !16, i64 20468, !18, i64 20472, !18, i64 20476, !16, i64 20480, !16, i64 20484, !16, i64 20488, !18, i64 20492, !17, i64 20496, !71, i64 20504, !75, i64 24240, !76, i64 24264, !16, i64 24384, !39, i64 24388, !16, i64 24396, !16, i64 24400, !16, i64 24404, !16, i64 24408, !16, i64 24412, !18, i64 24416, !18, i64 24420, !16, i64 24424, !25, i64 24428, !78, i64 24444, !41, i64 24492, !6, i64 24508, !19, i64 24510, !18, i64 24512, !18, i64 24516, !18, i64 24520, !6, i64 24524, !6, i64 24525, !18, i64 24528, !18, i64 24532, !18, i64 24536, !19, i64 24540, !19, i64 24542, !19, i64 24544, !72, i64 24552, !79, i64 24568, !80, i64 24584, !82, i64 24688, !82, i64 24704, !6, i64 24720, !18, i64 24724, !83, i64 24728, !84, i64 24744, !85, i64 24760, !86, i64 24776, !87, i64 24792, !16, i64 24808, !7, i64 24816, !6, i64 24888, !88, i64 24892, !10, i64 24896, !83, i64 24904, !10, i64 24920, !10, i64 24928, !18, i64 24936, !6, i64 24940, !16, i64 24944, !16, i64 24948, !16, i64 24952, !16, i64 24956, !83, i64 24960, !89, i64 24976, !16, i64 25000, !7, i64 25004, !7, i64 25005, !6, i64 25006, !16, i64 25008, !7, i64 25012, !6, i64 25013, !7, i64 25014, !16, i64 25016, !18, i64 25020, !25, i64 25024, !90, i64 25040, !91, i64 25072, !93, i64 25112, !7, i64 25172, !16, i64 25412, !16, i64 25416, !18, i64 25420, !16, i64 25424, !16, i64 25428, !16, i64 25432, !72, i64 25440, !7, i64 25456}
!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, !18, i64 92, !18, i64 96, !18, i64 100, !18, i64 104, !18, i64 108, !18, i64 112, !6, i64 116, !6, i64 117, !6, i64 118, !6, i64 119, !6, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208, !19, i64 216, !6, i64 218, !6, i64 219, !6, i64 220, !6, i64 221, !6, i64 222, !6, i64 223, !6, i64 224, !18, i64 228, !16, i64 232, !16, i64 236, !16, i64 240, !16, i64 244, !17, i64 248, !10, i64 256, !17, i64 264, !7, i64 272, !18, i64 280, !18, i64 284, !20, i64 288, !6, i64 292, !6, i64 293, !6, i64 294, !6, i64 295, !16, i64 296, !7, i64 300, !6, i64 10956, !17, i64 10960, !7, i64 10968, !7, i64 11008, !7, i64 11048, !7, i64 11053, !7, i64 11058, !7, i64 11068, !7, i64 11078, !7, i64 11083, !7, i64 11088, !6, i64 11093, !6, i64 11094, !7, i64 11096, !7, i64 11116, !7, i64 11136, !18, i64 11156, !6, i64 11160, !6, i64 11161, !7, i64 11162, !6, i64 11163, !19, i64 11164, !21, i64 11168, !7, i64 11184, !7, i64 13848, !7, i64 14516}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_ZTS6ImVec2", !18, i64 0, !18, i64 4}
!18 = !{!"float", !7, i64 0}
!19 = !{!"short", !7, i64 0}
!20 = !{!"_ZTS16ImGuiMouseSource", !7, i64 0}
!21 = !{!"_ZTS8ImVectorItE", !16, i64 0, !16, i64 4, !10, i64 8}
!22 = !{!"_ZTS10ImGuiStyle", !18, i64 0, !18, i64 4, !17, i64 8, !18, i64 16, !18, i64 20, !17, i64 24, !17, i64 32, !23, 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, !23, 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}
!23 = !{!"_ZTS8ImGuiDir", !7, i64 0}
!24 = !{!"_ZTS20ImDrawListSharedData", !17, i64 0, !10, i64 8, !18, i64 16, !18, i64 20, !18, i64 24, !18, i64 28, !25, i64 32, !16, i64 48, !26, i64 56, !7, i64 72, !18, i64 456, !7, i64 460, !10, i64 528}
!25 = !{!"_ZTS6ImVec4", !18, i64 0, !18, i64 4, !18, i64 8, !18, i64 12}
!26 = !{!"_ZTS8ImVectorI6ImVec2E", !16, i64 0, !16, i64 4, !10, i64 8}
!27 = !{!"double", !7, i64 0}
!28 = !{!"_ZTS8ImVectorI15ImGuiInputEventE", !16, i64 0, !16, i64 4, !10, i64 8}
!29 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !16, i64 0, !16, i64 4, !10, i64 8}
!30 = !{!"_ZTS8ImVectorI20ImGuiWindowStackDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!31 = !{!"_ZTS12ImGuiStorage", !32, i64 0}
!32 = !{!"_ZTS8ImVectorI16ImGuiStoragePairE", !16, i64 0, !16, i64 4, !10, i64 8}
!33 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!34 = !{!"_ZTS10ImBitArrayILi154ELin512EE", !7, i64 0}
!35 = !{!"_ZTS20ImGuiKeyRoutingTable", !7, i64 0, !36, i64 312, !36, i64 328}
!36 = !{!"_ZTS8ImVectorI19ImGuiKeyRoutingDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!37 = !{!"_ZTS17ImGuiNextItemData", !16, i64 0, !16, i64 4, !16, i64 8, !38, i64 16, !18, i64 24, !16, i64 28, !16, i64 32, !6, i64 36, !7, i64 37, !39, i64 38, !16, i64 48}
!38 = !{!"long long", !7, i64 0}
!39 = !{!"_ZTS20ImGuiDataTypeStorage", !7, i64 0}
!40 = !{!"_ZTS17ImGuiLastItemData", !16, i64 0, !16, i64 4, !16, i64 8, !41, i64 12, !41, i64 28, !41, i64 44, !41, i64 60, !16, i64 76}
!41 = !{!"_ZTS6ImRect", !17, i64 0, !17, i64 8}
!42 = !{!"_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, !41, i64 64, !10, i64 80, !10, i64 88, !18, i64 96, !17, i64 100, !16, i64 108}
!43 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !16, i64 0, !16, i64 4, !10, i64 8}
!44 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !16, i64 0, !16, i64 4, !10, i64 8}
!45 = !{!"_ZTS8ImVectorIP6ImFontE", !16, i64 0, !16, i64 4, !10, i64 8}
!46 = !{!"_ZTS8ImVectorI19ImGuiFocusScopeDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!47 = !{!"_ZTS8ImVectorIiE", !16, i64 0, !16, i64 4, !10, i64 8}
!48 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!49 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!50 = !{!"_ZTS8ImVectorI22ImGuiTreeNodeStackDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!51 = !{!"_ZTS8ImVectorIP14ImGuiViewportPE", !16, i64 0, !16, i64 4, !10, i64 8}
!52 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!53 = !{!"_ZTS16ImGuiNavItemData", !10, i64 0, !16, i64 8, !16, i64 12, !41, i64 16, !16, i64 32, !18, i64 36, !18, i64 40, !18, i64 44, !38, i64 48}
!54 = !{!"_ZTS8ImGuiKey", !7, i64 0}
!55 = !{!"_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}
!56 = !{!"_ZTS8ImVectorIhE", !16, i64 0, !16, i64 4, !10, i64 8}
!57 = !{!"_ZTS8ImVectorI20ImGuiListClipperDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!58 = !{!"_ZTS8ImVectorI18ImGuiTableTempDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!59 = !{!"_ZTS6ImPoolI10ImGuiTableE", !60, i64 0, !31, i64 16, !16, i64 32, !16, i64 36}
!60 = !{!"_ZTS8ImVectorI10ImGuiTableE", !16, i64 0, !16, i64 4, !10, i64 8}
!61 = !{!"_ZTS8ImVectorIfE", !16, i64 0, !16, i64 4, !10, i64 8}
!62 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !16, i64 0, !16, i64 4, !10, i64 8}
!63 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !64, i64 0, !31, i64 16, !16, i64 32, !16, i64 36}
!64 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !16, i64 0, !16, i64 4, !10, i64 8}
!65 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !16, i64 0, !16, i64 4, !10, i64 8}
!66 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !16, i64 0, !16, i64 4, !10, i64 8}
!67 = !{!"_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, !41, i64 52, !41, i64 68, !41, i64 84}
!68 = !{!"_ZTS8ImVectorI24ImGuiMultiSelectTempDataE", !16, i64 0, !16, i64 4, !10, i64 8}
!69 = !{!"_ZTS6ImPoolI21ImGuiMultiSelectStateE", !70, i64 0, !31, i64 16, !16, i64 32, !16, i64 36}
!70 = !{!"_ZTS8ImVectorI21ImGuiMultiSelectStateE", !16, i64 0, !16, i64 4, !10, i64 8}
!71 = !{!"_ZTS19ImGuiInputTextState", !10, i64 0, !16, i64 8, !16, i64 12, !16, i64 16, !21, i64 24, !72, i64 40, !72, i64 56, !6, i64 72, !16, i64 76, !18, i64 80, !73, i64 84, !18, i64 3712, !6, i64 3716, !6, i64 3717, !6, i64 3718, !16, i64 3720, !6, i64 3724, !16, i64 3728, !16, i64 3732}
!72 = !{!"_ZTS8ImVectorIcE", !16, i64 0, !16, i64 4, !10, i64 8}
!73 = !{!"_ZTSN5ImStb17STB_TexteditStateE", !16, i64 0, !16, i64 4, !16, i64 8, !7, i64 12, !16, i64 16, !7, i64 20, !7, i64 21, !7, i64 22, !7, i64 23, !7, i64 24, !7, i64 25, !7, i64 26, !18, i64 28, !74, i64 32}
!74 = !{!"_ZTSN5ImStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !19, i64 3582, !19, i64 3584, !16, i64 3588, !16, i64 3592}
!75 = !{!"_ZTS30ImGuiInputTextDeactivatedState", !16, i64 0, !72, i64 8}
!76 = !{!"_ZTS6ImFont", !61, i64 0, !18, i64 16, !18, i64 20, !21, i64 24, !77, i64 40, !10, i64 56, !10, i64 64, !10, i64 72, !19, i64 80, !19, i64 82, !19, i64 84, !19, i64 86, !18, i64 88, !18, i64 92, !6, i64 96, !18, i64 100, !18, i64 104, !18, i64 108, !16, i64 112, !7, i64 116}
!77 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !16, i64 0, !16, i64 4, !10, i64 8}
!78 = !{!"_ZTS21ImGuiComboPreviewData", !41, 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", !72, i64 0}
!84 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !16, i64 0, !16, i64 4, !10, i64 8}
!85 = !{!"_ZTS13ImChunkStreamI19ImGuiWindowSettingsE", !72, i64 0}
!86 = !{!"_ZTS13ImChunkStreamI18ImGuiTableSettingsE", !72, i64 0}
!87 = !{!"_ZTS8ImVectorI16ImGuiContextHookE", !16, i64 0, !16, i64 4, !10, i64 8}
!88 = !{!"_ZTS12ImGuiLogType", !7, i64 0}
!89 = !{!"_ZTS14ImGuiTextIndex", !47, 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, !19, i64 8, !7, i64 12}
!94 = !{!16, !16, i64 0}
!95 = !{!14, !16, i64 16368}
!96 = !{!97, !98, i64 0}
!97 = !{!"_ZTS15ImGuiInputEvent", !98, i64 0, !33, i64 4, !16, i64 8, !7, i64 12, !6, i64 24}
!98 = !{!"_ZTS19ImGuiInputEventType", !7, i64 0}
!99 = !{!14, !6, i64 229}
!100 = !{!7, !7, i64 0}
!101 = !{i64 0, i64 4, !102, i64 4, i64 4, !102}
!102 = !{!18, !18, i64 0}
!103 = !{!15, !20, i64 288}
!104 = !{!15, !18, i64 284}
!105 = !{!15, !18, i64 280}
!106 = !{!15, !16, i64 0}
!107 = !{!54, !54, 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 = !{!19, !19, i64 0}
!112 = !{!15, !6, i64 11160}
!113 = distinct !{!113, !114}
!114 = !{!"llvm.loop.mustprogress"}
!115 = distinct !{!115, !114}
!116 = !{!14, !16, i64 24956}
!117 = distinct !{!117, !114}
!118 = !{!14, !10, i64 16376}
!119 = !{!14, !6, i64 11168}


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

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

@GImGui = external dso_local local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [68 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(14580)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7ImGuiIO15ClearInputMouseEv(ptr noundef nonnull align 8 dereferenceable(14580)) 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 25432
  %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 84, ptr nonnull %2) #6
  call void @_ZN10ImBitArrayILi666ELi0EEC2Ev(ptr noundef nonnull align 4 dereferenceable(84) %2)
  %13 = getelementptr inbounds i8, ptr %5, i64 16368
  %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 11168
  %17 = getelementptr inbounds i8, ptr %5, i64 11176
  %18 = getelementptr inbounds i8, ptr %5, i64 308
  %19 = ptrtoint ptr %18 to i64
  %20 = getelementptr inbounds i8, ptr %5, i64 13856
  %21 = getelementptr inbounds i8, ptr %5, i64 11192
  %22 = getelementptr inbounds i8, ptr %5, i64 292
  %23 = getelementptr inbounds i8, ptr %5, i64 288
  %24 = getelementptr inbounds i8, ptr %5, i64 296
  %25 = getelementptr inbounds i8, ptr %5, i64 280
  %26 = getelementptr inbounds i8, ptr %5, i64 229
  %27 = getelementptr inbounds i8, ptr %5, i64 272
  br label %28

28:                                               ; preds = %.lr.ph, %.thread178
  %.0129212 = phi i8 [ 0, %.lr.ph ], [ %.3.ph, %.thread178 ]
  %.0130211 = phi i8 [ 0, %.lr.ph ], [ %.2132.ph, %.thread178 ]
  %.0133210 = phi i8 [ 0, %.lr.ph ], [ %.3136.ph, %.thread178 ]
  %.0137209 = phi i8 [ 0, %.lr.ph ], [ %.3140.ph, %.thread178 ]
  %.0141208 = phi i32 [ 0, %.lr.ph ], [ %.3144.ph, %.thread178 ]
  %.0145206 = phi i32 [ 0, %.lr.ph ], [ %148, %.thread178 ]
  %29 = call noundef nonnull align 4 dereferenceable(25) ptr @_ZN8ImVectorI15ImGuiInputEventEixEi(ptr noundef nonnull align 8 dereferenceable(16) %13, i32 noundef %.0145206)
  %30 = load i32, ptr %29, align 4, !tbaa !92
  switch i32 %30, label %147 [
    i32 1, label %31
    i32 3, label %50
    i32 2, label %74
    i32 4, label %88
    i32 5, label %124
    i32 6, label %143
  ]

31:                                               ; preds = %28
  %32 = load i8, ptr %26, align 1, !tbaa !95, !range !96, !noundef !97
  %33 = trunc nuw i8 %32 to i1
  br i1 %33, label %.thread178, label %34

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

39:                                               ; preds = %34
  %.not159 = icmp eq i32 %.0141208, 0
  br i1 %.not159, label %40, label %.thread

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

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

44:                                               ; preds = %42
  %45 = trunc nuw i8 %.0137209 to i1
  br i1 %45, label %.thread, label %46

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

46:                                               ; preds = %34, %44
  %47 = load i64, ptr %3, align 8
  store i64 %47, ptr %27, align 8
  %48 = getelementptr inbounds i8, ptr %29, i64 20
  %49 = load i32, ptr %48, align 4, !tbaa !98
  store i32 %49, ptr %24, align 8, !tbaa !99
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br label %.thread178

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

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

55:                                               ; preds = %50
  %56 = shl nuw nsw i32 1, %52
  br i1 %0, label %57, label %._crit_edge251

57:                                               ; preds = %55
  %58 = and i32 %56, %.0141208
  %.not158 = icmp eq i32 %58, 0
  br i1 %.not158, label %59, label %.thread173

59:                                               ; preds = %57
  %60 = trunc nuw i8 %.0130211 to i1
  br i1 %60, label %.thread173, label %61

61:                                               ; preds = %59
  %62 = getelementptr inbounds i8, ptr %29, i64 20
  %63 = load i32, ptr %62, align 4
  %64 = icmp eq i32 %63, 1
  br i1 %64, label %65, label %._crit_edge251

65:                                               ; preds = %61
  %66 = trunc nuw i8 %.0129212 to i1
  br i1 %66, label %.thread173, label %._crit_edge251

._crit_edge251:                                   ; preds = %55, %61, %65
  %67 = getelementptr inbounds i8, ptr %29, i64 16
  %68 = load i8, ptr %67, align 4, !tbaa !98, !range !96, !noundef !97
  %69 = zext nneg i32 %52 to i64
  %70 = getelementptr inbounds [5 x i8], ptr %25, i64 0, i64 %69
  store i8 %68, ptr %70, align 1, !tbaa !100
  %71 = getelementptr inbounds i8, ptr %29, i64 20
  %72 = load i32, ptr %71, align 4, !tbaa !98
  store i32 %72, ptr %24, align 8, !tbaa !99
  %73 = or i32 %56, %.0141208
  br label %.thread178

74:                                               ; preds = %28
  %75 = trunc nuw i8 %.0129212 to i1
  %76 = icmp ne i32 %.0141208, 0
  %or.cond = select i1 %75, i1 true, i1 %76
  %or.cond166 = select i1 %0, i1 %or.cond, i1 false
  br i1 %or.cond166, label %.thread173, label %77

77:                                               ; preds = %74
  %78 = getelementptr inbounds i8, ptr %29, i64 12
  %79 = load float, ptr %78, align 4, !tbaa !98
  %80 = load float, ptr %22, align 4, !tbaa !101
  %81 = fadd float %79, %80
  store float %81, ptr %22, align 4, !tbaa !101
  %82 = getelementptr inbounds i8, ptr %29, i64 16
  %83 = load float, ptr %82, align 4, !tbaa !98
  %84 = load float, ptr %23, align 8, !tbaa !102
  %85 = fadd float %83, %84
  store float %85, ptr %23, align 8, !tbaa !102
  %86 = getelementptr inbounds i8, ptr %29, i64 20
  %87 = load i32, ptr %86, align 4, !tbaa !98
  store i32 %87, ptr %24, align 8, !tbaa !99
  br label %.thread178

88:                                               ; preds = %28
  %89 = load i32, ptr %6, align 8, !tbaa !103
  %90 = and i32 %89, 64
  %.not154 = icmp eq i32 %90, 0
  br i1 %.not154, label %91, label %.thread178

91:                                               ; preds = %88
  %92 = getelementptr inbounds i8, ptr %29, i64 12
  %93 = load i32, ptr %92, align 4, !tbaa !98
  %.not155 = icmp eq i32 %93, 0
  br i1 %.not155, label %94, label %95

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

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

101:                                              ; preds = %95
  %102 = load i8, ptr %96, align 4, !tbaa !104, !range !96, !noundef !97
  %103 = getelementptr inbounds i8, ptr %29, i64 16
  %104 = load i8, ptr %103, align 4, !tbaa !98, !range !96, !noundef !97
  %.not156 = icmp eq i8 %102, %104
  br i1 %.not156, label %110, label %105

105:                                              ; preds = %101
  %106 = call noundef zeroext i1 @_ZNK10ImBitArrayILi666ELi0EE7TestBitEi(ptr noundef nonnull align 4 dereferenceable(84) %2, i32 noundef %100)
  %107 = trunc nuw i8 %.0137209 to i1
  %108 = icmp ne i32 %.0141208, 0
  %109 = select i1 %106, i1 true, i1 %107
  %or.cond168 = select i1 %109, i1 true, i1 %108
  br i1 %or.cond168, label %.thread173, label %110

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

121:                                              ; preds = %110
  %122 = sext i32 %120 to i64
  %123 = getelementptr inbounds [666 x i8], ptr %20, i64 0, i64 %122
  store i8 %116, ptr %123, align 1, !tbaa !100
  br label %.thread178

124:                                              ; preds = %28
  %125 = load i32, ptr %6, align 8, !tbaa !103
  %126 = and i32 %125, 64
  %.not = icmp eq i32 %126, 0
  br i1 %.not, label %127, label %.thread178

127:                                              ; preds = %124
  br i1 %0, label %128, label %137

128:                                              ; preds = %127
  %129 = trunc nuw i8 %.0133210 to i1
  br i1 %129, label %130, label %132

130:                                              ; preds = %128
  %131 = icmp ne i32 %.0141208, 0
  %or.cond7 = select i1 %12, i1 true, i1 %131
  br i1 %or.cond7, label %.thread173, label %133

132:                                              ; preds = %128
  %.old6.not = icmp eq i32 %.0141208, 0
  br i1 %.old6.not, label %133, label %.thread173

133:                                              ; preds = %130, %132
  %134 = trunc nuw i8 %.0129212 to i1
  br i1 %134, label %.thread173, label %135

135:                                              ; preds = %133
  %136 = trunc nuw i8 %.0130211 to i1
  br i1 %136, label %.thread173, label %137

137:                                              ; preds = %135, %127
  %138 = getelementptr inbounds i8, ptr %29, i64 12
  %139 = load i32, ptr %138, align 4, !tbaa !98
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %4) #6
  %140 = icmp ult i32 %139, 65536
  %141 = trunc i32 %139 to i16
  %142 = select i1 %140, i16 %141, i16 -3
  store i16 %142, ptr %4, align 2, !tbaa !108
  call void @_ZN8ImVectorItE9push_backERKt(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 2 dereferenceable(2) %4)
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %4) #6
  %spec.select = select i1 %12, i8 1, i8 %.0137209
  br label %.thread178

143:                                              ; preds = %28
  %144 = getelementptr inbounds i8, ptr %29, i64 12
  %145 = load i8, ptr %144, align 4, !tbaa !98, !range !96, !noundef !97
  %146 = xor i8 %145, 1
  store i8 %146, ptr %16, align 8, !tbaa !109
  br label %.thread178

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

.thread178:                                       ; preds = %110, %121, %31, %88, %124, %._crit_edge251, %46, %143, %137, %77
  %.3144.ph = phi i32 [ %.0141208, %143 ], [ %.0141208, %137 ], [ %.0141208, %77 ], [ %73, %._crit_edge251 ], [ %.0141208, %46 ], [ %.0141208, %124 ], [ %.0141208, %88 ], [ %.0141208, %31 ], [ %.0141208, %121 ], [ %.0141208, %110 ]
  %.3140.ph = phi i8 [ %.0137209, %143 ], [ %spec.select, %137 ], [ %.0137209, %77 ], [ %.0137209, %._crit_edge251 ], [ %.0137209, %46 ], [ %.0137209, %124 ], [ %.0137209, %88 ], [ %.0137209, %31 ], [ %.0137209, %121 ], [ %.0137209, %110 ]
  %.3136.ph = phi i8 [ %.0133210, %143 ], [ %.0133210, %137 ], [ %.0133210, %77 ], [ %.0133210, %._crit_edge251 ], [ %.0133210, %46 ], [ %.0133210, %124 ], [ %.0133210, %88 ], [ %.0133210, %31 ], [ 1, %121 ], [ 1, %110 ]
  %.2132.ph = phi i8 [ %.0130211, %143 ], [ %.0130211, %137 ], [ 1, %77 ], [ %.0130211, %._crit_edge251 ], [ %.0130211, %46 ], [ %.0130211, %124 ], [ %.0130211, %88 ], [ %.0130211, %31 ], [ %.0130211, %121 ], [ %.0130211, %110 ]
  %.3.ph = phi i8 [ %.0129212, %143 ], [ %.0129212, %137 ], [ %.0129212, %77 ], [ %.0129212, %._crit_edge251 ], [ 1, %46 ], [ %.0129212, %124 ], [ %.0129212, %88 ], [ %.0129212, %31 ], [ %.0129212, %121 ], [ %.0129212, %110 ]
  %148 = add nuw nsw i32 %.0145206, 1
  %149 = load i32, ptr %13, align 8, !tbaa !91
  %150 = icmp slt i32 %148, %149
  br i1 %150, label %28, label %.lr.ph242, !llvm.loop !110

.thread173:                                       ; preds = %65, %57, %59, %105, %130, %132, %133, %135, %74, %.thread
  %.not245 = icmp eq i32 %.0145206, 0
  br i1 %.not245, label %._crit_edge..loopexit_crit_edge, label %.lr.ph242

.lr.ph242:                                        ; preds = %.thread178, %.thread173
  %.0145205260 = phi i32 [ %.0145206, %.thread173 ], [ %148, %.thread178 ]
  %151 = getelementptr inbounds i8, ptr %5, i64 16384
  br label %152

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

152:                                              ; preds = %.lr.ph242, %152
  %.0128241 = phi i32 [ 0, %.lr.ph242 ], [ %154, %152 ]
  %153 = call noundef nonnull align 4 dereferenceable(25) ptr @_ZN8ImVectorI15ImGuiInputEventEixEi(ptr noundef nonnull align 8 dereferenceable(16) %13, i32 noundef %.0128241)
  call void @_ZN8ImVectorI15ImGuiInputEventE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %151, ptr noundef nonnull align 4 dereferenceable(25) %153)
  %154 = add nuw nsw i32 %.0128241, 1
  %exitcond.not = icmp eq i32 %154, %.0145205260
  br i1 %exitcond.not, label %._crit_edge, label %152, !llvm.loop !112

._crit_edge:                                      ; preds = %152
  %155 = getelementptr inbounds i8, ptr %5, i64 24956
  %156 = load i32, ptr %155, align 4, !tbaa !113
  %157 = and i32 %156, 64
  %.not161 = icmp ne i32 %157, 0
  %.pre250 = load i32, ptr %13, align 8, !tbaa !91
  %158 = icmp sgt i32 %.pre250, 0
  %or.cond273 = select i1 %.not161, i1 %158, i1 false
  br i1 %or.cond273, label %.lr.ph244, label %.loopexit

.lr.ph244:                                        ; preds = %._crit_edge, %.lr.ph244
  %.0243 = phi i32 [ %161, %.lr.ph244 ], [ 0, %._crit_edge ]
  %159 = icmp ult i32 %.0243, %.0145205260
  %.str.215..str.216 = select i1 %159, ptr @.str.215, ptr @.str.216
  %160 = call noundef nonnull align 4 dereferenceable(25) ptr @_ZN8ImVectorI15ImGuiInputEventEixEi(ptr noundef nonnull align 8 dereferenceable(16) %13, i32 noundef %.0243)
  call void @_ZL20DebugPrintInputEventPKcPK15ImGuiInputEvent(ptr noundef nonnull %.str.215..str.216, ptr noundef nonnull %160)
  %161 = add nuw nsw i32 %.0243, 1
  %162 = load i32, ptr %13, align 8, !tbaa !91
  %163 = icmp slt i32 %161, %162
  br i1 %163, label %.lr.ph244, label %.loopexit, !llvm.loop !114

.loopexit:                                        ; preds = %.lr.ph244, %._crit_edge..loopexit_crit_edge, %._crit_edge
  %.0145205255264 = phi i32 [ 0, %._crit_edge..loopexit_crit_edge ], [ %.0145205260, %._crit_edge ], [ %.0145205260, %.lr.ph244 ]
  %164 = phi i32 [ %.pre, %._crit_edge..loopexit_crit_edge ], [ %.pre250, %._crit_edge ], [ %162, %.lr.ph244 ]
  %165 = icmp eq i32 %.0145205255264, %164
  br i1 %165, label %166, label %167

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

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

173:                                              ; preds = %167, %166
  %174 = getelementptr inbounds i8, ptr %5, i64 11168
  %175 = load i8, ptr %174, align 8, !tbaa !116, !range !96, !noundef !97
  %176 = trunc nuw i8 %175 to i1
  br i1 %176, label %177, label %178

177:                                              ; preds = %173
  call void @_ZN7ImGuiIO14ClearInputKeysEv(ptr noundef nonnull align 8 dereferenceable(14580) %6)
  call void @_ZN7ImGuiIO15ClearInputMouseEv(ptr noundef nonnull align 8 dereferenceable(14580) %6)
  br label %178

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

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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !13, i64 25432}
!10 = !{!"_ZTS12ImGuiContext", !11, i64 0, !11, i64 1, !12, i64 8, !19, i64 14592, !6, i64 15752, !15, i64 15760, !15, i64 15764, !15, i64 15768, !15, i64 15772, !21, i64 15776, !24, i64 16312, !13, i64 16320, !13, i64 16324, !13, i64 16328, !11, i64 16332, !11, i64 16333, !11, i64 16334, !11, i64 16335, !11, i64 16336, !6, i64 16344, !7, i64 16352, !25, i64 16368, !25, i64 16384, !17, i64 16400, !13, i64 16404, !26, i64 16408, !26, i64 16424, !26, i64 16440, !27, i64 16456, !28, i64 16472, !13, i64 16488, !14, i64 16492, !13, i64 16500, !6, i64 16504, !6, i64 16512, !6, i64 16520, !6, i64 16528, !6, i64 16536, !6, i64 16544, !14, i64 16552, !13, i64 16560, !13, i64 16564, !15, i64 16568, !14, i64 16572, !14, i64 16580, !13, i64 16588, !13, i64 16592, !13, i64 16596, !15, i64 16600, !15, i64 16604, !11, i64 16608, !11, i64 16609, !11, i64 16610, !13, i64 16612, !13, i64 16616, !15, i64 16620, !11, i64 16624, !11, i64 16625, !11, i64 16626, !11, i64 16627, !11, i64 16628, !11, i64 16629, !11, i64 16630, !13, i64 16631, !14, i64 16632, !6, i64 16640, !30, i64 16648, !13, i64 16652, !11, i64 16656, !11, i64 16657, !6, i64 16664, !13, i64 16672, !15, i64 16676, !24, i64 16680, !24, i64 16688, !24, i64 16696, !31, i64 16704, !7, i64 16724, !32, i64 18576, !13, i64 18920, !11, i64 18924, !13, i64 18928, !13, i64 18932, !13, i64 18936, !13, i64 18940, !34, i64 18944, !37, i64 19000, !39, i64 19080, !11, i64 19192, !13, i64 19196, !40, i64 19200, !41, i64 19216, !42, i64 19232, !43, i64 19248, !44, i64 19264, !45, i64 19280, !46, i64 19296, !46, i64 19312, !47, i64 19328, !48, i64 19344, !6, i64 19360, !13, i64 19368, !13, i64 19372, !49, i64 19376, !13, i64 19380, !13, i64 19384, !13, i64 19388, !13, i64 19392, !43, i64 19400, !13, i64 19416, !15, i64 19420, !13, i64 19424, !13, i64 19428, !30, i64 19432, !35, i64 19440, !11, i64 19448, !11, i64 19449, !11, i64 19450, !11, i64 19451, !11, i64 19452, !11, i64 19453, !11, i64 19454, !50, i64 19456, !11, i64 19512, !11, i64 19513, !11, i64 19514, !13, i64 19516, !13, i64 19520, !13, i64 19524, !20, i64 19528, !20, i64 19532, !20, i64 19536, !38, i64 19540, !38, i64 19556, !13, i64 19572, !13, i64 19576, !13, i64 19580, !50, i64 19584, !50, i64 19640, !50, i64 19696, !50, i64 19752, !13, i64 19808, !13, i64 19812, !13, i64 19816, !13, i64 19820, !11, i64 19824, !11, i64 19825, !13, i64 19828, !13, i64 19832, !6, i64 19840, !6, i64 19848, !6, i64 19856, !15, i64 19864, !15, i64 19868, !11, i64 19872, !51, i64 19876, !14, i64 19880, !14, i64 19888, !15, i64 19896, !11, i64 19900, !11, i64 19901, !11, i64 19902, !13, i64 19904, !13, i64 19908, !13, i64 19912, !52, i64 19920, !38, i64 19984, !38, i64 20000, !13, i64 20016, !13, i64 20020, !15, i64 20024, !13, i64 20028, !13, i64 20032, !13, i64 20036, !13, i64 20040, !53, i64 20048, !7, i64 20064, !13, i64 20080, !54, i64 20088, !6, i64 20104, !13, i64 20112, !13, i64 20116, !55, i64 20120, !56, i64 20136, !58, i64 20176, !59, i64 20192, !6, i64 20208, !60, i64 20216, !62, i64 20256, !63, i64 20272, !64, i64 20288, !6, i64 20392, !13, i64 20400, !65, i64 20408, !66, i64 20424, !13, i64 20464, !13, i64 20468, !15, i64 20472, !15, i64 20476, !13, i64 20480, !13, i64 20484, !13, i64 20488, !15, i64 20492, !14, i64 20496, !68, i64 20504, !72, i64 24240, !73, i64 24264, !13, i64 24384, !36, i64 24388, !13, i64 24396, !13, i64 24400, !13, i64 24404, !13, i64 24408, !13, i64 24412, !15, i64 24416, !15, i64 24420, !13, i64 24424, !22, i64 24428, !75, i64 24444, !38, i64 24492, !11, i64 24508, !16, i64 24510, !15, i64 24512, !15, i64 24516, !15, i64 24520, !11, i64 24524, !11, i64 24525, !15, i64 24528, !15, i64 24532, !15, i64 24536, !16, i64 24540, !16, i64 24542, !16, i64 24544, !69, i64 24552, !76, i64 24568, !77, i64 24584, !79, i64 24688, !79, i64 24704, !11, i64 24720, !15, i64 24724, !80, i64 24728, !81, i64 24744, !82, i64 24760, !83, i64 24776, !84, i64 24792, !13, i64 24808, !7, i64 24816, !11, i64 24888, !85, i64 24892, !6, i64 24896, !80, i64 24904, !6, i64 24920, !6, i64 24928, !15, i64 24936, !11, i64 24940, !13, i64 24944, !13, i64 24948, !13, i64 24952, !13, i64 24956, !80, i64 24960, !86, i64 24976, !13, i64 25000, !7, i64 25004, !7, i64 25005, !11, i64 25006, !13, i64 25008, !7, i64 25012, !11, i64 25013, !7, i64 25014, !13, i64 25016, !15, i64 25020, !22, i64 25024, !87, i64 25040, !88, i64 25072, !90, i64 25112, !7, i64 25172, !13, i64 25412, !13, i64 25416, !15, i64 25420, !13, i64 25424, !13, i64 25428, !13, i64 25432, !69, i64 25440, !7, i64 25456}
!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, !15, i64 92, !15, i64 96, !15, i64 100, !15, i64 104, !15, i64 108, !15, i64 112, !11, i64 116, !11, i64 117, !11, i64 118, !11, i64 119, !11, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !16, i64 216, !11, i64 218, !11, i64 219, !11, i64 220, !11, i64 221, !11, i64 222, !11, i64 223, !11, i64 224, !15, i64 228, !13, i64 232, !13, i64 236, !13, i64 240, !13, i64 244, !14, i64 248, !6, i64 256, !14, i64 264, !7, i64 272, !15, i64 280, !15, i64 284, !17, i64 288, !11, i64 292, !11, i64 293, !11, i64 294, !11, i64 295, !13, i64 296, !7, i64 300, !11, i64 10956, !14, i64 10960, !7, i64 10968, !7, i64 11008, !7, i64 11048, !7, i64 11053, !7, i64 11058, !7, i64 11068, !7, i64 11078, !7, i64 11083, !7, i64 11088, !11, i64 11093, !11, i64 11094, !7, i64 11096, !7, i64 11116, !7, i64 11136, !15, i64 11156, !11, i64 11160, !11, i64 11161, !7, i64 11162, !11, i64 11163, !16, i64 11164, !18, i64 11168, !7, i64 11184, !7, i64 13848, !7, i64 14516}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTS6ImVec2", !15, i64 0, !15, i64 4}
!15 = !{!"float", !7, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = !{!"_ZTS16ImGuiMouseSource", !7, i64 0}
!18 = !{!"_ZTS8ImVectorItE", !13, i64 0, !13, i64 4, !6, i64 8}
!19 = !{!"_ZTS10ImGuiStyle", !15, i64 0, !15, i64 4, !14, i64 8, !15, i64 16, !15, i64 20, !14, i64 24, !14, i64 32, !20, 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, !20, 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}
!20 = !{!"_ZTS8ImGuiDir", !7, i64 0}
!21 = !{!"_ZTS20ImDrawListSharedData", !14, i64 0, !6, i64 8, !15, i64 16, !15, i64 20, !15, i64 24, !15, i64 28, !22, i64 32, !13, i64 48, !23, i64 56, !7, i64 72, !15, i64 456, !7, i64 460, !6, i64 528}
!22 = !{!"_ZTS6ImVec4", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!23 = !{!"_ZTS8ImVectorI6ImVec2E", !13, i64 0, !13, i64 4, !6, i64 8}
!24 = !{!"double", !7, i64 0}
!25 = !{!"_ZTS8ImVectorI15ImGuiInputEventE", !13, i64 0, !13, i64 4, !6, i64 8}
!26 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !13, i64 0, !13, i64 4, !6, i64 8}
!27 = !{!"_ZTS8ImVectorI20ImGuiWindowStackDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!28 = !{!"_ZTS12ImGuiStorage", !29, i64 0}
!29 = !{!"_ZTS8ImVectorI16ImGuiStoragePairE", !13, i64 0, !13, i64 4, !6, i64 8}
!30 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!31 = !{!"_ZTS10ImBitArrayILi154ELin512EE", !7, i64 0}
!32 = !{!"_ZTS20ImGuiKeyRoutingTable", !7, i64 0, !33, i64 312, !33, i64 328}
!33 = !{!"_ZTS8ImVectorI19ImGuiKeyRoutingDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!34 = !{!"_ZTS17ImGuiNextItemData", !13, i64 0, !13, i64 4, !13, i64 8, !35, i64 16, !15, i64 24, !13, i64 28, !13, i64 32, !11, i64 36, !7, i64 37, !36, i64 38, !13, i64 48}
!35 = !{!"long long", !7, i64 0}
!36 = !{!"_ZTS20ImGuiDataTypeStorage", !7, i64 0}
!37 = !{!"_ZTS17ImGuiLastItemData", !13, i64 0, !13, i64 4, !13, i64 8, !38, i64 12, !38, i64 28, !38, i64 44, !38, i64 60, !13, i64 76}
!38 = !{!"_ZTS6ImRect", !14, i64 0, !14, i64 8}
!39 = !{!"_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, !38, i64 64, !6, i64 80, !6, i64 88, !15, i64 96, !14, i64 100, !13, i64 108}
!40 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !13, i64 0, !13, i64 4, !6, i64 8}
!41 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !13, i64 0, !13, i64 4, !6, i64 8}
!42 = !{!"_ZTS8ImVectorIP6ImFontE", !13, i64 0, !13, i64 4, !6, i64 8}
!43 = !{!"_ZTS8ImVectorI19ImGuiFocusScopeDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!44 = !{!"_ZTS8ImVectorIiE", !13, i64 0, !13, i64 4, !6, i64 8}
!45 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!46 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!47 = !{!"_ZTS8ImVectorI22ImGuiTreeNodeStackDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!48 = !{!"_ZTS8ImVectorIP14ImGuiViewportPE", !13, i64 0, !13, i64 4, !6, i64 8}
!49 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!50 = !{!"_ZTS16ImGuiNavItemData", !6, i64 0, !13, i64 8, !13, i64 12, !38, i64 16, !13, i64 32, !15, i64 36, !15, i64 40, !15, i64 44, !35, i64 48}
!51 = !{!"_ZTS8ImGuiKey", !7, i64 0}
!52 = !{!"_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}
!53 = !{!"_ZTS8ImVectorIhE", !13, i64 0, !13, i64 4, !6, i64 8}
!54 = !{!"_ZTS8ImVectorI20ImGuiListClipperDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!55 = !{!"_ZTS8ImVectorI18ImGuiTableTempDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!56 = !{!"_ZTS6ImPoolI10ImGuiTableE", !57, i64 0, !28, i64 16, !13, i64 32, !13, i64 36}
!57 = !{!"_ZTS8ImVectorI10ImGuiTableE", !13, i64 0, !13, i64 4, !6, i64 8}
!58 = !{!"_ZTS8ImVectorIfE", !13, i64 0, !13, i64 4, !6, i64 8}
!59 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !13, i64 0, !13, i64 4, !6, i64 8}
!60 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !61, i64 0, !28, i64 16, !13, i64 32, !13, i64 36}
!61 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !13, i64 0, !13, i64 4, !6, i64 8}
!62 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !13, i64 0, !13, i64 4, !6, i64 8}
!63 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !13, i64 0, !13, i64 4, !6, i64 8}
!64 = !{!"_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, !38, i64 52, !38, i64 68, !38, i64 84}
!65 = !{!"_ZTS8ImVectorI24ImGuiMultiSelectTempDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!66 = !{!"_ZTS6ImPoolI21ImGuiMultiSelectStateE", !67, i64 0, !28, i64 16, !13, i64 32, !13, i64 36}
!67 = !{!"_ZTS8ImVectorI21ImGuiMultiSelectStateE", !13, i64 0, !13, i64 4, !6, i64 8}
!68 = !{!"_ZTS19ImGuiInputTextState", !6, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !18, i64 24, !69, i64 40, !69, i64 56, !11, i64 72, !13, i64 76, !15, i64 80, !70, i64 84, !15, i64 3712, !11, i64 3716, !11, i64 3717, !11, i64 3718, !13, i64 3720, !11, i64 3724, !13, i64 3728, !13, i64 3732}
!69 = !{!"_ZTS8ImVectorIcE", !13, i64 0, !13, i64 4, !6, i64 8}
!70 = !{!"_ZTSN5ImStb17STB_TexteditStateE", !13, i64 0, !13, i64 4, !13, i64 8, !7, i64 12, !13, i64 16, !7, i64 20, !7, i64 21, !7, i64 22, !7, i64 23, !7, i64 24, !7, i64 25, !7, i64 26, !15, i64 28, !71, i64 32}
!71 = !{!"_ZTSN5ImStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !16, i64 3582, !16, i64 3584, !13, i64 3588, !13, i64 3592}
!72 = !{!"_ZTS30ImGuiInputTextDeactivatedState", !13, i64 0, !69, i64 8}
!73 = !{!"_ZTS6ImFont", !58, i64 0, !15, i64 16, !15, i64 20, !18, i64 24, !74, i64 40, !6, i64 56, !6, i64 64, !6, i64 72, !16, i64 80, !16, i64 82, !16, i64 84, !16, i64 86, !15, i64 88, !15, i64 92, !11, i64 96, !15, i64 100, !15, i64 104, !15, i64 108, !13, i64 112, !7, i64 116}
!74 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !13, i64 0, !13, i64 4, !6, i64 8}
!75 = !{!"_ZTS21ImGuiComboPreviewData", !38, 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", !69, i64 0}
!81 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !13, i64 0, !13, i64 4, !6, i64 8}
!82 = !{!"_ZTS13ImChunkStreamI19ImGuiWindowSettingsE", !69, i64 0}
!83 = !{!"_ZTS13ImChunkStreamI18ImGuiTableSettingsE", !69, i64 0}
!84 = !{!"_ZTS8ImVectorI16ImGuiContextHookE", !13, i64 0, !13, i64 4, !6, i64 8}
!85 = !{!"_ZTS12ImGuiLogType", !7, i64 0}
!86 = !{!"_ZTS14ImGuiTextIndex", !44, 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, !16, i64 8, !7, i64 12}
!91 = !{!10, !13, i64 16368}
!92 = !{!93, !94, i64 0}
!93 = !{!"_ZTS15ImGuiInputEvent", !94, i64 0, !30, i64 4, !13, i64 8, !7, i64 12, !11, i64 24}
!94 = !{!"_ZTS19ImGuiInputEventType", !7, i64 0}
!95 = !{!10, !11, i64 229}
!96 = !{i8 0, i8 2}
!97 = !{}
!98 = !{!7, !7, i64 0}
!99 = !{!12, !17, i64 288}
!100 = !{!11, !11, i64 0}
!101 = !{!12, !15, i64 284}
!102 = !{!12, !15, i64 280}
!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 = !{!13, !13, i64 0}
!108 = !{!16, !16, i64 0}
!109 = !{!12, !11, i64 11160}
!110 = distinct !{!110, !111}
!111 = !{!"llvm.loop.mustprogress"}
!112 = distinct !{!112, !111}
!113 = !{!10, !13, i64 24956}
!114 = distinct !{!114, !111}
!115 = !{!10, !6, i64 16376}
!116 = !{!10, !11, i64 11168}


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