; LLVM IR from Eukky/TRender :: lib/imgui/imgui.ll (ZN5ImGui10EndMenuBarEv)

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

%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImVec2 = type { float, float }
%struct.ImGuiWindow = type { ptr, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, i8, i32, i32, i32, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImGuiWindowTempData, %class.ImVector.22, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, i32, float, %struct.ImGuiMenuColumns, %struct.ImGuiStorage, %class.ImVector.23, float, i32, ptr, %struct.ImDrawList, ptr, ptr, ptr, ptr, ptr, ptr, [2 x i32], [2 x %struct.ImRect], i32, i32, i32, i32, i32, i32 }
%struct.ImGuiWindowTempData = type { %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, float, float, float, i32, i32, i32, i32, %struct.ImRect, %struct.ImRect, i8, i8, i32, i32, i32, i32, i8, %struct.ImVec2, %class.ImVector, ptr, i32, i32, i32, float, float, %class.ImVector.20, %class.ImVector.16, %class.ImVector.16, %class.ImVector.21, [6 x i32], float, float, float, ptr }
%class.ImVector = type { i32, i32, ptr }
%class.ImVector.20 = type { i32, i32, ptr }
%class.ImVector.16 = type { i32, i32, ptr }
%class.ImVector.21 = type { i32, i32, ptr }
%class.ImVector.22 = type { i32, i32, ptr }
%struct.ImGuiMenuColumns = type { i32, float, float, float, [4 x float], [4 x float] }
%struct.ImGuiStorage = type { %class.ImVector.0 }
%class.ImVector.0 = type { i32, i32, ptr }
%class.ImVector.23 = type { i32, i32, ptr }
%struct.ImDrawList = type { %class.ImVector.6, %class.ImVector.7, %class.ImVector.8, i32, ptr, ptr, i32, ptr, ptr, %class.ImVector.9, %class.ImVector.10, %class.ImVector.11, i32, i32, %class.ImVector.12 }
%class.ImVector.6 = type { i32, i32, ptr }
%class.ImVector.7 = type { i32, i32, ptr }
%class.ImVector.8 = type { i32, i32, ptr }
%class.ImVector.9 = type { i32, i32, ptr }
%class.ImVector.10 = type { i32, i32, ptr }
%class.ImVector.11 = type { i32, i32, ptr }
%class.ImVector.12 = type { i32, i32, ptr }
%struct.ImGuiContext = type <{ i8, i8, [6 x i8], %struct.ImGuiIO, %struct.ImGuiStyle, ptr, float, float, %struct.ImDrawListSharedData, float, i32, i32, i32, %class.ImVector, %class.ImVector, %class.ImVector, %struct.ImGuiStorage, i32, [4 x i8], ptr, ptr, ptr, i32, i8, [3 x i8], i32, float, i32, i32, float, i8, i8, i8, i8, i8, i8, [2 x i8], i32, %struct.ImVec2, ptr, ptr, i32, i32, float, [4 x i8], ptr, %class.ImVector.1, %class.ImVector.2, %class.ImVector.3, %class.ImVector.4, %class.ImVector.4, %struct.ImGuiNextWindowData, i8, [3 x i8], i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.ImRect, i32, ptr, float, float, i8, [3 x i8], i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, i32, %struct.ImRect, i8, i8, [2 x i8], i32, i32, i32, i32, i32, %struct.ImGuiNavMoveResult, %struct.ImGuiNavMoveResult, %struct.ImGuiNavMoveResult, %struct.ImDrawData, %struct.ImDrawDataBuilder, float, [4 x i8], %struct.ImDrawList, i32, i8, [3 x i8], i32, i32, %struct.ImGuiPayload, %struct.ImRect, i32, i32, float, i32, i32, i32, %class.ImVector.13, [8 x i8], %struct.ImGuiTextEditState, %struct.ImFont, i32, i32, %struct.ImVec4, i8, [3 x i8], float, float, %struct.ImVec2, i32, %class.ImVector.14, %struct.ImVec2, %struct.ImVec2, i8, [3 x i8], float, %struct.ImGuiTextBuffer, %class.ImVector.17, %class.ImVector.18, i8, [7 x i8], ptr, %struct.ImGuiTextBuffer, i32, i32, [120 x float], i32, float, i32, i32, i32, [3073 x i8], [3 x i8] }>
%struct.ImGuiIO = type { i32, i32, %struct.ImVec2, float, float, ptr, ptr, float, float, float, [21 x i32], float, float, ptr, ptr, float, i8, ptr, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, %struct.ImVec2, [5 x i8], float, float, i8, i8, i8, i8, i8, [512 x i8], [17 x i16], [21 x float], i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, [5 x %struct.ImVec2], [5 x float], [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] }
%struct.ImGuiStyle = type { float, %struct.ImVec2, float, float, %struct.ImVec2, %struct.ImVec2, float, float, float, float, %struct.ImVec2, float, float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, float, float, float, float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, i8, i8, float, [42 x %struct.ImVec4] }
%struct.ImDrawListSharedData = type { %struct.ImVec2, ptr, float, float, %struct.ImVec4, [12 x %struct.ImVec2] }
%class.ImVector.1 = type { i32, i32, ptr }
%class.ImVector.2 = type { i32, i32, ptr }
%class.ImVector.3 = type { i32, i32, ptr }
%class.ImVector.4 = type { i32, i32, ptr }
%struct.ImGuiNextWindowData = type <{ i32, i32, i32, i32, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, [3 x i8], %struct.ImRect, ptr, ptr, float, %struct.ImVec2, [4 x i8] }>
%struct.ImGuiNavMoveResult = type <{ i32, [4 x i8], ptr, float, float, float, %struct.ImRect, [4 x i8] }>
%struct.ImDrawData = type <{ i8, [7 x i8], ptr, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, [4 x i8] }>
%struct.ImDrawDataBuilder = type { [2 x %class.ImVector.5] }
%class.ImVector.5 = type { i32, i32, ptr }
%struct.ImGuiPayload = type <{ ptr, i32, i32, i32, i32, [33 x i8], i8, i8, [5 x i8] }>
%class.ImVector.13 = type { i32, i32, ptr }
%struct.ImGuiTextEditState = type <{ i32, [4 x i8], %class.ImVector.7, %class.ImVector.14, %class.ImVector.14, i32, i32, i32, float, %"struct.ImGuiStb::STB_TexteditState", float, i8, i8, [6 x i8] }>
%"struct.ImGuiStb::STB_TexteditState" = type { i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, float, %"struct.ImGuiStb::StbUndoState" }
%"struct.ImGuiStb::StbUndoState" = type { [99 x %"struct.ImGuiStb::StbUndoRecord"], [999 x i16], i16, i16, i32, i32 }
%"struct.ImGuiStb::StbUndoRecord" = type { i32, i32, i32, i32 }
%struct.ImFont = type { float, float, %struct.ImVec2, %class.ImVector.15, %class.ImVector.16, %class.ImVector.7, ptr, float, i16, i16, ptr, ptr, float, float, i8, i32 }
%class.ImVector.15 = type { i32, i32, ptr }
%struct.ImVec4 = type { float, float, float, float }
%class.ImVector.14 = type { i32, i32, ptr }
%class.ImVector.17 = type { i32, i32, ptr }
%class.ImVector.18 = type { i32, i32, ptr }
%struct.ImGuiTextBuffer = type { %class.ImVector.14 }
%struct.ImGuiGroupData = type <{ %struct.ImVec2, %struct.ImVec2, float, float, float, float, float, i8, i8, i8, i8 }>

@GImGui = external dso_local global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.187 = external hidden unnamed_addr constant [41 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui10EndMenuBarEv = external hidden unnamed_addr constant [25 x i8], align 1
@.str.188 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.189 = external hidden unnamed_addr constant [28 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui20NavMoveRequestCancelEv() #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui11FocusWindowEP11ImGuiWindow(ptr noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN5ImGui16GetCurrentWindowEv() #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui11PopClipRectEv() #2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL28NavMoveRequestButNoResultYetv() #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui5PopIDEv() #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui8EndGroupEv() #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui10EndMenuBarEv() #5 {
  %1 = alloca ptr, align 8
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %struct.ImRect, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #6
  %6 = call noundef ptr @_ZN5ImGui16GetCurrentWindowEv()
  store ptr %6, ptr %1, align 8, !tbaa !5
  %7 = load ptr, ptr %1, align 8, !tbaa !5
  %8 = getelementptr inbounds %struct.ImGuiWindow, ptr %7, i32 0, i32 25
  %9 = load i8, ptr %8, align 1, !tbaa !9, !range !34, !noundef !35
  %10 = trunc i8 %9 to i1
  br i1 %10, label %11, label %12

11:                                               ; preds = %0
  store i32 1, ptr %2, align 4
  br label %158

12:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %13 = load ptr, ptr @GImGui, align 8, !tbaa !5
  store ptr %13, ptr %3, align 8, !tbaa !5
  %14 = call noundef zeroext i1 @_ZL28NavMoveRequestButNoResultYetv()
  br i1 %14, label %15, label %99

15:                                               ; preds = %12
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.ImGuiContext, ptr %16, i32 0, i32 89
  %18 = load i32, ptr %17, align 4, !tbaa !36
  %19 = icmp eq i32 %18, 0
  br i1 %19, label %25, label %20

20:                                               ; preds = %15
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.ImGuiContext, ptr %21, i32 0, i32 89
  %23 = load i32, ptr %22, align 4, !tbaa !36
  %24 = icmp eq i32 %23, 1
  br i1 %24, label %25, label %99

25:                                               ; preds = %20, %15
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.ImGuiContext, ptr %26, i32 0, i32 55
  %28 = load ptr, ptr %27, align 8, !tbaa !64
  %29 = getelementptr inbounds %struct.ImGuiWindow, ptr %28, i32 0, i32 2
  %30 = load i32, ptr %29, align 4, !tbaa !65
  %31 = and i32 %30, 268435456
  %32 = icmp ne i32 %31, 0
  br i1 %32, label %33, label %99

33:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.ImGuiContext, ptr %34, i32 0, i32 55
  %36 = load ptr, ptr %35, align 8, !tbaa !64
  store ptr %36, ptr %4, align 8, !tbaa !5
  br label %37

37:                                               ; preds = %52, %33
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.ImGuiWindow, ptr %38, i32 0, i32 59
  %40 = load ptr, ptr %39, align 8, !tbaa !66
  %41 = icmp ne ptr %40, null
  br i1 %41, label %42, label %50

42:                                               ; preds = %37
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.ImGuiWindow, ptr %43, i32 0, i32 59
  %45 = load ptr, ptr %44, align 8, !tbaa !66
  %46 = getelementptr inbounds %struct.ImGuiWindow, ptr %45, i32 0, i32 2
  %47 = load i32, ptr %46, align 4, !tbaa !65
  %48 = and i32 %47, 268435456
  %49 = icmp ne i32 %48, 0
  br label %50

50:                                               ; preds = %42, %37
  %51 = phi i1 [ false, %37 ], [ %49, %42 ]
  br i1 %51, label %52, label %56

52:                                               ; preds = %50
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.ImGuiWindow, ptr %53, i32 0, i32 59
  %55 = load ptr, ptr %54, align 8, !tbaa !66
  store ptr %55, ptr %4, align 8, !tbaa !5
  br label %37, !llvm.loop !67

56:                                               ; preds = %50
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.ImGuiWindow, ptr %57, i32 0, i32 59
  %59 = load ptr, ptr %58, align 8, !tbaa !66
  %60 = load ptr, ptr %1, align 8, !tbaa !5
  %61 = icmp eq ptr %59, %60
  br i1 %61, label %62, label %98

62:                                               ; preds = %56
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.ImGuiWindow, ptr %63, i32 0, i32 43
  %65 = getelementptr inbounds %struct.ImGuiWindowTempData, ptr %64, i32 0, i32 26
  %66 = load i32, ptr %65, align 4, !tbaa !69
  %67 = icmp eq i32 %66, 1
  br i1 %67, label %68, label %98

68:                                               ; preds = %62
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.ImGuiContext, ptr %69, i32 0, i32 88
  %71 = load i32, ptr %70, align 8, !tbaa !70
  %72 = icmp eq i32 %71, 0
  br i1 %72, label %73, label %98

73:                                               ; preds = %68
  %74 = load ptr, ptr %1, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.ImGuiWindow, ptr %74, i32 0, i32 43
  %76 = getelementptr inbounds %struct.ImGuiWindowTempData, ptr %75, i32 0, i32 20
  %77 = load i32, ptr %76, align 4, !tbaa !71
  %78 = and i32 %77, 2
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %80, label %81

80:                                               ; preds = %73
  br label %83

81:                                               ; preds = %73
  call void @__assert_fail(ptr noundef @.str.187, ptr noundef @.str.3, i32 noundef 11758, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui10EndMenuBarEv) #7
  unreachable

82:                                               ; No predecessors!
  br label %83

83:                                               ; preds = %82, %80
  %84 = load ptr, ptr %1, align 8, !tbaa !5
  call void @_ZN5ImGui11FocusWindowEP11ImGuiWindow(ptr noundef %84)
  %85 = load ptr, ptr %1, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.ImGuiWindow, ptr %85, i32 0, i32 65
  %87 = getelementptr inbounds [2 x i32], ptr %86, i64 0, i64 1
  %88 = load i32, ptr %87, align 4, !tbaa !72
  %89 = load ptr, ptr %1, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.ImGuiWindow, ptr %89, i32 0, i32 66
  %91 = getelementptr inbounds [2 x %struct.ImRect], ptr %90, i64 0, i64 1
  call void @_ZL19SetNavIDWithRectReljiRK6ImRect(i32 noundef %88, i32 noundef 1, ptr noundef nonnull align 4 dereferenceable(16) %91)
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.ImGuiContext, ptr %92, i32 0, i32 72
  store i32 1, ptr %93, align 4, !tbaa !73
  %94 = load ptr, ptr %3, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.ImGuiContext, ptr %94, i32 0, i32 76
  store i8 1, ptr %95, align 2, !tbaa !74
  %96 = load ptr, ptr %3, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.ImGuiContext, ptr %96, i32 0, i32 88
  store i32 1, ptr %97, align 8, !tbaa !70
  call void @_ZN5ImGui20NavMoveRequestCancelEv()
  br label %98

98:                                               ; preds = %83, %68, %62, %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  br label %99

99:                                               ; preds = %98, %25, %20, %12
  %100 = load ptr, ptr %1, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.ImGuiWindow, ptr %100, i32 0, i32 2
  %102 = load i32, ptr %101, align 4, !tbaa !65
  %103 = and i32 %102, 1024
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %106

105:                                              ; preds = %99
  br label %108

106:                                              ; preds = %99
  call void @__assert_fail(ptr noundef @.str.188, ptr noundef @.str.3, i32 noundef 11768, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui10EndMenuBarEv) #7
  unreachable

107:                                              ; No predecessors!
  br label %108

108:                                              ; preds = %107, %105
  %109 = load ptr, ptr %1, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.ImGuiWindow, ptr %109, i32 0, i32 43
  %111 = getelementptr inbounds %struct.ImGuiWindowTempData, ptr %110, i32 0, i32 21
  %112 = load i8, ptr %111, align 8, !tbaa !75, !range !34, !noundef !35
  %113 = trunc i8 %112 to i1
  br i1 %113, label %114, label %115

114:                                              ; preds = %108
  br label %117

115:                                              ; preds = %108
  call void @__assert_fail(ptr noundef @.str.189, ptr noundef @.str.3, i32 noundef 11769, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui10EndMenuBarEv) #7
  unreachable

116:                                              ; No predecessors!
  br label %117

117:                                              ; preds = %116, %114
  call void @_ZN5ImGui11PopClipRectEv()
  call void @_ZN5ImGui5PopIDEv()
  %118 = load ptr, ptr %1, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.ImGuiWindow, ptr %118, i32 0, i32 43
  %120 = getelementptr inbounds %struct.ImGuiWindowTempData, ptr %119, i32 0, i32 0
  %121 = getelementptr inbounds %struct.ImVec2, ptr %120, i32 0, i32 0
  %122 = load float, ptr %121, align 8, !tbaa !76
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #6
  %123 = load ptr, ptr %1, align 8, !tbaa !5
  %124 = call { <2 x float>, <2 x float> } @_ZNK11ImGuiWindow11MenuBarRectEv(ptr noundef nonnull align 8 dereferenceable(976) %123)
  %125 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %5, i32 0, i32 0
  %126 = extractvalue { <2 x float>, <2 x float> } %124, 0
  store <2 x float> %126, ptr %125, align 4
  %127 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %5, i32 0, i32 1
  %128 = extractvalue { <2 x float>, <2 x float> } %124, 1
  store <2 x float> %128, ptr %127, align 4
  %129 = getelementptr inbounds %struct.ImRect, ptr %5, i32 0, i32 0
  %130 = getelementptr inbounds %struct.ImVec2, ptr %129, i32 0, i32 0
  %131 = load float, ptr %130, align 4, !tbaa !77
  %132 = fsub float %122, %131
  %133 = load ptr, ptr %1, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.ImGuiWindow, ptr %133, i32 0, i32 43
  %135 = getelementptr inbounds %struct.ImGuiWindowTempData, ptr %134, i32 0, i32 22
  %136 = getelementptr inbounds %struct.ImVec2, ptr %135, i32 0, i32 0
  store float %132, ptr %136, align 4, !tbaa !78
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #6
  %137 = load ptr, ptr %1, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.ImGuiWindow, ptr %137, i32 0, i32 43
  %139 = getelementptr inbounds %struct.ImGuiWindowTempData, ptr %138, i32 0, i32 33
  %140 = call noundef nonnull align 4 dereferenceable(39) ptr @_ZN8ImVectorI14ImGuiGroupDataE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %139)
  %141 = getelementptr inbounds %struct.ImGuiGroupData, ptr %140, i32 0, i32 9
  store i8 0, ptr %141, align 2, !tbaa !79
  call void @_ZN5ImGui8EndGroupEv()
  %142 = load ptr, ptr %1, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.ImGuiWindow, ptr %142, i32 0, i32 43
  %144 = getelementptr inbounds %struct.ImGuiWindowTempData, ptr %143, i32 0, i32 25
  store i32 0, ptr %144, align 8, !tbaa !81
  %145 = load ptr, ptr %1, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.ImGuiWindow, ptr %145, i32 0, i32 43
  %147 = getelementptr inbounds %struct.ImGuiWindowTempData, ptr %146, i32 0, i32 17
  %148 = load i32, ptr %147, align 8, !tbaa !82
  %149 = add nsw i32 %148, -1
  store i32 %149, ptr %147, align 8, !tbaa !82
  %150 = load ptr, ptr %1, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.ImGuiWindow, ptr %150, i32 0, i32 43
  %152 = getelementptr inbounds %struct.ImGuiWindowTempData, ptr %151, i32 0, i32 18
  %153 = load i32, ptr %152, align 4, !tbaa !83
  %154 = ashr i32 %153, 1
  store i32 %154, ptr %152, align 4, !tbaa !83
  %155 = load ptr, ptr %1, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.ImGuiWindow, ptr %155, i32 0, i32 43
  %157 = getelementptr inbounds %struct.ImGuiWindowTempData, ptr %156, i32 0, i32 21
  store i8 0, ptr %157, align 8, !tbaa !75
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  store i32 0, ptr %2, align 4
  br label %158

158:                                              ; preds = %117, %11
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #6
  %159 = load i32, ptr %2, align 4
  switch i32 %159, label %161 [
    i32 0, label %160
    i32 1, label %160
  ]

160:                                              ; preds = %158, %158
  ret void

161:                                              ; preds = %158
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL19SetNavIDWithRectReljiRK6ImRect(i32 noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(16)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(39) ptr @_ZN8ImVectorI14ImGuiGroupDataE4backEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !14, i64 127}
!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, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !14, i64 120, !14, i64 121, !14, i64 122, !14, i64 123, !14, i64 124, !14, i64 125, !14, i64 126, !14, i64 127, !14, i64 128, !14, i64 129, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144, !11, i64 148, !11, i64 152, !14, i64 156, !11, i64 160, !11, i64 164, !11, i64 168, !11, i64 172, !11, i64 176, !11, i64 180, !12, i64 184, !12, i64 192, !15, i64 200, !21, i64 496, !16, i64 512, !16, i64 528, !16, i64 544, !16, i64 560, !16, i64 576, !11, i64 592, !13, i64 596, !22, i64 600, !23, i64 648, !25, i64 664, !13, i64 680, !11, i64 684, !6, i64 688, !26, i64 696, !6, i64 864, !6, i64 872, !6, i64 880, !6, i64 888, !6, i64 896, !6, i64 904, !7, i64 912, !7, i64 920, !11, i64 952, !11, i64 956, !11, i64 960, !11, i64 964, !11, i64 968, !11, i64 972}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS6ImVec2", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTS19ImGuiWindowTempData", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44, !13, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !16, i64 68, !16, i64 84, !14, i64 100, !14, i64 101, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !14, i64 120, !12, i64 124, !17, i64 136, !6, i64 152, !11, i64 160, !11, i64 164, !11, i64 168, !13, i64 172, !13, i64 176, !18, i64 184, !19, i64 200, !19, i64 216, !20, i64 232, !7, i64 248, !13, i64 272, !13, i64 276, !13, i64 280, !6, i64 288}
!16 = !{!"_ZTS6ImRect", !12, i64 0, !12, i64 8}
!17 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !11, i64 0, !11, i64 4, !6, i64 8}
!18 = !{!"_ZTS8ImVectorIiE", !11, i64 0, !11, i64 4, !6, i64 8}
!19 = !{!"_ZTS8ImVectorIfE", !11, i64 0, !11, i64 4, !6, i64 8}
!20 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !11, i64 0, !11, i64 4, !6, i64 8}
!21 = !{!"_ZTS8ImVectorIjE", !11, i64 0, !11, i64 4, !6, i64 8}
!22 = !{!"_ZTS16ImGuiMenuColumns", !11, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !7, i64 16, !7, i64 32}
!23 = !{!"_ZTS12ImGuiStorage", !24, i64 0}
!24 = !{!"_ZTS8ImVectorIN12ImGuiStorage4PairEE", !11, i64 0, !11, i64 4, !6, i64 8}
!25 = !{!"_ZTS8ImVectorI15ImGuiColumnsSetE", !11, i64 0, !11, i64 4, !6, i64 8}
!26 = !{!"_ZTS10ImDrawList", !27, i64 0, !28, i64 16, !29, i64 32, !11, i64 48, !6, i64 56, !6, i64 64, !11, i64 72, !6, i64 80, !6, i64 88, !30, i64 96, !31, i64 112, !32, i64 128, !11, i64 144, !11, i64 148, !33, i64 152}
!27 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !11, i64 0, !11, i64 4, !6, i64 8}
!28 = !{!"_ZTS8ImVectorItE", !11, i64 0, !11, i64 4, !6, i64 8}
!29 = !{!"_ZTS8ImVectorI10ImDrawVertE", !11, i64 0, !11, i64 4, !6, i64 8}
!30 = !{!"_ZTS8ImVectorI6ImVec4E", !11, i64 0, !11, i64 4, !6, i64 8}
!31 = !{!"_ZTS8ImVectorIPvE", !11, i64 0, !11, i64 4, !6, i64 8}
!32 = !{!"_ZTS8ImVectorI6ImVec2E", !11, i64 0, !11, i64 4, !6, i64 8}
!33 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !11, i64 0, !11, i64 4, !6, i64 8}
!34 = !{i8 0, i8 2}
!35 = !{}
!36 = !{!37, !11, i64 6916}
!37 = !{!"_ZTS12ImGuiContext", !14, i64 0, !14, i64 1, !38, i64 8, !39, i64 5408, !6, i64 6232, !13, i64 6240, !13, i64 6244, !40, i64 6248, !13, i64 6384, !11, i64 6388, !11, i64 6392, !11, i64 6396, !17, i64 6400, !17, i64 6416, !17, i64 6432, !23, i64 6448, !11, i64 6464, !6, i64 6472, !6, i64 6480, !6, i64 6488, !11, i64 6496, !14, i64 6500, !11, i64 6504, !13, i64 6508, !11, i64 6512, !11, i64 6516, !13, i64 6520, !14, i64 6524, !14, i64 6525, !14, i64 6526, !14, i64 6527, !14, i64 6528, !14, i64 6529, !11, i64 6532, !12, i64 6536, !6, i64 6544, !6, i64 6552, !42, i64 6560, !11, i64 6564, !13, i64 6568, !6, i64 6576, !43, i64 6584, !44, i64 6600, !45, i64 6616, !46, i64 6632, !46, i64 6648, !47, i64 6664, !14, i64 6776, !11, i64 6780, !6, i64 6784, !11, i64 6792, !11, i64 6796, !11, i64 6800, !11, i64 6804, !11, i64 6808, !11, i64 6812, !11, i64 6816, !11, i64 6820, !42, i64 6824, !16, i64 6828, !11, i64 6844, !6, i64 6848, !13, i64 6856, !13, i64 6860, !14, i64 6864, !11, i64 6868, !11, i64 6872, !14, i64 6876, !14, i64 6877, !14, i64 6878, !14, i64 6879, !14, i64 6880, !14, i64 6881, !14, i64 6882, !11, i64 6884, !16, i64 6888, !14, i64 6904, !14, i64 6905, !11, i64 6908, !48, i64 6912, !11, i64 6916, !11, i64 6920, !11, i64 6924, !49, i64 6928, !49, i64 6976, !49, i64 7024, !50, i64 7072, !51, i64 7120, !13, i64 7152, !26, i64 7160, !11, i64 7328, !14, i64 7332, !11, i64 7336, !11, i64 7340, !52, i64 7344, !16, i64 7408, !11, i64 7424, !11, i64 7428, !13, i64 7432, !11, i64 7436, !11, i64 7440, !11, i64 7444, !53, i64 7448, !7, i64 7464, !54, i64 7472, !59, i64 11176, !11, i64 11288, !11, i64 11292, !41, i64 11296, !14, i64 11312, !13, i64 11316, !13, i64 11320, !12, i64 11324, !11, i64 11332, !55, i64 11336, !12, i64 11352, !12, i64 11360, !14, i64 11368, !13, i64 11372, !61, i64 11376, !62, i64 11392, !63, i64 11408, !14, i64 11424, !6, i64 11432, !61, i64 11440, !11, i64 11456, !11, i64 11460, !7, i64 11464, !11, i64 11944, !13, i64 11948, !11, i64 11952, !11, i64 11956, !11, i64 11960, !7, i64 11964}
!38 = !{!"_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 136, !13, i64 140, !6, i64 144, !6, i64 152, !13, i64 160, !14, i64 164, !6, i64 168, !12, i64 176, !12, i64 184, !12, i64 192, !14, i64 200, !14, i64 201, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !12, i64 256, !7, i64 264, !13, i64 272, !13, i64 276, !14, i64 280, !14, i64 281, !14, i64 282, !14, i64 283, !14, i64 284, !7, i64 285, !7, i64 798, !7, i64 832, !14, i64 916, !14, i64 917, !14, i64 918, !14, i64 919, !14, i64 920, !14, i64 921, !14, i64 922, !13, i64 924, !11, i64 928, !11, i64 932, !11, i64 936, !12, i64 940, !12, i64 948, !7, i64 956, !7, i64 996, !7, i64 1016, !7, i64 1021, !7, i64 1026, !7, i64 1031, !7, i64 1036, !7, i64 1056, !7, i64 1076, !7, i64 1116, !7, i64 1136, !7, i64 3184, !7, i64 5232, !7, i64 5316}
!39 = !{!"_ZTS10ImGuiStyle", !13, i64 0, !12, i64 4, !13, i64 12, !13, i64 16, !12, i64 20, !12, i64 28, !13, i64 36, !13, i64 40, !13, i64 44, !13, i64 48, !12, i64 52, !13, i64 60, !13, i64 64, !12, i64 68, !12, i64 76, !12, i64 84, !13, i64 92, !13, i64 96, !13, i64 100, !13, i64 104, !13, i64 108, !13, i64 112, !12, i64 116, !12, i64 124, !12, i64 132, !13, i64 140, !14, i64 144, !14, i64 145, !13, i64 148, !7, i64 152}
!40 = !{!"_ZTS20ImDrawListSharedData", !12, i64 0, !6, i64 8, !13, i64 16, !13, i64 20, !41, i64 24, !7, i64 40}
!41 = !{!"_ZTS6ImVec4", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12}
!42 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!43 = !{!"_ZTS8ImVectorI11ImGuiColModE", !11, i64 0, !11, i64 4, !6, i64 8}
!44 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !11, i64 0, !11, i64 4, !6, i64 8}
!45 = !{!"_ZTS8ImVectorIP6ImFontE", !11, i64 0, !11, i64 4, !6, i64 8}
!46 = !{!"_ZTS8ImVectorI13ImGuiPopupRefE", !11, i64 0, !11, i64 4, !6, i64 8}
!47 = !{!"_ZTS19ImGuiNextWindowData", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !12, i64 28, !12, i64 36, !12, i64 44, !12, i64 52, !14, i64 60, !16, i64 64, !6, i64 80, !6, i64 88, !13, i64 96, !12, i64 100}
!48 = !{!"_ZTS15ImGuiNavForward", !7, i64 0}
!49 = !{!"_ZTS18ImGuiNavMoveResult", !11, i64 0, !6, i64 8, !13, i64 16, !13, i64 20, !13, i64 24, !16, i64 28}
!50 = !{!"_ZTS10ImDrawData", !14, i64 0, !6, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !12, i64 28, !12, i64 36}
!51 = !{!"_ZTS17ImDrawDataBuilder", !7, i64 0}
!52 = !{!"_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}
!53 = !{!"_ZTS8ImVectorIhE", !11, i64 0, !11, i64 4, !6, i64 8}
!54 = !{!"_ZTS18ImGuiTextEditState", !11, i64 0, !28, i64 8, !55, i64 24, !55, i64 40, !11, i64 56, !11, i64 60, !11, i64 64, !13, i64 68, !56, i64 72, !13, i64 3692, !14, i64 3696, !14, i64 3697}
!55 = !{!"_ZTS8ImVectorIcE", !11, i64 0, !11, i64 4, !6, i64 8}
!56 = !{!"_ZTSN8ImGuiStb17STB_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, !57, i64 24}
!57 = !{!"_ZTSN8ImGuiStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !58, i64 3582, !58, i64 3584, !11, i64 3588, !11, i64 3592}
!58 = !{!"short", !7, i64 0}
!59 = !{!"_ZTS6ImFont", !13, i64 0, !13, i64 4, !12, i64 8, !60, i64 16, !19, i64 32, !28, i64 48, !6, i64 64, !13, i64 72, !58, i64 76, !58, i64 78, !6, i64 80, !6, i64 88, !13, i64 96, !13, i64 100, !14, i64 104, !11, i64 108}
!60 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !11, i64 0, !11, i64 4, !6, i64 8}
!61 = !{!"_ZTS15ImGuiTextBuffer", !55, i64 0}
!62 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !11, i64 0, !11, i64 4, !6, i64 8}
!63 = !{!"_ZTS8ImVectorI19ImGuiWindowSettingsE", !11, i64 0, !11, i64 4, !6, i64 8}
!64 = !{!37, !6, i64 6784}
!65 = !{!10, !11, i64 12}
!66 = !{!10, !6, i64 864}
!67 = distinct !{!67, !68}
!68 = !{!"llvm.loop.mustprogress"}
!69 = !{!10, !11, i64 364}
!70 = !{!37, !48, i64 6912}
!71 = !{!10, !11, i64 316}
!72 = !{!11, !11, i64 0}
!73 = !{!37, !11, i64 6868}
!74 = !{!37, !14, i64 6878}
!75 = !{!10, !14, i64 320}
!76 = !{!10, !13, i64 200}
!77 = !{!16, !13, i64 0}
!78 = !{!10, !13, i64 324}
!79 = !{!80, !14, i64 38}
!80 = !{!"_ZTS14ImGuiGroupData", !12, i64 0, !12, i64 8, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !14, i64 36, !14, i64 37, !14, i64 38}
!81 = !{!10, !11, i64 360}
!82 = !{!10, !11, i64 304}
!83 = !{!10, !11, i64 308}


; 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"

@GImGui = external dso_local local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.187 = external hidden unnamed_addr constant [41 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui10EndMenuBarEv = external hidden unnamed_addr constant [25 x i8], align 1
@.str.188 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.189 = external hidden unnamed_addr constant [28 x i8], align 1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui20NavMoveRequestCancelEv() local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui11FocusWindowEP11ImGuiWindow(ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN5ImGui16GetCurrentWindowEv() local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui11PopClipRectEv() local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL28NavMoveRequestButNoResultYetv() local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui5PopIDEv() local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui8EndGroupEv() local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui10EndMenuBarEv() local_unnamed_addr #4 {
  %1 = tail call noundef ptr @_ZN5ImGui16GetCurrentWindowEv()
  %2 = getelementptr inbounds i8, ptr %1, i64 127
  %3 = load i8, ptr %2, align 1, !tbaa !5, !range !33, !noundef !34
  %4 = trunc nuw i8 %3 to i1
  br i1 %4, label %70, label %5

5:                                                ; preds = %0
  %6 = load ptr, ptr @GImGui, align 8, !tbaa !35
  %7 = tail call noundef zeroext i1 @_ZL28NavMoveRequestButNoResultYetv()
  br i1 %7, label %8, label %43

8:                                                ; preds = %5
  %9 = getelementptr inbounds i8, ptr %6, i64 6916
  %10 = load i32, ptr %9, align 4, !tbaa !36
  %switch = icmp ult i32 %10, 2
  br i1 %switch, label %11, label %43

11:                                               ; preds = %8
  %12 = getelementptr inbounds i8, ptr %6, i64 6784
  %13 = load ptr, ptr %12, align 8, !tbaa !64
  %14 = getelementptr inbounds i8, ptr %13, i64 12
  %15 = load i32, ptr %14, align 4, !tbaa !65
  %16 = and i32 %15, 268435456
  %.not = icmp eq i32 %16, 0
  br i1 %.not, label %43, label %.preheader

.preheader:                                       ; preds = %11, %19
  %.0 = phi ptr [ %18, %19 ], [ %13, %11 ]
  %17 = getelementptr inbounds i8, ptr %.0, i64 864
  %18 = load ptr, ptr %17, align 8, !tbaa !66
  %.not32 = icmp eq ptr %18, null
  br i1 %.not32, label %.critedge, label %19

19:                                               ; preds = %.preheader
  %20 = getelementptr inbounds i8, ptr %18, i64 12
  %21 = load i32, ptr %20, align 4, !tbaa !65
  %22 = and i32 %21, 268435456
  %.not33 = icmp eq i32 %22, 0
  br i1 %.not33, label %.critedge, label %.preheader, !llvm.loop !67

.critedge:                                        ; preds = %.preheader, %19
  %23 = icmp eq ptr %18, %1
  br i1 %23, label %24, label %43

24:                                               ; preds = %.critedge
  %25 = getelementptr inbounds i8, ptr %.0, i64 364
  %26 = load i32, ptr %25, align 4, !tbaa !69
  %27 = icmp eq i32 %26, 1
  br i1 %27, label %28, label %43

28:                                               ; preds = %24
  %29 = getelementptr inbounds i8, ptr %6, i64 6912
  %30 = load i32, ptr %29, align 8, !tbaa !70
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %32, label %43

32:                                               ; preds = %28
  %33 = getelementptr inbounds i8, ptr %1, i64 316
  %34 = load i32, ptr %33, align 4, !tbaa !71
  %35 = and i32 %34, 2
  %.not34 = icmp eq i32 %35, 0
  br i1 %.not34, label %36, label %37

36:                                               ; preds = %32
  tail call void @__assert_fail(ptr noundef nonnull @.str.187, ptr noundef nonnull @.str.3, i32 noundef 11758, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui10EndMenuBarEv) #5
  unreachable

37:                                               ; preds = %32
  tail call void @_ZN5ImGui11FocusWindowEP11ImGuiWindow(ptr noundef nonnull %1)
  %38 = getelementptr inbounds i8, ptr %1, i64 916
  %39 = load i32, ptr %38, align 4, !tbaa !72
  %40 = getelementptr inbounds i8, ptr %1, i64 936
  tail call void @_ZL19SetNavIDWithRectReljiRK6ImRect(i32 noundef %39, i32 noundef 1, ptr noundef nonnull align 4 dereferenceable(16) %40)
  %41 = getelementptr inbounds i8, ptr %6, i64 6868
  store i32 1, ptr %41, align 4, !tbaa !73
  %42 = getelementptr inbounds i8, ptr %6, i64 6878
  store i8 1, ptr %42, align 2, !tbaa !74
  store i32 1, ptr %29, align 8, !tbaa !70
  tail call void @_ZN5ImGui20NavMoveRequestCancelEv()
  br label %43

43:                                               ; preds = %8, %.critedge, %24, %28, %37, %11, %5
  %44 = getelementptr inbounds i8, ptr %1, i64 12
  %45 = load i32, ptr %44, align 4, !tbaa !65
  %46 = and i32 %45, 1024
  %.not35 = icmp eq i32 %46, 0
  br i1 %.not35, label %47, label %48

47:                                               ; preds = %43
  tail call void @__assert_fail(ptr noundef nonnull @.str.188, ptr noundef nonnull @.str.3, i32 noundef 11768, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui10EndMenuBarEv) #5
  unreachable

48:                                               ; preds = %43
  %49 = getelementptr inbounds i8, ptr %1, i64 320
  %50 = load i8, ptr %49, align 8, !tbaa !75, !range !33, !noundef !34
  %51 = trunc nuw i8 %50 to i1
  br i1 %51, label %53, label %52

52:                                               ; preds = %48
  tail call void @__assert_fail(ptr noundef nonnull @.str.189, ptr noundef nonnull @.str.3, i32 noundef 11769, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui10EndMenuBarEv) #5
  unreachable

53:                                               ; preds = %48
  %54 = getelementptr inbounds i8, ptr %1, i64 200
  tail call void @_ZN5ImGui11PopClipRectEv()
  tail call void @_ZN5ImGui5PopIDEv()
  %55 = load float, ptr %54, align 8, !tbaa !76
  %56 = tail call { <2 x float>, <2 x float> } @_ZNK11ImGuiWindow11MenuBarRectEv(ptr noundef nonnull align 8 dereferenceable(976) %1)
  %57 = extractvalue { <2 x float>, <2 x float> } %56, 0
  %.sroa.0.0.vec.extract = extractelement <2 x float> %57, i64 0
  %58 = fsub float %55, %.sroa.0.0.vec.extract
  %59 = getelementptr inbounds i8, ptr %1, i64 324
  store float %58, ptr %59, align 4, !tbaa !77
  %60 = getelementptr inbounds i8, ptr %1, i64 432
  %61 = tail call noundef nonnull align 4 dereferenceable(39) ptr @_ZN8ImVectorI14ImGuiGroupDataE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %60)
  %62 = getelementptr inbounds i8, ptr %61, i64 38
  store i8 0, ptr %62, align 2, !tbaa !78
  tail call void @_ZN5ImGui8EndGroupEv()
  %63 = getelementptr inbounds i8, ptr %1, i64 360
  store i32 0, ptr %63, align 8, !tbaa !80
  %64 = getelementptr inbounds i8, ptr %1, i64 304
  %65 = load i32, ptr %64, align 8, !tbaa !81
  %66 = add nsw i32 %65, -1
  store i32 %66, ptr %64, align 8, !tbaa !81
  %67 = getelementptr inbounds i8, ptr %1, i64 308
  %68 = load i32, ptr %67, align 4, !tbaa !82
  %69 = ashr i32 %68, 1
  store i32 %69, ptr %67, align 4, !tbaa !82
  store i8 0, ptr %49, align 8, !tbaa !75
  br label %70

70:                                               ; preds = %0, %53
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL19SetNavIDWithRectReljiRK6ImRect(i32 noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(39) ptr @_ZN8ImVectorI14ImGuiGroupDataE4backEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

attributes #0 = { 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 #1 = { 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 #2 = { 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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, !13, i64 127}
!6 = !{!"_ZTS11ImGuiWindow", !7, i64 0, !10, i64 8, !10, i64 12, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !12, i64 72, !12, i64 76, !10, i64 80, !10, i64 84, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !13, i64 120, !13, i64 121, !13, i64 122, !13, i64 123, !13, i64 124, !13, i64 125, !13, i64 126, !13, i64 127, !13, i64 128, !13, i64 129, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !13, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !10, i64 172, !10, i64 176, !10, i64 180, !11, i64 184, !11, i64 192, !14, i64 200, !20, i64 496, !15, i64 512, !15, i64 528, !15, i64 544, !15, i64 560, !15, i64 576, !10, i64 592, !12, i64 596, !21, i64 600, !22, i64 648, !24, i64 664, !12, i64 680, !10, i64 684, !7, i64 688, !25, i64 696, !7, i64 864, !7, i64 872, !7, i64 880, !7, i64 888, !7, i64 896, !7, i64 904, !8, i64 912, !8, i64 920, !10, i64 952, !10, i64 956, !10, i64 960, !10, i64 964, !10, i64 968, !10, i64 972}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTS6ImVec2", !12, i64 0, !12, i64 4}
!12 = !{!"float", !8, i64 0}
!13 = !{!"bool", !8, i64 0}
!14 = !{!"_ZTS19ImGuiWindowTempData", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !15, i64 68, !15, i64 84, !13, i64 100, !13, i64 101, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !13, i64 120, !11, i64 124, !16, i64 136, !7, i64 152, !10, i64 160, !10, i64 164, !10, i64 168, !12, i64 172, !12, i64 176, !17, i64 184, !18, i64 200, !18, i64 216, !19, i64 232, !8, i64 248, !12, i64 272, !12, i64 276, !12, i64 280, !7, i64 288}
!15 = !{!"_ZTS6ImRect", !11, i64 0, !11, i64 8}
!16 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !10, i64 0, !10, i64 4, !7, i64 8}
!17 = !{!"_ZTS8ImVectorIiE", !10, i64 0, !10, i64 4, !7, i64 8}
!18 = !{!"_ZTS8ImVectorIfE", !10, i64 0, !10, i64 4, !7, i64 8}
!19 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !10, i64 0, !10, i64 4, !7, i64 8}
!20 = !{!"_ZTS8ImVectorIjE", !10, i64 0, !10, i64 4, !7, i64 8}
!21 = !{!"_ZTS16ImGuiMenuColumns", !10, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !8, i64 16, !8, i64 32}
!22 = !{!"_ZTS12ImGuiStorage", !23, i64 0}
!23 = !{!"_ZTS8ImVectorIN12ImGuiStorage4PairEE", !10, i64 0, !10, i64 4, !7, i64 8}
!24 = !{!"_ZTS8ImVectorI15ImGuiColumnsSetE", !10, i64 0, !10, i64 4, !7, i64 8}
!25 = !{!"_ZTS10ImDrawList", !26, i64 0, !27, i64 16, !28, i64 32, !10, i64 48, !7, i64 56, !7, i64 64, !10, i64 72, !7, i64 80, !7, i64 88, !29, i64 96, !30, i64 112, !31, i64 128, !10, i64 144, !10, i64 148, !32, i64 152}
!26 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !10, i64 0, !10, i64 4, !7, i64 8}
!27 = !{!"_ZTS8ImVectorItE", !10, i64 0, !10, i64 4, !7, i64 8}
!28 = !{!"_ZTS8ImVectorI10ImDrawVertE", !10, i64 0, !10, i64 4, !7, i64 8}
!29 = !{!"_ZTS8ImVectorI6ImVec4E", !10, i64 0, !10, i64 4, !7, i64 8}
!30 = !{!"_ZTS8ImVectorIPvE", !10, i64 0, !10, i64 4, !7, i64 8}
!31 = !{!"_ZTS8ImVectorI6ImVec2E", !10, i64 0, !10, i64 4, !7, i64 8}
!32 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !10, i64 0, !10, i64 4, !7, i64 8}
!33 = !{i8 0, i8 2}
!34 = !{}
!35 = !{!7, !7, i64 0}
!36 = !{!37, !10, i64 6916}
!37 = !{!"_ZTS12ImGuiContext", !13, i64 0, !13, i64 1, !38, i64 8, !39, i64 5408, !7, i64 6232, !12, i64 6240, !12, i64 6244, !40, i64 6248, !12, i64 6384, !10, i64 6388, !10, i64 6392, !10, i64 6396, !16, i64 6400, !16, i64 6416, !16, i64 6432, !22, i64 6448, !10, i64 6464, !7, i64 6472, !7, i64 6480, !7, i64 6488, !10, i64 6496, !13, i64 6500, !10, i64 6504, !12, i64 6508, !10, i64 6512, !10, i64 6516, !12, i64 6520, !13, i64 6524, !13, i64 6525, !13, i64 6526, !13, i64 6527, !13, i64 6528, !13, i64 6529, !10, i64 6532, !11, i64 6536, !7, i64 6544, !7, i64 6552, !42, i64 6560, !10, i64 6564, !12, i64 6568, !7, i64 6576, !43, i64 6584, !44, i64 6600, !45, i64 6616, !46, i64 6632, !46, i64 6648, !47, i64 6664, !13, i64 6776, !10, i64 6780, !7, i64 6784, !10, i64 6792, !10, i64 6796, !10, i64 6800, !10, i64 6804, !10, i64 6808, !10, i64 6812, !10, i64 6816, !10, i64 6820, !42, i64 6824, !15, i64 6828, !10, i64 6844, !7, i64 6848, !12, i64 6856, !12, i64 6860, !13, i64 6864, !10, i64 6868, !10, i64 6872, !13, i64 6876, !13, i64 6877, !13, i64 6878, !13, i64 6879, !13, i64 6880, !13, i64 6881, !13, i64 6882, !10, i64 6884, !15, i64 6888, !13, i64 6904, !13, i64 6905, !10, i64 6908, !48, i64 6912, !10, i64 6916, !10, i64 6920, !10, i64 6924, !49, i64 6928, !49, i64 6976, !49, i64 7024, !50, i64 7072, !51, i64 7120, !12, i64 7152, !25, i64 7160, !10, i64 7328, !13, i64 7332, !10, i64 7336, !10, i64 7340, !52, i64 7344, !15, i64 7408, !10, i64 7424, !10, i64 7428, !12, i64 7432, !10, i64 7436, !10, i64 7440, !10, i64 7444, !53, i64 7448, !8, i64 7464, !54, i64 7472, !59, i64 11176, !10, i64 11288, !10, i64 11292, !41, i64 11296, !13, i64 11312, !12, i64 11316, !12, i64 11320, !11, i64 11324, !10, i64 11332, !55, i64 11336, !11, i64 11352, !11, i64 11360, !13, i64 11368, !12, i64 11372, !61, i64 11376, !62, i64 11392, !63, i64 11408, !13, i64 11424, !7, i64 11432, !61, i64 11440, !10, i64 11456, !10, i64 11460, !8, i64 11464, !10, i64 11944, !12, i64 11948, !10, i64 11952, !10, i64 11956, !10, i64 11960, !8, i64 11964}
!38 = !{!"_ZTS7ImGuiIO", !10, i64 0, !10, i64 4, !11, i64 8, !12, i64 16, !12, i64 20, !7, i64 24, !7, i64 32, !12, i64 40, !12, i64 44, !12, i64 48, !8, i64 52, !12, i64 136, !12, i64 140, !7, i64 144, !7, i64 152, !12, i64 160, !13, i64 164, !7, i64 168, !11, i64 176, !11, i64 184, !11, i64 192, !13, i64 200, !13, i64 201, !7, i64 208, !7, i64 216, !7, i64 224, !7, i64 232, !7, i64 240, !7, i64 248, !11, i64 256, !8, i64 264, !12, i64 272, !12, i64 276, !13, i64 280, !13, i64 281, !13, i64 282, !13, i64 283, !13, i64 284, !8, i64 285, !8, i64 798, !8, i64 832, !13, i64 916, !13, i64 917, !13, i64 918, !13, i64 919, !13, i64 920, !13, i64 921, !13, i64 922, !12, i64 924, !10, i64 928, !10, i64 932, !10, i64 936, !11, i64 940, !11, i64 948, !8, i64 956, !8, i64 996, !8, i64 1016, !8, i64 1021, !8, i64 1026, !8, i64 1031, !8, i64 1036, !8, i64 1056, !8, i64 1076, !8, i64 1116, !8, i64 1136, !8, i64 3184, !8, i64 5232, !8, i64 5316}
!39 = !{!"_ZTS10ImGuiStyle", !12, i64 0, !11, i64 4, !12, i64 12, !12, i64 16, !11, i64 20, !11, i64 28, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !11, i64 52, !12, i64 60, !12, i64 64, !11, i64 68, !11, i64 76, !11, i64 84, !12, i64 92, !12, i64 96, !12, i64 100, !12, i64 104, !12, i64 108, !12, i64 112, !11, i64 116, !11, i64 124, !11, i64 132, !12, i64 140, !13, i64 144, !13, i64 145, !12, i64 148, !8, i64 152}
!40 = !{!"_ZTS20ImDrawListSharedData", !11, i64 0, !7, i64 8, !12, i64 16, !12, i64 20, !41, i64 24, !8, i64 40}
!41 = !{!"_ZTS6ImVec4", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12}
!42 = !{!"_ZTS16ImGuiInputSource", !8, i64 0}
!43 = !{!"_ZTS8ImVectorI11ImGuiColModE", !10, i64 0, !10, i64 4, !7, i64 8}
!44 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !10, i64 0, !10, i64 4, !7, i64 8}
!45 = !{!"_ZTS8ImVectorIP6ImFontE", !10, i64 0, !10, i64 4, !7, i64 8}
!46 = !{!"_ZTS8ImVectorI13ImGuiPopupRefE", !10, i64 0, !10, i64 4, !7, i64 8}
!47 = !{!"_ZTS19ImGuiNextWindowData", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !11, i64 28, !11, i64 36, !11, i64 44, !11, i64 52, !13, i64 60, !15, i64 64, !7, i64 80, !7, i64 88, !12, i64 96, !11, i64 100}
!48 = !{!"_ZTS15ImGuiNavForward", !8, i64 0}
!49 = !{!"_ZTS18ImGuiNavMoveResult", !10, i64 0, !7, i64 8, !12, i64 16, !12, i64 20, !12, i64 24, !15, i64 28}
!50 = !{!"_ZTS10ImDrawData", !13, i64 0, !7, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !11, i64 28, !11, i64 36}
!51 = !{!"_ZTS17ImDrawDataBuilder", !8, i64 0}
!52 = !{!"_ZTS12ImGuiPayload", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !8, i64 24, !13, i64 57, !13, i64 58}
!53 = !{!"_ZTS8ImVectorIhE", !10, i64 0, !10, i64 4, !7, i64 8}
!54 = !{!"_ZTS18ImGuiTextEditState", !10, i64 0, !27, i64 8, !55, i64 24, !55, i64 40, !10, i64 56, !10, i64 60, !10, i64 64, !12, i64 68, !56, i64 72, !12, i64 3692, !13, i64 3696, !13, i64 3697}
!55 = !{!"_ZTS8ImVectorIcE", !10, i64 0, !10, i64 4, !7, i64 8}
!56 = !{!"_ZTSN8ImGuiStb17STB_TexteditStateE", !10, i64 0, !10, i64 4, !10, i64 8, !8, i64 12, !8, i64 13, !8, i64 14, !8, i64 15, !8, i64 16, !8, i64 17, !8, i64 18, !8, i64 19, !12, i64 20, !57, i64 24}
!57 = !{!"_ZTSN8ImGuiStb12StbUndoStateE", !8, i64 0, !8, i64 1584, !58, i64 3582, !58, i64 3584, !10, i64 3588, !10, i64 3592}
!58 = !{!"short", !8, i64 0}
!59 = !{!"_ZTS6ImFont", !12, i64 0, !12, i64 4, !11, i64 8, !60, i64 16, !18, i64 32, !27, i64 48, !7, i64 64, !12, i64 72, !58, i64 76, !58, i64 78, !7, i64 80, !7, i64 88, !12, i64 96, !12, i64 100, !13, i64 104, !10, i64 108}
!60 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !10, i64 0, !10, i64 4, !7, i64 8}
!61 = !{!"_ZTS15ImGuiTextBuffer", !55, i64 0}
!62 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !10, i64 0, !10, i64 4, !7, i64 8}
!63 = !{!"_ZTS8ImVectorI19ImGuiWindowSettingsE", !10, i64 0, !10, i64 4, !7, i64 8}
!64 = !{!37, !7, i64 6784}
!65 = !{!6, !10, i64 12}
!66 = !{!6, !7, i64 864}
!67 = distinct !{!67, !68}
!68 = !{!"llvm.loop.mustprogress"}
!69 = !{!6, !10, i64 364}
!70 = !{!37, !48, i64 6912}
!71 = !{!6, !10, i64 316}
!72 = !{!10, !10, i64 0}
!73 = !{!37, !10, i64 6868}
!74 = !{!37, !13, i64 6878}
!75 = !{!6, !13, i64 320}
!76 = !{!6, !12, i64 200}
!77 = !{!6, !12, i64 324}
!78 = !{!79, !13, i64 38}
!79 = !{!"_ZTS14ImGuiGroupData", !11, i64 0, !11, i64 8, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !13, i64 36, !13, i64 37, !13, i64 38}
!80 = !{!6, !10, i64 360}
!81 = !{!6, !10, i64 304}
!82 = !{!6, !10, i64 308}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass