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

; 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.ImGuiDockNode = type <{ i32, i32, i32, i32, i32, i32, ptr, [2 x ptr], %struct.ImVector.4, ptr, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i32, %struct.ImGuiWindowClass, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i16, i8, [5 x i8] }>
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImVec2 = type { float, float }
%struct.ImGuiWindowClass = type <{ i32, i32, i32, i32, i32, i32, i32, i8, i8, [2 x i8] }>
%struct.ImGuiTabBar = type { %struct.ImVector.53, i32, i32, i32, i32, i32, i32, i32, %struct.ImRect, float, float, float, float, float, float, float, float, float, float, float, float, i32, i16, i8, i8, i8, i8, i16, i16, float, %struct.ImVec2, %struct.ImVec2, %struct.ImGuiTextBuffer }
%struct.ImVector.53 = type { i32, i32, ptr }
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImGuiTextBuffer = type { %struct.ImVector.27 }
%struct.ImVector.27 = type { i32, i32, ptr }
%struct.ImGuiWindow = type { ptr, ptr, i32, i32, i32, i32, %struct.ImGuiWindowClass, ptr, i32, %struct.ImVec2, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, float, float, float, float, float, float, i32, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i16, i16, i16, i16, i16, i32, i8, i8, i8, i32, i8, i8, i8, i8, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVector.29, %struct.ImGuiWindowTempData, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImVec2ih, %struct.ImVec2ih, i32, i32, float, float, %struct.ImGuiStorage, %struct.ImVector.38, float, float, i32, ptr, %struct.ImDrawList, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, [2 x i32], [2 x %struct.ImRect], [2 x %struct.ImVec2], i32, i32, i32, i8, i8, i16, %struct.ImGuiWindowDockStyle, ptr, ptr, i32, i32, %struct.ImRect }
%struct.ImVector.29 = type { i32, i32, ptr }
%struct.ImGuiWindowTempData = type { %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, i8, i8, %struct.ImVec1, %struct.ImVec1, %struct.ImVec1, %struct.ImVec2, i32, i16, i16, i8, i8, i8, i8, %struct.ImVec2, %struct.ImGuiMenuColumns, i32, i32, %struct.ImVector.4, ptr, ptr, i32, i32, i32, float, float, %struct.ImVector.21, %struct.ImVector.21 }
%struct.ImVec1 = type { float }
%struct.ImGuiMenuColumns = type <{ i32, i32, i16, i16, i16, i16, i16, [4 x i16], [2 x i8] }>
%struct.ImVector.21 = type { i32, i32, ptr }
%struct.ImVec2ih = type { i16, i16 }
%struct.ImGuiStorage = type { %struct.ImVector.6 }
%struct.ImVector.6 = type { i32, i32, ptr }
%struct.ImVector.38 = type { i32, i32, ptr }
%struct.ImDrawList = type <{ %struct.ImVector.39, %struct.ImVector, %struct.ImVector.40, i32, i32, ptr, ptr, ptr, ptr, %struct.ImVector.41, %struct.ImVector.42, %struct.ImVector.2, %struct.ImDrawCmdHeader, %struct.ImDrawListSplitter, float, [4 x i8] }>
%struct.ImVector.39 = type { i32, i32, ptr }
%struct.ImVector = type { i32, i32, ptr }
%struct.ImVector.40 = type { i32, i32, ptr }
%struct.ImVector.41 = type { i32, i32, ptr }
%struct.ImVector.42 = type { i32, i32, ptr }
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImDrawCmdHeader = type <{ %struct.ImVec4, ptr, i32, [4 x i8] }>
%struct.ImVec4 = type { float, float, float, float }
%struct.ImDrawListSplitter = type { i32, i32, %struct.ImVector.22 }
%struct.ImVector.22 = type { i32, i32, ptr }
%struct.ImGuiWindowDockStyle = type { [6 x i32] }

@.str.3 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.315 = external hidden unnamed_addr constant [4 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui24DockNodeBeginAmendTabBarEP13ImGuiDockNode = external hidden unnamed_addr constant [54 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 noundef zeroext i1 @_ZN5ImGui5BeginEPKcPbi(ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui14PushOverrideIDEj(i32 noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN5ImGui24DockNodeBeginAmendTabBarEP13ImGuiDockNode(ptr noundef %0) #3 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca i8, align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  %5 = load ptr, ptr %3, align 8, !tbaa !5
  %6 = getelementptr inbounds %struct.ImGuiDockNode, ptr %5, i32 0, i32 9
  %7 = load ptr, ptr %6, align 8, !tbaa !9
  %8 = icmp eq ptr %7, null
  br i1 %8, label %14, label %9

9:                                                ; preds = %1
  %10 = load ptr, ptr %3, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.ImGuiDockNode, ptr %10, i32 0, i32 16
  %12 = load ptr, ptr %11, align 8, !tbaa !19
  %13 = icmp eq ptr %12, null
  br i1 %13, label %14, label %15

14:                                               ; preds = %9, %1
  store i1 false, ptr %2, align 1
  br label %60

15:                                               ; preds = %9
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.ImGuiDockNode, ptr %16, i32 0, i32 4
  %18 = load i32, ptr %17, align 8, !tbaa !20
  %19 = and i32 %18, 1
  %20 = icmp ne i32 %19, 0
  br i1 %20, label %21, label %22

21:                                               ; preds = %15
  store i1 false, ptr %2, align 1
  br label %60

22:                                               ; preds = %15
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.ImGuiDockNode, ptr %23, i32 0, i32 9
  %25 = load ptr, ptr %24, align 8, !tbaa !9
  %26 = getelementptr inbounds %struct.ImGuiTabBar, ptr %25, i32 0, i32 2
  %27 = load i32, ptr %26, align 4, !tbaa !21
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %29, label %30

29:                                               ; preds = %22
  store i1 false, ptr %2, align 1
  br label %60

30:                                               ; preds = %22
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.ImGuiDockNode, ptr %31, i32 0, i32 16
  %33 = load ptr, ptr %32, align 8, !tbaa !19
  %34 = getelementptr inbounds %struct.ImGuiWindow, ptr %33, i32 0, i32 1
  %35 = load ptr, ptr %34, align 8, !tbaa !28
  %36 = call noundef zeroext i1 @_ZN5ImGui5BeginEPKcPbi(ptr noundef %35, ptr noundef null, i32 noundef 0)
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.ImGuiDockNode, ptr %37, i32 0, i32 0
  %39 = load i32, ptr %38, align 8, !tbaa !52
  call void @_ZN5ImGui14PushOverrideIDEj(i32 noundef %39)
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #5
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.ImGuiDockNode, ptr %40, i32 0, i32 9
  %42 = load ptr, ptr %41, align 8, !tbaa !9
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.ImGuiDockNode, ptr %43, i32 0, i32 9
  %45 = load ptr, ptr %44, align 8, !tbaa !9
  %46 = getelementptr inbounds %struct.ImGuiTabBar, ptr %45, i32 0, i32 8
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.ImGuiDockNode, ptr %47, i32 0, i32 9
  %49 = load ptr, ptr %48, align 8, !tbaa !9
  %50 = getelementptr inbounds %struct.ImGuiTabBar, ptr %49, i32 0, i32 1
  %51 = load i32, ptr %50, align 8, !tbaa !53
  %52 = call noundef zeroext i1 @_ZN5ImGui13BeginTabBarExEP11ImGuiTabBarRK6ImRecti(ptr noundef %42, ptr noundef nonnull align 4 dereferenceable(16) %46, i32 noundef %51)
  %53 = zext i1 %52 to i8
  store i8 %53, ptr %4, align 1, !tbaa !54
  %54 = load i8, ptr %4, align 1, !tbaa !54, !range !55, !noundef !56
  %55 = trunc i8 %54 to i1
  br i1 %55, label %56, label %57

56:                                               ; preds = %30
  br label %59

57:                                               ; preds = %30
  call void @__assert_fail(ptr noundef @.str.315, ptr noundef @.str.3, i32 noundef 17133, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui24DockNodeBeginAmendTabBarEP13ImGuiDockNode) #6
  unreachable

58:                                               ; No predecessors!
  br label %59

59:                                               ; preds = %58, %56
  store i1 true, ptr %2, align 1
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #5
  br label %60

60:                                               ; preds = %59, %29, %21, %14
  %61 = load i1, ptr %2, align 1
  ret i1 %61
}

declare noundef zeroext i1 @_ZN5ImGui13BeginTabBarExEP11ImGuiTabBarRK6ImRecti(ptr noundef, ptr noundef nonnull align 4 dereferenceable(16), i32 noundef) #4

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"="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 #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { 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, !6, i64 64}
!10 = !{!"_ZTS13ImGuiDockNode", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !12, i64 20, !6, i64 24, !7, i64 32, !13, i64 48, !6, i64 64, !14, i64 72, !14, i64 80, !14, i64 88, !16, i64 96, !17, i64 100, !11, i64 132, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !11, i64 168, !11, i64 172, !11, i64 176, !11, i64 180, !11, i64 184, !11, i64 188, !11, i64 192, !11, i64 196, !11, i64 200, !11, i64 200, !11, i64 200, !18, i64 201, !18, i64 201, !18, i64 201, !18, i64 201, !18, i64 201, !18, i64 201, !18, i64 201, !18, i64 202, !18, i64 202, !18, i64 202, !18, i64 202}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS18ImGuiDockNodeState", !7, i64 0}
!13 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !11, i64 0, !11, i64 4, !6, i64 8}
!14 = !{!"_ZTS6ImVec2", !15, i64 0, !15, i64 4}
!15 = !{!"float", !7, i64 0}
!16 = !{!"_ZTS9ImGuiAxis", !7, i64 0}
!17 = !{!"_ZTS16ImGuiWindowClass", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !18, i64 28, !18, i64 29}
!18 = !{!"bool", !7, i64 0}
!19 = !{!10, !6, i64 136}
!20 = !{!10, !11, i64 16}
!21 = !{!22, !11, i64 20}
!22 = !{!"_ZTS11ImGuiTabBar", !23, i64 0, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !24, i64 44, !15, i64 60, !15, i64 64, !15, i64 68, !15, i64 72, !15, i64 76, !15, i64 80, !15, i64 84, !15, i64 88, !15, i64 92, !15, i64 96, !15, i64 100, !15, i64 104, !11, i64 108, !25, i64 112, !7, i64 114, !18, i64 115, !18, i64 116, !18, i64 117, !25, i64 118, !25, i64 120, !15, i64 124, !14, i64 128, !14, i64 136, !26, i64 144}
!23 = !{!"_ZTS8ImVectorI12ImGuiTabItemE", !11, i64 0, !11, i64 4, !6, i64 8}
!24 = !{!"_ZTS6ImRect", !14, i64 0, !14, i64 8}
!25 = !{!"short", !7, i64 0}
!26 = !{!"_ZTS15ImGuiTextBuffer", !27, i64 0}
!27 = !{!"_ZTS8ImVectorIcE", !11, i64 0, !11, i64 4, !6, i64 8}
!28 = !{!29, !6, i64 8}
!29 = !{!"_ZTS11ImGuiWindow", !6, i64 0, !6, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !17, i64 32, !6, i64 64, !11, i64 72, !14, i64 76, !11, i64 84, !14, i64 88, !14, i64 96, !14, i64 104, !14, i64 112, !14, i64 120, !14, i64 128, !14, i64 136, !15, i64 144, !15, i64 148, !15, i64 152, !15, i64 156, !15, i64 160, !15, i64 164, !15, i64 168, !15, i64 172, !11, i64 176, !11, i64 180, !11, i64 184, !11, i64 188, !14, i64 192, !14, i64 200, !14, i64 208, !14, i64 216, !14, i64 224, !14, i64 232, !18, i64 240, !18, i64 241, !18, i64 242, !18, i64 243, !18, i64 244, !18, i64 245, !18, i64 246, !18, i64 247, !18, i64 248, !18, i64 249, !18, i64 250, !18, i64 251, !18, i64 252, !18, i64 253, !7, i64 254, !7, i64 255, !25, i64 256, !25, i64 258, !25, i64 260, !25, i64 262, !25, i64 264, !11, i64 268, !7, i64 272, !7, i64 273, !18, i64 274, !11, i64 276, !7, i64 280, !7, i64 281, !7, i64 282, !7, i64 283, !11, i64 284, !11, i64 285, !11, i64 286, !11, i64 287, !14, i64 288, !14, i64 296, !30, i64 304, !31, i64 320, !24, i64 552, !24, i64 568, !24, i64 584, !24, i64 600, !24, i64 616, !24, i64 632, !24, i64 648, !36, i64 664, !36, i64 668, !11, i64 672, !11, i64 676, !15, i64 680, !15, i64 684, !37, i64 688, !39, i64 704, !15, i64 720, !15, i64 724, !11, i64 728, !6, i64 736, !40, i64 744, !6, i64 944, !6, i64 952, !6, i64 960, !6, i64 968, !6, i64 976, !6, i64 984, !6, i64 992, !6, i64 1000, !6, i64 1008, !7, i64 1016, !7, i64 1024, !7, i64 1056, !11, i64 1072, !11, i64 1076, !11, i64 1080, !18, i64 1084, !18, i64 1085, !18, i64 1085, !18, i64 1085, !18, i64 1085, !25, i64 1086, !51, i64 1088, !6, i64 1112, !6, i64 1120, !11, i64 1128, !11, i64 1132, !24, i64 1136}
!30 = !{!"_ZTS8ImVectorIjE", !11, i64 0, !11, i64 4, !6, i64 8}
!31 = !{!"_ZTS19ImGuiWindowTempData", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !15, i64 56, !15, i64 60, !18, i64 64, !18, i64 65, !32, i64 68, !32, i64 72, !32, i64 76, !14, i64 80, !33, i64 88, !25, i64 92, !25, i64 94, !18, i64 96, !18, i64 97, !18, i64 98, !18, i64 99, !14, i64 100, !34, i64 108, !11, i64 136, !11, i64 140, !13, i64 144, !6, i64 160, !6, i64 168, !11, i64 176, !11, i64 180, !11, i64 184, !15, i64 188, !15, i64 192, !35, i64 200, !35, i64 216}
!32 = !{!"_ZTS6ImVec1", !15, i64 0}
!33 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!34 = !{!"_ZTS16ImGuiMenuColumns", !11, i64 0, !11, i64 4, !25, i64 8, !25, i64 10, !25, i64 12, !25, i64 14, !25, i64 16, !7, i64 18}
!35 = !{!"_ZTS8ImVectorIfE", !11, i64 0, !11, i64 4, !6, i64 8}
!36 = !{!"_ZTS8ImVec2ih", !25, i64 0, !25, i64 2}
!37 = !{!"_ZTS12ImGuiStorage", !38, i64 0}
!38 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !11, i64 0, !11, i64 4, !6, i64 8}
!39 = !{!"_ZTS8ImVectorI15ImGuiOldColumnsE", !11, i64 0, !11, i64 4, !6, i64 8}
!40 = !{!"_ZTS10ImDrawList", !41, i64 0, !42, i64 16, !43, i64 32, !11, i64 48, !11, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !44, i64 88, !45, i64 104, !46, i64 120, !47, i64 136, !49, i64 168, !15, i64 192}
!41 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !11, i64 0, !11, i64 4, !6, i64 8}
!42 = !{!"_ZTS8ImVectorItE", !11, i64 0, !11, i64 4, !6, i64 8}
!43 = !{!"_ZTS8ImVectorI10ImDrawVertE", !11, i64 0, !11, i64 4, !6, i64 8}
!44 = !{!"_ZTS8ImVectorI6ImVec4E", !11, i64 0, !11, i64 4, !6, i64 8}
!45 = !{!"_ZTS8ImVectorIPvE", !11, i64 0, !11, i64 4, !6, i64 8}
!46 = !{!"_ZTS8ImVectorI6ImVec2E", !11, i64 0, !11, i64 4, !6, i64 8}
!47 = !{!"_ZTS15ImDrawCmdHeader", !48, i64 0, !6, i64 16, !11, i64 24}
!48 = !{!"_ZTS6ImVec4", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!49 = !{!"_ZTS18ImDrawListSplitter", !11, i64 0, !11, i64 4, !50, i64 8}
!50 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !11, i64 0, !11, i64 4, !6, i64 8}
!51 = !{!"_ZTS20ImGuiWindowDockStyle", !7, i64 0}
!52 = !{!10, !11, i64 0}
!53 = !{!22, !11, i64 16}
!54 = !{!18, !18, i64 0}
!55 = !{i8 0, i8 2}
!56 = !{}


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

@.str.3 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.315 = external hidden unnamed_addr constant [4 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui24DockNodeBeginAmendTabBarEP13ImGuiDockNode = external hidden unnamed_addr constant [54 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 noundef zeroext i1 @_ZN5ImGui5BeginEPKcPbi(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui14PushOverrideIDEj(i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN5ImGui24DockNodeBeginAmendTabBarEP13ImGuiDockNode(ptr nocapture noundef readonly %0) local_unnamed_addr #2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 64
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = icmp eq ptr %3, null
  br i1 %4, label %28, label %5

5:                                                ; preds = %1
  %6 = getelementptr inbounds i8, ptr %0, i64 136
  %7 = load ptr, ptr %6, align 8, !tbaa !18
  %8 = icmp eq ptr %7, null
  br i1 %8, label %28, label %9

9:                                                ; preds = %5
  %10 = getelementptr inbounds i8, ptr %0, i64 16
  %11 = load i32, ptr %10, align 8, !tbaa !19
  %12 = and i32 %11, 1
  %.not = icmp eq i32 %12, 0
  br i1 %.not, label %13, label %28

13:                                               ; preds = %9
  %14 = getelementptr inbounds i8, ptr %3, i64 20
  %15 = load i32, ptr %14, align 4, !tbaa !20
  %16 = icmp eq i32 %15, 0
  br i1 %16, label %28, label %17

17:                                               ; preds = %13
  %18 = getelementptr inbounds i8, ptr %7, i64 8
  %19 = load ptr, ptr %18, align 8, !tbaa !27
  %20 = tail call noundef zeroext i1 @_ZN5ImGui5BeginEPKcPbi(ptr noundef %19, ptr noundef null, i32 noundef 0)
  %21 = load i32, ptr %0, align 8, !tbaa !51
  tail call void @_ZN5ImGui14PushOverrideIDEj(i32 noundef %21)
  %22 = load ptr, ptr %2, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %22, i64 44
  %24 = getelementptr inbounds i8, ptr %22, i64 16
  %25 = load i32, ptr %24, align 8, !tbaa !52
  %26 = tail call noundef zeroext i1 @_ZN5ImGui13BeginTabBarExEP11ImGuiTabBarRK6ImRecti(ptr noundef %22, ptr noundef nonnull align 4 dereferenceable(16) %23, i32 noundef %25)
  br i1 %26, label %28, label %27

27:                                               ; preds = %17
  tail call void @__assert_fail(ptr noundef nonnull @.str.315, ptr noundef nonnull @.str.3, i32 noundef 17133, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui24DockNodeBeginAmendTabBarEP13ImGuiDockNode) #4
  unreachable

28:                                               ; preds = %17, %13, %9, %1, %5
  %.0 = phi i1 [ false, %5 ], [ false, %1 ], [ false, %9 ], [ false, %13 ], [ true, %17 ]
  ret i1 %.0
}

declare noundef zeroext i1 @_ZN5ImGui13BeginTabBarExEP11ImGuiTabBarRK6ImRecti(ptr noundef, ptr noundef nonnull align 4 dereferenceable(16), i32 noundef) local_unnamed_addr #3

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"="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 #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 = { "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 = { 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, !11, i64 64}
!6 = !{!"_ZTS13ImGuiDockNode", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !10, i64 20, !11, i64 24, !8, i64 32, !12, i64 48, !11, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !15, i64 96, !16, i64 100, !7, i64 132, !11, i64 136, !11, i64 144, !11, i64 152, !11, i64 160, !7, i64 168, !7, i64 172, !7, i64 176, !7, i64 180, !7, i64 184, !7, i64 188, !7, i64 192, !7, i64 196, !7, i64 200, !7, i64 200, !7, i64 200, !17, i64 201, !17, i64 201, !17, i64 201, !17, i64 201, !17, i64 201, !17, i64 201, !17, i64 201, !17, i64 202, !17, i64 202, !17, i64 202, !17, i64 202}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS18ImGuiDockNodeState", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !7, i64 0, !7, i64 4, !11, i64 8}
!13 = !{!"_ZTS6ImVec2", !14, i64 0, !14, i64 4}
!14 = !{!"float", !8, i64 0}
!15 = !{!"_ZTS9ImGuiAxis", !8, i64 0}
!16 = !{!"_ZTS16ImGuiWindowClass", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !17, i64 28, !17, i64 29}
!17 = !{!"bool", !8, i64 0}
!18 = !{!6, !11, i64 136}
!19 = !{!6, !7, i64 16}
!20 = !{!21, !7, i64 20}
!21 = !{!"_ZTS11ImGuiTabBar", !22, i64 0, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !23, i64 44, !14, i64 60, !14, i64 64, !14, i64 68, !14, i64 72, !14, i64 76, !14, i64 80, !14, i64 84, !14, i64 88, !14, i64 92, !14, i64 96, !14, i64 100, !14, i64 104, !7, i64 108, !24, i64 112, !8, i64 114, !17, i64 115, !17, i64 116, !17, i64 117, !24, i64 118, !24, i64 120, !14, i64 124, !13, i64 128, !13, i64 136, !25, i64 144}
!22 = !{!"_ZTS8ImVectorI12ImGuiTabItemE", !7, i64 0, !7, i64 4, !11, i64 8}
!23 = !{!"_ZTS6ImRect", !13, i64 0, !13, i64 8}
!24 = !{!"short", !8, i64 0}
!25 = !{!"_ZTS15ImGuiTextBuffer", !26, i64 0}
!26 = !{!"_ZTS8ImVectorIcE", !7, i64 0, !7, i64 4, !11, i64 8}
!27 = !{!28, !11, i64 8}
!28 = !{!"_ZTS11ImGuiWindow", !11, i64 0, !11, i64 8, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !16, i64 32, !11, i64 64, !7, i64 72, !13, i64 76, !7, i64 84, !13, i64 88, !13, i64 96, !13, i64 104, !13, i64 112, !13, i64 120, !13, i64 128, !13, i64 136, !14, i64 144, !14, i64 148, !14, i64 152, !14, i64 156, !14, i64 160, !14, i64 164, !14, i64 168, !14, i64 172, !7, i64 176, !7, i64 180, !7, i64 184, !7, i64 188, !13, i64 192, !13, i64 200, !13, i64 208, !13, i64 216, !13, i64 224, !13, i64 232, !17, i64 240, !17, i64 241, !17, i64 242, !17, i64 243, !17, i64 244, !17, i64 245, !17, i64 246, !17, i64 247, !17, i64 248, !17, i64 249, !17, i64 250, !17, i64 251, !17, i64 252, !17, i64 253, !8, i64 254, !8, i64 255, !24, i64 256, !24, i64 258, !24, i64 260, !24, i64 262, !24, i64 264, !7, i64 268, !8, i64 272, !8, i64 273, !17, i64 274, !7, i64 276, !8, i64 280, !8, i64 281, !8, i64 282, !8, i64 283, !7, i64 284, !7, i64 285, !7, i64 286, !7, i64 287, !13, i64 288, !13, i64 296, !29, i64 304, !30, i64 320, !23, i64 552, !23, i64 568, !23, i64 584, !23, i64 600, !23, i64 616, !23, i64 632, !23, i64 648, !35, i64 664, !35, i64 668, !7, i64 672, !7, i64 676, !14, i64 680, !14, i64 684, !36, i64 688, !38, i64 704, !14, i64 720, !14, i64 724, !7, i64 728, !11, i64 736, !39, i64 744, !11, i64 944, !11, i64 952, !11, i64 960, !11, i64 968, !11, i64 976, !11, i64 984, !11, i64 992, !11, i64 1000, !11, i64 1008, !8, i64 1016, !8, i64 1024, !8, i64 1056, !7, i64 1072, !7, i64 1076, !7, i64 1080, !17, i64 1084, !17, i64 1085, !17, i64 1085, !17, i64 1085, !17, i64 1085, !24, i64 1086, !50, i64 1088, !11, i64 1112, !11, i64 1120, !7, i64 1128, !7, i64 1132, !23, i64 1136}
!29 = !{!"_ZTS8ImVectorIjE", !7, i64 0, !7, i64 4, !11, i64 8}
!30 = !{!"_ZTS19ImGuiWindowTempData", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !14, i64 56, !14, i64 60, !17, i64 64, !17, i64 65, !31, i64 68, !31, i64 72, !31, i64 76, !13, i64 80, !32, i64 88, !24, i64 92, !24, i64 94, !17, i64 96, !17, i64 97, !17, i64 98, !17, i64 99, !13, i64 100, !33, i64 108, !7, i64 136, !7, i64 140, !12, i64 144, !11, i64 160, !11, i64 168, !7, i64 176, !7, i64 180, !7, i64 184, !14, i64 188, !14, i64 192, !34, i64 200, !34, i64 216}
!31 = !{!"_ZTS6ImVec1", !14, i64 0}
!32 = !{!"_ZTS13ImGuiNavLayer", !8, i64 0}
!33 = !{!"_ZTS16ImGuiMenuColumns", !7, i64 0, !7, i64 4, !24, i64 8, !24, i64 10, !24, i64 12, !24, i64 14, !24, i64 16, !8, i64 18}
!34 = !{!"_ZTS8ImVectorIfE", !7, i64 0, !7, i64 4, !11, i64 8}
!35 = !{!"_ZTS8ImVec2ih", !24, i64 0, !24, i64 2}
!36 = !{!"_ZTS12ImGuiStorage", !37, i64 0}
!37 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !7, i64 0, !7, i64 4, !11, i64 8}
!38 = !{!"_ZTS8ImVectorI15ImGuiOldColumnsE", !7, i64 0, !7, i64 4, !11, i64 8}
!39 = !{!"_ZTS10ImDrawList", !40, i64 0, !41, i64 16, !42, i64 32, !7, i64 48, !7, i64 52, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !43, i64 88, !44, i64 104, !45, i64 120, !46, i64 136, !48, i64 168, !14, i64 192}
!40 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !7, i64 0, !7, i64 4, !11, i64 8}
!41 = !{!"_ZTS8ImVectorItE", !7, i64 0, !7, i64 4, !11, i64 8}
!42 = !{!"_ZTS8ImVectorI10ImDrawVertE", !7, i64 0, !7, i64 4, !11, i64 8}
!43 = !{!"_ZTS8ImVectorI6ImVec4E", !7, i64 0, !7, i64 4, !11, i64 8}
!44 = !{!"_ZTS8ImVectorIPvE", !7, i64 0, !7, i64 4, !11, i64 8}
!45 = !{!"_ZTS8ImVectorI6ImVec2E", !7, i64 0, !7, i64 4, !11, i64 8}
!46 = !{!"_ZTS15ImDrawCmdHeader", !47, i64 0, !11, i64 16, !7, i64 24}
!47 = !{!"_ZTS6ImVec4", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12}
!48 = !{!"_ZTS18ImDrawListSplitter", !7, i64 0, !7, i64 4, !49, i64 8}
!49 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !7, i64 0, !7, i64 4, !11, i64 8}
!50 = !{!"_ZTS20ImGuiWindowDockStyle", !8, i64 0}
!51 = !{!6, !7, i64 0}
!52 = !{!21, !7, i64 16}


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