; LLVM IR from Devaniti/BoolkaEngine :: ThirdParty/imgui/imgui.ll (ZN5ImGui25FindBestWindowPosForPopupEP11ImGuiWindow)

; 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.ImVec2 = type { float, float }
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImGuiWindow = type <{ ptr, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i16, i16, i16, i32, i8, i8, i8, i8, i32, i8, i8, i8, i32, i8, %struct.ImVec2, %struct.ImVec2, [4 x i8], %struct.ImVector.7, %struct.ImGuiWindowTempData, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImVec2ih, %struct.ImVec2ih, i32, float, float, [4 x i8], %struct.ImGuiStorage, %struct.ImVector.30, float, i32, ptr, %struct.ImDrawList, ptr, ptr, ptr, ptr, ptr, [2 x i32], [2 x %struct.ImRect], i32, i32, i8, [7 x i8] }>
%struct.ImVector.7 = type { i32, i32, ptr }
%struct.ImGuiWindowTempData = type <{ %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, %struct.ImVec1, %struct.ImVec1, %struct.ImVec1, i32, i32, %struct.ImRect, %struct.ImRect, i32, i32, i32, i32, i8, i8, i8, i8, %struct.ImVec2, %struct.ImGuiMenuColumns, i32, i32, [4 x i8], %struct.ImVector.3, ptr, ptr, i32, i32, i32, i32, i32, i32, float, float, %struct.ImVector.21, %struct.ImVector.21, %struct.ImGuiStackSizes, [2 x i8] }>
%struct.ImVec1 = type { float }
%struct.ImGuiMenuColumns = type { float, float, float, [3 x float], [3 x float] }
%struct.ImVector.3 = type { i32, i32, ptr }
%struct.ImVector.21 = type { i32, i32, ptr }
%struct.ImGuiStackSizes = type { i16, i16, i16, i16, i16, i16, i16 }
%struct.ImVec2ih = type { i16, i16 }
%struct.ImGuiStorage = type { %struct.ImVector.0 }
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImVector.30 = type { i32, i32, ptr }
%struct.ImDrawList = type <{ %struct.ImVector.12, %struct.ImVector, %struct.ImVector.13, i32, i32, ptr, ptr, ptr, ptr, %struct.ImVector.14, %struct.ImVector.15, %struct.ImVector.16, %struct.ImDrawCmdHeader, %struct.ImDrawListSplitter, float, [4 x i8] }>
%struct.ImVector.12 = type { i32, i32, ptr }
%struct.ImVector = 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.ImDrawCmdHeader = type <{ %struct.ImVec4, ptr, i32, [4 x i8] }>
%struct.ImVec4 = type { float, float, float, float }
%struct.ImDrawListSplitter = type { i32, i32, %struct.ImVector.17 }
%struct.ImVector.17 = type { i32, i32, ptr }
%struct.ImGuiContext = type <{ i8, i8, [6 x i8], %struct.ImGuiIO, %struct.ImGuiStyle, [4 x i8], ptr, float, float, %struct.ImDrawListSharedData, double, i32, i32, i32, i8, i8, i8, i8, i8, [3 x i8], i32, ptr, %struct.ImVector.3, %struct.ImVector.3, %struct.ImVector.3, %struct.ImVector.3, %struct.ImGuiStorage, i32, [4 x i8], ptr, ptr, ptr, ptr, ptr, ptr, %struct.ImVec2, float, i32, i32, i8, i8, i8, i8, float, float, i32, i32, float, i8, i8, i8, i8, i8, i8, i8, i8, i32, i32, [4 x i8], i64, %struct.ImVec2, ptr, i32, i32, i32, i8, i8, [2 x i8], ptr, i32, float, %struct.ImGuiNextWindowData, %struct.ImGuiNextItemData, [4 x i8], %struct.ImVector.4, %struct.ImVector.5, %struct.ImVector.6, %struct.ImVector.7, %struct.ImVector.8, %struct.ImVector.9, %struct.ImVector.10, %struct.ImVector.10, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.ImRect, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, i32, %struct.ImRect, i8, [3 x i8], i32, i32, i32, i32, i32, i32, [4 x i8], %struct.ImGuiNavMoveResult, %struct.ImGuiNavMoveResult, %struct.ImGuiNavMoveResult, ptr, i32, [4 x i8], ptr, ptr, ptr, float, float, i8, [7 x i8], ptr, ptr, i32, i32, i32, i32, i8, [7 x i8], %struct.ImDrawData, %struct.ImDrawDataBuilder, float, [4 x i8], %struct.ImDrawList, %struct.ImDrawList, i32, i8, i8, i8, i8, i32, i32, i32, [4 x i8], %struct.ImGuiPayload, %struct.ImRect, i32, i32, float, i32, i32, i32, i32, [4 x i8], %struct.ImVector.18, [16 x i8], ptr, %struct.ImPool, %struct.ImVector.20, %struct.ImVector.21, %struct.ImVector.17, ptr, %struct.ImPool.22, %struct.ImVector.20, %struct.ImVector.25, %struct.ImVec2, %struct.ImGuiInputTextState, %struct.ImFont, i32, i32, float, float, [3 x float], %struct.ImVec4, float, i8, i8, [2 x i8], float, float, float, i32, float, %struct.ImVector.2, %struct.ImVector.7, %struct.ImVec2, %struct.ImVec2, i8, i8, [2 x i8], float, %struct.ImGuiTextBuffer, %struct.ImVector.27, %struct.ImChunkStream, %struct.ImChunkStream.28, %struct.ImVector.29, i8, [3 x i8], i32, ptr, %struct.ImGuiTextBuffer, float, i8, [3 x i8], i32, i32, i32, i8, [3 x i8], i32, %struct.ImGuiMetricsConfig, [120 x float], i32, float, i32, i32, i32, [3073 x i8], [7 x i8] }>
%struct.ImGuiIO = type { i32, i32, %struct.ImVec2, float, float, ptr, ptr, float, float, float, [22 x i32], float, float, ptr, ptr, float, i8, ptr, %struct.ImVec2, i8, i8, i8, i8, i8, i8, float, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.ImVec2, [5 x i8], float, float, i8, i8, i8, i8, [512 x i8], [21 x float], i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, i32, i32, %struct.ImVec2, i32, %struct.ImVec2, [5 x %struct.ImVec2], [5 x double], [5 x i8], [5 x i8], [5 x i8], [5 x i8], [5 x i8], [5 x float], [5 x float], [5 x %struct.ImVec2], [5 x float], [512 x float], [512 x float], [21 x float], [21 x float], float, i16, %struct.ImVector }
%struct.ImGuiStyle = type { float, %struct.ImVec2, float, float, %struct.ImVec2, %struct.ImVec2, i32, float, float, float, float, %struct.ImVec2, float, float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, float, float, float, float, float, float, float, float, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, i8, i8, i8, float, float, [53 x %struct.ImVec4] }
%struct.ImDrawListSharedData = type { %struct.ImVec2, ptr, float, float, float, %struct.ImVec4, i32, [12 x %struct.ImVec2], [64 x i8], ptr }
%struct.ImGuiNextWindowData = type <{ i32, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, [3 x i8], %struct.ImRect, [4 x i8], ptr, ptr, float, %struct.ImVec2, [4 x i8] }>
%struct.ImGuiNextItemData = type <{ i32, float, i32, i32, i8, [3 x i8] }>
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImVector.5 = type { i32, i32, ptr }
%struct.ImVector.6 = type { i32, i32, ptr }
%struct.ImVector.8 = type { i32, i32, ptr }
%struct.ImVector.9 = type { i32, i32, ptr }
%struct.ImVector.10 = type { i32, i32, ptr }
%struct.ImGuiNavMoveResult = type <{ ptr, i32, i32, float, float, float, %struct.ImRect, [4 x i8] }>
%struct.ImDrawData = type <{ i8, [7 x i8], ptr, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, [4 x i8] }>
%struct.ImDrawDataBuilder = type { [2 x %struct.ImVector.11] }
%struct.ImVector.11 = type { i32, i32, ptr }
%struct.ImGuiPayload = type <{ ptr, i32, i32, i32, i32, [33 x i8], i8, i8, [5 x i8] }>
%struct.ImVector.18 = type { i32, i32, ptr }
%struct.ImPool = type <{ %struct.ImVector.19, %struct.ImGuiStorage, i32, [4 x i8] }>
%struct.ImVector.19 = type { i32, i32, ptr }
%struct.ImPool.22 = type <{ %struct.ImVector.23, %struct.ImGuiStorage, i32, [4 x i8] }>
%struct.ImVector.23 = type { i32, i32, ptr }
%struct.ImVector.20 = type { i32, i32, ptr }
%struct.ImVector.25 = type { i32, i32, ptr }
%struct.ImGuiInputTextState = type { i32, i32, i32, %struct.ImVector, %struct.ImVector.2, %struct.ImVector.2, i8, i32, float, %"struct.ImStb::STB_TexteditState", float, i8, i8, i8, i32, ptr, ptr }
%"struct.ImStb::STB_TexteditState" = type { i32, i32, i32, i8, i32, i8, i8, i8, i8, i8, i8, i8, float, %"struct.ImStb::StbUndoState" }
%"struct.ImStb::StbUndoState" = type { [99 x %"struct.ImStb::StbUndoRecord"], [999 x i16], i16, i16, i32, i32 }
%"struct.ImStb::StbUndoRecord" = type { i32, i32, i32, i32 }
%struct.ImFont = type <{ %struct.ImVector.21, float, float, %struct.ImVector, %struct.ImVector.26, ptr, ptr, ptr, i16, i16, i16, i8, i8, float, float, float, i32, [2 x i8], [6 x i8] }>
%struct.ImVector.26 = type { i32, i32, ptr }
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImVector.27 = type { i32, i32, ptr }
%struct.ImChunkStream = type { %struct.ImVector.2 }
%struct.ImChunkStream.28 = type { %struct.ImVector.2 }
%struct.ImVector.29 = type { i32, i32, ptr }
%struct.ImGuiTextBuffer = type { %struct.ImVector.2 }
%struct.ImGuiMetricsConfig = type { i8, i8, i8, i8, i8, i32, i32 }

@GImGui = external dso_local global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.182 = external hidden unnamed_addr constant [26 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui25FindBestWindowPosForPopupEP11ImGuiWindow = external hidden unnamed_addr constant [55 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; 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) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local <2 x float> @_ZN5ImGui25FindBestWindowPosForPopupEP11ImGuiWindow(ptr noundef %0) #6 {
  %2 = alloca %struct.ImVec2, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %struct.ImRect, align 4
  %6 = alloca ptr, align 8
  %7 = alloca float, align 4
  %8 = alloca %struct.ImRect, align 4
  %9 = alloca %struct.ImRect, align 4
  %10 = alloca %struct.ImRect, align 4
  %11 = alloca i32, align 4
  %12 = alloca %struct.ImRect, align 4
  %13 = alloca float, align 4
  %14 = alloca %struct.ImVec2, align 4
  %15 = alloca %struct.ImRect, align 4
  %16 = alloca %struct.ImRect, align 4
  %17 = alloca %struct.ImRect, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  %18 = load ptr, ptr @GImGui, align 8, !tbaa !5
  store ptr %18, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #7
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = call { <2 x float>, <2 x float> } @_ZN5ImGui26GetWindowAllowedExtentRectEP11ImGuiWindow(ptr noundef %19)
  %21 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %5, i32 0, i32 0
  %22 = extractvalue { <2 x float>, <2 x float> } %20, 0
  store <2 x float> %22, ptr %21, align 4
  %23 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %5, i32 0, i32 1
  %24 = extractvalue { <2 x float>, <2 x float> } %20, 1
  store <2 x float> %24, ptr %23, align 4
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.ImGuiWindow, ptr %25, i32 0, i32 2
  %27 = load i32, ptr %26, align 4, !tbaa !9
  %28 = and i32 %27, 268435456
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %30, label %101

30:                                               ; preds = %1
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.ImGuiContext, ptr %31, i32 0, i32 29
  %33 = load ptr, ptr %32, align 8, !tbaa !40
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = icmp eq ptr %33, %34
  br i1 %35, label %36, label %37

36:                                               ; preds = %30
  br label %39

37:                                               ; preds = %30
  call void @__assert_fail(ptr noundef @.str.182, ptr noundef @.str.3, i32 noundef 8318, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui25FindBestWindowPosForPopupEP11ImGuiWindow) #8
  unreachable

38:                                               ; No predecessors!
  br label %39

39:                                               ; preds = %38, %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.ImGuiContext, ptr %40, i32 0, i32 25
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.ImGuiContext, ptr %42, i32 0, i32 25
  %44 = getelementptr inbounds %struct.ImVector.3, ptr %43, i32 0, i32 0
  %45 = load i32, ptr %44, align 8, !tbaa !81
  %46 = sub nsw i32 %45, 2
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP11ImGuiWindowEixEi(ptr noundef nonnull align 8 dereferenceable(16) %41, i32 noundef %46)
  %48 = load ptr, ptr %47, align 8, !tbaa !5
  store ptr %48, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.ImGuiContext, ptr %49, i32 0, i32 4
  %51 = getelementptr inbounds %struct.ImGuiStyle, ptr %50, i32 0, i32 15
  %52 = getelementptr inbounds %struct.ImVec2, ptr %51, i32 0, i32 0
  %53 = load float, ptr %52, align 8, !tbaa !82
  store float %53, ptr %7, align 4, !tbaa !83
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #7
  call void @_ZN6ImRectC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %8)
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.ImGuiWindow, ptr %54, i32 0, i32 53
  %56 = getelementptr inbounds %struct.ImGuiWindowTempData, ptr %55, i32 0, i32 22
  %57 = load i8, ptr %56, align 2, !tbaa !84, !range !85, !noundef !86
  %58 = trunc i8 %57 to i1
  br i1 %58, label %59, label %70

59:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #7
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.ImGuiWindow, ptr %60, i32 0, i32 59
  %62 = getelementptr inbounds %struct.ImRect, ptr %61, i32 0, i32 0
  %63 = getelementptr inbounds %struct.ImVec2, ptr %62, i32 0, i32 1
  %64 = load float, ptr %63, align 4, !tbaa !87
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.ImGuiWindow, ptr %65, i32 0, i32 59
  %67 = getelementptr inbounds %struct.ImRect, ptr %66, i32 0, i32 1
  %68 = getelementptr inbounds %struct.ImVec2, ptr %67, i32 0, i32 1
  %69 = load float, ptr %68, align 4, !tbaa !88
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %9, float noundef 0xC7EFFFFFE0000000, float noundef %64, float noundef 0x47EFFFFFE0000000, float noundef %69)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %9, i64 16, i1 false), !tbaa.struct !89
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #7
  br label %93

70:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #7
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.ImGuiWindow, ptr %71, i32 0, i32 3
  %73 = getelementptr inbounds %struct.ImVec2, ptr %72, i32 0, i32 0
  %74 = load float, ptr %73, align 8, !tbaa !90
  %75 = load float, ptr %7, align 4, !tbaa !83
  %76 = fadd float %74, %75
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.ImGuiWindow, ptr %77, i32 0, i32 3
  %79 = getelementptr inbounds %struct.ImVec2, ptr %78, i32 0, i32 0
  %80 = load float, ptr %79, align 8, !tbaa !90
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.ImGuiWindow, ptr %81, i32 0, i32 4
  %83 = getelementptr inbounds %struct.ImVec2, ptr %82, i32 0, i32 0
  %84 = load float, ptr %83, align 8, !tbaa !91
  %85 = fadd float %80, %84
  %86 = load float, ptr %7, align 4, !tbaa !83
  %87 = fsub float %85, %86
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.ImGuiWindow, ptr %88, i32 0, i32 20
  %90 = getelementptr inbounds %struct.ImVec2, ptr %89, i32 0, i32 0
  %91 = load float, ptr %90, align 4, !tbaa !92
  %92 = fsub float %87, %91
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %10, float noundef %76, float noundef 0xC7EFFFFFE0000000, float noundef %92, float noundef 0x47EFFFFFE0000000)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %10, i64 16, i1 false), !tbaa.struct !89
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #7
  br label %93

93:                                               ; preds = %70, %59
  %94 = load ptr, ptr %3, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.ImGuiWindow, ptr %94, i32 0, i32 3
  %96 = load ptr, ptr %3, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.ImGuiWindow, ptr %96, i32 0, i32 4
  %98 = load ptr, ptr %3, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.ImGuiWindow, ptr %98, i32 0, i32 43
  %100 = call <2 x float> @_ZN5ImGui27FindBestWindowPosForPopupExERK6ImVec2S2_PiRK6ImRectS6_24ImGuiPopupPositionPolicy(ptr noundef nonnull align 4 dereferenceable(8) %95, ptr noundef nonnull align 4 dereferenceable(8) %97, ptr noundef %99, ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(16) %8, i32 noundef 0)
  store <2 x float> %100, ptr %2, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br label %198

101:                                              ; preds = %1
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.ImGuiWindow, ptr %102, i32 0, i32 2
  %104 = load i32, ptr %103, align 4, !tbaa !9
  %105 = and i32 %104, 67108864
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %135

107:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #7
  %108 = load ptr, ptr %3, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.ImGuiWindow, ptr %108, i32 0, i32 3
  %110 = getelementptr inbounds %struct.ImVec2, ptr %109, i32 0, i32 0
  %111 = load float, ptr %110, align 8, !tbaa !90
  %112 = fsub float %111, 1.000000e+00
  %113 = load ptr, ptr %3, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.ImGuiWindow, ptr %113, i32 0, i32 3
  %115 = getelementptr inbounds %struct.ImVec2, ptr %114, i32 0, i32 1
  %116 = load float, ptr %115, align 4, !tbaa !93
  %117 = fsub float %116, 1.000000e+00
  %118 = load ptr, ptr %3, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.ImGuiWindow, ptr %118, i32 0, i32 3
  %120 = getelementptr inbounds %struct.ImVec2, ptr %119, i32 0, i32 0
  %121 = load float, ptr %120, align 8, !tbaa !90
  %122 = fadd float %121, 1.000000e+00
  %123 = load ptr, ptr %3, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.ImGuiWindow, ptr %123, i32 0, i32 3
  %125 = getelementptr inbounds %struct.ImVec2, ptr %124, i32 0, i32 1
  %126 = load float, ptr %125, align 4, !tbaa !93
  %127 = fadd float %126, 1.000000e+00
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %12, float noundef %112, float noundef %117, float noundef %122, float noundef %127)
  %128 = load ptr, ptr %3, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.ImGuiWindow, ptr %128, i32 0, i32 3
  %130 = load ptr, ptr %3, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.ImGuiWindow, ptr %130, i32 0, i32 4
  %132 = load ptr, ptr %3, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.ImGuiWindow, ptr %132, i32 0, i32 43
  %134 = call <2 x float> @_ZN5ImGui27FindBestWindowPosForPopupExERK6ImVec2S2_PiRK6ImRectS6_24ImGuiPopupPositionPolicy(ptr noundef nonnull align 4 dereferenceable(8) %129, ptr noundef nonnull align 4 dereferenceable(8) %131, ptr noundef %133, ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(16) %12, i32 noundef 0)
  store <2 x float> %134, ptr %2, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  br label %198

135:                                              ; preds = %101
  %136 = load ptr, ptr %3, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.ImGuiWindow, ptr %136, i32 0, i32 2
  %138 = load i32, ptr %137, align 4, !tbaa !9
  %139 = and i32 %138, 33554432
  %140 = icmp ne i32 %139, 0
  br i1 %140, label %141, label %197

141:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.ImGuiContext, ptr %142, i32 0, i32 4
  %144 = getelementptr inbounds %struct.ImGuiStyle, ptr %143, i32 0, i32 33
  %145 = load float, ptr %144, align 4, !tbaa !94
  store float %145, ptr %13, align 4, !tbaa !83
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %146 = call <2 x float> @_ZN5ImGuiL22NavCalcPreferredRefPosEv()
  store <2 x float> %146, ptr %14, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #7
  call void @_ZN6ImRectC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %15)
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.ImGuiContext, ptr %147, i32 0, i32 101
  %149 = load i8, ptr %148, align 2, !tbaa !95, !range !85, !noundef !86
  %150 = trunc i8 %149 to i1
  br i1 %150, label %176, label %151

151:                                              ; preds = %141
  %152 = load ptr, ptr %4, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.ImGuiContext, ptr %152, i32 0, i32 102
  %154 = load i8, ptr %153, align 1, !tbaa !96, !range !85, !noundef !86
  %155 = trunc i8 %154 to i1
  br i1 %155, label %156, label %176

156:                                              ; preds = %151
  %157 = load ptr, ptr %4, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.ImGuiContext, ptr %157, i32 0, i32 3
  %159 = getelementptr inbounds %struct.ImGuiIO, ptr %158, i32 0, i32 0
  %160 = load i32, ptr %159, align 8, !tbaa !97
  %161 = and i32 %160, 4
  %162 = icmp ne i32 %161, 0
  br i1 %162, label %176, label %163

163:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #7
  %164 = getelementptr inbounds %struct.ImVec2, ptr %14, i32 0, i32 0
  %165 = load float, ptr %164, align 4, !tbaa !98
  %166 = fsub float %165, 1.600000e+01
  %167 = getelementptr inbounds %struct.ImVec2, ptr %14, i32 0, i32 1
  %168 = load float, ptr %167, align 4, !tbaa !99
  %169 = fsub float %168, 8.000000e+00
  %170 = getelementptr inbounds %struct.ImVec2, ptr %14, i32 0, i32 0
  %171 = load float, ptr %170, align 4, !tbaa !98
  %172 = fadd float %171, 1.600000e+01
  %173 = getelementptr inbounds %struct.ImVec2, ptr %14, i32 0, i32 1
  %174 = load float, ptr %173, align 4, !tbaa !99
  %175 = fadd float %174, 8.000000e+00
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %16, float noundef %166, float noundef %169, float noundef %172, float noundef %175)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %16, i64 16, i1 false), !tbaa.struct !89
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #7
  br label %191

176:                                              ; preds = %156, %151, %141
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #7
  %177 = getelementptr inbounds %struct.ImVec2, ptr %14, i32 0, i32 0
  %178 = load float, ptr %177, align 4, !tbaa !98
  %179 = fsub float %178, 1.600000e+01
  %180 = getelementptr inbounds %struct.ImVec2, ptr %14, i32 0, i32 1
  %181 = load float, ptr %180, align 4, !tbaa !99
  %182 = fsub float %181, 8.000000e+00
  %183 = getelementptr inbounds %struct.ImVec2, ptr %14, i32 0, i32 0
  %184 = load float, ptr %183, align 4, !tbaa !98
  %185 = load float, ptr %13, align 4, !tbaa !83
  %186 = call float @llvm.fmuladd.f32(float 2.400000e+01, float %185, float %184)
  %187 = getelementptr inbounds %struct.ImVec2, ptr %14, i32 0, i32 1
  %188 = load float, ptr %187, align 4, !tbaa !99
  %189 = load float, ptr %13, align 4, !tbaa !83
  %190 = call float @llvm.fmuladd.f32(float 2.400000e+01, float %189, float %188)
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %17, float noundef %179, float noundef %182, float noundef %186, float noundef %190)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %17, i64 16, i1 false), !tbaa.struct !89
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #7
  br label %191

191:                                              ; preds = %176, %163
  %192 = load ptr, ptr %3, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.ImGuiWindow, ptr %192, i32 0, i32 4
  %194 = load ptr, ptr %3, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.ImGuiWindow, ptr %194, i32 0, i32 43
  %196 = call <2 x float> @_ZN5ImGui27FindBestWindowPosForPopupExERK6ImVec2S2_PiRK6ImRectS6_24ImGuiPopupPositionPolicy(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %193, ptr noundef %195, ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(16) %15, i32 noundef 2)
  store <2 x float> %196, ptr %2, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %198

197:                                              ; preds = %135
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.3, i32 noundef 8345, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui25FindBestWindowPosForPopupEP11ImGuiWindow) #8
  unreachable

198:                                              ; preds = %191, %107, %93
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  %199 = load <2 x float>, ptr %2, align 4
  ret <2 x float> %199
}

; Function Attrs: mustprogress uwtable
declare hidden <2 x float> @_ZN5ImGuiL22NavCalcPreferredRefPosEv() #6

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZN5ImGui27FindBestWindowPosForPopupExERK6ImVec2S2_PiRK6ImRectS6_24ImGuiPopupPositionPolicy(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16), i32 noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZN5ImGui26GetWindowAllowedExtentRectEP11ImGuiWindow(ptr noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16), float noundef, float noundef, float noundef, float noundef) unnamed_addr #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 12}
!10 = !{!"_ZTS11ImGuiWindow", !6, i64 0, !11, i64 8, !11, i64 12, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !13, i64 72, !13, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !12, i64 92, !12, i64 100, !12, i64 108, !12, i64 116, !12, i64 124, !12, i64 132, !14, i64 140, !14, i64 141, !14, i64 142, !14, i64 143, !14, i64 144, !14, i64 145, !14, i64 146, !14, i64 147, !14, i64 148, !14, i64 149, !14, i64 150, !14, i64 151, !7, i64 152, !15, i64 154, !15, i64 156, !15, i64 158, !11, i64 160, !7, i64 164, !7, i64 165, !7, i64 166, !14, i64 167, !11, i64 168, !7, i64 172, !7, i64 173, !7, i64 174, !11, i64 175, !11, i64 176, !11, i64 177, !12, i64 180, !12, i64 188, !16, i64 200, !17, i64 216, !19, i64 520, !19, i64 536, !19, i64 552, !19, i64 568, !19, i64 584, !19, i64 600, !19, i64 616, !25, i64 632, !25, i64 636, !11, i64 640, !13, i64 644, !13, i64 648, !26, i64 656, !28, i64 672, !13, i64 688, !11, i64 692, !6, i64 696, !29, i64 704, !6, i64 904, !6, i64 912, !6, i64 920, !6, i64 928, !6, i64 936, !7, i64 944, !7, i64 952, !11, i64 984, !11, i64 988, !14, i64 992}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS6ImVec2", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"short", !7, i64 0}
!16 = !{!"_ZTS8ImVectorIjE", !11, i64 0, !11, i64 4, !6, i64 8}
!17 = !{!"_ZTS19ImGuiWindowTempData", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !13, i64 56, !13, i64 60, !18, i64 64, !18, i64 68, !18, i64 72, !11, i64 76, !11, i64 80, !19, i64 84, !19, i64 100, !20, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !14, i64 132, !14, i64 133, !14, i64 134, !12, i64 136, !21, i64 144, !11, i64 180, !11, i64 184, !22, i64 192, !6, i64 208, !6, i64 216, !11, i64 224, !11, i64 228, !11, i64 232, !11, i64 236, !11, i64 240, !11, i64 244, !13, i64 248, !13, i64 252, !23, i64 256, !23, i64 272, !24, i64 288}
!18 = !{!"_ZTS6ImVec1", !13, i64 0}
!19 = !{!"_ZTS6ImRect", !12, i64 0, !12, i64 8}
!20 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!21 = !{!"_ZTS16ImGuiMenuColumns", !13, i64 0, !13, i64 4, !13, i64 8, !7, i64 12, !7, i64 24}
!22 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !11, i64 0, !11, i64 4, !6, i64 8}
!23 = !{!"_ZTS8ImVectorIfE", !11, i64 0, !11, i64 4, !6, i64 8}
!24 = !{!"_ZTS15ImGuiStackSizes", !15, i64 0, !15, i64 2, !15, i64 4, !15, i64 6, !15, i64 8, !15, i64 10, !15, i64 12}
!25 = !{!"_ZTS8ImVec2ih", !15, i64 0, !15, i64 2}
!26 = !{!"_ZTS12ImGuiStorage", !27, i64 0}
!27 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !11, i64 0, !11, i64 4, !6, i64 8}
!28 = !{!"_ZTS8ImVectorI15ImGuiOldColumnsE", !11, i64 0, !11, i64 4, !6, i64 8}
!29 = !{!"_ZTS10ImDrawList", !30, i64 0, !31, i64 16, !32, i64 32, !11, i64 48, !11, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !33, i64 88, !34, i64 104, !35, i64 120, !36, i64 136, !38, i64 168, !13, i64 192}
!30 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !11, i64 0, !11, i64 4, !6, i64 8}
!31 = !{!"_ZTS8ImVectorItE", !11, i64 0, !11, i64 4, !6, i64 8}
!32 = !{!"_ZTS8ImVectorI10ImDrawVertE", !11, i64 0, !11, i64 4, !6, i64 8}
!33 = !{!"_ZTS8ImVectorI6ImVec4E", !11, i64 0, !11, i64 4, !6, i64 8}
!34 = !{!"_ZTS8ImVectorIPvE", !11, i64 0, !11, i64 4, !6, i64 8}
!35 = !{!"_ZTS8ImVectorI6ImVec2E", !11, i64 0, !11, i64 4, !6, i64 8}
!36 = !{!"_ZTS15ImDrawCmdHeader", !37, i64 0, !6, i64 16, !11, i64 24}
!37 = !{!"_ZTS6ImVec4", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12}
!38 = !{!"_ZTS18ImDrawListSplitter", !11, i64 0, !11, i64 4, !39, i64 8}
!39 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !11, i64 0, !11, i64 4, !6, i64 8}
!40 = !{!41, !6, i64 6880}
!41 = !{!"_ZTS12ImGuiContext", !14, i64 0, !14, i64 1, !42, i64 8, !43, i64 5472, !6, i64 6520, !13, i64 6528, !13, i64 6532, !44, i64 6536, !45, i64 6752, !11, i64 6760, !11, i64 6764, !11, i64 6768, !14, i64 6772, !14, i64 6773, !14, i64 6774, !14, i64 6775, !14, i64 6776, !11, i64 6780, !6, i64 6784, !22, i64 6792, !22, i64 6808, !22, i64 6824, !22, i64 6840, !26, i64 6856, !11, i64 6872, !6, i64 6880, !6, i64 6888, !6, i64 6896, !6, i64 6904, !6, i64 6912, !6, i64 6920, !12, i64 6928, !13, i64 6936, !11, i64 6940, !11, i64 6944, !14, i64 6948, !14, i64 6949, !14, i64 6950, !14, i64 6951, !13, i64 6952, !13, i64 6956, !11, i64 6960, !11, i64 6964, !13, i64 6968, !14, i64 6972, !14, i64 6973, !14, i64 6974, !14, i64 6975, !14, i64 6976, !14, i64 6977, !14, i64 6978, !11, i64 6980, !11, i64 6984, !46, i64 6992, !12, i64 7000, !6, i64 7008, !47, i64 7016, !11, i64 7020, !11, i64 7024, !14, i64 7028, !14, i64 7029, !6, i64 7032, !11, i64 7040, !13, i64 7044, !48, i64 7048, !49, i64 7160, !50, i64 7184, !51, i64 7200, !52, i64 7216, !16, i64 7232, !53, i64 7248, !54, i64 7264, !55, i64 7280, !55, i64 7296, !6, i64 7312, !11, i64 7320, !11, i64 7324, !11, i64 7328, !11, i64 7332, !11, i64 7336, !11, i64 7340, !11, i64 7344, !11, i64 7348, !11, i64 7352, !11, i64 7356, !11, i64 7360, !47, i64 7364, !19, i64 7368, !11, i64 7384, !20, i64 7388, !11, i64 7392, !14, i64 7396, !14, i64 7397, !14, i64 7398, !14, i64 7399, !14, i64 7400, !14, i64 7401, !14, i64 7402, !11, i64 7404, !19, i64 7408, !14, i64 7424, !11, i64 7428, !56, i64 7432, !11, i64 7436, !11, i64 7440, !11, i64 7444, !11, i64 7448, !57, i64 7456, !57, i64 7504, !57, i64 7552, !6, i64 7600, !11, i64 7608, !6, i64 7616, !6, i64 7624, !6, i64 7632, !13, i64 7640, !13, i64 7644, !14, i64 7648, !6, i64 7656, !6, i64 7664, !11, i64 7672, !11, i64 7676, !11, i64 7680, !11, i64 7684, !14, i64 7688, !58, i64 7696, !59, i64 7752, !13, i64 7784, !29, i64 7792, !29, i64 7992, !11, i64 8192, !14, i64 8196, !14, i64 8197, !14, i64 8198, !11, i64 8200, !11, i64 8204, !11, i64 8208, !60, i64 8216, !19, i64 8280, !11, i64 8296, !11, i64 8300, !13, i64 8304, !11, i64 8308, !11, i64 8312, !11, i64 8316, !11, i64 8320, !61, i64 8328, !7, i64 8344, !6, i64 8360, !62, i64 8368, !64, i64 8408, !23, i64 8424, !39, i64 8440, !6, i64 8456, !65, i64 8464, !64, i64 8504, !67, i64 8520, !12, i64 8536, !68, i64 8544, !72, i64 12280, !11, i64 12392, !11, i64 12396, !13, i64 12400, !13, i64 12404, !7, i64 12408, !37, i64 12420, !13, i64 12436, !14, i64 12440, !14, i64 12441, !13, i64 12444, !13, i64 12448, !13, i64 12452, !11, i64 12456, !13, i64 12460, !69, i64 12464, !16, i64 12480, !12, i64 12496, !12, i64 12504, !7, i64 12512, !14, i64 12513, !13, i64 12516, !74, i64 12520, !75, i64 12536, !76, i64 12552, !77, i64 12568, !78, i64 12584, !14, i64 12600, !79, i64 12604, !6, i64 12608, !74, i64 12616, !13, i64 12632, !14, i64 12636, !11, i64 12640, !11, i64 12644, !11, i64 12648, !14, i64 12652, !11, i64 12656, !80, i64 12660, !7, i64 12676, !11, i64 13156, !13, i64 13160, !11, i64 13164, !11, i64 13168, !11, i64 13172, !7, i64 13176}
!42 = !{!"_ZTS7ImGuiIO", !11, i64 0, !11, i64 4, !12, i64 8, !13, i64 16, !13, i64 20, !6, i64 24, !6, i64 32, !13, i64 40, !13, i64 44, !13, i64 48, !7, i64 52, !13, i64 140, !13, i64 144, !6, i64 152, !6, i64 160, !13, i64 168, !14, i64 172, !6, i64 176, !12, i64 184, !14, i64 192, !14, i64 193, !14, i64 194, !14, i64 195, !14, i64 196, !14, i64 197, !13, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !12, i64 288, !7, i64 296, !13, i64 304, !13, i64 308, !14, i64 312, !14, i64 313, !14, i64 314, !14, i64 315, !7, i64 316, !7, i64 828, !14, i64 912, !14, i64 913, !14, i64 914, !14, i64 915, !14, i64 916, !14, i64 917, !14, i64 918, !13, i64 920, !11, i64 924, !11, i64 928, !11, i64 932, !11, i64 936, !11, i64 940, !12, i64 944, !11, i64 952, !12, i64 956, !7, i64 964, !7, i64 1008, !7, i64 1048, !7, i64 1053, !7, i64 1058, !7, i64 1063, !7, i64 1068, !7, i64 1076, !7, i64 1096, !7, i64 1116, !7, i64 1156, !7, i64 1176, !7, i64 3224, !7, i64 5272, !7, i64 5356, !13, i64 5440, !15, i64 5444, !31, i64 5448}
!43 = !{!"_ZTS10ImGuiStyle", !13, i64 0, !12, i64 4, !13, i64 12, !13, i64 16, !12, i64 20, !12, i64 28, !11, i64 36, !13, i64 40, !13, i64 44, !13, i64 48, !13, i64 52, !12, i64 56, !13, i64 64, !13, i64 68, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !13, i64 104, !13, i64 108, !13, i64 112, !13, i64 116, !13, i64 120, !13, i64 124, !13, i64 128, !13, i64 132, !13, i64 136, !13, i64 140, !11, i64 144, !12, i64 148, !12, i64 156, !12, i64 164, !12, i64 172, !13, i64 180, !14, i64 184, !14, i64 185, !14, i64 186, !13, i64 188, !13, i64 192, !7, i64 196}
!44 = !{!"_ZTS20ImDrawListSharedData", !12, i64 0, !6, i64 8, !13, i64 16, !13, i64 20, !13, i64 24, !37, i64 28, !11, i64 44, !7, i64 48, !7, i64 144, !6, i64 208}
!45 = !{!"double", !7, i64 0}
!46 = !{!"long long", !7, i64 0}
!47 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!48 = !{!"_ZTS19ImGuiNextWindowData", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !14, i64 56, !19, i64 60, !6, i64 80, !6, i64 88, !13, i64 96, !12, i64 100}
!49 = !{!"_ZTS17ImGuiNextItemData", !11, i64 0, !13, i64 4, !11, i64 8, !11, i64 12, !14, i64 16}
!50 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !11, i64 0, !11, i64 4, !6, i64 8}
!51 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !11, i64 0, !11, i64 4, !6, i64 8}
!52 = !{!"_ZTS8ImVectorIP6ImFontE", !11, i64 0, !11, i64 4, !6, i64 8}
!53 = !{!"_ZTS8ImVectorIiE", !11, i64 0, !11, i64 4, !6, i64 8}
!54 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !11, i64 0, !11, i64 4, !6, i64 8}
!55 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !11, i64 0, !11, i64 4, !6, i64 8}
!56 = !{!"_ZTS15ImGuiNavForward", !7, i64 0}
!57 = !{!"_ZTS18ImGuiNavMoveResult", !6, i64 0, !11, i64 8, !11, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !19, i64 28}
!58 = !{!"_ZTS10ImDrawData", !14, i64 0, !6, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !12, i64 28, !12, i64 36, !12, i64 44}
!59 = !{!"_ZTS17ImDrawDataBuilder", !7, i64 0}
!60 = !{!"_ZTS12ImGuiPayload", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !7, i64 24, !14, i64 57, !14, i64 58}
!61 = !{!"_ZTS8ImVectorIhE", !11, i64 0, !11, i64 4, !6, i64 8}
!62 = !{!"_ZTS6ImPoolI10ImGuiTableE", !63, i64 0, !26, i64 16, !11, i64 32}
!63 = !{!"_ZTS8ImVectorI10ImGuiTableE", !11, i64 0, !11, i64 4, !6, i64 8}
!64 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !11, i64 0, !11, i64 4, !6, i64 8}
!65 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !66, i64 0, !26, i64 16, !11, i64 32}
!66 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !11, i64 0, !11, i64 4, !6, i64 8}
!67 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !11, i64 0, !11, i64 4, !6, i64 8}
!68 = !{!"_ZTS19ImGuiInputTextState", !11, i64 0, !11, i64 4, !11, i64 8, !31, i64 16, !69, i64 32, !69, i64 48, !14, i64 64, !11, i64 68, !13, i64 72, !70, i64 76, !13, i64 3704, !14, i64 3708, !14, i64 3709, !14, i64 3710, !11, i64 3712, !6, i64 3720, !6, i64 3728}
!69 = !{!"_ZTS8ImVectorIcE", !11, i64 0, !11, i64 4, !6, i64 8}
!70 = !{!"_ZTSN5ImStb17STB_TexteditStateE", !11, i64 0, !11, i64 4, !11, i64 8, !7, i64 12, !11, i64 16, !7, i64 20, !7, i64 21, !7, i64 22, !7, i64 23, !7, i64 24, !7, i64 25, !7, i64 26, !13, i64 28, !71, i64 32}
!71 = !{!"_ZTSN5ImStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !15, i64 3582, !15, i64 3584, !11, i64 3588, !11, i64 3592}
!72 = !{!"_ZTS6ImFont", !23, i64 0, !13, i64 16, !13, i64 20, !31, i64 24, !73, i64 40, !6, i64 56, !6, i64 64, !6, i64 72, !15, i64 80, !15, i64 82, !15, i64 84, !14, i64 86, !13, i64 88, !13, i64 92, !13, i64 96, !11, i64 100, !7, i64 104}
!73 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !11, i64 0, !11, i64 4, !6, i64 8}
!74 = !{!"_ZTS15ImGuiTextBuffer", !69, i64 0}
!75 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !11, i64 0, !11, i64 4, !6, i64 8}
!76 = !{!"_ZTS13ImChunkStreamI19ImGuiWindowSettingsE", !69, i64 0}
!77 = !{!"_ZTS13ImChunkStreamI18ImGuiTableSettingsE", !69, i64 0}
!78 = !{!"_ZTS8ImVectorI16ImGuiContextHookE", !11, i64 0, !11, i64 4, !6, i64 8}
!79 = !{!"_ZTS12ImGuiLogType", !7, i64 0}
!80 = !{!"_ZTS18ImGuiMetricsConfig", !14, i64 0, !14, i64 1, !14, i64 2, !14, i64 3, !14, i64 4, !11, i64 8, !11, i64 12}
!81 = !{!41, !11, i64 6840}
!82 = !{!41, !13, i64 5552}
!83 = !{!13, !13, i64 0}
!84 = !{!10, !14, i64 350}
!85 = !{i8 0, i8 2}
!86 = !{}
!87 = !{!10, !13, i64 604}
!88 = !{!10, !13, i64 612}
!89 = !{i64 0, i64 4, !83, i64 4, i64 4, !83, i64 8, i64 4, !83, i64 12, i64 4, !83}
!90 = !{!10, !13, i64 16}
!91 = !{!10, !13, i64 24}
!92 = !{!10, !13, i64 132}
!93 = !{!10, !13, i64 20}
!94 = !{!41, !13, i64 5652}
!95 = !{!41, !14, i64 7398}
!96 = !{!41, !14, i64 7399}
!97 = !{!41, !11, i64 8}
!98 = !{!12, !13, i64 0}
!99 = !{!12, !13, 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.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImVec2 = type { float, float }

@GImGui = external dso_local local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.182 = external hidden unnamed_addr constant [26 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui25FindBestWindowPosForPopupEP11ImGuiWindow = external hidden unnamed_addr constant [55 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; 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: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local <2 x float> @_ZN5ImGui25FindBestWindowPosForPopupEP11ImGuiWindow(ptr noundef %0) local_unnamed_addr #6 {
  %2 = alloca %struct.ImRect, align 8
  %3 = alloca %struct.ImRect, align 4
  %4 = alloca %struct.ImRect, align 4
  %5 = alloca %struct.ImRect, align 4
  %6 = alloca %struct.ImRect, align 4
  %7 = alloca %struct.ImVec2, align 8
  %8 = alloca %struct.ImRect, align 4
  %9 = alloca %struct.ImRect, align 4
  %10 = alloca %struct.ImRect, align 4
  %11 = load ptr, ptr @GImGui, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #7
  %12 = tail call { <2 x float>, <2 x float> } @_ZN5ImGui26GetWindowAllowedExtentRectEP11ImGuiWindow(ptr noundef %0)
  %13 = extractvalue { <2 x float>, <2 x float> } %12, 0
  store <2 x float> %13, ptr %2, align 8
  %14 = getelementptr inbounds i8, ptr %2, i64 8
  %15 = extractvalue { <2 x float>, <2 x float> } %12, 1
  store <2 x float> %15, ptr %14, align 8
  %16 = getelementptr inbounds i8, ptr %0, i64 12
  %17 = load i32, ptr %16, align 4, !tbaa !9
  %18 = and i32 %17, 268435456
  %.not = icmp eq i32 %18, 0
  br i1 %.not, label %56, label %19

19:                                               ; preds = %1
  %20 = getelementptr inbounds i8, ptr %11, i64 6880
  %21 = load ptr, ptr %20, align 8, !tbaa !40
  %22 = icmp eq ptr %21, %0
  br i1 %22, label %24, label %23

23:                                               ; preds = %19
  tail call void @__assert_fail(ptr noundef nonnull @.str.182, ptr noundef nonnull @.str.3, i32 noundef 8318, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui25FindBestWindowPosForPopupEP11ImGuiWindow) #8
  unreachable

24:                                               ; preds = %19
  %25 = getelementptr inbounds i8, ptr %11, i64 6840
  %26 = load i32, ptr %25, align 8, !tbaa !81
  %27 = add nsw i32 %26, -2
  %28 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP11ImGuiWindowEixEi(ptr noundef nonnull align 8 dereferenceable(16) %25, i32 noundef %27)
  %29 = load ptr, ptr %28, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %11, i64 5552
  %31 = load float, ptr %30, align 8, !tbaa !82
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #7
  call void @_ZN6ImRectC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %3)
  %32 = getelementptr inbounds i8, ptr %29, i64 350
  %33 = load i8, ptr %32, align 2, !tbaa !83, !range !84, !noundef !85
  %34 = trunc nuw i8 %33 to i1
  br i1 %34, label %35, label %40

35:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #7
  %36 = getelementptr inbounds i8, ptr %29, i64 604
  %37 = load float, ptr %36, align 4, !tbaa !86
  %38 = getelementptr inbounds i8, ptr %29, i64 612
  %39 = load float, ptr %38, align 4, !tbaa !87
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %4, float noundef 0xC7EFFFFFE0000000, float noundef %37, float noundef 0x47EFFFFFE0000000, float noundef %39)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(16) %4, i64 16, i1 false), !tbaa.struct !88
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  br label %51

40:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  %41 = getelementptr inbounds i8, ptr %29, i64 16
  %42 = load float, ptr %41, align 8, !tbaa !90
  %43 = fadd float %31, %42
  %44 = getelementptr inbounds i8, ptr %29, i64 24
  %45 = load float, ptr %44, align 8, !tbaa !91
  %46 = fadd float %42, %45
  %47 = fsub float %46, %31
  %48 = getelementptr inbounds i8, ptr %29, i64 132
  %49 = load float, ptr %48, align 4, !tbaa !92
  %50 = fsub float %47, %49
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %5, float noundef %43, float noundef 0xC7EFFFFFE0000000, float noundef %50, float noundef 0x47EFFFFFE0000000)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(16) %5, i64 16, i1 false), !tbaa.struct !88
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  br label %51

51:                                               ; preds = %40, %35
  %52 = getelementptr inbounds i8, ptr %0, i64 16
  %53 = getelementptr inbounds i8, ptr %0, i64 24
  %54 = getelementptr inbounds i8, ptr %0, i64 168
  %55 = call <2 x float> @_ZN5ImGui27FindBestWindowPosForPopupExERK6ImVec2S2_PiRK6ImRectS6_24ImGuiPopupPositionPolicy(ptr noundef nonnull align 4 dereferenceable(8) %52, ptr noundef nonnull align 4 dereferenceable(8) %53, ptr noundef nonnull %54, ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(16) %3, i32 noundef 0)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #7
  br label %104

56:                                               ; preds = %1
  %57 = and i32 %17, 67108864
  %.not36 = icmp eq i32 %57, 0
  br i1 %.not36, label %70, label %58

58:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  %59 = getelementptr inbounds i8, ptr %0, i64 16
  %60 = load float, ptr %59, align 8, !tbaa !90
  %61 = fadd float %60, -1.000000e+00
  %62 = getelementptr inbounds i8, ptr %0, i64 20
  %63 = load float, ptr %62, align 4, !tbaa !93
  %64 = fadd float %63, -1.000000e+00
  %65 = fadd float %60, 1.000000e+00
  %66 = fadd float %63, 1.000000e+00
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %6, float noundef %61, float noundef %64, float noundef %65, float noundef %66)
  %67 = getelementptr inbounds i8, ptr %0, i64 24
  %68 = getelementptr inbounds i8, ptr %0, i64 168
  %69 = call <2 x float> @_ZN5ImGui27FindBestWindowPosForPopupExERK6ImVec2S2_PiRK6ImRectS6_24ImGuiPopupPositionPolicy(ptr noundef nonnull align 4 dereferenceable(8) %59, ptr noundef nonnull align 4 dereferenceable(8) %67, ptr noundef nonnull %68, ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(16) %6, i32 noundef 0)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  br label %104

70:                                               ; preds = %56
  %71 = and i32 %17, 33554432
  %.not37 = icmp eq i32 %71, 0
  br i1 %.not37, label %103, label %72

72:                                               ; preds = %70
  %73 = getelementptr inbounds i8, ptr %11, i64 5652
  %74 = load float, ptr %73, align 4, !tbaa !94
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %75 = tail call <2 x float> @_ZN5ImGuiL22NavCalcPreferredRefPosEv()
  store <2 x float> %75, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  call void @_ZN6ImRectC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %8)
  %76 = getelementptr inbounds i8, ptr %11, i64 7398
  %77 = load i8, ptr %76, align 2, !tbaa !95, !range !84, !noundef !85
  %78 = trunc nuw i8 %77 to i1
  %79 = extractelement <2 x float> %75, i64 0
  %80 = extractelement <2 x float> %75, i64 1
  br i1 %78, label %94, label %81

81:                                               ; preds = %72
  %82 = getelementptr inbounds i8, ptr %11, i64 7399
  %83 = load i8, ptr %82, align 1, !tbaa !96, !range !84, !noundef !85
  %84 = trunc nuw i8 %83 to i1
  br i1 %84, label %85, label %94

85:                                               ; preds = %81
  %86 = getelementptr inbounds i8, ptr %11, i64 8
  %87 = load i32, ptr %86, align 8, !tbaa !97
  %88 = and i32 %87, 4
  %.not38 = icmp eq i32 %88, 0
  br i1 %.not38, label %89, label %94

89:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  %90 = fadd float %79, -1.600000e+01
  %91 = fadd float %80, -8.000000e+00
  %92 = fadd float %79, 1.600000e+01
  %93 = fadd float %80, 8.000000e+00
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %9, float noundef %90, float noundef %91, float noundef %92, float noundef %93)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(16) %9, i64 16, i1 false), !tbaa.struct !88
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  br label %99

94:                                               ; preds = %85, %81, %72
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #7
  %95 = fadd float %79, -1.600000e+01
  %96 = fadd float %80, -8.000000e+00
  %97 = call float @llvm.fmuladd.f32(float %74, float 2.400000e+01, float %79)
  %98 = call float @llvm.fmuladd.f32(float %74, float 2.400000e+01, float %80)
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %10, float noundef %95, float noundef %96, float noundef %97, float noundef %98)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(16) %10, i64 16, i1 false), !tbaa.struct !88
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  br label %99

99:                                               ; preds = %94, %89
  %100 = getelementptr inbounds i8, ptr %0, i64 24
  %101 = getelementptr inbounds i8, ptr %0, i64 168
  %102 = call <2 x float> @_ZN5ImGui27FindBestWindowPosForPopupExERK6ImVec2S2_PiRK6ImRectS6_24ImGuiPopupPositionPolicy(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %100, ptr noundef nonnull %101, ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(16) %8, i32 noundef 2)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %104

103:                                              ; preds = %70
  tail call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.3, i32 noundef 8345, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui25FindBestWindowPosForPopupEP11ImGuiWindow) #8
  unreachable

104:                                              ; preds = %99, %58, %51
  %.sroa.0.0 = phi <2 x float> [ %55, %51 ], [ %69, %58 ], [ %102, %99 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #7
  ret <2 x float> %.sroa.0.0
}

; Function Attrs: mustprogress uwtable
declare hidden <2 x float> @_ZN5ImGuiL22NavCalcPreferredRefPosEv() local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZN5ImGui27FindBestWindowPosForPopupExERK6ImVec2S2_PiRK6ImRectS6_24ImGuiPopupPositionPolicy(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16), i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZN5ImGui26GetWindowAllowedExtentRectEP11ImGuiWindow(ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16), float noundef, float noundef, float noundef, float noundef) unnamed_addr #4 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 12}
!10 = !{!"_ZTS11ImGuiWindow", !6, i64 0, !11, i64 8, !11, i64 12, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !13, i64 72, !13, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !12, i64 92, !12, i64 100, !12, i64 108, !12, i64 116, !12, i64 124, !12, i64 132, !14, i64 140, !14, i64 141, !14, i64 142, !14, i64 143, !14, i64 144, !14, i64 145, !14, i64 146, !14, i64 147, !14, i64 148, !14, i64 149, !14, i64 150, !14, i64 151, !7, i64 152, !15, i64 154, !15, i64 156, !15, i64 158, !11, i64 160, !7, i64 164, !7, i64 165, !7, i64 166, !14, i64 167, !11, i64 168, !7, i64 172, !7, i64 173, !7, i64 174, !11, i64 175, !11, i64 176, !11, i64 177, !12, i64 180, !12, i64 188, !16, i64 200, !17, i64 216, !19, i64 520, !19, i64 536, !19, i64 552, !19, i64 568, !19, i64 584, !19, i64 600, !19, i64 616, !25, i64 632, !25, i64 636, !11, i64 640, !13, i64 644, !13, i64 648, !26, i64 656, !28, i64 672, !13, i64 688, !11, i64 692, !6, i64 696, !29, i64 704, !6, i64 904, !6, i64 912, !6, i64 920, !6, i64 928, !6, i64 936, !7, i64 944, !7, i64 952, !11, i64 984, !11, i64 988, !14, i64 992}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS6ImVec2", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"short", !7, i64 0}
!16 = !{!"_ZTS8ImVectorIjE", !11, i64 0, !11, i64 4, !6, i64 8}
!17 = !{!"_ZTS19ImGuiWindowTempData", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !13, i64 56, !13, i64 60, !18, i64 64, !18, i64 68, !18, i64 72, !11, i64 76, !11, i64 80, !19, i64 84, !19, i64 100, !20, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !14, i64 132, !14, i64 133, !14, i64 134, !12, i64 136, !21, i64 144, !11, i64 180, !11, i64 184, !22, i64 192, !6, i64 208, !6, i64 216, !11, i64 224, !11, i64 228, !11, i64 232, !11, i64 236, !11, i64 240, !11, i64 244, !13, i64 248, !13, i64 252, !23, i64 256, !23, i64 272, !24, i64 288}
!18 = !{!"_ZTS6ImVec1", !13, i64 0}
!19 = !{!"_ZTS6ImRect", !12, i64 0, !12, i64 8}
!20 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!21 = !{!"_ZTS16ImGuiMenuColumns", !13, i64 0, !13, i64 4, !13, i64 8, !7, i64 12, !7, i64 24}
!22 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !11, i64 0, !11, i64 4, !6, i64 8}
!23 = !{!"_ZTS8ImVectorIfE", !11, i64 0, !11, i64 4, !6, i64 8}
!24 = !{!"_ZTS15ImGuiStackSizes", !15, i64 0, !15, i64 2, !15, i64 4, !15, i64 6, !15, i64 8, !15, i64 10, !15, i64 12}
!25 = !{!"_ZTS8ImVec2ih", !15, i64 0, !15, i64 2}
!26 = !{!"_ZTS12ImGuiStorage", !27, i64 0}
!27 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !11, i64 0, !11, i64 4, !6, i64 8}
!28 = !{!"_ZTS8ImVectorI15ImGuiOldColumnsE", !11, i64 0, !11, i64 4, !6, i64 8}
!29 = !{!"_ZTS10ImDrawList", !30, i64 0, !31, i64 16, !32, i64 32, !11, i64 48, !11, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !33, i64 88, !34, i64 104, !35, i64 120, !36, i64 136, !38, i64 168, !13, i64 192}
!30 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !11, i64 0, !11, i64 4, !6, i64 8}
!31 = !{!"_ZTS8ImVectorItE", !11, i64 0, !11, i64 4, !6, i64 8}
!32 = !{!"_ZTS8ImVectorI10ImDrawVertE", !11, i64 0, !11, i64 4, !6, i64 8}
!33 = !{!"_ZTS8ImVectorI6ImVec4E", !11, i64 0, !11, i64 4, !6, i64 8}
!34 = !{!"_ZTS8ImVectorIPvE", !11, i64 0, !11, i64 4, !6, i64 8}
!35 = !{!"_ZTS8ImVectorI6ImVec2E", !11, i64 0, !11, i64 4, !6, i64 8}
!36 = !{!"_ZTS15ImDrawCmdHeader", !37, i64 0, !6, i64 16, !11, i64 24}
!37 = !{!"_ZTS6ImVec4", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12}
!38 = !{!"_ZTS18ImDrawListSplitter", !11, i64 0, !11, i64 4, !39, i64 8}
!39 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !11, i64 0, !11, i64 4, !6, i64 8}
!40 = !{!41, !6, i64 6880}
!41 = !{!"_ZTS12ImGuiContext", !14, i64 0, !14, i64 1, !42, i64 8, !43, i64 5472, !6, i64 6520, !13, i64 6528, !13, i64 6532, !44, i64 6536, !45, i64 6752, !11, i64 6760, !11, i64 6764, !11, i64 6768, !14, i64 6772, !14, i64 6773, !14, i64 6774, !14, i64 6775, !14, i64 6776, !11, i64 6780, !6, i64 6784, !22, i64 6792, !22, i64 6808, !22, i64 6824, !22, i64 6840, !26, i64 6856, !11, i64 6872, !6, i64 6880, !6, i64 6888, !6, i64 6896, !6, i64 6904, !6, i64 6912, !6, i64 6920, !12, i64 6928, !13, i64 6936, !11, i64 6940, !11, i64 6944, !14, i64 6948, !14, i64 6949, !14, i64 6950, !14, i64 6951, !13, i64 6952, !13, i64 6956, !11, i64 6960, !11, i64 6964, !13, i64 6968, !14, i64 6972, !14, i64 6973, !14, i64 6974, !14, i64 6975, !14, i64 6976, !14, i64 6977, !14, i64 6978, !11, i64 6980, !11, i64 6984, !46, i64 6992, !12, i64 7000, !6, i64 7008, !47, i64 7016, !11, i64 7020, !11, i64 7024, !14, i64 7028, !14, i64 7029, !6, i64 7032, !11, i64 7040, !13, i64 7044, !48, i64 7048, !49, i64 7160, !50, i64 7184, !51, i64 7200, !52, i64 7216, !16, i64 7232, !53, i64 7248, !54, i64 7264, !55, i64 7280, !55, i64 7296, !6, i64 7312, !11, i64 7320, !11, i64 7324, !11, i64 7328, !11, i64 7332, !11, i64 7336, !11, i64 7340, !11, i64 7344, !11, i64 7348, !11, i64 7352, !11, i64 7356, !11, i64 7360, !47, i64 7364, !19, i64 7368, !11, i64 7384, !20, i64 7388, !11, i64 7392, !14, i64 7396, !14, i64 7397, !14, i64 7398, !14, i64 7399, !14, i64 7400, !14, i64 7401, !14, i64 7402, !11, i64 7404, !19, i64 7408, !14, i64 7424, !11, i64 7428, !56, i64 7432, !11, i64 7436, !11, i64 7440, !11, i64 7444, !11, i64 7448, !57, i64 7456, !57, i64 7504, !57, i64 7552, !6, i64 7600, !11, i64 7608, !6, i64 7616, !6, i64 7624, !6, i64 7632, !13, i64 7640, !13, i64 7644, !14, i64 7648, !6, i64 7656, !6, i64 7664, !11, i64 7672, !11, i64 7676, !11, i64 7680, !11, i64 7684, !14, i64 7688, !58, i64 7696, !59, i64 7752, !13, i64 7784, !29, i64 7792, !29, i64 7992, !11, i64 8192, !14, i64 8196, !14, i64 8197, !14, i64 8198, !11, i64 8200, !11, i64 8204, !11, i64 8208, !60, i64 8216, !19, i64 8280, !11, i64 8296, !11, i64 8300, !13, i64 8304, !11, i64 8308, !11, i64 8312, !11, i64 8316, !11, i64 8320, !61, i64 8328, !7, i64 8344, !6, i64 8360, !62, i64 8368, !64, i64 8408, !23, i64 8424, !39, i64 8440, !6, i64 8456, !65, i64 8464, !64, i64 8504, !67, i64 8520, !12, i64 8536, !68, i64 8544, !72, i64 12280, !11, i64 12392, !11, i64 12396, !13, i64 12400, !13, i64 12404, !7, i64 12408, !37, i64 12420, !13, i64 12436, !14, i64 12440, !14, i64 12441, !13, i64 12444, !13, i64 12448, !13, i64 12452, !11, i64 12456, !13, i64 12460, !69, i64 12464, !16, i64 12480, !12, i64 12496, !12, i64 12504, !7, i64 12512, !14, i64 12513, !13, i64 12516, !74, i64 12520, !75, i64 12536, !76, i64 12552, !77, i64 12568, !78, i64 12584, !14, i64 12600, !79, i64 12604, !6, i64 12608, !74, i64 12616, !13, i64 12632, !14, i64 12636, !11, i64 12640, !11, i64 12644, !11, i64 12648, !14, i64 12652, !11, i64 12656, !80, i64 12660, !7, i64 12676, !11, i64 13156, !13, i64 13160, !11, i64 13164, !11, i64 13168, !11, i64 13172, !7, i64 13176}
!42 = !{!"_ZTS7ImGuiIO", !11, i64 0, !11, i64 4, !12, i64 8, !13, i64 16, !13, i64 20, !6, i64 24, !6, i64 32, !13, i64 40, !13, i64 44, !13, i64 48, !7, i64 52, !13, i64 140, !13, i64 144, !6, i64 152, !6, i64 160, !13, i64 168, !14, i64 172, !6, i64 176, !12, i64 184, !14, i64 192, !14, i64 193, !14, i64 194, !14, i64 195, !14, i64 196, !14, i64 197, !13, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !12, i64 288, !7, i64 296, !13, i64 304, !13, i64 308, !14, i64 312, !14, i64 313, !14, i64 314, !14, i64 315, !7, i64 316, !7, i64 828, !14, i64 912, !14, i64 913, !14, i64 914, !14, i64 915, !14, i64 916, !14, i64 917, !14, i64 918, !13, i64 920, !11, i64 924, !11, i64 928, !11, i64 932, !11, i64 936, !11, i64 940, !12, i64 944, !11, i64 952, !12, i64 956, !7, i64 964, !7, i64 1008, !7, i64 1048, !7, i64 1053, !7, i64 1058, !7, i64 1063, !7, i64 1068, !7, i64 1076, !7, i64 1096, !7, i64 1116, !7, i64 1156, !7, i64 1176, !7, i64 3224, !7, i64 5272, !7, i64 5356, !13, i64 5440, !15, i64 5444, !31, i64 5448}
!43 = !{!"_ZTS10ImGuiStyle", !13, i64 0, !12, i64 4, !13, i64 12, !13, i64 16, !12, i64 20, !12, i64 28, !11, i64 36, !13, i64 40, !13, i64 44, !13, i64 48, !13, i64 52, !12, i64 56, !13, i64 64, !13, i64 68, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !13, i64 104, !13, i64 108, !13, i64 112, !13, i64 116, !13, i64 120, !13, i64 124, !13, i64 128, !13, i64 132, !13, i64 136, !13, i64 140, !11, i64 144, !12, i64 148, !12, i64 156, !12, i64 164, !12, i64 172, !13, i64 180, !14, i64 184, !14, i64 185, !14, i64 186, !13, i64 188, !13, i64 192, !7, i64 196}
!44 = !{!"_ZTS20ImDrawListSharedData", !12, i64 0, !6, i64 8, !13, i64 16, !13, i64 20, !13, i64 24, !37, i64 28, !11, i64 44, !7, i64 48, !7, i64 144, !6, i64 208}
!45 = !{!"double", !7, i64 0}
!46 = !{!"long long", !7, i64 0}
!47 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!48 = !{!"_ZTS19ImGuiNextWindowData", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !14, i64 56, !19, i64 60, !6, i64 80, !6, i64 88, !13, i64 96, !12, i64 100}
!49 = !{!"_ZTS17ImGuiNextItemData", !11, i64 0, !13, i64 4, !11, i64 8, !11, i64 12, !14, i64 16}
!50 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !11, i64 0, !11, i64 4, !6, i64 8}
!51 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !11, i64 0, !11, i64 4, !6, i64 8}
!52 = !{!"_ZTS8ImVectorIP6ImFontE", !11, i64 0, !11, i64 4, !6, i64 8}
!53 = !{!"_ZTS8ImVectorIiE", !11, i64 0, !11, i64 4, !6, i64 8}
!54 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !11, i64 0, !11, i64 4, !6, i64 8}
!55 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !11, i64 0, !11, i64 4, !6, i64 8}
!56 = !{!"_ZTS15ImGuiNavForward", !7, i64 0}
!57 = !{!"_ZTS18ImGuiNavMoveResult", !6, i64 0, !11, i64 8, !11, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !19, i64 28}
!58 = !{!"_ZTS10ImDrawData", !14, i64 0, !6, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !12, i64 28, !12, i64 36, !12, i64 44}
!59 = !{!"_ZTS17ImDrawDataBuilder", !7, i64 0}
!60 = !{!"_ZTS12ImGuiPayload", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !7, i64 24, !14, i64 57, !14, i64 58}
!61 = !{!"_ZTS8ImVectorIhE", !11, i64 0, !11, i64 4, !6, i64 8}
!62 = !{!"_ZTS6ImPoolI10ImGuiTableE", !63, i64 0, !26, i64 16, !11, i64 32}
!63 = !{!"_ZTS8ImVectorI10ImGuiTableE", !11, i64 0, !11, i64 4, !6, i64 8}
!64 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !11, i64 0, !11, i64 4, !6, i64 8}
!65 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !66, i64 0, !26, i64 16, !11, i64 32}
!66 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !11, i64 0, !11, i64 4, !6, i64 8}
!67 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !11, i64 0, !11, i64 4, !6, i64 8}
!68 = !{!"_ZTS19ImGuiInputTextState", !11, i64 0, !11, i64 4, !11, i64 8, !31, i64 16, !69, i64 32, !69, i64 48, !14, i64 64, !11, i64 68, !13, i64 72, !70, i64 76, !13, i64 3704, !14, i64 3708, !14, i64 3709, !14, i64 3710, !11, i64 3712, !6, i64 3720, !6, i64 3728}
!69 = !{!"_ZTS8ImVectorIcE", !11, i64 0, !11, i64 4, !6, i64 8}
!70 = !{!"_ZTSN5ImStb17STB_TexteditStateE", !11, i64 0, !11, i64 4, !11, i64 8, !7, i64 12, !11, i64 16, !7, i64 20, !7, i64 21, !7, i64 22, !7, i64 23, !7, i64 24, !7, i64 25, !7, i64 26, !13, i64 28, !71, i64 32}
!71 = !{!"_ZTSN5ImStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !15, i64 3582, !15, i64 3584, !11, i64 3588, !11, i64 3592}
!72 = !{!"_ZTS6ImFont", !23, i64 0, !13, i64 16, !13, i64 20, !31, i64 24, !73, i64 40, !6, i64 56, !6, i64 64, !6, i64 72, !15, i64 80, !15, i64 82, !15, i64 84, !14, i64 86, !13, i64 88, !13, i64 92, !13, i64 96, !11, i64 100, !7, i64 104}
!73 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !11, i64 0, !11, i64 4, !6, i64 8}
!74 = !{!"_ZTS15ImGuiTextBuffer", !69, i64 0}
!75 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !11, i64 0, !11, i64 4, !6, i64 8}
!76 = !{!"_ZTS13ImChunkStreamI19ImGuiWindowSettingsE", !69, i64 0}
!77 = !{!"_ZTS13ImChunkStreamI18ImGuiTableSettingsE", !69, i64 0}
!78 = !{!"_ZTS8ImVectorI16ImGuiContextHookE", !11, i64 0, !11, i64 4, !6, i64 8}
!79 = !{!"_ZTS12ImGuiLogType", !7, i64 0}
!80 = !{!"_ZTS18ImGuiMetricsConfig", !14, i64 0, !14, i64 1, !14, i64 2, !14, i64 3, !14, i64 4, !11, i64 8, !11, i64 12}
!81 = !{!41, !11, i64 6840}
!82 = !{!41, !13, i64 5552}
!83 = !{!10, !14, i64 350}
!84 = !{i8 0, i8 2}
!85 = !{}
!86 = !{!10, !13, i64 604}
!87 = !{!10, !13, i64 612}
!88 = !{i64 0, i64 4, !89, i64 4, i64 4, !89, i64 8, i64 4, !89, i64 12, i64 4, !89}
!89 = !{!13, !13, i64 0}
!90 = !{!10, !13, i64 16}
!91 = !{!10, !13, i64 24}
!92 = !{!10, !13, i64 132}
!93 = !{!10, !13, i64 20}
!94 = !{!41, !13, i64 5652}
!95 = !{!41, !14, i64 7398}
!96 = !{!41, !14, i64 7399}
!97 = !{!41, !11, i64 8}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass