; LLVM IR from JawherBenjeddou/GraphicsRenderer :: Graphics/vendor/ImGui (imgui)

; 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.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImVec2 = type { float, float }
%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, ptr, ptr, ptr, ptr, ptr, %struct.ImVec2, i32, float, %struct.ImVec2, %struct.ImVec2, i32, i32, i32, i8, i8, float, float, i32, i32, float, i8, i8, i8, i8, i8, i8, %struct.ImVec2, ptr, i32, i32, i32, i8, i8, ptr, i32, float, [140 x %struct.ImGuiKeyOwnerData], %struct.ImGuiKeyRoutingTable, i32, i8, i32, i32, i32, i32, %struct.ImGuiNextItemData, %struct.ImGuiLastItemData, %struct.ImGuiNextWindowData, %struct.ImVector.8, %struct.ImVector.9, %struct.ImVector.10, %struct.ImVector.11, %struct.ImVector.12, %struct.ImVector.13, %struct.ImVector.14, %struct.ImVector.14, i32, %struct.ImVector.15, float, ptr, ptr, ptr, i32, %struct.ImGuiPlatformMonitor, i32, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, 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, i32, i32, float, i32, i32, i32, i32, %struct.ImVector.16, [16 x i8], i32, %struct.ImVector.17, ptr, i32, %struct.ImVector.18, %struct.ImPool, %struct.ImVector.20, %struct.ImVector.21, ptr, %struct.ImPool.22, %struct.ImVector.24, %struct.ImVector.25, 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, float, float, i8, i8, float, float, float, float, i16, i16, %struct.ImVector.26, %struct.ImVector.11, %struct.ImGuiPlatformImeData, %struct.ImGuiPlatformImeData, i32, i8, [3 x i8], %struct.ImGuiDockContext, ptr, i8, float, %struct.ImGuiTextBuffer, %struct.ImVector.30, %struct.ImChunkStream, %struct.ImChunkStream.31, %struct.ImVector.32, i32, [9 x ptr], i8, i32, ptr, %struct.ImGuiTextBuffer, ptr, ptr, float, i8, i32, i32, i32, i32, %struct.ImGuiTextBuffer, %struct.ImGuiTextIndex, i8, i8, i8, i8, i8, i32, %struct.ImGuiMetricsConfig, %struct.ImGuiStackTool, ptr, [60 x float], i32, i32, float, i32, i32, i32, %struct.ImVector.26 }
%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, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, i32, i32, %struct.ImVec2, [652 x i32], [652 x i8], [16 x float], ptr, %struct.ImVec2, [5 x i8], float, float, i32, i32, i8, i8, i8, i8, i32, [652 x %struct.ImGuiKeyData], i8, %struct.ImVec2, [5 x %struct.ImVec2], [5 x double], [5 x i8], [5 x i8], [5 x i16], [5 x i16], [5 x i8], [5 x i8], [5 x i8], i8, [5 x float], [5 x float], [5 x %struct.ImVec2], [5 x float], float, i8, i8, i8, i8, i16, %struct.ImVector }
%struct.ImGuiKeyData = type { i8, float, float, float }
%struct.ImVector = type { i32, i32, ptr }
%struct.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, 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.ImGuiKeyOwnerData = type <{ i32, i32, i8, i8, [2 x i8] }>
%struct.ImGuiKeyRoutingTable = type { [140 x i16], %struct.ImVector.7, %struct.ImVector.7 }
%struct.ImVector.7 = type { i32, i32, ptr }
%struct.ImGuiNextItemData = type <{ i32, i32, float, i32, i32, i8, [3 x i8] }>
%struct.ImGuiLastItemData = type { i32, i32, i32, %struct.ImRect, %struct.ImRect, %struct.ImRect }
%struct.ImGuiNextWindowData = type { i32, i32, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, i8, %struct.ImRect, ptr, ptr, float, i32, i32, %struct.ImGuiWindowClass, %struct.ImVec2 }
%struct.ImGuiWindowClass = type <{ 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.ImGuiPlatformMonitor = type { %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, ptr }
%struct.ImGuiNavItemData = type { ptr, i32, i32, %struct.ImRect, i32, float, float, float }
%struct.ImGuiPayload = type <{ ptr, i32, i32, i32, i32, [33 x i8], i8, i8, [5 x i8] }>
%struct.ImVector.16 = type { i32, i32, ptr }
%struct.ImVector.17 = type { i32, i32, ptr }
%struct.ImVector.18 = type { i32, i32, ptr }
%struct.ImPool = type { %struct.ImVector.19, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.19 = type { i32, i32, ptr }
%struct.ImVector.20 = type { i32, i32, ptr }
%struct.ImVector.21 = type { i32, i32, ptr }
%struct.ImPool.22 = type { %struct.ImVector.23, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.23 = type { i32, i32, ptr }
%struct.ImVector.24 = type { i32, i32, ptr }
%struct.ImVector.25 = type { i32, i32, ptr }
%struct.ImGuiInputTextState = type <{ ptr, i32, i32, i32, [4 x i8], %struct.ImVector, %struct.ImVector.26, %struct.ImVector.26, 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.26 }
%struct.ImFont = type <{ %struct.ImVector.20, float, float, %struct.ImVector, %struct.ImVector.27, 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.27 = type { i32, i32, ptr }
%struct.ImVec4 = type { float, float, float, float }
%struct.ImGuiComboPreviewData = type { %struct.ImRect, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, i32 }
%struct.ImVector.11 = type { i32, i32, ptr }
%struct.ImGuiPlatformImeData = type { i8, %struct.ImVec2, float }
%struct.ImGuiDockContext = type <{ %struct.ImGuiStorage, %struct.ImVector.28, %struct.ImVector.29, i8, [7 x i8] }>
%struct.ImVector.28 = type { i32, i32, ptr }
%struct.ImVector.29 = type { i32, i32, ptr }
%struct.ImVector.30 = type { i32, i32, ptr }
%struct.ImChunkStream = type { %struct.ImVector.26 }
%struct.ImChunkStream.31 = type { %struct.ImVector.26 }
%struct.ImVector.32 = type { i32, i32, ptr }
%struct.ImGuiTextBuffer = type { %struct.ImVector.26 }
%struct.ImGuiTextIndex = type <{ %struct.ImVector.12, i32, [4 x i8] }>
%struct.ImGuiMetricsConfig = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i32 }
%struct.ImGuiStackTool = type { i32, i32, i32, %struct.ImVector.33, i8, float }
%struct.ImVector.33 = type { i32, i32, ptr }
%struct.ImVector.26 = type { i32, i32, ptr }
%struct.ImGuiViewport = type <{ i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, i32, ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, [4 x i8] }>
%struct.ImGuiViewportP = type { %struct.ImGuiViewport.base, ptr, i32, i32, i32, i32, %struct.ImVec2, float, float, i8, i16, [2 x i32], [2 x ptr], %struct.ImDrawData, %struct.ImDrawDataBuilder, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2 }
%struct.ImGuiViewport.base = type <{ i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, i32, ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8 }>
%struct.ImDrawData = type { i8, i32, i32, i32, %struct.ImVector.49, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, ptr }
%struct.ImVector.49 = type { i32, i32, ptr }
%struct.ImDrawDataBuilder = type { [2 x ptr], %struct.ImVector.49 }

@GImGui = external dso_local global ptr, align 8

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP14ImGuiViewportPEixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZNK14ImGuiViewportP11GetMainRectEv(ptr noundef nonnull align 8 dereferenceable(320)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6ImRect8ContainsERK6ImVec2(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN5ImGui42FindHoveredViewportFromPlatformWindowStackERK6ImVec2(ptr noundef nonnull align 4 dereferenceable(8) %0) #4 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca %struct.ImRect, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %8 = load ptr, ptr @GImGui, align 8, !tbaa !5
  store ptr %8, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  store ptr null, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %9

9:                                                ; preds = %54, %1
  %10 = load i32, ptr %5, align 4, !tbaa !9
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.ImGuiContext, ptr %11, i32 0, i32 89
  %13 = getelementptr inbounds %struct.ImVector.15, ptr %12, i32 0, i32 0
  %14 = load i32, ptr %13, align 8, !tbaa !11
  %15 = icmp slt i32 %10, %14
  br i1 %15, label %17, label %16

16:                                               ; preds = %9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %57

17:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.ImGuiContext, ptr %18, i32 0, i32 89
  %20 = load i32, ptr %5, align 4, !tbaa !9
  %21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP14ImGuiViewportPEixEi(ptr noundef nonnull align 8 dereferenceable(16) %19, i32 noundef %20)
  %22 = load ptr, ptr %21, align 8, !tbaa !5
  store ptr %22, ptr %6, align 8, !tbaa !5
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.ImGuiViewport, ptr %23, i32 0, i32 1
  %25 = load i32, ptr %24, align 4, !tbaa !86
  %26 = and i32 %25, 4224
  %27 = icmp ne i32 %26, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #5
  br i1 %27, label %37, label %28

28:                                               ; preds = %17
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = call { <2 x float>, <2 x float> } @_ZNK14ImGuiViewportP11GetMainRectEv(ptr noundef nonnull align 8 dereferenceable(320) %29)
  %31 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %7, i32 0, i32 0
  %32 = extractvalue { <2 x float>, <2 x float> } %30, 0
  store <2 x float> %32, ptr %31, align 4
  %33 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %7, i32 0, i32 1
  %34 = extractvalue { <2 x float>, <2 x float> } %30, 1
  store <2 x float> %34, ptr %33, align 4
  %35 = load ptr, ptr %2, align 8, !tbaa !5
  %36 = call noundef zeroext i1 @_ZNK6ImRect8ContainsERK6ImVec2(ptr noundef nonnull align 4 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(8) %35)
  br label %37

37:                                               ; preds = %28, %17
  %38 = phi i1 [ false, %17 ], [ %36, %28 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #5
  br i1 %38, label %39, label %53

39:                                               ; preds = %37
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = icmp eq ptr %40, null
  br i1 %41, label %50, label %42

42:                                               ; preds = %39
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.ImGuiViewportP, ptr %43, i32 0, i32 4
  %45 = load i32, ptr %44, align 8, !tbaa !88
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.ImGuiViewportP, ptr %46, i32 0, i32 4
  %48 = load i32, ptr %47, align 8, !tbaa !88
  %49 = icmp slt i32 %45, %48
  br i1 %49, label %50, label %52

50:                                               ; preds = %42, %39
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %51, ptr %4, align 8, !tbaa !5
  br label %52

52:                                               ; preds = %50, %42
  br label %53

53:                                               ; preds = %52, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %54

54:                                               ; preds = %53
  %55 = load i32, ptr %5, align 4, !tbaa !9
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %5, align 4, !tbaa !9
  br label %9, !llvm.loop !93

57:                                               ; preds = %16
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  ret ptr %58
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #4 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = { 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, !10, i64 18960}
!12 = !{!"_ZTS12ImGuiContext", !13, i64 0, !13, i64 1, !14, i64 8, !20, i64 14336, !23, i64 14552, !10, i64 15676, !10, i64 15680, !6, i64 15688, !16, i64 15696, !16, i64 15700, !24, i64 15704, !27, i64 16232, !10, i64 16240, !10, i64 16244, !10, i64 16248, !10, i64 16252, !13, i64 16256, !13, i64 16257, !13, i64 16258, !13, i64 16259, !13, i64 16260, !6, i64 16264, !28, i64 16272, !28, i64 16288, !17, i64 16304, !10, i64 16308, !29, i64 16312, !29, i64 16328, !29, i64 16344, !30, i64 16360, !31, i64 16376, !10, i64 16392, !15, i64 16396, !6, i64 16408, !6, i64 16416, !6, i64 16424, !6, i64 16432, !6, i64 16440, !15, i64 16448, !10, i64 16456, !16, i64 16460, !15, i64 16464, !15, i64 16472, !10, i64 16480, !10, i64 16484, !10, i64 16488, !13, i64 16492, !13, i64 16493, !16, i64 16496, !16, i64 16500, !10, i64 16504, !10, i64 16508, !16, i64 16512, !13, i64 16516, !13, i64 16517, !13, i64 16518, !13, i64 16519, !13, i64 16520, !13, i64 16521, !15, i64 16524, !6, i64 16536, !33, i64 16544, !10, i64 16548, !10, i64 16552, !13, i64 16556, !13, i64 16557, !6, i64 16560, !10, i64 16568, !16, i64 16572, !7, i64 16576, !34, i64 18256, !10, i64 18568, !13, i64 18572, !10, i64 18576, !10, i64 18580, !10, i64 18584, !10, i64 18588, !36, i64 18592, !37, i64 18616, !39, i64 18680, !41, i64 18824, !42, i64 18840, !43, i64 18856, !44, i64 18872, !45, i64 18888, !46, i64 18904, !47, i64 18920, !47, i64 18936, !10, i64 18952, !48, i64 18960, !16, i64 18976, !6, i64 18984, !6, i64 18992, !6, i64 19000, !10, i64 19008, !49, i64 19016, !10, i64 19064, !10, i64 19068, !10, i64 19072, !6, i64 19080, !10, i64 19088, !10, i64 19092, !10, i64 19096, !10, i64 19100, !10, i64 19104, !10, i64 19108, !10, i64 19112, !10, i64 19116, !10, i64 19120, !10, i64 19124, !10, i64 19128, !33, i64 19132, !50, i64 19136, !13, i64 19140, !13, i64 19141, !13, i64 19142, !13, i64 19143, !13, i64 19144, !13, i64 19145, !13, i64 19146, !51, i64 19152, !13, i64 19200, !13, i64 19201, !13, i64 19202, !10, i64 19204, !10, i64 19208, !10, i64 19212, !10, i64 19216, !10, i64 19220, !10, i64 19224, !38, i64 19228, !38, i64 19244, !10, i64 19260, !10, i64 19264, !10, i64 19268, !51, i64 19272, !51, i64 19320, !51, i64 19368, !51, i64 19416, !10, i64 19464, !10, i64 19468, !6, i64 19472, !6, i64 19480, !6, i64 19488, !16, i64 19496, !16, i64 19500, !13, i64 19504, !15, i64 19508, !15, i64 19516, !16, i64 19524, !13, i64 19528, !13, i64 19529, !13, i64 19530, !10, i64 19532, !10, i64 19536, !10, i64 19540, !52, i64 19544, !38, i64 19608, !10, i64 19624, !10, i64 19628, !16, i64 19632, !10, i64 19636, !10, i64 19640, !10, i64 19644, !10, i64 19648, !53, i64 19656, !7, i64 19672, !10, i64 19688, !54, i64 19696, !6, i64 19712, !10, i64 19720, !55, i64 19728, !56, i64 19744, !58, i64 19784, !59, i64 19800, !6, i64 19816, !60, i64 19824, !62, i64 19864, !63, i64 19880, !10, i64 19896, !10, i64 19900, !16, i64 19904, !16, i64 19908, !10, i64 19912, !10, i64 19916, !10, i64 19920, !16, i64 19924, !15, i64 19928, !64, i64 19936, !68, i64 23664, !69, i64 23688, !10, i64 23808, !10, i64 23812, !10, i64 23816, !10, i64 23820, !16, i64 23824, !16, i64 23828, !10, i64 23832, !25, i64 23836, !71, i64 23852, !16, i64 23900, !16, i64 23904, !13, i64 23908, !13, i64 23909, !16, i64 23912, !16, i64 23916, !16, i64 23920, !16, i64 23924, !18, i64 23928, !18, i64 23930, !65, i64 23936, !44, i64 23952, !72, i64 23968, !72, i64 23984, !10, i64 24000, !7, i64 24004, !73, i64 24008, !6, i64 24064, !13, i64 24072, !16, i64 24076, !76, i64 24080, !77, i64 24096, !78, i64 24112, !79, i64 24128, !80, i64 24144, !10, i64 24160, !7, i64 24168, !13, i64 24240, !81, i64 24244, !6, i64 24248, !76, i64 24256, !6, i64 24272, !6, i64 24280, !16, i64 24288, !13, i64 24292, !10, i64 24296, !10, i64 24300, !10, i64 24304, !10, i64 24308, !76, i64 24312, !82, i64 24328, !7, i64 24352, !7, i64 24353, !7, i64 24354, !13, i64 24355, !7, i64 24356, !10, i64 24360, !83, i64 24364, !84, i64 24384, !6, i64 24424, !7, i64 24432, !10, i64 24672, !10, i64 24676, !16, i64 24680, !10, i64 24684, !10, i64 24688, !10, i64 24692, !65, i64 24696}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTS7ImGuiIO", !10, i64 0, !10, i64 4, !15, i64 8, !16, i64 16, !16, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !16, i64 56, !13, i64 60, !6, i64 64, !15, 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, !16, i64 96, !16, i64 100, !16, i64 104, !16, i64 108, !16, i64 112, !16, i64 116, !13, i64 120, !13, i64 121, !13, i64 122, !13, i64 123, !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, !13, i64 208, !13, i64 209, !13, i64 210, !13, i64 211, !13, i64 212, !13, i64 213, !13, i64 214, !16, i64 216, !10, i64 220, !10, i64 224, !10, i64 228, !10, i64 232, !10, i64 236, !15, i64 240, !7, i64 248, !7, i64 2856, !7, i64 3508, !6, i64 3576, !15, i64 3584, !7, i64 3592, !16, i64 3600, !16, i64 3604, !17, i64 3608, !10, i64 3612, !13, i64 3616, !13, i64 3617, !13, i64 3618, !13, i64 3619, !10, i64 3620, !7, i64 3624, !13, i64 14056, !15, i64 14060, !7, i64 14068, !7, i64 14112, !7, i64 14152, !7, i64 14157, !7, i64 14162, !7, i64 14172, !7, i64 14182, !7, i64 14187, !7, i64 14192, !13, i64 14197, !7, i64 14200, !7, i64 14220, !7, i64 14240, !7, i64 14280, !16, i64 14300, !13, i64 14304, !13, i64 14305, !7, i64 14306, !13, i64 14307, !18, i64 14308, !19, i64 14312}
!15 = !{!"_ZTS6ImVec2", !16, i64 0, !16, i64 4}
!16 = !{!"float", !7, i64 0}
!17 = !{!"_ZTS16ImGuiMouseSource", !7, i64 0}
!18 = !{!"short", !7, i64 0}
!19 = !{!"_ZTS8ImVectorItE", !10, i64 0, !10, i64 4, !6, i64 8}
!20 = !{!"_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, !21, i64 184, !22, i64 200}
!21 = !{!"_ZTS8ImVectorI20ImGuiPlatformMonitorE", !10, i64 0, !10, i64 4, !6, i64 8}
!22 = !{!"_ZTS8ImVectorIP13ImGuiViewportE", !10, i64 0, !10, i64 4, !6, i64 8}
!23 = !{!"_ZTS10ImGuiStyle", !16, i64 0, !16, i64 4, !15, i64 8, !16, i64 16, !16, i64 20, !15, i64 24, !15, i64 32, !10, i64 40, !16, i64 44, !16, i64 48, !16, i64 52, !16, i64 56, !15, i64 60, !16, i64 68, !16, i64 72, !15, i64 76, !15, i64 84, !15, i64 92, !15, i64 100, !16, i64 108, !16, i64 112, !16, i64 116, !16, i64 120, !16, i64 124, !16, i64 128, !16, i64 132, !16, i64 136, !16, i64 140, !16, i64 144, !10, i64 148, !15, i64 152, !15, i64 160, !16, i64 168, !15, i64 172, !15, i64 180, !15, i64 188, !15, i64 196, !16, i64 204, !16, i64 208, !13, i64 212, !13, i64 213, !13, i64 214, !16, i64 216, !16, i64 220, !7, i64 224, !16, i64 1104, !16, i64 1108, !16, i64 1112, !10, i64 1116, !10, i64 1120}
!24 = !{!"_ZTS20ImDrawListSharedData", !15, i64 0, !6, i64 8, !16, i64 16, !16, i64 20, !16, i64 24, !25, i64 28, !10, i64 44, !26, i64 48, !7, i64 64, !16, i64 448, !7, i64 452, !6, i64 520}
!25 = !{!"_ZTS6ImVec4", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12}
!26 = !{!"_ZTS8ImVectorI6ImVec2E", !10, i64 0, !10, i64 4, !6, i64 8}
!27 = !{!"double", !7, i64 0}
!28 = !{!"_ZTS8ImVectorI15ImGuiInputEventE", !10, i64 0, !10, i64 4, !6, i64 8}
!29 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !10, i64 0, !10, i64 4, !6, i64 8}
!30 = !{!"_ZTS8ImVectorI20ImGuiWindowStackDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!31 = !{!"_ZTS12ImGuiStorage", !32, i64 0}
!32 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !10, i64 0, !10, i64 4, !6, i64 8}
!33 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!34 = !{!"_ZTS20ImGuiKeyRoutingTable", !7, i64 0, !35, i64 280, !35, i64 296}
!35 = !{!"_ZTS8ImVectorI19ImGuiKeyRoutingDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!36 = !{!"_ZTS17ImGuiNextItemData", !10, i64 0, !10, i64 4, !16, i64 8, !10, i64 12, !10, i64 16, !13, i64 20}
!37 = !{!"_ZTS17ImGuiLastItemData", !10, i64 0, !10, i64 4, !10, i64 8, !38, i64 12, !38, i64 28, !38, i64 44}
!38 = !{!"_ZTS6ImRect", !15, i64 0, !15, i64 8}
!39 = !{!"_ZTS19ImGuiNextWindowData", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !15, i64 20, !15, i64 28, !15, i64 36, !15, i64 44, !15, i64 52, !13, i64 60, !13, i64 61, !38, i64 64, !6, i64 80, !6, i64 88, !16, i64 96, !10, i64 100, !10, i64 104, !40, i64 108, !15, i64 136}
!40 = !{!"_ZTS16ImGuiWindowClass", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !13, i64 24, !13, i64 25}
!41 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !10, i64 0, !10, i64 4, !6, i64 8}
!42 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !10, i64 0, !10, i64 4, !6, i64 8}
!43 = !{!"_ZTS8ImVectorIP6ImFontE", !10, i64 0, !10, i64 4, !6, i64 8}
!44 = !{!"_ZTS8ImVectorIjE", !10, i64 0, !10, i64 4, !6, i64 8}
!45 = !{!"_ZTS8ImVectorIiE", !10, i64 0, !10, i64 4, !6, i64 8}
!46 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!47 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!48 = !{!"_ZTS8ImVectorIP14ImGuiViewportPE", !10, i64 0, !10, i64 4, !6, i64 8}
!49 = !{!"_ZTS20ImGuiPlatformMonitor", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !16, i64 32, !6, i64 40}
!50 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!51 = !{!"_ZTS16ImGuiNavItemData", !6, i64 0, !10, i64 8, !10, i64 12, !38, i64 16, !10, i64 32, !16, i64 36, !16, i64 40, !16, i64 44}
!52 = !{!"_ZTS12ImGuiPayload", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !7, i64 24, !13, i64 57, !13, i64 58}
!53 = !{!"_ZTS8ImVectorIhE", !10, i64 0, !10, i64 4, !6, i64 8}
!54 = !{!"_ZTS8ImVectorI20ImGuiListClipperDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!55 = !{!"_ZTS8ImVectorI18ImGuiTableTempDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!56 = !{!"_ZTS6ImPoolI10ImGuiTableE", !57, i64 0, !31, i64 16, !10, i64 32, !10, i64 36}
!57 = !{!"_ZTS8ImVectorI10ImGuiTableE", !10, i64 0, !10, i64 4, !6, i64 8}
!58 = !{!"_ZTS8ImVectorIfE", !10, i64 0, !10, i64 4, !6, i64 8}
!59 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !10, i64 0, !10, i64 4, !6, i64 8}
!60 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !61, i64 0, !31, i64 16, !10, i64 32, !10, i64 36}
!61 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !10, i64 0, !10, i64 4, !6, i64 8}
!62 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !10, i64 0, !10, i64 4, !6, i64 8}
!63 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !10, i64 0, !10, i64 4, !6, i64 8}
!64 = !{!"_ZTS19ImGuiInputTextState", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !19, i64 24, !65, i64 40, !65, i64 56, !13, i64 72, !10, i64 76, !16, i64 80, !66, i64 84, !16, i64 3712, !13, i64 3716, !13, i64 3717, !13, i64 3718, !10, i64 3720}
!65 = !{!"_ZTS8ImVectorIcE", !10, i64 0, !10, i64 4, !6, i64 8}
!66 = !{!"_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, !16, i64 28, !67, i64 32}
!67 = !{!"_ZTSN5ImStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !18, i64 3582, !18, i64 3584, !10, i64 3588, !10, i64 3592}
!68 = !{!"_ZTS30ImGuiInputTextDeactivatedState", !10, i64 0, !65, i64 8}
!69 = !{!"_ZTS6ImFont", !58, i64 0, !16, i64 16, !16, i64 20, !19, i64 24, !70, i64 40, !6, i64 56, !6, i64 64, !6, i64 72, !18, i64 80, !18, i64 82, !18, i64 84, !18, i64 86, !16, i64 88, !16, i64 92, !13, i64 96, !16, i64 100, !16, i64 104, !16, i64 108, !10, i64 112, !7, i64 116}
!70 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !10, i64 0, !10, i64 4, !6, i64 8}
!71 = !{!"_ZTS21ImGuiComboPreviewData", !38, i64 0, !15, i64 16, !15, i64 24, !15, i64 32, !16, i64 40, !10, i64 44}
!72 = !{!"_ZTS20ImGuiPlatformImeData", !13, i64 0, !15, i64 4, !16, i64 12}
!73 = !{!"_ZTS16ImGuiDockContext", !31, i64 0, !74, i64 16, !75, i64 32, !13, i64 48}
!74 = !{!"_ZTS8ImVectorI16ImGuiDockRequestE", !10, i64 0, !10, i64 4, !6, i64 8}
!75 = !{!"_ZTS8ImVectorI21ImGuiDockNodeSettingsE", !10, i64 0, !10, i64 4, !6, i64 8}
!76 = !{!"_ZTS15ImGuiTextBuffer", !65, i64 0}
!77 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !10, i64 0, !10, i64 4, !6, i64 8}
!78 = !{!"_ZTS13ImChunkStreamI19ImGuiWindowSettingsE", !65, i64 0}
!79 = !{!"_ZTS13ImChunkStreamI18ImGuiTableSettingsE", !65, i64 0}
!80 = !{!"_ZTS8ImVectorI16ImGuiContextHookE", !10, i64 0, !10, i64 4, !6, i64 8}
!81 = !{!"_ZTS12ImGuiLogType", !7, i64 0}
!82 = !{!"_ZTS14ImGuiTextIndex", !45, i64 0, !10, i64 16}
!83 = !{!"_ZTS18ImGuiMetricsConfig", !13, i64 0, !13, i64 1, !13, i64 2, !13, i64 3, !13, i64 4, !13, i64 5, !13, i64 6, !13, i64 7, !13, i64 8, !10, i64 12, !10, i64 16}
!84 = !{!"_ZTS14ImGuiStackTool", !10, i64 0, !10, i64 4, !10, i64 8, !85, i64 16, !13, i64 32, !16, i64 36}
!85 = !{!"_ZTS8ImVectorI19ImGuiStackLevelInfoE", !10, i64 0, !10, i64 4, !6, i64 8}
!86 = !{!87, !10, i64 4}
!87 = !{!"_ZTS13ImGuiViewport", !10, i64 0, !10, i64 4, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !16, i64 40, !10, i64 44, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !13, i64 88, !13, i64 89, !13, i64 90, !13, i64 91}
!88 = !{!89, !10, i64 112}
!89 = !{!"_ZTS14ImGuiViewportP", !87, i64 0, !6, i64 96, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !15, i64 120, !16, i64 128, !16, i64 132, !13, i64 136, !18, i64 138, !7, i64 140, !7, i64 152, !90, i64 168, !92, i64 232, !15, i64 264, !15, i64 272, !15, i64 280, !15, i64 288, !15, i64 296, !15, i64 304, !15, i64 312}
!90 = !{!"_ZTS10ImDrawData", !13, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !91, i64 16, !15, i64 32, !15, i64 40, !15, i64 48, !6, i64 56}
!91 = !{!"_ZTS8ImVectorIP10ImDrawListE", !10, i64 0, !10, i64 4, !6, i64 8}
!92 = !{!"_ZTS17ImDrawDataBuilder", !7, i64 0, !91, i64 16}
!93 = distinct !{!93, !94}
!94 = !{!"llvm.loop.mustprogress"}


; 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.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImVec2 = type { float, float }

@GImGui = external dso_local local_unnamed_addr global ptr, align 8

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP14ImGuiViewportPEixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZNK14ImGuiViewportP11GetMainRectEv(ptr noundef nonnull align 8 dereferenceable(320)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6ImRect8ContainsERK6ImVec2(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN5ImGui42FindHoveredViewportFromPlatformWindowStackERK6ImVec2(ptr noundef nonnull align 4 dereferenceable(8) %0) local_unnamed_addr #4 {
  %2 = alloca %struct.ImRect, align 8
  %3 = load ptr, ptr @GImGui, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %3, i64 18960
  %5 = load i32, ptr %4, align 8, !tbaa !9
  %6 = icmp sgt i32 %5, 0
  br i1 %6, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %1
  %7 = getelementptr inbounds i8, ptr %2, i64 8
  br label %8

._crit_edge:                                      ; preds = %28, %1
  %.0.lcssa = phi ptr [ null, %1 ], [ %.1, %28 ]
  ret ptr %.0.lcssa

8:                                                ; preds = %.lr.ph, %28
  %.014 = phi ptr [ null, %.lr.ph ], [ %.1, %28 ]
  %.01213 = phi i32 [ 0, %.lr.ph ], [ %29, %28 ]
  %9 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP14ImGuiViewportPEixEi(ptr noundef nonnull align 8 dereferenceable(16) %4, i32 noundef %.01213)
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %10, i64 4
  %12 = load i32, ptr %11, align 4, !tbaa !85
  %13 = and i32 %12, 4224
  %.not = icmp eq i32 %13, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #5
  br i1 %.not, label %14, label %.critedge

14:                                               ; preds = %8
  %15 = call { <2 x float>, <2 x float> } @_ZNK14ImGuiViewportP11GetMainRectEv(ptr noundef nonnull align 8 dereferenceable(320) %10)
  %16 = extractvalue { <2 x float>, <2 x float> } %15, 0
  store <2 x float> %16, ptr %2, align 8
  %17 = extractvalue { <2 x float>, <2 x float> } %15, 1
  store <2 x float> %17, ptr %7, align 8
  %18 = call noundef zeroext i1 @_ZNK6ImRect8ContainsERK6ImVec2(ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(8) %0)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  br i1 %18, label %19, label %28

19:                                               ; preds = %14
  %20 = icmp eq ptr %.014, null
  br i1 %20, label %27, label %21

21:                                               ; preds = %19
  %22 = getelementptr inbounds i8, ptr %.014, i64 112
  %23 = load i32, ptr %22, align 8, !tbaa !87
  %24 = getelementptr inbounds i8, ptr %10, i64 112
  %25 = load i32, ptr %24, align 8, !tbaa !87
  %26 = icmp slt i32 %23, %25
  br i1 %26, label %27, label %28

27:                                               ; preds = %21, %19
  br label %28

.critedge:                                        ; preds = %8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  br label %28

28:                                               ; preds = %21, %27, %.critedge, %14
  %.1 = phi ptr [ %.014, %.critedge ], [ %10, %27 ], [ %.014, %21 ], [ %.014, %14 ]
  %29 = add nuw nsw i32 %.01213, 1
  %30 = load i32, ptr %4, align 8, !tbaa !9
  %31 = icmp slt i32 %29, %30
  br i1 %31, label %8, label %._crit_edge, !llvm.loop !92
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #4 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = { 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 18960}
!10 = !{!"_ZTS12ImGuiContext", !11, i64 0, !11, i64 1, !12, i64 8, !19, i64 14336, !22, i64 14552, !13, i64 15676, !13, i64 15680, !6, i64 15688, !15, i64 15696, !15, i64 15700, !23, i64 15704, !26, i64 16232, !13, i64 16240, !13, i64 16244, !13, i64 16248, !13, i64 16252, !11, i64 16256, !11, i64 16257, !11, i64 16258, !11, i64 16259, !11, i64 16260, !6, i64 16264, !27, i64 16272, !27, i64 16288, !16, i64 16304, !13, i64 16308, !28, i64 16312, !28, i64 16328, !28, i64 16344, !29, i64 16360, !30, i64 16376, !13, i64 16392, !14, i64 16396, !6, i64 16408, !6, i64 16416, !6, i64 16424, !6, i64 16432, !6, i64 16440, !14, i64 16448, !13, i64 16456, !15, i64 16460, !14, i64 16464, !14, i64 16472, !13, i64 16480, !13, i64 16484, !13, i64 16488, !11, i64 16492, !11, i64 16493, !15, i64 16496, !15, i64 16500, !13, i64 16504, !13, i64 16508, !15, i64 16512, !11, i64 16516, !11, i64 16517, !11, i64 16518, !11, i64 16519, !11, i64 16520, !11, i64 16521, !14, i64 16524, !6, i64 16536, !32, i64 16544, !13, i64 16548, !13, i64 16552, !11, i64 16556, !11, i64 16557, !6, i64 16560, !13, i64 16568, !15, i64 16572, !7, i64 16576, !33, i64 18256, !13, i64 18568, !11, i64 18572, !13, i64 18576, !13, i64 18580, !13, i64 18584, !13, i64 18588, !35, i64 18592, !36, i64 18616, !38, i64 18680, !40, i64 18824, !41, i64 18840, !42, i64 18856, !43, i64 18872, !44, i64 18888, !45, i64 18904, !46, i64 18920, !46, i64 18936, !13, i64 18952, !47, i64 18960, !15, i64 18976, !6, i64 18984, !6, i64 18992, !6, i64 19000, !13, i64 19008, !48, i64 19016, !13, i64 19064, !13, i64 19068, !13, i64 19072, !6, i64 19080, !13, i64 19088, !13, i64 19092, !13, i64 19096, !13, i64 19100, !13, i64 19104, !13, i64 19108, !13, i64 19112, !13, i64 19116, !13, i64 19120, !13, i64 19124, !13, i64 19128, !32, i64 19132, !49, i64 19136, !11, i64 19140, !11, i64 19141, !11, i64 19142, !11, i64 19143, !11, i64 19144, !11, i64 19145, !11, i64 19146, !50, i64 19152, !11, i64 19200, !11, i64 19201, !11, i64 19202, !13, i64 19204, !13, i64 19208, !13, i64 19212, !13, i64 19216, !13, i64 19220, !13, i64 19224, !37, i64 19228, !37, i64 19244, !13, i64 19260, !13, i64 19264, !13, i64 19268, !50, i64 19272, !50, i64 19320, !50, i64 19368, !50, i64 19416, !13, i64 19464, !13, i64 19468, !6, i64 19472, !6, i64 19480, !6, i64 19488, !15, i64 19496, !15, i64 19500, !11, i64 19504, !14, i64 19508, !14, i64 19516, !15, i64 19524, !11, i64 19528, !11, i64 19529, !11, i64 19530, !13, i64 19532, !13, i64 19536, !13, i64 19540, !51, i64 19544, !37, i64 19608, !13, i64 19624, !13, i64 19628, !15, i64 19632, !13, i64 19636, !13, i64 19640, !13, i64 19644, !13, i64 19648, !52, i64 19656, !7, i64 19672, !13, i64 19688, !53, i64 19696, !6, i64 19712, !13, i64 19720, !54, i64 19728, !55, i64 19744, !57, i64 19784, !58, i64 19800, !6, i64 19816, !59, i64 19824, !61, i64 19864, !62, i64 19880, !13, i64 19896, !13, i64 19900, !15, i64 19904, !15, i64 19908, !13, i64 19912, !13, i64 19916, !13, i64 19920, !15, i64 19924, !14, i64 19928, !63, i64 19936, !67, i64 23664, !68, i64 23688, !13, i64 23808, !13, i64 23812, !13, i64 23816, !13, i64 23820, !15, i64 23824, !15, i64 23828, !13, i64 23832, !24, i64 23836, !70, i64 23852, !15, i64 23900, !15, i64 23904, !11, i64 23908, !11, i64 23909, !15, i64 23912, !15, i64 23916, !15, i64 23920, !15, i64 23924, !17, i64 23928, !17, i64 23930, !64, i64 23936, !43, i64 23952, !71, i64 23968, !71, i64 23984, !13, i64 24000, !7, i64 24004, !72, i64 24008, !6, i64 24064, !11, i64 24072, !15, i64 24076, !75, i64 24080, !76, i64 24096, !77, i64 24112, !78, i64 24128, !79, i64 24144, !13, i64 24160, !7, i64 24168, !11, i64 24240, !80, i64 24244, !6, i64 24248, !75, i64 24256, !6, i64 24272, !6, i64 24280, !15, i64 24288, !11, i64 24292, !13, i64 24296, !13, i64 24300, !13, i64 24304, !13, i64 24308, !75, i64 24312, !81, i64 24328, !7, i64 24352, !7, i64 24353, !7, i64 24354, !11, i64 24355, !7, i64 24356, !13, i64 24360, !82, i64 24364, !83, i64 24384, !6, i64 24424, !7, i64 24432, !13, i64 24672, !13, i64 24676, !15, i64 24680, !13, i64 24684, !13, i64 24688, !13, i64 24692, !64, i64 24696}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"_ZTS7ImGuiIO", !13, i64 0, !13, i64 4, !14, i64 8, !15, i64 16, !15, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !15, i64 56, !11, i64 60, !6, i64 64, !14, i64 72, !11, i64 80, !11, i64 81, !11, i64 82, !11, i64 83, !11, i64 84, !11, i64 85, !11, i64 86, !11, i64 87, !11, i64 88, !11, i64 89, !11, i64 90, !11, i64 91, !11, i64 92, !11, i64 93, !11, i64 94, !11, i64 95, !15, i64 96, !15, i64 100, !15, i64 104, !15, i64 108, !15, i64 112, !15, i64 116, !11, i64 120, !11, i64 121, !11, i64 122, !11, i64 123, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !11, i64 208, !11, i64 209, !11, i64 210, !11, i64 211, !11, i64 212, !11, i64 213, !11, i64 214, !15, i64 216, !13, i64 220, !13, i64 224, !13, i64 228, !13, i64 232, !13, i64 236, !14, i64 240, !7, i64 248, !7, i64 2856, !7, i64 3508, !6, i64 3576, !14, i64 3584, !7, i64 3592, !15, i64 3600, !15, i64 3604, !16, i64 3608, !13, i64 3612, !11, i64 3616, !11, i64 3617, !11, i64 3618, !11, i64 3619, !13, i64 3620, !7, i64 3624, !11, i64 14056, !14, i64 14060, !7, i64 14068, !7, i64 14112, !7, i64 14152, !7, i64 14157, !7, i64 14162, !7, i64 14172, !7, i64 14182, !7, i64 14187, !7, i64 14192, !11, i64 14197, !7, i64 14200, !7, i64 14220, !7, i64 14240, !7, i64 14280, !15, i64 14300, !11, i64 14304, !11, i64 14305, !7, i64 14306, !11, i64 14307, !17, i64 14308, !18, i64 14312}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTS6ImVec2", !15, i64 0, !15, i64 4}
!15 = !{!"float", !7, i64 0}
!16 = !{!"_ZTS16ImGuiMouseSource", !7, i64 0}
!17 = !{!"short", !7, i64 0}
!18 = !{!"_ZTS8ImVectorItE", !13, i64 0, !13, i64 4, !6, i64 8}
!19 = !{!"_ZTS15ImGuiPlatformIO", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !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, !20, i64 184, !21, i64 200}
!20 = !{!"_ZTS8ImVectorI20ImGuiPlatformMonitorE", !13, i64 0, !13, i64 4, !6, i64 8}
!21 = !{!"_ZTS8ImVectorIP13ImGuiViewportE", !13, i64 0, !13, i64 4, !6, i64 8}
!22 = !{!"_ZTS10ImGuiStyle", !15, i64 0, !15, i64 4, !14, i64 8, !15, i64 16, !15, i64 20, !14, i64 24, !14, i64 32, !13, i64 40, !15, i64 44, !15, i64 48, !15, i64 52, !15, i64 56, !14, i64 60, !15, i64 68, !15, i64 72, !14, i64 76, !14, i64 84, !14, i64 92, !14, i64 100, !15, i64 108, !15, i64 112, !15, i64 116, !15, i64 120, !15, i64 124, !15, i64 128, !15, i64 132, !15, i64 136, !15, i64 140, !15, i64 144, !13, i64 148, !14, i64 152, !14, i64 160, !15, i64 168, !14, i64 172, !14, i64 180, !14, i64 188, !14, i64 196, !15, i64 204, !15, i64 208, !11, i64 212, !11, i64 213, !11, i64 214, !15, i64 216, !15, i64 220, !7, i64 224, !15, i64 1104, !15, i64 1108, !15, i64 1112, !13, i64 1116, !13, i64 1120}
!23 = !{!"_ZTS20ImDrawListSharedData", !14, i64 0, !6, i64 8, !15, i64 16, !15, i64 20, !15, i64 24, !24, i64 28, !13, i64 44, !25, i64 48, !7, i64 64, !15, i64 448, !7, i64 452, !6, i64 520}
!24 = !{!"_ZTS6ImVec4", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!25 = !{!"_ZTS8ImVectorI6ImVec2E", !13, i64 0, !13, i64 4, !6, i64 8}
!26 = !{!"double", !7, i64 0}
!27 = !{!"_ZTS8ImVectorI15ImGuiInputEventE", !13, i64 0, !13, i64 4, !6, i64 8}
!28 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !13, i64 0, !13, i64 4, !6, i64 8}
!29 = !{!"_ZTS8ImVectorI20ImGuiWindowStackDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!30 = !{!"_ZTS12ImGuiStorage", !31, i64 0}
!31 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !13, i64 0, !13, i64 4, !6, i64 8}
!32 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!33 = !{!"_ZTS20ImGuiKeyRoutingTable", !7, i64 0, !34, i64 280, !34, i64 296}
!34 = !{!"_ZTS8ImVectorI19ImGuiKeyRoutingDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!35 = !{!"_ZTS17ImGuiNextItemData", !13, i64 0, !13, i64 4, !15, i64 8, !13, i64 12, !13, i64 16, !11, i64 20}
!36 = !{!"_ZTS17ImGuiLastItemData", !13, i64 0, !13, i64 4, !13, i64 8, !37, i64 12, !37, i64 28, !37, i64 44}
!37 = !{!"_ZTS6ImRect", !14, i64 0, !14, i64 8}
!38 = !{!"_ZTS19ImGuiNextWindowData", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !14, i64 20, !14, i64 28, !14, i64 36, !14, i64 44, !14, i64 52, !11, i64 60, !11, i64 61, !37, i64 64, !6, i64 80, !6, i64 88, !15, i64 96, !13, i64 100, !13, i64 104, !39, i64 108, !14, i64 136}
!39 = !{!"_ZTS16ImGuiWindowClass", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !11, i64 24, !11, i64 25}
!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 = !{!"_ZTS8ImVectorIjE", !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 = !{!"_ZTS8ImVectorIP14ImGuiViewportPE", !13, i64 0, !13, i64 4, !6, i64 8}
!48 = !{!"_ZTS20ImGuiPlatformMonitor", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !15, i64 32, !6, i64 40}
!49 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!50 = !{!"_ZTS16ImGuiNavItemData", !6, i64 0, !13, i64 8, !13, i64 12, !37, i64 16, !13, i64 32, !15, i64 36, !15, i64 40, !15, i64 44}
!51 = !{!"_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}
!52 = !{!"_ZTS8ImVectorIhE", !13, i64 0, !13, i64 4, !6, i64 8}
!53 = !{!"_ZTS8ImVectorI20ImGuiListClipperDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!54 = !{!"_ZTS8ImVectorI18ImGuiTableTempDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!55 = !{!"_ZTS6ImPoolI10ImGuiTableE", !56, i64 0, !30, i64 16, !13, i64 32, !13, i64 36}
!56 = !{!"_ZTS8ImVectorI10ImGuiTableE", !13, i64 0, !13, i64 4, !6, i64 8}
!57 = !{!"_ZTS8ImVectorIfE", !13, i64 0, !13, i64 4, !6, i64 8}
!58 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !13, i64 0, !13, i64 4, !6, i64 8}
!59 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !60, i64 0, !30, i64 16, !13, i64 32, !13, i64 36}
!60 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !13, i64 0, !13, i64 4, !6, i64 8}
!61 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !13, i64 0, !13, i64 4, !6, i64 8}
!62 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !13, i64 0, !13, i64 4, !6, i64 8}
!63 = !{!"_ZTS19ImGuiInputTextState", !6, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !18, i64 24, !64, i64 40, !64, i64 56, !11, i64 72, !13, i64 76, !15, i64 80, !65, i64 84, !15, i64 3712, !11, i64 3716, !11, i64 3717, !11, i64 3718, !13, i64 3720}
!64 = !{!"_ZTS8ImVectorIcE", !13, i64 0, !13, i64 4, !6, i64 8}
!65 = !{!"_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, !66, i64 32}
!66 = !{!"_ZTSN5ImStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !17, i64 3582, !17, i64 3584, !13, i64 3588, !13, i64 3592}
!67 = !{!"_ZTS30ImGuiInputTextDeactivatedState", !13, i64 0, !64, i64 8}
!68 = !{!"_ZTS6ImFont", !57, i64 0, !15, i64 16, !15, i64 20, !18, i64 24, !69, i64 40, !6, i64 56, !6, i64 64, !6, i64 72, !17, i64 80, !17, i64 82, !17, i64 84, !17, i64 86, !15, i64 88, !15, i64 92, !11, i64 96, !15, i64 100, !15, i64 104, !15, i64 108, !13, i64 112, !7, i64 116}
!69 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !13, i64 0, !13, i64 4, !6, i64 8}
!70 = !{!"_ZTS21ImGuiComboPreviewData", !37, i64 0, !14, i64 16, !14, i64 24, !14, i64 32, !15, i64 40, !13, i64 44}
!71 = !{!"_ZTS20ImGuiPlatformImeData", !11, i64 0, !14, i64 4, !15, i64 12}
!72 = !{!"_ZTS16ImGuiDockContext", !30, i64 0, !73, i64 16, !74, i64 32, !11, i64 48}
!73 = !{!"_ZTS8ImVectorI16ImGuiDockRequestE", !13, i64 0, !13, i64 4, !6, i64 8}
!74 = !{!"_ZTS8ImVectorI21ImGuiDockNodeSettingsE", !13, i64 0, !13, i64 4, !6, i64 8}
!75 = !{!"_ZTS15ImGuiTextBuffer", !64, i64 0}
!76 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !13, i64 0, !13, i64 4, !6, i64 8}
!77 = !{!"_ZTS13ImChunkStreamI19ImGuiWindowSettingsE", !64, i64 0}
!78 = !{!"_ZTS13ImChunkStreamI18ImGuiTableSettingsE", !64, i64 0}
!79 = !{!"_ZTS8ImVectorI16ImGuiContextHookE", !13, i64 0, !13, i64 4, !6, i64 8}
!80 = !{!"_ZTS12ImGuiLogType", !7, i64 0}
!81 = !{!"_ZTS14ImGuiTextIndex", !44, i64 0, !13, i64 16}
!82 = !{!"_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}
!83 = !{!"_ZTS14ImGuiStackTool", !13, i64 0, !13, i64 4, !13, i64 8, !84, i64 16, !11, i64 32, !15, i64 36}
!84 = !{!"_ZTS8ImVectorI19ImGuiStackLevelInfoE", !13, i64 0, !13, i64 4, !6, i64 8}
!85 = !{!86, !13, i64 4}
!86 = !{!"_ZTS13ImGuiViewport", !13, i64 0, !13, i64 4, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !15, i64 40, !13, i64 44, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !11, i64 88, !11, i64 89, !11, i64 90, !11, i64 91}
!87 = !{!88, !13, i64 112}
!88 = !{!"_ZTS14ImGuiViewportP", !86, i64 0, !6, i64 96, !13, i64 104, !13, i64 108, !13, i64 112, !13, i64 116, !14, i64 120, !15, i64 128, !15, i64 132, !11, i64 136, !17, i64 138, !7, i64 140, !7, i64 152, !89, i64 168, !91, i64 232, !14, i64 264, !14, i64 272, !14, i64 280, !14, i64 288, !14, i64 296, !14, i64 304, !14, i64 312}
!89 = !{!"_ZTS10ImDrawData", !11, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !90, i64 16, !14, i64 32, !14, i64 40, !14, i64 48, !6, i64 56}
!90 = !{!"_ZTS8ImVectorIP10ImDrawListE", !13, i64 0, !13, i64 4, !6, i64 8}
!91 = !{!"_ZTS17ImDrawDataBuilder", !7, i64 0, !90, i64 16}
!92 = distinct !{!92, !93}
!93 = !{!"llvm.loop.mustprogress"}


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