; LLVM IR from hadryansalles/Luz :: deps/imgui/imgui.ll (ZN7ImGuiIO21AddMouseViewportEventEj)

; 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.ImGuiInputEvent = type <{ i32, i32, i32, %union.anon, i8, [3 x i8] }>
%union.anon = type { %struct.ImGuiInputEventMousePos }
%struct.ImGuiInputEventMousePos = type { float, float, i32 }
%struct.ImGuiIO = type { i32, i32, %struct.ImVec2, float, float, ptr, ptr, ptr, ptr, float, i8, ptr, %struct.ImVec2, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, float, float, float, float, float, float, i8, i8, i8, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i16, i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, i32, %struct.ImVec2, [666 x i32], [666 x i8], [16 x float], ptr, %struct.ImVec2, [5 x i8], float, float, i32, i32, i8, i8, i8, i8, i32, [666 x %struct.ImGuiKeyData], i8, %struct.ImVec2, [5 x %struct.ImVec2], [5 x double], [5 x i8], [5 x i8], [5 x i16], [5 x i16], [5 x i8], [5 x i8], [5 x i8], i8, [5 x float], [5 x float], [5 x %struct.ImVec2], [5 x float], float, i8, i8, i8, i8, i16, %struct.ImVector }
%struct.ImGuiKeyData = type { i8, float, float, float }
%struct.ImVec2 = type { float, float }
%struct.ImVector = type { i32, i32, ptr }
%struct.ImGuiInputEventMouseViewport = type { i32 }
%struct.ImGuiContext = type { i8, i8, %struct.ImGuiIO, %struct.ImGuiPlatformIO, %struct.ImGuiStyle, i32, i32, ptr, float, float, %struct.ImDrawListSharedData, double, i32, i32, i32, i32, i8, i8, i8, i8, i8, ptr, %struct.ImVector.3, %struct.ImVector.3, i32, i32, %struct.ImVector.4, %struct.ImVector.4, %struct.ImVector.4, %struct.ImVector.5, %struct.ImGuiStorage, i32, %struct.ImVec2, i32, ptr, ptr, ptr, ptr, ptr, %struct.ImVec2, i32, i32, float, %struct.ImVec2, %struct.ImVec2, i32, i32, i32, i8, i8, float, float, 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, i32, [4 x i8], %struct.ImGuiNextItemData, %struct.ImGuiLastItemData, [4 x i8], %struct.ImGuiNextWindowData, i8, i32, %struct.ImVector.8, %struct.ImVector.9, %struct.ImVector.10, %struct.ImVector.11, %struct.ImVector.12, %struct.ImVector.13, %struct.ImVector.14, %struct.ImVector.14, %struct.ImVector.15, i32, %struct.ImVector.16, float, ptr, ptr, ptr, i32, %struct.ImGuiPlatformMonitor, i32, i32, i32, ptr, i32, i32, %struct.ImVector.11, i32, i32, i32, i32, i32, float, i32, i32, i32, i32, i32, i32, i32, i64, i8, 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, ptr, ptr, ptr, float, float, i8, %struct.ImVec2, %struct.ImVec2, float, i8, i8, i8, i32, i32, i32, %struct.ImGuiPayload, %struct.ImRect, %struct.ImRect, i32, i32, float, i32, i32, i32, i32, %struct.ImVector.17, [16 x i8], i32, %struct.ImVector.18, ptr, i32, i32, %struct.ImVector.19, %struct.ImPool, %struct.ImVector.21, %struct.ImVector.22, ptr, %struct.ImPool.23, %struct.ImVector.25, %struct.ImVector.26, i32, i32, float, float, i32, i32, i32, float, %struct.ImVec2, %struct.ImGuiInputTextState, %struct.ImGuiInputTextDeactivatedState, %struct.ImFont, i32, i32, i32, i32, float, float, i32, %struct.ImVec4, %struct.ImGuiComboPreviewData, %struct.ImRect, i8, float, float, i8, i8, float, float, float, float, i16, i16, i16, %struct.ImVector.27, %struct.ImVector.29, %struct.ImGuiTypingSelectState, %struct.ImGuiPlatformImeData, %struct.ImGuiPlatformImeData, i32, [4 x i8], %struct.ImGuiDockContext, ptr, i8, float, %struct.ImGuiTextBuffer, %struct.ImVector.32, %struct.ImChunkStream, %struct.ImChunkStream.33, %struct.ImVector.34, i32, [11 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, ptr, [60 x float], i32, i32, float, i32, i32, i32, %struct.ImVector.27, [64 x i8] }
%struct.ImGuiPlatformIO = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.ImVector.0, %struct.ImVector.1 }
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImVector.1 = 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, i32, %struct.ImVec2, %struct.ImVec2, float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, i8, i8, i8, float, float, [55 x %struct.ImVec4], float, float, float, i32, i32 }
%struct.ImDrawListSharedData = type { %struct.ImVec2, ptr, float, float, float, %struct.ImVec4, i32, %struct.ImVector.2, [48 x %struct.ImVec2], float, [64 x i8], ptr }
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImVector.3 = type { i32, i32, ptr }
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImVector.5 = type { i32, i32, ptr }
%struct.ImGuiStorage = type { %struct.ImVector.6 }
%struct.ImVector.6 = 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.7, %struct.ImVector.7 }
%struct.ImVector.7 = type { i32, i32, ptr }
%struct.ImGuiNextItemData = type <{ i32, i32, i64, float, i32, i8, i8, [6 x i8] }>
%struct.ImGuiLastItemData = type { i32, i32, i32, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect }
%struct.ImGuiNextWindowData = type <{ i32, i32, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i32, i8, i8, [2 x i8], %struct.ImRect, [4 x i8], ptr, ptr, float, i32, i32, %struct.ImGuiWindowClass, %struct.ImVec2, [4 x i8] }>
%struct.ImGuiWindowClass = type <{ i32, i32, i32, i32, i32, i32, i32, i8, i8, [2 x i8] }>
%struct.ImVector.8 = type { i32, i32, ptr }
%struct.ImVector.9 = type { i32, i32, ptr }
%struct.ImVector.10 = 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.15 = type { i32, i32, ptr }
%struct.ImVector.16 = type { i32, i32, ptr }
%struct.ImGuiPlatformMonitor = type { %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, ptr }
%struct.ImVector.11 = type { i32, i32, ptr }
%struct.ImGuiNavItemData = type <{ ptr, i32, i32, %struct.ImRect, i32, [4 x i8], i64, float, float, float, [4 x i8] }>
%struct.ImGuiPayload = type <{ ptr, i32, i32, i32, i32, [33 x i8], i8, i8, [5 x i8] }>
%struct.ImVector.17 = type { i32, i32, ptr }
%struct.ImVector.18 = type { i32, i32, ptr }
%struct.ImVector.19 = type { i32, i32, ptr }
%struct.ImPool = type { %struct.ImVector.20, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.20 = type { i32, i32, ptr }
%struct.ImVector.21 = type { i32, i32, ptr }
%struct.ImVector.22 = type { i32, i32, ptr }
%struct.ImPool.23 = type { %struct.ImVector.24, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.24 = type { i32, i32, ptr }
%struct.ImVector.25 = type { i32, i32, ptr }
%struct.ImVector.26 = type { i32, i32, ptr }
%struct.ImGuiInputTextState = type <{ ptr, i32, i32, i32, [4 x i8], %struct.ImVector, %struct.ImVector.27, %struct.ImVector.27, i8, [3 x i8], i32, float, %"struct.ImStb::STB_TexteditState", float, i8, i8, i8, i8, i32, [4 x i8] }>
%"struct.ImStb::STB_TexteditState" = type { i32, i32, i32, i8, i32, i8, i8, i8, i8, i8, i8, i8, float, %"struct.ImStb::StbUndoState" }
%"struct.ImStb::StbUndoState" = type { [99 x %"struct.ImStb::StbUndoRecord"], [999 x i16], i16, i16, i32, i32 }
%"struct.ImStb::StbUndoRecord" = type { i32, i32, i32, i32 }
%struct.ImGuiInputTextDeactivatedState = type { i32, %struct.ImVector.27 }
%struct.ImFont = type <{ %struct.ImVector.21, float, float, %struct.ImVector, %struct.ImVector.28, 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.28 = type { i32, i32, ptr }
%struct.ImGuiComboPreviewData = type { %struct.ImRect, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, i32 }
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImVector.29 = 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.ImGuiDockContext = type <{ %struct.ImGuiStorage, %struct.ImVector.30, %struct.ImVector.31, i8, [7 x i8] }>
%struct.ImVector.30 = type { i32, i32, ptr }
%struct.ImVector.31 = type { i32, i32, ptr }
%struct.ImVector.32 = type { i32, i32, ptr }
%struct.ImChunkStream = type { %struct.ImVector.27 }
%struct.ImChunkStream.33 = type { %struct.ImVector.27 }
%struct.ImVector.34 = type { i32, i32, ptr }
%struct.ImGuiTextBuffer = type { %struct.ImVector.27 }
%struct.ImGuiTextIndex = type <{ %struct.ImVector.12, i32, [4 x i8] }>
%struct.ImVec4 = type { float, float, float, float }
%struct.ImGuiMetricsConfig = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i32 }
%struct.ImGuiIDStackTool = type { i32, i32, i32, %struct.ImVector.35, i8, float }
%struct.ImVector.35 = type { i32, i32, ptr }
%struct.ImGuiDebugAllocInfo = type { i32, i32, i16, [6 x %struct.ImGuiDebugAllocEntry] }
%struct.ImGuiDebugAllocEntry = type { i32, i16, i16 }
%struct.ImVector.27 = type { i32, i32, ptr }

@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [72 x i8], align 1
@__PRETTY_FUNCTION__._ZN7ImGuiIO21AddMouseViewportEventEj = external hidden unnamed_addr constant [45 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: 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) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN15ImGuiInputEventC2Ev(ptr noundef nonnull align 4 dereferenceable(25)) unnamed_addr #2 align 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)) #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL20FindLatestInputEventP12ImGuiContext19ImGuiInputEventTypei(ptr noundef, i32 noundef, i32 noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7ImGuiIO21AddMouseViewportEventEj(ptr noundef nonnull align 8 dereferenceable(14616) %0, i32 noundef %1) #4 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %struct.ImGuiInputEvent, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  %10 = load ptr, ptr %3, align 8
  %11 = getelementptr inbounds %struct.ImGuiIO, ptr %10, i32 0, i32 66
  %12 = load ptr, ptr %11, align 8, !tbaa !11
  %13 = icmp ne ptr %12, null
  br i1 %13, label %14, label %15

14:                                               ; preds = %2
  br label %17

15:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 1664, ptr noundef @__PRETTY_FUNCTION__._ZN7ImGuiIO21AddMouseViewportEventEj) #5
  unreachable

16:                                               ; No predecessors!
  br label %17

17:                                               ; preds = %16, %14
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %18 = getelementptr inbounds %struct.ImGuiIO, ptr %10, i32 0, i32 66
  %19 = load ptr, ptr %18, align 8, !tbaa !11
  store ptr %19, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.ImGuiIO, ptr %10, i32 0, i32 97
  %21 = load i8, ptr %20, align 1, !tbaa !19, !range !20, !noundef !21
  %22 = trunc i8 %21 to i1
  br i1 %22, label %24, label %23

23:                                               ; preds = %17
  store i32 1, ptr %6, align 4
  br label %54

24:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = call noundef ptr @_ZL20FindLatestInputEventP12ImGuiContext19ImGuiInputEventTypei(ptr noundef %25, i32 noundef 4, i32 noundef -1)
  store ptr %26, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = icmp ne ptr %27, null
  br i1 %28, label %29, label %34

29:                                               ; preds = %24
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %30, i32 0, i32 3
  %32 = getelementptr inbounds %struct.ImGuiInputEventMouseViewport, ptr %31, i32 0, i32 0
  %33 = load i32, ptr %32, align 4, !tbaa !22
  br label %39

34:                                               ; preds = %24
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.ImGuiContext, ptr %35, i32 0, i32 2
  %37 = getelementptr inbounds %struct.ImGuiIO, ptr %36, i32 0, i32 72
  %38 = load i32, ptr %37, align 4, !tbaa !23
  br label %39

39:                                               ; preds = %34, %29
  %40 = phi i32 [ %33, %29 ], [ %38, %34 ]
  store i32 %40, ptr %8, align 4, !tbaa !9
  %41 = load i32, ptr %8, align 4, !tbaa !9
  %42 = load i32, ptr %4, align 4, !tbaa !9
  %43 = icmp eq i32 %41, %42
  br i1 %43, label %44, label %45

44:                                               ; preds = %39
  store i32 1, ptr %6, align 4
  br label %53

45:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 28, ptr %9) #6
  call void @_ZN15ImGuiInputEventC2Ev(ptr noundef nonnull align 4 dereferenceable(25) %9)
  %46 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %9, i32 0, i32 0
  store i32 4, ptr %46, align 4, !tbaa !98
  %47 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %9, i32 0, i32 1
  store i32 1, ptr %47, align 4, !tbaa !101
  %48 = load i32, ptr %4, align 4, !tbaa !9
  %49 = getelementptr inbounds %struct.ImGuiInputEvent, ptr %9, i32 0, i32 3
  %50 = getelementptr inbounds %struct.ImGuiInputEventMouseViewport, ptr %49, i32 0, i32 0
  store i32 %48, ptr %50, align 4, !tbaa !22
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.ImGuiContext, ptr %51, i32 0, i32 22
  call void @_ZN8ImVectorI15ImGuiInputEventE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %52, ptr noundef nonnull align 4 dereferenceable(25) %9)
  call void @llvm.lifetime.end.p0(i64 28, ptr %9) #6
  store i32 0, ptr %6, align 4
  br label %53

53:                                               ; preds = %45, %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %54

54:                                               ; preds = %53, %23
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  %55 = load i32, ptr %6, align 4
  switch i32 %55, label %57 [
    i32 0, label %56
    i32 1, label %56
  ]

56:                                               ; preds = %54, %54
  ret void

57:                                               ; preds = %54
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { noreturn nounwind }
attributes #6 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 3640}
!12 = !{!"_ZTS7ImGuiIO", !10, i64 0, !10, i64 4, !13, i64 8, !14, i64 16, !14, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !14, i64 56, !15, i64 60, !6, i64 64, !13, i64 72, !15, i64 80, !15, i64 81, !15, i64 82, !15, i64 83, !15, i64 84, !15, i64 85, !15, i64 86, !15, i64 87, !15, i64 88, !15, i64 89, !15, i64 90, !15, i64 91, !15, i64 92, !15, i64 93, !15, i64 94, !15, i64 95, !14, i64 96, !14, i64 100, !14, i64 104, !14, i64 108, !14, i64 112, !14, i64 116, !15, i64 120, !15, i64 121, !15, i64 122, !15, i64 123, !15, i64 124, !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, !16, i64 200, !15, i64 202, !15, i64 203, !15, i64 204, !15, i64 205, !15, i64 206, !15, i64 207, !15, i64 208, !14, i64 212, !10, i64 216, !10, i64 220, !10, i64 224, !10, i64 228, !13, i64 232, !7, i64 240, !7, i64 2904, !7, i64 3572, !6, i64 3640, !13, i64 3648, !7, i64 3656, !14, i64 3664, !14, i64 3668, !17, i64 3672, !10, i64 3676, !15, i64 3680, !15, i64 3681, !15, i64 3682, !15, i64 3683, !10, i64 3684, !7, i64 3688, !15, i64 14344, !13, i64 14348, !7, i64 14356, !7, i64 14400, !7, i64 14440, !7, i64 14445, !7, i64 14450, !7, i64 14460, !7, i64 14470, !7, i64 14475, !7, i64 14480, !15, i64 14485, !7, i64 14488, !7, i64 14508, !7, i64 14528, !7, i64 14568, !14, i64 14588, !15, i64 14592, !15, i64 14593, !7, i64 14594, !15, i64 14595, !16, i64 14596, !18, i64 14600}
!13 = !{!"_ZTS6ImVec2", !14, i64 0, !14, i64 4}
!14 = !{!"float", !7, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = !{!"_ZTS16ImGuiMouseSource", !7, i64 0}
!18 = !{!"_ZTS8ImVectorItE", !10, i64 0, !10, i64 4, !6, i64 8}
!19 = !{!12, !15, i64 14593}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!7, !7, i64 0}
!23 = !{!24, !10, i64 3684}
!24 = !{!"_ZTS12ImGuiContext", !15, i64 0, !15, i64 1, !12, i64 8, !25, i64 14624, !28, i64 14840, !10, i64 15972, !10, i64 15976, !6, i64 15984, !14, i64 15992, !14, i64 15996, !29, i64 16000, !32, i64 16528, !10, i64 16536, !10, i64 16540, !10, i64 16544, !10, i64 16548, !15, i64 16552, !15, i64 16553, !15, i64 16554, !15, i64 16555, !15, i64 16556, !6, i64 16560, !33, i64 16568, !33, i64 16584, !17, i64 16600, !10, i64 16604, !34, i64 16608, !34, i64 16624, !34, i64 16640, !35, i64 16656, !36, i64 16672, !10, i64 16688, !13, i64 16692, !10, i64 16700, !6, i64 16704, !6, i64 16712, !6, i64 16720, !6, i64 16728, !6, i64 16736, !13, i64 16744, !10, i64 16752, !10, i64 16756, !14, i64 16760, !13, i64 16764, !13, i64 16772, !10, i64 16780, !10, i64 16784, !10, i64 16788, !15, i64 16792, !15, i64 16793, !14, i64 16796, !14, i64 16800, !10, i64 16804, !10, i64 16808, !14, i64 16812, !15, i64 16816, !15, i64 16817, !15, i64 16818, !15, i64 16819, !15, i64 16820, !15, i64 16821, !15, i64 16822, !10, i64 16823, !13, i64 16824, !6, i64 16832, !38, i64 16840, !10, i64 16844, !15, i64 16848, !15, i64 16849, !6, i64 16856, !10, i64 16864, !14, i64 16868, !32, i64 16872, !32, i64 16880, !32, i64 16888, !39, i64 16896, !7, i64 16916, !40, i64 18768, !10, i64 19112, !15, i64 19116, !10, i64 19120, !10, i64 19124, !10, i64 19128, !10, i64 19132, !10, i64 19136, !42, i64 19144, !44, i64 19176, !46, i64 19256, !15, i64 19416, !10, i64 19420, !48, i64 19424, !49, i64 19440, !50, i64 19456, !51, i64 19472, !52, i64 19488, !53, i64 19504, !54, i64 19520, !54, i64 19536, !55, i64 19552, !10, i64 19568, !56, i64 19576, !14, i64 19592, !6, i64 19600, !6, i64 19608, !6, i64 19616, !10, i64 19624, !57, i64 19632, !10, i64 19680, !10, i64 19684, !10, i64 19688, !6, i64 19696, !10, i64 19704, !10, i64 19708, !51, i64 19712, !10, i64 19728, !10, i64 19732, !10, i64 19736, !10, i64 19740, !10, i64 19744, !14, i64 19748, !10, i64 19752, !10, i64 19756, !10, i64 19760, !10, i64 19764, !10, i64 19768, !38, i64 19772, !58, i64 19776, !43, i64 19784, !15, i64 19792, !15, i64 19793, !15, i64 19794, !15, i64 19795, !15, i64 19796, !15, i64 19797, !15, i64 19798, !59, i64 19800, !15, i64 19864, !15, i64 19865, !15, i64 19866, !10, i64 19868, !10, i64 19872, !10, i64 19876, !10, i64 19880, !10, i64 19884, !10, i64 19888, !45, i64 19892, !45, i64 19908, !10, i64 19924, !10, i64 19928, !10, i64 19932, !59, i64 19936, !59, i64 20000, !59, i64 20064, !59, i64 20128, !10, i64 20192, !10, i64 20196, !6, i64 20200, !6, i64 20208, !6, i64 20216, !14, i64 20224, !14, i64 20228, !15, i64 20232, !13, i64 20236, !13, i64 20244, !14, i64 20252, !15, i64 20256, !15, i64 20257, !15, i64 20258, !10, i64 20260, !10, i64 20264, !10, i64 20268, !60, i64 20272, !45, i64 20336, !45, i64 20352, !10, i64 20368, !10, i64 20372, !14, i64 20376, !10, i64 20380, !10, i64 20384, !10, i64 20388, !10, i64 20392, !61, i64 20400, !7, i64 20416, !10, i64 20432, !62, i64 20440, !6, i64 20456, !10, i64 20464, !10, i64 20468, !63, i64 20472, !64, i64 20488, !66, i64 20528, !67, i64 20544, !6, i64 20560, !68, i64 20568, !70, i64 20608, !71, i64 20624, !10, i64 20640, !10, i64 20644, !14, i64 20648, !14, i64 20652, !10, i64 20656, !10, i64 20660, !10, i64 20664, !14, i64 20668, !13, i64 20672, !72, i64 20680, !76, i64 24408, !77, i64 24432, !10, i64 24552, !10, i64 24556, !10, i64 24560, !10, i64 24564, !14, i64 24568, !14, i64 24572, !10, i64 24576, !30, i64 24580, !79, i64 24596, !45, i64 24644, !15, i64 24660, !14, i64 24664, !14, i64 24668, !15, i64 24672, !15, i64 24673, !14, i64 24676, !14, i64 24680, !14, i64 24684, !14, i64 24688, !16, i64 24692, !16, i64 24694, !16, i64 24696, !73, i64 24704, !80, i64 24720, !81, i64 24736, !83, i64 24840, !83, i64 24856, !10, i64 24872, !84, i64 24880, !6, i64 24936, !15, i64 24944, !14, i64 24948, !87, i64 24952, !88, i64 24968, !89, i64 24984, !90, i64 25000, !91, i64 25016, !10, i64 25032, !7, i64 25040, !15, i64 25128, !92, i64 25132, !6, i64 25136, !87, i64 25144, !6, i64 25160, !6, i64 25168, !14, i64 25176, !15, i64 25180, !10, i64 25184, !10, i64 25188, !10, i64 25192, !10, i64 25196, !87, i64 25200, !93, i64 25216, !10, i64 25240, !7, i64 25244, !7, i64 25245, !15, i64 25246, !10, i64 25248, !7, i64 25252, !15, i64 25253, !7, i64 25254, !10, i64 25256, !14, i64 25260, !30, i64 25264, !94, i64 25280, !95, i64 25304, !97, i64 25344, !6, i64 25408, !7, i64 25416, !10, i64 25656, !10, i64 25660, !14, i64 25664, !10, i64 25668, !10, i64 25672, !10, i64 25676, !73, i64 25680, !7, i64 25696}
!25 = !{!"_ZTS15ImGuiPlatformIO", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !26, i64 184, !27, i64 200}
!26 = !{!"_ZTS8ImVectorI20ImGuiPlatformMonitorE", !10, i64 0, !10, i64 4, !6, i64 8}
!27 = !{!"_ZTS8ImVectorIP13ImGuiViewportE", !10, i64 0, !10, i64 4, !6, i64 8}
!28 = !{!"_ZTS10ImGuiStyle", !14, i64 0, !14, i64 4, !13, i64 8, !14, i64 16, !14, i64 20, !13, i64 24, !13, i64 32, !10, i64 40, !14, i64 44, !14, i64 48, !14, i64 52, !14, i64 56, !13, i64 60, !14, i64 68, !14, i64 72, !13, i64 76, !13, i64 84, !13, i64 92, !13, i64 100, !14, i64 108, !14, i64 112, !14, i64 116, !14, i64 120, !14, i64 124, !14, i64 128, !14, i64 132, !14, i64 136, !14, i64 140, !14, i64 144, !14, i64 148, !14, i64 152, !10, i64 156, !13, i64 160, !13, i64 168, !14, i64 176, !13, i64 180, !13, i64 188, !13, i64 196, !13, i64 204, !14, i64 212, !14, i64 216, !15, i64 220, !15, i64 221, !15, i64 222, !14, i64 224, !14, i64 228, !7, i64 232, !14, i64 1112, !14, i64 1116, !14, i64 1120, !10, i64 1124, !10, i64 1128}
!29 = !{!"_ZTS20ImDrawListSharedData", !13, i64 0, !6, i64 8, !14, i64 16, !14, i64 20, !14, i64 24, !30, i64 28, !10, i64 44, !31, i64 48, !7, i64 64, !14, i64 448, !7, i64 452, !6, i64 520}
!30 = !{!"_ZTS6ImVec4", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12}
!31 = !{!"_ZTS8ImVectorI6ImVec2E", !10, i64 0, !10, i64 4, !6, i64 8}
!32 = !{!"double", !7, i64 0}
!33 = !{!"_ZTS8ImVectorI15ImGuiInputEventE", !10, i64 0, !10, i64 4, !6, i64 8}
!34 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !10, i64 0, !10, i64 4, !6, i64 8}
!35 = !{!"_ZTS8ImVectorI20ImGuiWindowStackDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!36 = !{!"_ZTS12ImGuiStorage", !37, i64 0}
!37 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !10, i64 0, !10, i64 4, !6, i64 8}
!38 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!39 = !{!"_ZTS10ImBitArrayILi154ELin512EE", !7, i64 0}
!40 = !{!"_ZTS20ImGuiKeyRoutingTable", !7, i64 0, !41, i64 312, !41, i64 328}
!41 = !{!"_ZTS8ImVectorI19ImGuiKeyRoutingDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!42 = !{!"_ZTS17ImGuiNextItemData", !10, i64 0, !10, i64 4, !43, i64 8, !14, i64 16, !10, i64 20, !15, i64 24, !10, i64 25}
!43 = !{!"long long", !7, i64 0}
!44 = !{!"_ZTS17ImGuiLastItemData", !10, i64 0, !10, i64 4, !10, i64 8, !45, i64 12, !45, i64 28, !45, i64 44, !45, i64 60}
!45 = !{!"_ZTS6ImRect", !13, i64 0, !13, i64 8}
!46 = !{!"_ZTS19ImGuiNextWindowData", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !13, i64 20, !13, i64 28, !13, i64 36, !13, i64 44, !13, i64 52, !10, i64 60, !15, i64 64, !15, i64 65, !45, i64 68, !6, i64 88, !6, i64 96, !14, i64 104, !10, i64 108, !10, i64 112, !47, i64 116, !13, i64 148}
!47 = !{!"_ZTS16ImGuiWindowClass", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !15, i64 28, !15, i64 29}
!48 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !10, i64 0, !10, i64 4, !6, i64 8}
!49 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !10, i64 0, !10, i64 4, !6, i64 8}
!50 = !{!"_ZTS8ImVectorIP6ImFontE", !10, i64 0, !10, i64 4, !6, i64 8}
!51 = !{!"_ZTS8ImVectorI19ImGuiFocusScopeDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!52 = !{!"_ZTS8ImVectorIiE", !10, i64 0, !10, i64 4, !6, i64 8}
!53 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!54 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!55 = !{!"_ZTS8ImVectorI20ImGuiNavTreeNodeDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!56 = !{!"_ZTS8ImVectorIP14ImGuiViewportPE", !10, i64 0, !10, i64 4, !6, i64 8}
!57 = !{!"_ZTS20ImGuiPlatformMonitor", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !14, i64 32, !6, i64 40}
!58 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!59 = !{!"_ZTS16ImGuiNavItemData", !6, i64 0, !10, i64 8, !10, i64 12, !45, i64 16, !10, i64 32, !43, i64 40, !14, i64 48, !14, i64 52, !14, i64 56}
!60 = !{!"_ZTS12ImGuiPayload", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !7, i64 24, !15, i64 57, !15, i64 58}
!61 = !{!"_ZTS8ImVectorIhE", !10, i64 0, !10, i64 4, !6, i64 8}
!62 = !{!"_ZTS8ImVectorI20ImGuiListClipperDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!63 = !{!"_ZTS8ImVectorI18ImGuiTableTempDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!64 = !{!"_ZTS6ImPoolI10ImGuiTableE", !65, i64 0, !36, i64 16, !10, i64 32, !10, i64 36}
!65 = !{!"_ZTS8ImVectorI10ImGuiTableE", !10, i64 0, !10, i64 4, !6, i64 8}
!66 = !{!"_ZTS8ImVectorIfE", !10, i64 0, !10, i64 4, !6, i64 8}
!67 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !10, i64 0, !10, i64 4, !6, i64 8}
!68 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !69, i64 0, !36, i64 16, !10, i64 32, !10, i64 36}
!69 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !10, i64 0, !10, i64 4, !6, i64 8}
!70 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !10, i64 0, !10, i64 4, !6, i64 8}
!71 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !10, i64 0, !10, i64 4, !6, i64 8}
!72 = !{!"_ZTS19ImGuiInputTextState", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !18, i64 24, !73, i64 40, !73, i64 56, !15, i64 72, !10, i64 76, !14, i64 80, !74, i64 84, !14, i64 3712, !15, i64 3716, !15, i64 3717, !15, i64 3718, !10, i64 3720}
!73 = !{!"_ZTS8ImVectorIcE", !10, i64 0, !10, i64 4, !6, i64 8}
!74 = !{!"_ZTSN5ImStb17STB_TexteditStateE", !10, i64 0, !10, i64 4, !10, i64 8, !7, i64 12, !10, i64 16, !7, i64 20, !7, i64 21, !7, i64 22, !7, i64 23, !7, i64 24, !7, i64 25, !7, i64 26, !14, i64 28, !75, i64 32}
!75 = !{!"_ZTSN5ImStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !16, i64 3582, !16, i64 3584, !10, i64 3588, !10, i64 3592}
!76 = !{!"_ZTS30ImGuiInputTextDeactivatedState", !10, i64 0, !73, i64 8}
!77 = !{!"_ZTS6ImFont", !66, i64 0, !14, i64 16, !14, i64 20, !18, i64 24, !78, i64 40, !6, i64 56, !6, i64 64, !6, i64 72, !16, i64 80, !16, i64 82, !16, i64 84, !16, i64 86, !14, i64 88, !14, i64 92, !15, i64 96, !14, i64 100, !14, i64 104, !14, i64 108, !10, i64 112, !7, i64 116}
!78 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !10, i64 0, !10, i64 4, !6, i64 8}
!79 = !{!"_ZTS21ImGuiComboPreviewData", !45, i64 0, !13, i64 16, !13, i64 24, !13, i64 32, !14, i64 40, !10, i64 44}
!80 = !{!"_ZTS8ImVectorIjE", !10, i64 0, !10, i64 4, !6, i64 8}
!81 = !{!"_ZTS22ImGuiTypingSelectState", !82, i64 0, !7, i64 24, !10, i64 88, !10, i64 92, !14, i64 96, !15, i64 100}
!82 = !{!"_ZTS24ImGuiTypingSelectRequest", !10, i64 0, !10, i64 4, !6, i64 8, !15, i64 16, !15, i64 17, !7, i64 18}
!83 = !{!"_ZTS20ImGuiPlatformImeData", !15, i64 0, !13, i64 4, !14, i64 12}
!84 = !{!"_ZTS16ImGuiDockContext", !36, i64 0, !85, i64 16, !86, i64 32, !15, i64 48}
!85 = !{!"_ZTS8ImVectorI16ImGuiDockRequestE", !10, i64 0, !10, i64 4, !6, i64 8}
!86 = !{!"_ZTS8ImVectorI21ImGuiDockNodeSettingsE", !10, i64 0, !10, i64 4, !6, i64 8}
!87 = !{!"_ZTS15ImGuiTextBuffer", !73, i64 0}
!88 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !10, i64 0, !10, i64 4, !6, i64 8}
!89 = !{!"_ZTS13ImChunkStreamI19ImGuiWindowSettingsE", !73, i64 0}
!90 = !{!"_ZTS13ImChunkStreamI18ImGuiTableSettingsE", !73, i64 0}
!91 = !{!"_ZTS8ImVectorI16ImGuiContextHookE", !10, i64 0, !10, i64 4, !6, i64 8}
!92 = !{!"_ZTS12ImGuiLogType", !7, i64 0}
!93 = !{!"_ZTS14ImGuiTextIndex", !52, i64 0, !10, i64 16}
!94 = !{!"_ZTS18ImGuiMetricsConfig", !15, i64 0, !15, i64 1, !15, i64 2, !15, i64 3, !15, i64 4, !15, i64 5, !15, i64 6, !15, i64 7, !15, i64 8, !15, i64 9, !10, i64 12, !10, i64 16}
!95 = !{!"_ZTS16ImGuiIDStackTool", !10, i64 0, !10, i64 4, !10, i64 8, !96, i64 16, !15, i64 32, !14, i64 36}
!96 = !{!"_ZTS8ImVectorI19ImGuiStackLevelInfoE", !10, i64 0, !10, i64 4, !6, i64 8}
!97 = !{!"_ZTS19ImGuiDebugAllocInfo", !10, i64 0, !10, i64 4, !16, i64 8, !7, i64 12}
!98 = !{!99, !100, i64 0}
!99 = !{!"_ZTS15ImGuiInputEvent", !100, i64 0, !38, i64 4, !10, i64 8, !7, i64 12, !15, i64 24}
!100 = !{!"_ZTS19ImGuiInputEventType", !7, i64 0}
!101 = !{!99, !38, i64 4}


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

@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [72 x i8], align 1
@__PRETTY_FUNCTION__._ZN7ImGuiIO21AddMouseViewportEventEj = external hidden unnamed_addr constant [45 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 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 #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN15ImGuiInputEventC2Ev(ptr noundef nonnull align 4 dereferenceable(25)) unnamed_addr #2 align 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 hidden noundef ptr @_ZL20FindLatestInputEventP12ImGuiContext19ImGuiInputEventTypei(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7ImGuiIO21AddMouseViewportEventEj(ptr nocapture noundef nonnull readonly align 8 dereferenceable(14616) %0, i32 noundef %1) local_unnamed_addr #4 align 2 {
  %3 = alloca %struct.ImGuiInputEvent, align 4
  %4 = getelementptr inbounds i8, ptr %0, i64 3640
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %.not = icmp eq ptr %5, null
  br i1 %.not, label %6, label %7

6:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef 1664, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7ImGuiIO21AddMouseViewportEventEj) #5
  unreachable

7:                                                ; preds = %2
  %8 = getelementptr inbounds i8, ptr %0, i64 14593
  %9 = load i8, ptr %8, align 1, !tbaa !17, !range !18, !noundef !19
  %10 = trunc nuw i8 %9 to i1
  br i1 %10, label %11, label %21

11:                                               ; preds = %7
  %12 = tail call noundef ptr @_ZL20FindLatestInputEventP12ImGuiContext19ImGuiInputEventTypei(ptr noundef nonnull %5, i32 noundef 4, i32 noundef -1)
  %.not10 = icmp eq ptr %12, null
  %13 = getelementptr inbounds i8, ptr %12, i64 12
  %14 = getelementptr inbounds i8, ptr %5, i64 3684
  %.in = select i1 %.not10, ptr %14, ptr %13
  %15 = load i32, ptr %.in, align 4, !tbaa !20
  %16 = icmp eq i32 %15, %1
  br i1 %16, label %21, label %17

17:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %3) #6
  call void @_ZN15ImGuiInputEventC2Ev(ptr noundef nonnull align 4 dereferenceable(25) %3)
  store i32 4, ptr %3, align 4, !tbaa !21
  %18 = getelementptr inbounds i8, ptr %3, i64 4
  store i32 1, ptr %18, align 4, !tbaa !25
  %19 = getelementptr inbounds i8, ptr %3, i64 12
  store i32 %1, ptr %19, align 4, !tbaa !20
  %20 = getelementptr inbounds i8, ptr %5, i64 16568
  call void @_ZN8ImVectorI15ImGuiInputEventE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 4 dereferenceable(25) %3)
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %3) #6
  br label %21

21:                                               ; preds = %17, %11, %7
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { noreturn nounwind }
attributes #6 = { 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, !12, i64 3640}
!6 = !{!"_ZTS7ImGuiIO", !7, i64 0, !7, i64 4, !10, i64 8, !11, i64 16, !11, i64 20, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !11, i64 56, !13, i64 60, !12, i64 64, !10, i64 72, !13, i64 80, !13, i64 81, !13, i64 82, !13, i64 83, !13, i64 84, !13, i64 85, !13, i64 86, !13, i64 87, !13, i64 88, !13, i64 89, !13, i64 90, !13, i64 91, !13, i64 92, !13, i64 93, !13, i64 94, !13, i64 95, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !13, i64 120, !13, i64 121, !13, i64 122, !13, i64 123, !13, i64 124, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !12, i64 184, !12, i64 192, !14, i64 200, !13, i64 202, !13, i64 203, !13, i64 204, !13, i64 205, !13, i64 206, !13, i64 207, !13, i64 208, !11, i64 212, !7, i64 216, !7, i64 220, !7, i64 224, !7, i64 228, !10, i64 232, !8, i64 240, !8, i64 2904, !8, i64 3572, !12, i64 3640, !10, i64 3648, !8, i64 3656, !11, i64 3664, !11, i64 3668, !15, i64 3672, !7, i64 3676, !13, i64 3680, !13, i64 3681, !13, i64 3682, !13, i64 3683, !7, i64 3684, !8, i64 3688, !13, i64 14344, !10, i64 14348, !8, i64 14356, !8, i64 14400, !8, i64 14440, !8, i64 14445, !8, i64 14450, !8, i64 14460, !8, i64 14470, !8, i64 14475, !8, i64 14480, !13, i64 14485, !8, i64 14488, !8, i64 14508, !8, i64 14528, !8, i64 14568, !11, i64 14588, !13, i64 14592, !13, i64 14593, !8, i64 14594, !13, i64 14595, !14, i64 14596, !16, i64 14600}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS6ImVec2", !11, i64 0, !11, i64 4}
!11 = !{!"float", !8, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"bool", !8, i64 0}
!14 = !{!"short", !8, i64 0}
!15 = !{!"_ZTS16ImGuiMouseSource", !8, i64 0}
!16 = !{!"_ZTS8ImVectorItE", !7, i64 0, !7, i64 4, !12, i64 8}
!17 = !{!6, !13, i64 14593}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!8, !8, i64 0}
!21 = !{!22, !23, i64 0}
!22 = !{!"_ZTS15ImGuiInputEvent", !23, i64 0, !24, i64 4, !7, i64 8, !8, i64 12, !13, i64 24}
!23 = !{!"_ZTS19ImGuiInputEventType", !8, i64 0}
!24 = !{!"_ZTS16ImGuiInputSource", !8, i64 0}
!25 = !{!22, !24, i64 4}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass