; LLVM IR from lbowes/falcon-9-simulation :: 3rd_party/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, float, float, i32, i32, i32, %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, i32, i32, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVector.21, %struct.ImGuiWindowTempData, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, i32, float, float, [4 x i8], %struct.ImGuiStorage, %struct.ImVector.25, float, i32, ptr, %struct.ImDrawList, ptr, ptr, ptr, ptr, ptr, [2 x i32], [2 x %struct.ImRect], i8, [3 x i8], i32, i32, [4 x i8] }>
%struct.ImVector.21 = type { i32, i32, ptr }
%struct.ImGuiWindowTempData = type <{ %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, i32, i8, i8, i8, i8, %struct.ImVec2, %struct.ImGuiMenuColumns, i32, i32, %struct.ImVector.3, ptr, ptr, i32, i32, i32, i32, i32, float, float, [4 x i8], %struct.ImVector.23, %struct.ImVector.19, %struct.ImVector.19, %struct.ImVector.24, [6 x i16], [4 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.23 = type { i32, i32, ptr }
%struct.ImVector.19 = type { i32, i32, ptr }
%struct.ImVector.24 = type { i32, i32, ptr }
%struct.ImGuiStorage = type { %struct.ImVector.0 }
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImVector.25 = type { i32, i32, ptr }
%struct.ImDrawList = type { %struct.ImVector.9, %struct.ImVector, %struct.ImVector.10, i32, ptr, ptr, i32, i32, ptr, ptr, %struct.ImVector.11, %struct.ImVector.12, %struct.ImVector.13, %struct.ImDrawListSplitter }
%struct.ImVector.9 = type { i32, i32, ptr }
%struct.ImVector = type { i32, i32, ptr }
%struct.ImVector.10 = type { i32, i32, ptr }
%struct.ImVector.11 = type { i32, i32, ptr }
%struct.ImVector.12 = type { i32, i32, ptr }
%struct.ImVector.13 = type { i32, i32, ptr }
%struct.ImDrawListSplitter = type { i32, i32, %struct.ImVector.14 }
%struct.ImVector.14 = type { i32, i32, ptr }
%struct.ImGuiContext = type <{ i8, i8, [6 x i8], %struct.ImGuiIO, %struct.ImGuiStyle, ptr, float, float, %struct.ImDrawListSharedData, double, i32, i32, i32, i8, i8, i8, i8, i32, [4 x i8], ptr, %struct.ImVector.3, %struct.ImVector.3, %struct.ImVector.3, %struct.ImVector.3, %struct.ImGuiStorage, i32, [4 x i8], ptr, ptr, ptr, ptr, ptr, %struct.ImVec2, float, i32, i8, [3 x i8], i32, float, float, i32, i32, float, i8, i8, i8, i8, i8, [3 x 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.7, 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, i8, [2 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.15, [16 x i8], ptr, %struct.ImPool, %struct.ImVector.17, %struct.ImVector.18, %struct.ImVec2, %struct.ImGuiInputTextState, %struct.ImFont, i32, i32, float, float, [3 x float], %struct.ImVec4, i8, [3 x i8], float, float, float, i32, %struct.ImVector.2, %struct.ImVector.21, %struct.ImVec2, %struct.ImVec2, i8, [3 x i8], float, %struct.ImGuiTextBuffer, %struct.ImVector.22, %struct.ImChunkStream, i8, [3 x i8], i32, ptr, %struct.ImGuiTextBuffer, float, i8, [3 x i8], i32, i32, i32, i8, [3 x i8], i32, [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, float, ptr, 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], 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, float, float, float, float, float, float, float, float, float, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, i8, i8, float, float, [48 x %struct.ImVec4] }
%struct.ImDrawListSharedData = type { %struct.ImVec2, ptr, float, float, float, %struct.ImVec4, i32, [12 x %struct.ImVec2], [64 x i8] }
%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.7 = 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.8] }
%struct.ImVector.8 = type { i32, i32, ptr }
%struct.ImGuiPayload = type <{ ptr, i32, i32, i32, i32, [33 x i8], i8, i8, [5 x i8] }>
%struct.ImVector.15 = type { i32, i32, ptr }
%struct.ImPool = type <{ %struct.ImVector.16, %struct.ImGuiStorage, i32, [4 x i8] }>
%struct.ImVector.16 = type { i32, i32, ptr }
%struct.ImVector.17 = type { i32, i32, ptr }
%struct.ImVector.18 = 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, i32, ptr, ptr }
%"struct.ImStb::STB_TexteditState" = type { i32, i32, i32, i8, 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.19, float, float, %struct.ImVector, %struct.ImVector.20, ptr, %struct.ImVec2, ptr, ptr, i16, i16, i16, i8, i8, float, float, float, i32, [2 x i8], [6 x i8] }>
%struct.ImVector.20 = type { i32, i32, ptr }
%struct.ImVec4 = type { float, float, float, float }
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImVector.22 = type { i32, i32, ptr }
%struct.ImChunkStream = type { %struct.ImVector.2 }
%struct.ImGuiTextBuffer = type { %struct.ImVector.2 }

@GImGui = external dso_local global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.136 = 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: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #5

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

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

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

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

38:                                               ; preds = %32
  br label %41

39:                                               ; preds = %32
  call void @__assert_fail(ptr noundef @.str.136, ptr noundef @.str.3, i32 noundef 7961, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui25FindBestWindowPosForPopupEP11ImGuiWindow) #10
  unreachable

40:                                               ; No predecessors!
  br label %41

41:                                               ; preds = %40, %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #9
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.ImGuiContext, ptr %42, i32 0, i32 23
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.ImGuiContext, ptr %44, i32 0, i32 23
  %46 = getelementptr inbounds %struct.ImVector.3, ptr %45, i32 0, i32 0
  %47 = load i32, ptr %46, align 8, !tbaa !73
  %48 = sub nsw i32 %47, 2
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP11ImGuiWindowEixEi(ptr noundef nonnull align 8 dereferenceable(16) %43, i32 noundef %48)
  %50 = load ptr, ptr %49, align 8, !tbaa !5
  store ptr %50, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.ImGuiContext, ptr %51, i32 0, i32 4
  %53 = getelementptr inbounds %struct.ImGuiStyle, ptr %52, i32 0, i32 15
  %54 = getelementptr inbounds %struct.ImVec2, ptr %53, i32 0, i32 0
  %55 = load float, ptr %54, align 8, !tbaa !74
  store float %55, ptr %7, align 4, !tbaa !75
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #9
  call void @_ZN6ImRectC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %8)
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.ImGuiWindow, ptr %56, i32 0, i32 50
  %58 = getelementptr inbounds %struct.ImGuiWindowTempData, ptr %57, i32 0, i32 22
  %59 = load i8, ptr %58, align 2, !tbaa !76, !range !77, !noundef !78
  %60 = trunc i8 %59 to i1
  br i1 %60, label %61, label %72

61:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #9
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.ImGuiWindow, ptr %62, i32 0, i32 55
  %64 = getelementptr inbounds %struct.ImRect, ptr %63, i32 0, i32 0
  %65 = getelementptr inbounds %struct.ImVec2, ptr %64, i32 0, i32 1
  %66 = load float, ptr %65, align 4, !tbaa !79
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.ImGuiWindow, ptr %67, i32 0, i32 55
  %69 = getelementptr inbounds %struct.ImRect, ptr %68, i32 0, i32 1
  %70 = getelementptr inbounds %struct.ImVec2, ptr %69, i32 0, i32 1
  %71 = load float, ptr %70, align 4, !tbaa !80
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %9, float noundef 0xC7EFFFFFE0000000, float noundef %66, float noundef 0x47EFFFFFE0000000, float noundef %71)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %9, i64 16, i1 false), !tbaa.struct !81
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #9
  br label %95

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

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

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

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

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

143:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.ImGuiContext, ptr %144, i32 0, i32 4
  %146 = getelementptr inbounds %struct.ImGuiStyle, ptr %145, i32 0, i32 31
  %147 = load float, ptr %146, align 8, !tbaa !86
  store float %147, ptr %13, align 4, !tbaa !75
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  %148 = call <2 x float> @_ZN5ImGuiL22NavCalcPreferredRefPosEv()
  store <2 x float> %148, ptr %14, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #9
  call void @_ZN6ImRectC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %15)
  %149 = load ptr, ptr %4, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.ImGuiContext, ptr %149, i32 0, i32 91
  %151 = load i8, ptr %150, align 2, !tbaa !87, !range !77, !noundef !78
  %152 = trunc i8 %151 to i1
  br i1 %152, label %178, label %153

153:                                              ; preds = %143
  %154 = load ptr, ptr %4, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.ImGuiContext, ptr %154, i32 0, i32 92
  %156 = load i8, ptr %155, align 1, !tbaa !88, !range !77, !noundef !78
  %157 = trunc i8 %156 to i1
  br i1 %157, label %158, label %178

158:                                              ; preds = %153
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.ImGuiContext, ptr %159, i32 0, i32 3
  %161 = getelementptr inbounds %struct.ImGuiIO, ptr %160, i32 0, i32 0
  %162 = load i32, ptr %161, align 8, !tbaa !89
  %163 = and i32 %162, 4
  %164 = icmp ne i32 %163, 0
  br i1 %164, label %178, label %165

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

178:                                              ; preds = %158, %153, %143
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #9
  %179 = getelementptr inbounds %struct.ImVec2, ptr %14, i32 0, i32 0
  %180 = load float, ptr %179, align 4, !tbaa !90
  %181 = fsub float %180, 1.600000e+01
  %182 = getelementptr inbounds %struct.ImVec2, ptr %14, i32 0, i32 1
  %183 = load float, ptr %182, align 4, !tbaa !91
  %184 = fsub float %183, 8.000000e+00
  %185 = getelementptr inbounds %struct.ImVec2, ptr %14, i32 0, i32 0
  %186 = load float, ptr %185, align 4, !tbaa !90
  %187 = load float, ptr %13, align 4, !tbaa !75
  %188 = call float @llvm.fmuladd.f32(float 2.400000e+01, float %187, float %186)
  %189 = getelementptr inbounds %struct.ImVec2, ptr %14, i32 0, i32 1
  %190 = load float, ptr %189, align 4, !tbaa !91
  %191 = load float, ptr %13, align 4, !tbaa !75
  %192 = call float @llvm.fmuladd.f32(float 2.400000e+01, float %191, float %190)
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %17, float noundef %181, float noundef %184, float noundef %188, float noundef %192)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %17, i64 16, i1 false), !tbaa.struct !81
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #9
  br label %193

193:                                              ; preds = %178, %165
  %194 = load ptr, ptr %3, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.ImGuiWindow, ptr %194, i32 0, i32 4
  %196 = load ptr, ptr %3, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.ImGuiWindow, ptr %196, i32 0, i32 41
  %198 = call <2 x float> @_ZN5ImGui27FindBestWindowPosForPopupExERK6ImVec2S2_PiRK6ImRectS6_24ImGuiPopupPositionPolicy(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %195, ptr noundef %197, ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(16) %15, i32 noundef 0)
  store <2 x float> %198, ptr %2, align 4
  %199 = load ptr, ptr %3, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.ImGuiWindow, ptr %199, i32 0, i32 41
  %201 = load i32, ptr %200, align 8, !tbaa !92
  %202 = icmp eq i32 %201, -1
  br i1 %202, label %203, label %205

203:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %19, float noundef 2.000000e+00, float noundef 2.000000e+00)
  %204 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %19)
  store <2 x float> %204, ptr %18, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr align 4 %18, i64 8, i1 false), !tbaa.struct !93
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  br label %205

205:                                              ; preds = %203, %193
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  br label %207

206:                                              ; preds = %137
  call void @__assert_fail(ptr noundef @.str.61, ptr noundef @.str.3, i32 noundef 7991, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui25FindBestWindowPosForPopupEP11ImGuiWindow) #10
  unreachable

207:                                              ; preds = %205, %109, %95
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #9
  %208 = load <2 x float>, ptr %2, align 4
  ret <2 x float> %208
}

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { inlinehint 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 #6 = { 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 #7 = { 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 #8 = { 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 #9 = { nounwind }
attributes #10 = { 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, !13, i64 64, !13, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !12, i64 84, !12, i64 92, !12, i64 100, !12, i64 108, !12, i64 116, !14, i64 124, !14, i64 125, !14, i64 126, !14, i64 127, !14, i64 128, !14, i64 129, !14, i64 130, !14, i64 131, !14, i64 132, !14, i64 133, !14, i64 134, !14, i64 135, !7, i64 136, !15, i64 138, !15, i64 140, !15, i64 142, !11, i64 144, !7, i64 148, !7, i64 149, !7, i64 150, !14, i64 151, !11, i64 152, !11, i64 156, !11, i64 160, !11, i64 164, !11, i64 168, !11, i64 172, !12, i64 176, !12, i64 184, !16, i64 192, !17, i64 208, !19, i64 536, !19, i64 552, !19, i64 568, !19, i64 584, !19, i64 600, !19, i64 616, !11, i64 632, !13, i64 636, !13, i64 640, !26, i64 648, !28, i64 664, !13, i64 680, !11, i64 684, !6, i64 688, !29, i64 696, !6, i64 864, !6, i64 872, !6, i64 880, !6, i64 888, !6, i64 896, !7, i64 904, !7, i64 912, !14, i64 944, !11, i64 948, !11, i64 952}
!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, !13, i64 48, !13, i64 52, !18, i64 56, !18, i64 60, !18, i64 64, !11, i64 68, !11, i64 72, !19, i64 76, !19, i64 92, !20, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !14, i64 128, !14, i64 129, !14, i64 130, !12, i64 132, !21, i64 140, !11, i64 176, !11, i64 180, !22, i64 184, !6, i64 200, !6, i64 208, !11, i64 216, !11, i64 220, !11, i64 224, !11, i64 228, !11, i64 232, !13, i64 236, !13, i64 240, !23, i64 248, !24, i64 264, !24, i64 280, !25, i64 296, !7, i64 312}
!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 = !{!"_ZTS8ImVectorIiE", !11, i64 0, !11, i64 4, !6, i64 8}
!24 = !{!"_ZTS8ImVectorIfE", !11, i64 0, !11, i64 4, !6, i64 8}
!25 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !11, i64 0, !11, i64 4, !6, i64 8}
!26 = !{!"_ZTS12ImGuiStorage", !27, i64 0}
!27 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !11, i64 0, !11, i64 4, !6, i64 8}
!28 = !{!"_ZTS8ImVectorI12ImGuiColumnsE", !11, i64 0, !11, i64 4, !6, i64 8}
!29 = !{!"_ZTS10ImDrawList", !30, i64 0, !31, i64 16, !32, i64 32, !11, i64 48, !6, i64 56, !6, i64 64, !11, i64 72, !11, i64 76, !6, i64 80, !6, i64 88, !33, i64 96, !34, i64 112, !35, i64 128, !36, i64 144}
!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 = !{!"_ZTS18ImDrawListSplitter", !11, i64 0, !11, i64 4, !37, i64 8}
!37 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !11, i64 0, !11, i64 4, !6, i64 8}
!38 = !{!39, !6, i64 6784}
!39 = !{!"_ZTS12ImGuiContext", !14, i64 0, !14, i64 1, !40, i64 8, !41, i64 5480, !6, i64 6432, !13, i64 6440, !13, i64 6444, !42, i64 6448, !44, i64 6656, !11, i64 6664, !11, i64 6668, !11, i64 6672, !14, i64 6676, !14, i64 6677, !14, i64 6678, !14, i64 6679, !11, i64 6680, !6, i64 6688, !22, i64 6696, !22, i64 6712, !22, i64 6728, !22, i64 6744, !26, i64 6760, !11, i64 6776, !6, i64 6784, !6, i64 6792, !6, i64 6800, !6, i64 6808, !6, i64 6816, !12, i64 6824, !13, i64 6832, !11, i64 6836, !14, i64 6840, !11, i64 6844, !13, i64 6848, !13, i64 6852, !11, i64 6856, !11, i64 6860, !13, i64 6864, !14, i64 6868, !14, i64 6869, !14, i64 6870, !14, i64 6871, !14, i64 6872, !11, i64 6876, !11, i64 6880, !45, i64 6888, !12, i64 6896, !6, i64 6904, !46, i64 6912, !11, i64 6916, !11, i64 6920, !14, i64 6924, !14, i64 6925, !6, i64 6928, !11, i64 6936, !13, i64 6940, !47, i64 6944, !48, i64 7056, !49, i64 7080, !50, i64 7096, !51, i64 7112, !52, i64 7128, !52, i64 7144, !6, i64 7160, !11, i64 7168, !11, i64 7172, !11, i64 7176, !11, i64 7180, !11, i64 7184, !11, i64 7188, !11, i64 7192, !11, i64 7196, !11, i64 7200, !11, i64 7204, !11, i64 7208, !46, i64 7212, !19, i64 7216, !11, i64 7232, !20, i64 7236, !11, i64 7240, !14, i64 7244, !14, i64 7245, !14, i64 7246, !14, i64 7247, !14, i64 7248, !14, i64 7249, !14, i64 7250, !11, i64 7252, !19, i64 7256, !14, i64 7272, !14, i64 7273, !11, i64 7276, !53, i64 7280, !11, i64 7284, !11, i64 7288, !11, i64 7292, !11, i64 7296, !54, i64 7304, !54, i64 7352, !54, i64 7400, !6, i64 7448, !11, i64 7456, !6, i64 7464, !6, i64 7472, !6, i64 7480, !13, i64 7488, !13, i64 7492, !14, i64 7496, !6, i64 7504, !6, i64 7512, !11, i64 7520, !11, i64 7524, !11, i64 7528, !11, i64 7532, !14, i64 7536, !55, i64 7544, !56, i64 7600, !13, i64 7632, !29, i64 7640, !29, i64 7808, !11, i64 7976, !14, i64 7980, !14, i64 7981, !14, i64 7982, !11, i64 7984, !11, i64 7988, !11, i64 7992, !57, i64 8000, !19, i64 8064, !11, i64 8080, !11, i64 8084, !13, i64 8088, !11, i64 8092, !11, i64 8096, !11, i64 8100, !11, i64 8104, !58, i64 8112, !7, i64 8128, !6, i64 8144, !59, i64 8152, !61, i64 8192, !62, i64 8208, !12, i64 8224, !63, i64 8232, !67, i64 11960, !11, i64 12080, !11, i64 12084, !13, i64 12088, !13, i64 12092, !7, i64 12096, !43, i64 12108, !14, i64 12124, !13, i64 12128, !13, i64 12132, !13, i64 12136, !11, i64 12140, !64, i64 12144, !16, i64 12160, !12, i64 12176, !12, i64 12184, !14, i64 12192, !13, i64 12196, !69, i64 12200, !70, i64 12216, !71, i64 12232, !14, i64 12248, !72, i64 12252, !6, i64 12256, !69, i64 12264, !13, i64 12280, !14, i64 12284, !11, i64 12288, !11, i64 12292, !11, i64 12296, !14, i64 12300, !11, i64 12304, !7, i64 12308, !11, i64 12788, !13, i64 12792, !11, i64 12796, !11, i64 12800, !11, i64 12804, !7, i64 12808}
!40 = !{!"_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, !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, !6, i64 288, !12, i64 296, !7, i64 304, !13, i64 312, !13, i64 316, !14, i64 320, !14, i64 321, !14, i64 322, !14, i64 323, !7, i64 324, !7, i64 836, !14, i64 920, !14, i64 921, !14, i64 922, !14, i64 923, !14, i64 924, !14, i64 925, !14, i64 926, !13, i64 928, !11, i64 932, !11, i64 936, !11, i64 940, !11, i64 944, !11, i64 948, !12, i64 952, !11, i64 960, !12, i64 964, !7, i64 972, !7, i64 1016, !7, i64 1056, !7, i64 1061, !7, i64 1066, !7, i64 1071, !7, i64 1076, !7, i64 1084, !7, i64 1104, !7, i64 1124, !7, i64 1164, !7, i64 1184, !7, i64 3232, !7, i64 5280, !7, i64 5364, !15, i64 5448, !31, i64 5456}
!41 = !{!"_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, !13, i64 96, !13, i64 100, !13, i64 104, !13, i64 108, !13, i64 112, !13, i64 116, !13, i64 120, !13, i64 124, !13, i64 128, !11, i64 132, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !13, i64 168, !14, i64 172, !14, i64 173, !13, i64 176, !13, i64 180, !7, i64 184}
!42 = !{!"_ZTS20ImDrawListSharedData", !12, i64 0, !6, i64 8, !13, i64 16, !13, i64 20, !13, i64 24, !43, i64 28, !11, i64 44, !7, i64 48, !7, i64 144}
!43 = !{!"_ZTS6ImVec4", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12}
!44 = !{!"double", !7, i64 0}
!45 = !{!"long long", !7, i64 0}
!46 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!47 = !{!"_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}
!48 = !{!"_ZTS17ImGuiNextItemData", !11, i64 0, !13, i64 4, !11, i64 8, !11, i64 12, !14, i64 16}
!49 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !11, i64 0, !11, i64 4, !6, i64 8}
!50 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !11, i64 0, !11, i64 4, !6, i64 8}
!51 = !{!"_ZTS8ImVectorIP6ImFontE", !11, i64 0, !11, i64 4, !6, i64 8}
!52 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !11, i64 0, !11, i64 4, !6, i64 8}
!53 = !{!"_ZTS15ImGuiNavForward", !7, i64 0}
!54 = !{!"_ZTS18ImGuiNavMoveResult", !6, i64 0, !11, i64 8, !11, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !19, i64 28}
!55 = !{!"_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}
!56 = !{!"_ZTS17ImDrawDataBuilder", !7, i64 0}
!57 = !{!"_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}
!58 = !{!"_ZTS8ImVectorIhE", !11, i64 0, !11, i64 4, !6, i64 8}
!59 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !60, i64 0, !26, i64 16, !11, i64 32}
!60 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !11, i64 0, !11, i64 4, !6, i64 8}
!61 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !11, i64 0, !11, i64 4, !6, i64 8}
!62 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !11, i64 0, !11, i64 4, !6, i64 8}
!63 = !{!"_ZTS19ImGuiInputTextState", !11, i64 0, !11, i64 4, !11, i64 8, !31, i64 16, !64, i64 32, !64, i64 48, !14, i64 64, !11, i64 68, !13, i64 72, !65, i64 76, !13, i64 3696, !14, i64 3700, !14, i64 3701, !11, i64 3704, !6, i64 3712, !6, i64 3720}
!64 = !{!"_ZTS8ImVectorIcE", !11, i64 0, !11, i64 4, !6, i64 8}
!65 = !{!"_ZTSN5ImStb17STB_TexteditStateE", !11, i64 0, !11, i64 4, !11, i64 8, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 19, !13, i64 20, !66, i64 24}
!66 = !{!"_ZTSN5ImStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !15, i64 3582, !15, i64 3584, !11, i64 3588, !11, i64 3592}
!67 = !{!"_ZTS6ImFont", !24, i64 0, !13, i64 16, !13, i64 20, !31, i64 24, !68, i64 40, !6, i64 56, !12, i64 64, !6, i64 72, !6, i64 80, !15, i64 88, !15, i64 90, !15, i64 92, !14, i64 94, !13, i64 96, !13, i64 100, !13, i64 104, !11, i64 108, !7, i64 112}
!68 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !11, i64 0, !11, i64 4, !6, i64 8}
!69 = !{!"_ZTS15ImGuiTextBuffer", !64, i64 0}
!70 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !11, i64 0, !11, i64 4, !6, i64 8}
!71 = !{!"_ZTS13ImChunkStreamI19ImGuiWindowSettingsE", !64, i64 0}
!72 = !{!"_ZTS12ImGuiLogType", !7, i64 0}
!73 = !{!39, !11, i64 6744}
!74 = !{!39, !13, i64 5560}
!75 = !{!13, !13, i64 0}
!76 = !{!10, !14, i64 338}
!77 = !{i8 0, i8 2}
!78 = !{}
!79 = !{!10, !13, i64 604}
!80 = !{!10, !13, i64 612}
!81 = !{i64 0, i64 4, !75, i64 4, i64 4, !75, i64 8, i64 4, !75, i64 12, i64 4, !75}
!82 = !{!10, !13, i64 16}
!83 = !{!10, !13, i64 24}
!84 = !{!10, !13, i64 116}
!85 = !{!10, !13, i64 20}
!86 = !{!39, !13, i64 5648}
!87 = !{!39, !14, i64 7246}
!88 = !{!39, !14, i64 7247}
!89 = !{!39, !11, i64 8}
!90 = !{!12, !13, i64 0}
!91 = !{!12, !13, i64 4}
!92 = !{!10, !11, i64 152}
!93 = !{i64 0, i64 4, !75, i64 4, i64 4, !75}


; 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 [86 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.136 = 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 nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #1 align 2

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

; Function Attrs: 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 #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #5

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

; 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 #6 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 #7 align 2

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

20:                                               ; preds = %1
  %21 = getelementptr inbounds i8, ptr %12, i64 6784
  %22 = load ptr, ptr %21, align 8, !tbaa !38
  %23 = icmp eq ptr %22, %0
  br i1 %23, label %25, label %24

24:                                               ; preds = %20
  tail call void @__assert_fail(ptr noundef nonnull @.str.136, ptr noundef nonnull @.str.3, i32 noundef 7961, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui25FindBestWindowPosForPopupEP11ImGuiWindow) #10
  unreachable

25:                                               ; preds = %20
  %26 = getelementptr inbounds i8, ptr %12, i64 6744
  %27 = load i32, ptr %26, align 8, !tbaa !73
  %28 = add nsw i32 %27, -2
  %29 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP11ImGuiWindowEixEi(ptr noundef nonnull align 8 dereferenceable(16) %26, i32 noundef %28)
  %30 = load ptr, ptr %29, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %12, i64 5560
  %32 = load float, ptr %31, align 8, !tbaa !74
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #9
  call void @_ZN6ImRectC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %3)
  %33 = getelementptr inbounds i8, ptr %30, i64 338
  %34 = load i8, ptr %33, align 2, !tbaa !75, !range !76, !noundef !77
  %35 = trunc nuw i8 %34 to i1
  br i1 %35, label %36, label %41

36:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #9
  %37 = getelementptr inbounds i8, ptr %30, i64 604
  %38 = load float, ptr %37, align 4, !tbaa !78
  %39 = getelementptr inbounds i8, ptr %30, i64 612
  %40 = load float, ptr %39, align 4, !tbaa !79
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %4, float noundef 0xC7EFFFFFE0000000, float noundef %38, float noundef 0x47EFFFFFE0000000, float noundef %40)
  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 !80
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  br label %52

41:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #9
  %42 = getelementptr inbounds i8, ptr %30, i64 16
  %43 = load float, ptr %42, align 8, !tbaa !82
  %44 = fadd float %32, %43
  %45 = getelementptr inbounds i8, ptr %30, i64 24
  %46 = load float, ptr %45, align 8, !tbaa !83
  %47 = fadd float %43, %46
  %48 = fsub float %47, %32
  %49 = getelementptr inbounds i8, ptr %30, i64 116
  %50 = load float, ptr %49, align 4, !tbaa !84
  %51 = fsub float %48, %50
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %5, float noundef %44, float noundef 0xC7EFFFFFE0000000, float noundef %51, 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 !80
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  br label %52

52:                                               ; preds = %41, %36
  %53 = getelementptr inbounds i8, ptr %0, i64 16
  %54 = getelementptr inbounds i8, ptr %0, i64 24
  %55 = getelementptr inbounds i8, ptr %0, i64 152
  %56 = call <2 x float> @_ZN5ImGui27FindBestWindowPosForPopupExERK6ImVec2S2_PiRK6ImRectS6_24ImGuiPopupPositionPolicy(ptr noundef nonnull align 4 dereferenceable(8) %53, ptr noundef nonnull align 4 dereferenceable(8) %54, ptr noundef nonnull %55, 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) #9
  br label %110

57:                                               ; preds = %1
  %58 = and i32 %18, 67108864
  %.not38 = icmp eq i32 %58, 0
  br i1 %.not38, label %71, label %59

59:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #9
  %60 = getelementptr inbounds i8, ptr %0, i64 16
  %61 = load float, ptr %60, align 8, !tbaa !82
  %62 = fadd float %61, -1.000000e+00
  %63 = getelementptr inbounds i8, ptr %0, i64 20
  %64 = load float, ptr %63, align 4, !tbaa !85
  %65 = fadd float %64, -1.000000e+00
  %66 = fadd float %61, 1.000000e+00
  %67 = fadd float %64, 1.000000e+00
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %6, float noundef %62, float noundef %65, float noundef %66, float noundef %67)
  %68 = getelementptr inbounds i8, ptr %0, i64 24
  %69 = getelementptr inbounds i8, ptr %0, i64 152
  %70 = call <2 x float> @_ZN5ImGui27FindBestWindowPosForPopupExERK6ImVec2S2_PiRK6ImRectS6_24ImGuiPopupPositionPolicy(ptr noundef nonnull align 4 dereferenceable(8) %60, ptr noundef nonnull align 4 dereferenceable(8) %68, ptr noundef nonnull %69, 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) #9
  br label %110

71:                                               ; preds = %57
  %72 = and i32 %18, 33554432
  %.not39 = icmp eq i32 %72, 0
  br i1 %.not39, label %109, label %73

73:                                               ; preds = %71
  %74 = getelementptr inbounds i8, ptr %12, i64 5648
  %75 = load float, ptr %74, align 8, !tbaa !86
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  %76 = tail call <2 x float> @_ZN5ImGuiL22NavCalcPreferredRefPosEv()
  store <2 x float> %76, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #9
  call void @_ZN6ImRectC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %8)
  %77 = getelementptr inbounds i8, ptr %12, i64 7246
  %78 = load i8, ptr %77, align 2, !tbaa !87, !range !76, !noundef !77
  %79 = trunc nuw i8 %78 to i1
  %80 = extractelement <2 x float> %76, i64 0
  %81 = extractelement <2 x float> %76, i64 1
  br i1 %79, label %95, label %82

82:                                               ; preds = %73
  %83 = getelementptr inbounds i8, ptr %12, i64 7247
  %84 = load i8, ptr %83, align 1, !tbaa !88, !range !76, !noundef !77
  %85 = trunc nuw i8 %84 to i1
  br i1 %85, label %86, label %95

86:                                               ; preds = %82
  %87 = getelementptr inbounds i8, ptr %12, i64 8
  %88 = load i32, ptr %87, align 8, !tbaa !89
  %89 = and i32 %88, 4
  %.not40 = icmp eq i32 %89, 0
  br i1 %.not40, label %90, label %95

90:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #9
  %91 = fadd float %80, -1.600000e+01
  %92 = fadd float %81, -8.000000e+00
  %93 = fadd float %80, 1.600000e+01
  %94 = fadd float %81, 8.000000e+00
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %9, float noundef %91, float noundef %92, float noundef %93, float noundef %94)
  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 !80
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #9
  br label %100

95:                                               ; preds = %86, %82, %73
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #9
  %96 = fadd float %80, -1.600000e+01
  %97 = fadd float %81, -8.000000e+00
  %98 = call float @llvm.fmuladd.f32(float %75, float 2.400000e+01, float %80)
  %99 = call float @llvm.fmuladd.f32(float %75, float 2.400000e+01, float %81)
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %10, float noundef %96, float noundef %97, float noundef %98, float noundef %99)
  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 !80
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #9
  br label %100

100:                                              ; preds = %95, %90
  %101 = getelementptr inbounds i8, ptr %0, i64 24
  %102 = getelementptr inbounds i8, ptr %0, i64 152
  %103 = call <2 x float> @_ZN5ImGui27FindBestWindowPosForPopupExERK6ImVec2S2_PiRK6ImRectS6_24ImGuiPopupPositionPolicy(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %101, ptr noundef nonnull %102, ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(16) %8, i32 noundef 0)
  %104 = load i32, ptr %102, align 8, !tbaa !90
  %105 = icmp eq i32 %104, -1
  br i1 %105, label %106, label %108

106:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %11, float noundef 2.000000e+00, float noundef 2.000000e+00)
  %107 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %11)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  br label %108

108:                                              ; preds = %106, %100
  %.sroa.037.0 = phi <2 x float> [ %107, %106 ], [ %103, %100 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  br label %110

109:                                              ; preds = %71
  tail call void @__assert_fail(ptr noundef nonnull @.str.61, ptr noundef nonnull @.str.3, i32 noundef 7991, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui25FindBestWindowPosForPopupEP11ImGuiWindow) #10
  unreachable

110:                                              ; preds = %108, %59, %52
  %.sroa.037.1 = phi <2 x float> [ %56, %52 ], [ %70, %59 ], [ %.sroa.037.0, %108 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #9
  ret <2 x float> %.sroa.037.1
}

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

; 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 #8

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { inlinehint 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 #6 = { 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 #7 = { 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 #8 = { 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 #9 = { nounwind }
attributes #10 = { 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, !13, i64 64, !13, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !12, i64 84, !12, i64 92, !12, i64 100, !12, i64 108, !12, i64 116, !14, i64 124, !14, i64 125, !14, i64 126, !14, i64 127, !14, i64 128, !14, i64 129, !14, i64 130, !14, i64 131, !14, i64 132, !14, i64 133, !14, i64 134, !14, i64 135, !7, i64 136, !15, i64 138, !15, i64 140, !15, i64 142, !11, i64 144, !7, i64 148, !7, i64 149, !7, i64 150, !14, i64 151, !11, i64 152, !11, i64 156, !11, i64 160, !11, i64 164, !11, i64 168, !11, i64 172, !12, i64 176, !12, i64 184, !16, i64 192, !17, i64 208, !19, i64 536, !19, i64 552, !19, i64 568, !19, i64 584, !19, i64 600, !19, i64 616, !11, i64 632, !13, i64 636, !13, i64 640, !26, i64 648, !28, i64 664, !13, i64 680, !11, i64 684, !6, i64 688, !29, i64 696, !6, i64 864, !6, i64 872, !6, i64 880, !6, i64 888, !6, i64 896, !7, i64 904, !7, i64 912, !14, i64 944, !11, i64 948, !11, i64 952}
!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, !13, i64 48, !13, i64 52, !18, i64 56, !18, i64 60, !18, i64 64, !11, i64 68, !11, i64 72, !19, i64 76, !19, i64 92, !20, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !14, i64 128, !14, i64 129, !14, i64 130, !12, i64 132, !21, i64 140, !11, i64 176, !11, i64 180, !22, i64 184, !6, i64 200, !6, i64 208, !11, i64 216, !11, i64 220, !11, i64 224, !11, i64 228, !11, i64 232, !13, i64 236, !13, i64 240, !23, i64 248, !24, i64 264, !24, i64 280, !25, i64 296, !7, i64 312}
!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 = !{!"_ZTS8ImVectorIiE", !11, i64 0, !11, i64 4, !6, i64 8}
!24 = !{!"_ZTS8ImVectorIfE", !11, i64 0, !11, i64 4, !6, i64 8}
!25 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !11, i64 0, !11, i64 4, !6, i64 8}
!26 = !{!"_ZTS12ImGuiStorage", !27, i64 0}
!27 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !11, i64 0, !11, i64 4, !6, i64 8}
!28 = !{!"_ZTS8ImVectorI12ImGuiColumnsE", !11, i64 0, !11, i64 4, !6, i64 8}
!29 = !{!"_ZTS10ImDrawList", !30, i64 0, !31, i64 16, !32, i64 32, !11, i64 48, !6, i64 56, !6, i64 64, !11, i64 72, !11, i64 76, !6, i64 80, !6, i64 88, !33, i64 96, !34, i64 112, !35, i64 128, !36, i64 144}
!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 = !{!"_ZTS18ImDrawListSplitter", !11, i64 0, !11, i64 4, !37, i64 8}
!37 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !11, i64 0, !11, i64 4, !6, i64 8}
!38 = !{!39, !6, i64 6784}
!39 = !{!"_ZTS12ImGuiContext", !14, i64 0, !14, i64 1, !40, i64 8, !41, i64 5480, !6, i64 6432, !13, i64 6440, !13, i64 6444, !42, i64 6448, !44, i64 6656, !11, i64 6664, !11, i64 6668, !11, i64 6672, !14, i64 6676, !14, i64 6677, !14, i64 6678, !14, i64 6679, !11, i64 6680, !6, i64 6688, !22, i64 6696, !22, i64 6712, !22, i64 6728, !22, i64 6744, !26, i64 6760, !11, i64 6776, !6, i64 6784, !6, i64 6792, !6, i64 6800, !6, i64 6808, !6, i64 6816, !12, i64 6824, !13, i64 6832, !11, i64 6836, !14, i64 6840, !11, i64 6844, !13, i64 6848, !13, i64 6852, !11, i64 6856, !11, i64 6860, !13, i64 6864, !14, i64 6868, !14, i64 6869, !14, i64 6870, !14, i64 6871, !14, i64 6872, !11, i64 6876, !11, i64 6880, !45, i64 6888, !12, i64 6896, !6, i64 6904, !46, i64 6912, !11, i64 6916, !11, i64 6920, !14, i64 6924, !14, i64 6925, !6, i64 6928, !11, i64 6936, !13, i64 6940, !47, i64 6944, !48, i64 7056, !49, i64 7080, !50, i64 7096, !51, i64 7112, !52, i64 7128, !52, i64 7144, !6, i64 7160, !11, i64 7168, !11, i64 7172, !11, i64 7176, !11, i64 7180, !11, i64 7184, !11, i64 7188, !11, i64 7192, !11, i64 7196, !11, i64 7200, !11, i64 7204, !11, i64 7208, !46, i64 7212, !19, i64 7216, !11, i64 7232, !20, i64 7236, !11, i64 7240, !14, i64 7244, !14, i64 7245, !14, i64 7246, !14, i64 7247, !14, i64 7248, !14, i64 7249, !14, i64 7250, !11, i64 7252, !19, i64 7256, !14, i64 7272, !14, i64 7273, !11, i64 7276, !53, i64 7280, !11, i64 7284, !11, i64 7288, !11, i64 7292, !11, i64 7296, !54, i64 7304, !54, i64 7352, !54, i64 7400, !6, i64 7448, !11, i64 7456, !6, i64 7464, !6, i64 7472, !6, i64 7480, !13, i64 7488, !13, i64 7492, !14, i64 7496, !6, i64 7504, !6, i64 7512, !11, i64 7520, !11, i64 7524, !11, i64 7528, !11, i64 7532, !14, i64 7536, !55, i64 7544, !56, i64 7600, !13, i64 7632, !29, i64 7640, !29, i64 7808, !11, i64 7976, !14, i64 7980, !14, i64 7981, !14, i64 7982, !11, i64 7984, !11, i64 7988, !11, i64 7992, !57, i64 8000, !19, i64 8064, !11, i64 8080, !11, i64 8084, !13, i64 8088, !11, i64 8092, !11, i64 8096, !11, i64 8100, !11, i64 8104, !58, i64 8112, !7, i64 8128, !6, i64 8144, !59, i64 8152, !61, i64 8192, !62, i64 8208, !12, i64 8224, !63, i64 8232, !67, i64 11960, !11, i64 12080, !11, i64 12084, !13, i64 12088, !13, i64 12092, !7, i64 12096, !43, i64 12108, !14, i64 12124, !13, i64 12128, !13, i64 12132, !13, i64 12136, !11, i64 12140, !64, i64 12144, !16, i64 12160, !12, i64 12176, !12, i64 12184, !14, i64 12192, !13, i64 12196, !69, i64 12200, !70, i64 12216, !71, i64 12232, !14, i64 12248, !72, i64 12252, !6, i64 12256, !69, i64 12264, !13, i64 12280, !14, i64 12284, !11, i64 12288, !11, i64 12292, !11, i64 12296, !14, i64 12300, !11, i64 12304, !7, i64 12308, !11, i64 12788, !13, i64 12792, !11, i64 12796, !11, i64 12800, !11, i64 12804, !7, i64 12808}
!40 = !{!"_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, !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, !6, i64 288, !12, i64 296, !7, i64 304, !13, i64 312, !13, i64 316, !14, i64 320, !14, i64 321, !14, i64 322, !14, i64 323, !7, i64 324, !7, i64 836, !14, i64 920, !14, i64 921, !14, i64 922, !14, i64 923, !14, i64 924, !14, i64 925, !14, i64 926, !13, i64 928, !11, i64 932, !11, i64 936, !11, i64 940, !11, i64 944, !11, i64 948, !12, i64 952, !11, i64 960, !12, i64 964, !7, i64 972, !7, i64 1016, !7, i64 1056, !7, i64 1061, !7, i64 1066, !7, i64 1071, !7, i64 1076, !7, i64 1084, !7, i64 1104, !7, i64 1124, !7, i64 1164, !7, i64 1184, !7, i64 3232, !7, i64 5280, !7, i64 5364, !15, i64 5448, !31, i64 5456}
!41 = !{!"_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, !13, i64 96, !13, i64 100, !13, i64 104, !13, i64 108, !13, i64 112, !13, i64 116, !13, i64 120, !13, i64 124, !13, i64 128, !11, i64 132, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !13, i64 168, !14, i64 172, !14, i64 173, !13, i64 176, !13, i64 180, !7, i64 184}
!42 = !{!"_ZTS20ImDrawListSharedData", !12, i64 0, !6, i64 8, !13, i64 16, !13, i64 20, !13, i64 24, !43, i64 28, !11, i64 44, !7, i64 48, !7, i64 144}
!43 = !{!"_ZTS6ImVec4", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12}
!44 = !{!"double", !7, i64 0}
!45 = !{!"long long", !7, i64 0}
!46 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!47 = !{!"_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}
!48 = !{!"_ZTS17ImGuiNextItemData", !11, i64 0, !13, i64 4, !11, i64 8, !11, i64 12, !14, i64 16}
!49 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !11, i64 0, !11, i64 4, !6, i64 8}
!50 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !11, i64 0, !11, i64 4, !6, i64 8}
!51 = !{!"_ZTS8ImVectorIP6ImFontE", !11, i64 0, !11, i64 4, !6, i64 8}
!52 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !11, i64 0, !11, i64 4, !6, i64 8}
!53 = !{!"_ZTS15ImGuiNavForward", !7, i64 0}
!54 = !{!"_ZTS18ImGuiNavMoveResult", !6, i64 0, !11, i64 8, !11, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !19, i64 28}
!55 = !{!"_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}
!56 = !{!"_ZTS17ImDrawDataBuilder", !7, i64 0}
!57 = !{!"_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}
!58 = !{!"_ZTS8ImVectorIhE", !11, i64 0, !11, i64 4, !6, i64 8}
!59 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !60, i64 0, !26, i64 16, !11, i64 32}
!60 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !11, i64 0, !11, i64 4, !6, i64 8}
!61 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !11, i64 0, !11, i64 4, !6, i64 8}
!62 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !11, i64 0, !11, i64 4, !6, i64 8}
!63 = !{!"_ZTS19ImGuiInputTextState", !11, i64 0, !11, i64 4, !11, i64 8, !31, i64 16, !64, i64 32, !64, i64 48, !14, i64 64, !11, i64 68, !13, i64 72, !65, i64 76, !13, i64 3696, !14, i64 3700, !14, i64 3701, !11, i64 3704, !6, i64 3712, !6, i64 3720}
!64 = !{!"_ZTS8ImVectorIcE", !11, i64 0, !11, i64 4, !6, i64 8}
!65 = !{!"_ZTSN5ImStb17STB_TexteditStateE", !11, i64 0, !11, i64 4, !11, i64 8, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 19, !13, i64 20, !66, i64 24}
!66 = !{!"_ZTSN5ImStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !15, i64 3582, !15, i64 3584, !11, i64 3588, !11, i64 3592}
!67 = !{!"_ZTS6ImFont", !24, i64 0, !13, i64 16, !13, i64 20, !31, i64 24, !68, i64 40, !6, i64 56, !12, i64 64, !6, i64 72, !6, i64 80, !15, i64 88, !15, i64 90, !15, i64 92, !14, i64 94, !13, i64 96, !13, i64 100, !13, i64 104, !11, i64 108, !7, i64 112}
!68 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !11, i64 0, !11, i64 4, !6, i64 8}
!69 = !{!"_ZTS15ImGuiTextBuffer", !64, i64 0}
!70 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !11, i64 0, !11, i64 4, !6, i64 8}
!71 = !{!"_ZTS13ImChunkStreamI19ImGuiWindowSettingsE", !64, i64 0}
!72 = !{!"_ZTS12ImGuiLogType", !7, i64 0}
!73 = !{!39, !11, i64 6744}
!74 = !{!39, !13, i64 5560}
!75 = !{!10, !14, i64 338}
!76 = !{i8 0, i8 2}
!77 = !{}
!78 = !{!10, !13, i64 604}
!79 = !{!10, !13, i64 612}
!80 = !{i64 0, i64 4, !81, i64 4, i64 4, !81, i64 8, i64 4, !81, i64 12, i64 4, !81}
!81 = !{!13, !13, i64 0}
!82 = !{!10, !13, i64 16}
!83 = !{!10, !13, i64 24}
!84 = !{!10, !13, i64 116}
!85 = !{!10, !13, i64 20}
!86 = !{!39, !13, i64 5648}
!87 = !{!39, !14, i64 7246}
!88 = !{!39, !14, i64 7247}
!89 = !{!39, !11, i64 8}
!90 = !{!10, !11, i64 152}


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