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

; 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.ImVector.54 = type { i32, i32, ptr }
%struct.ImGuiContext = type { i8, i8, %struct.ImGuiIO, %struct.ImGuiPlatformIO, %struct.ImGuiStyle, i32, i32, ptr, float, float, %struct.ImDrawListSharedData, double, i32, i32, i32, i32, i8, i8, i8, i8, i8, ptr, %struct.ImVector.3, %struct.ImVector.3, i32, i32, %struct.ImVector.4, %struct.ImVector.4, %struct.ImVector.4, %struct.ImVector.5, %struct.ImGuiStorage, i32, %struct.ImVec2, i32, ptr, ptr, ptr, ptr, ptr, %struct.ImVec2, i32, i32, float, %struct.ImVec2, %struct.ImVec2, i32, i32, i32, i8, i8, float, float, i32, i32, float, i8, i8, i8, i8, i8, i8, i8, i8, %struct.ImVec2, ptr, i32, i32, i8, i8, ptr, i32, float, double, double, double, %struct.ImBitArray, [154 x %struct.ImGuiKeyOwnerData], %struct.ImGuiKeyRoutingTable, i32, i8, i32, i32, i32, i32, i32, [4 x i8], %struct.ImGuiNextItemData, %struct.ImGuiLastItemData, [4 x i8], %struct.ImGuiNextWindowData, i8, i32, %struct.ImVector.8, %struct.ImVector.9, %struct.ImVector.10, %struct.ImVector.11, %struct.ImVector.12, %struct.ImVector.13, %struct.ImVector.14, %struct.ImVector.14, %struct.ImVector.15, i32, %struct.ImVector.16, float, ptr, ptr, ptr, i32, %struct.ImGuiPlatformMonitor, i32, i32, i32, ptr, i32, i32, %struct.ImVector.11, i32, i32, i32, i32, i32, float, i32, i32, i32, i32, i32, i32, i32, i64, i8, i8, i8, i8, i8, i8, i8, i8, %struct.ImGuiNavItemData, i8, i8, i8, i32, i32, i32, i32, i32, i32, %struct.ImRect, %struct.ImRect, i32, i32, i32, %struct.ImGuiNavItemData, %struct.ImGuiNavItemData, %struct.ImGuiNavItemData, %struct.ImGuiNavItemData, i32, i32, ptr, ptr, ptr, float, float, i8, %struct.ImVec2, %struct.ImVec2, float, i8, i8, i8, i32, i32, i32, %struct.ImGuiPayload, %struct.ImRect, %struct.ImRect, i32, i32, float, i32, i32, i32, i32, %struct.ImVector.17, [16 x i8], i32, %struct.ImVector.18, ptr, i32, i32, %struct.ImVector.19, %struct.ImPool, %struct.ImVector.21, %struct.ImVector.22, ptr, %struct.ImPool.23, %struct.ImVector.25, %struct.ImVector.26, i32, i32, float, float, i32, i32, i32, float, %struct.ImVec2, %struct.ImGuiInputTextState, %struct.ImGuiInputTextDeactivatedState, %struct.ImFont, i32, i32, i32, i32, float, float, i32, %struct.ImVec4, %struct.ImGuiComboPreviewData, %struct.ImRect, i8, float, float, i8, i8, float, float, float, float, i16, i16, i16, %struct.ImVector.27, %struct.ImVector.29, %struct.ImGuiTypingSelectState, %struct.ImGuiPlatformImeData, %struct.ImGuiPlatformImeData, i32, [4 x i8], %struct.ImGuiDockContext, ptr, i8, float, %struct.ImGuiTextBuffer, %struct.ImVector.32, %struct.ImChunkStream, %struct.ImChunkStream.33, %struct.ImVector.34, i32, [11 x ptr], i8, i32, ptr, %struct.ImGuiTextBuffer, ptr, ptr, float, i8, i32, i32, i32, i32, %struct.ImGuiTextBuffer, %struct.ImGuiTextIndex, i32, i8, i8, i8, i32, i8, i8, i8, i32, float, %struct.ImVec4, %struct.ImGuiMetricsConfig, %struct.ImGuiIDStackTool, %struct.ImGuiDebugAllocInfo, ptr, [60 x float], i32, i32, float, i32, i32, i32, %struct.ImVector.27, [64 x i8] }
%struct.ImGuiIO = type { i32, i32, %struct.ImVec2, float, float, ptr, ptr, ptr, ptr, float, i8, ptr, %struct.ImVec2, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, float, float, float, float, float, float, i8, i8, i8, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i16, i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, i32, %struct.ImVec2, [666 x i32], [666 x i8], [16 x float], ptr, %struct.ImVec2, [5 x i8], float, float, i32, i32, i8, i8, i8, i8, i32, [666 x %struct.ImGuiKeyData], i8, %struct.ImVec2, [5 x %struct.ImVec2], [5 x double], [5 x i8], [5 x i8], [5 x i16], [5 x i16], [5 x i8], [5 x i8], [5 x i8], i8, [5 x float], [5 x float], [5 x %struct.ImVec2], [5 x float], float, i8, i8, i8, i8, i16, %struct.ImVector }
%struct.ImGuiKeyData = type { i8, float, float, float }
%struct.ImVector = type { i32, i32, ptr }
%struct.ImGuiPlatformIO = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.ImVector.0, %struct.ImVector.1 }
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImVector.1 = type { i32, i32, ptr }
%struct.ImGuiStyle = type { float, float, %struct.ImVec2, float, float, %struct.ImVec2, %struct.ImVec2, i32, float, float, float, float, %struct.ImVec2, float, float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, float, float, float, float, float, float, float, float, float, float, i32, %struct.ImVec2, %struct.ImVec2, float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, i8, i8, i8, float, float, [55 x %struct.ImVec4], float, float, float, i32, i32 }
%struct.ImDrawListSharedData = type { %struct.ImVec2, ptr, float, float, float, %struct.ImVec4, i32, %struct.ImVector.2, [48 x %struct.ImVec2], float, [64 x i8], ptr }
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImVector.3 = type { i32, i32, ptr }
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImVector.5 = type { i32, i32, ptr }
%struct.ImGuiStorage = type { %struct.ImVector.6 }
%struct.ImVector.6 = type { i32, i32, ptr }
%struct.ImBitArray = type { [5 x i32] }
%struct.ImGuiKeyOwnerData = type <{ i32, i32, i8, i8, [2 x i8] }>
%struct.ImGuiKeyRoutingTable = type { [154 x i16], %struct.ImVector.7, %struct.ImVector.7 }
%struct.ImVector.7 = type { i32, i32, ptr }
%struct.ImGuiNextItemData = type <{ i32, i32, i64, float, i32, i8, i8, [6 x i8] }>
%struct.ImGuiLastItemData = type { i32, i32, i32, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect }
%struct.ImGuiNextWindowData = type <{ i32, i32, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i32, i8, i8, [2 x i8], %struct.ImRect, [4 x i8], ptr, ptr, float, i32, i32, %struct.ImGuiWindowClass, %struct.ImVec2, [4 x i8] }>
%struct.ImGuiWindowClass = type <{ i32, i32, i32, i32, i32, i32, i32, i8, i8, [2 x i8] }>
%struct.ImVector.8 = type { i32, i32, ptr }
%struct.ImVector.9 = type { i32, i32, ptr }
%struct.ImVector.10 = type { i32, i32, ptr }
%struct.ImVector.12 = type { i32, i32, ptr }
%struct.ImVector.13 = type { i32, i32, ptr }
%struct.ImVector.14 = type { i32, i32, ptr }
%struct.ImVector.15 = type { i32, i32, ptr }
%struct.ImVector.16 = type { i32, i32, ptr }
%struct.ImGuiPlatformMonitor = type { %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, ptr }
%struct.ImVector.11 = type { i32, i32, ptr }
%struct.ImGuiNavItemData = type <{ ptr, i32, i32, %struct.ImRect, i32, [4 x i8], i64, float, float, float, [4 x i8] }>
%struct.ImGuiPayload = type <{ ptr, i32, i32, i32, i32, [33 x i8], i8, i8, [5 x i8] }>
%struct.ImVector.17 = type { i32, i32, ptr }
%struct.ImVector.18 = type { i32, i32, ptr }
%struct.ImVector.19 = type { i32, i32, ptr }
%struct.ImPool = type { %struct.ImVector.20, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.20 = type { i32, i32, ptr }
%struct.ImVector.21 = type { i32, i32, ptr }
%struct.ImVector.22 = type { i32, i32, ptr }
%struct.ImPool.23 = type { %struct.ImVector.24, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.24 = type { i32, i32, ptr }
%struct.ImVector.25 = type { i32, i32, ptr }
%struct.ImVector.26 = type { i32, i32, ptr }
%struct.ImVec2 = type { float, float }
%struct.ImGuiInputTextState = type <{ ptr, i32, i32, i32, [4 x i8], %struct.ImVector, %struct.ImVector.27, %struct.ImVector.27, i8, [3 x i8], i32, float, %"struct.ImStb::STB_TexteditState", float, i8, i8, i8, i8, i32, [4 x i8] }>
%"struct.ImStb::STB_TexteditState" = type { i32, i32, i32, i8, i32, i8, i8, i8, i8, i8, i8, i8, float, %"struct.ImStb::StbUndoState" }
%"struct.ImStb::StbUndoState" = type { [99 x %"struct.ImStb::StbUndoRecord"], [999 x i16], i16, i16, i32, i32 }
%"struct.ImStb::StbUndoRecord" = type { i32, i32, i32, i32 }
%struct.ImGuiInputTextDeactivatedState = type { i32, %struct.ImVector.27 }
%struct.ImFont = type <{ %struct.ImVector.21, float, float, %struct.ImVector, %struct.ImVector.28, ptr, ptr, ptr, i16, i16, i16, i16, float, float, i8, [3 x i8], float, float, float, i32, [2 x i8], [2 x i8] }>
%struct.ImVector.28 = type { i32, i32, ptr }
%struct.ImGuiComboPreviewData = type { %struct.ImRect, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, i32 }
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImVector.29 = type { i32, i32, ptr }
%struct.ImGuiTypingSelectState = type <{ %struct.ImGuiTypingSelectRequest, [64 x i8], i32, i32, float, i8, [3 x i8] }>
%struct.ImGuiTypingSelectRequest = type { i32, i32, ptr, i8, i8, i8 }
%struct.ImGuiPlatformImeData = type { i8, %struct.ImVec2, float }
%struct.ImGuiDockContext = type <{ %struct.ImGuiStorage, %struct.ImVector.30, %struct.ImVector.31, i8, [7 x i8] }>
%struct.ImVector.30 = type { i32, i32, ptr }
%struct.ImVector.31 = type { i32, i32, ptr }
%struct.ImVector.32 = type { i32, i32, ptr }
%struct.ImChunkStream = type { %struct.ImVector.27 }
%struct.ImChunkStream.33 = type { %struct.ImVector.27 }
%struct.ImVector.34 = type { i32, i32, ptr }
%struct.ImGuiTextBuffer = type { %struct.ImVector.27 }
%struct.ImGuiTextIndex = type <{ %struct.ImVector.12, i32, [4 x i8] }>
%struct.ImVec4 = type { float, float, float, float }
%struct.ImGuiMetricsConfig = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i32 }
%struct.ImGuiIDStackTool = type { i32, i32, i32, %struct.ImVector.35, i8, float }
%struct.ImVector.35 = type { i32, i32, ptr }
%struct.ImGuiDebugAllocInfo = type { i32, i32, i16, [6 x %struct.ImGuiDebugAllocEntry] }
%struct.ImGuiDebugAllocEntry = type { i32, i16, i16 }
%struct.ImVector.27 = type { i32, i32, ptr }
%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.ImGuiStorage::ImGuiStoragePair" = type { i32, %union.anon.36 }
%union.anon.36 = type { ptr }
%struct.ImGuiWindowSettings = type <{ i32, %struct.ImVec2ih, %struct.ImVec2ih, %struct.ImVec2ih, i32, i32, i32, i16, i8, i8, i8, i8, [2 x i8] }>
%struct.ImVec2ih = type { i16, i16 }

@GImGui = external dso_local global ptr, align 8

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZL7ImQsortPvmmPFiPKvS1_E(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12ImGuiStorage5ClearEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN13ImChunkStreamI19ImGuiWindowSettingsE10next_chunkEPS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui31DockBuilderRemoveNodeChildNodesEj(i32 noundef %0) #3 personality ptr @__gxx_personality_v0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i8, align 1
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %struct.ImVector.54, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i8, align 1
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  store i32 %0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %20 = load ptr, ptr @GImGui, align 8, !tbaa !9
  store ptr %20, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %21 = load ptr, ptr %3, align 8, !tbaa !9
  %22 = getelementptr inbounds %struct.ImGuiContext, ptr %21, i32 0, i32 240
  store ptr %22, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = icmp ne i32 %23, 0
  br i1 %24, label %25, label %29

25:                                               ; preds = %1
  %26 = load ptr, ptr %3, align 8, !tbaa !9
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = call noundef ptr @_ZN5ImGui23DockContextFindNodeByIDEP12ImGuiContextj(ptr noundef %26, i32 noundef %27)
  br label %30

29:                                               ; preds = %1
  br label %30

30:                                               ; preds = %29, %25
  %31 = phi ptr [ %28, %25 ], [ null, %29 ]
  store ptr %31, ptr %5, align 8, !tbaa !9
  %32 = load i32, ptr %2, align 4, !tbaa !5
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %34, label %38

34:                                               ; preds = %30
  %35 = load ptr, ptr %5, align 8, !tbaa !9
  %36 = icmp eq ptr %35, null
  br i1 %36, label %37, label %38

37:                                               ; preds = %34
  store i32 1, ptr %6, align 4
  br label %288

38:                                               ; preds = %34, %30
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #5
  store i8 0, ptr %7, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %39 = load ptr, ptr %5, align 8, !tbaa !9
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %48

41:                                               ; preds = %38
  %42 = load ptr, ptr %5, align 8, !tbaa !9
  %43 = getelementptr inbounds %struct.ImGuiDockNode, ptr %42, i32 0, i32 28
  %44 = load i16, ptr %43, align 8
  %45 = shl i16 %44, 13
  %46 = ashr i16 %45, 13
  %47 = sext i16 %46 to i32
  br label %49

48:                                               ; preds = %38
  br label %49

49:                                               ; preds = %48, %41
  %50 = phi i32 [ %47, %41 ], [ 0, %48 ]
  store i32 %50, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %51 = load ptr, ptr %5, align 8, !tbaa !9
  %52 = icmp ne ptr %51, null
  br i1 %52, label %53, label %60

53:                                               ; preds = %49
  %54 = load ptr, ptr %5, align 8, !tbaa !9
  %55 = getelementptr inbounds %struct.ImGuiDockNode, ptr %54, i32 0, i32 28
  %56 = load i16, ptr %55, align 8
  %57 = shl i16 %56, 10
  %58 = ashr i16 %57, 13
  %59 = sext i16 %58 to i32
  br label %61

60:                                               ; preds = %49
  br label %61

61:                                               ; preds = %60, %53
  %62 = phi i32 [ %59, %53 ], [ 0, %60 ]
  store i32 %62, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  call void @_ZN8ImVectorIP13ImGuiDockNodeEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %145, %61
  %64 = load i32, ptr %11, align 4, !tbaa !5
  %65 = load ptr, ptr %4, align 8, !tbaa !9
  %66 = getelementptr inbounds %struct.ImGuiDockContext, ptr %65, i32 0, i32 0
  %67 = getelementptr inbounds %struct.ImGuiStorage, ptr %66, i32 0, i32 0
  %68 = getelementptr inbounds %struct.ImVector.6, ptr %67, i32 0, i32 0
  %69 = load i32, ptr %68, align 8, !tbaa !13
  %70 = icmp slt i32 %64, %69
  br i1 %70, label %72, label %71

71:                                               ; preds = %63
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %149

72:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %73 = load ptr, ptr %4, align 8, !tbaa !9
  %74 = getelementptr inbounds %struct.ImGuiDockContext, ptr %73, i32 0, i32 0
  %75 = getelementptr inbounds %struct.ImGuiStorage, ptr %74, i32 0, i32 0
  %76 = load i32, ptr %11, align 4, !tbaa !5
  %77 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN8ImVectorIN12ImGuiStorage16ImGuiStoragePairEEixEi(ptr noundef nonnull align 8 dereferenceable(16) %75, i32 noundef %76)
          to label %78 unwind label %112

78:                                               ; preds = %72
  %79 = getelementptr inbounds %"struct.ImGuiStorage::ImGuiStoragePair", ptr %77, i32 0, i32 1
  %80 = load ptr, ptr %79, align 8, !tbaa !19
  store ptr %80, ptr %12, align 8, !tbaa !9
  %81 = load ptr, ptr %12, align 8, !tbaa !9
  %82 = icmp ne ptr %81, null
  br i1 %82, label %83, label %144

83:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #5
  %84 = load i32, ptr %2, align 4, !tbaa !5
  %85 = icmp eq i32 %84, 0
  br i1 %85, label %102, label %86

86:                                               ; preds = %83
  %87 = load ptr, ptr %12, align 8, !tbaa !9
  %88 = getelementptr inbounds %struct.ImGuiDockNode, ptr %87, i32 0, i32 0
  %89 = load i32, ptr %88, align 8, !tbaa !20
  %90 = load i32, ptr %2, align 4, !tbaa !5
  %91 = icmp ne i32 %89, %90
  br i1 %91, label %92, label %100

92:                                               ; preds = %86
  %93 = load ptr, ptr %12, align 8, !tbaa !9
  %94 = invoke noundef ptr @_ZN5ImGui19DockNodeGetRootNodeEP13ImGuiDockNode(ptr noundef %93)
          to label %95 unwind label %116

95:                                               ; preds = %92
  %96 = getelementptr inbounds %struct.ImGuiDockNode, ptr %94, i32 0, i32 0
  %97 = load i32, ptr %96, align 8, !tbaa !20
  %98 = load i32, ptr %2, align 4, !tbaa !5
  %99 = icmp eq i32 %97, %98
  br label %100

100:                                              ; preds = %95, %86
  %101 = phi i1 [ false, %86 ], [ %99, %95 ]
  br label %102

102:                                              ; preds = %100, %83
  %103 = phi i1 [ true, %83 ], [ %101, %100 ]
  %104 = zext i1 %103 to i8
  store i8 %104, ptr %15, align 1, !tbaa !11
  %105 = load i8, ptr %15, align 1, !tbaa !11, !range !28, !noundef !29
  %106 = trunc i8 %105 to i1
  br i1 %106, label %107, label %143

107:                                              ; preds = %102
  %108 = load ptr, ptr %12, align 8, !tbaa !9
  %109 = invoke noundef zeroext i1 @_ZNK13ImGuiDockNode13IsCentralNodeEv(ptr noundef nonnull align 8 dereferenceable(203) %108)
          to label %110 unwind label %116

110:                                              ; preds = %107
  br i1 %109, label %111, label %120

111:                                              ; preds = %110
  store i8 1, ptr %7, align 1, !tbaa !11
  br label %120

112:                                              ; preds = %72
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %13, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %14, align 4
  br label %148

116:                                              ; preds = %141, %133, %130, %123, %107, %92
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %13, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  br label %148

120:                                              ; preds = %111, %110
  %121 = load i32, ptr %2, align 4, !tbaa !5
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %123, label %127

123:                                              ; preds = %120
  %124 = load ptr, ptr %3, align 8, !tbaa !9
  %125 = load ptr, ptr %12, align 8, !tbaa !9
  invoke void @_ZN5ImGuiL33DockContextQueueNotifyRemovedNodeEP12ImGuiContextP13ImGuiDockNode(ptr noundef %124, ptr noundef %125)
          to label %126 unwind label %116

126:                                              ; preds = %123
  br label %127

127:                                              ; preds = %126, %120
  %128 = load ptr, ptr %5, align 8, !tbaa !9
  %129 = icmp ne ptr %128, null
  br i1 %129, label %130, label %141

130:                                              ; preds = %127
  %131 = load ptr, ptr %5, align 8, !tbaa !9
  %132 = load ptr, ptr %12, align 8, !tbaa !9
  invoke void @_ZN5ImGuiL19DockNodeMoveWindowsEP13ImGuiDockNodeS1_(ptr noundef %131, ptr noundef %132)
          to label %133 unwind label %116

133:                                              ; preds = %130
  %134 = load ptr, ptr %12, align 8, !tbaa !9
  %135 = getelementptr inbounds %struct.ImGuiDockNode, ptr %134, i32 0, i32 0
  %136 = load i32, ptr %135, align 8, !tbaa !20
  %137 = load ptr, ptr %5, align 8, !tbaa !9
  %138 = getelementptr inbounds %struct.ImGuiDockNode, ptr %137, i32 0, i32 0
  %139 = load i32, ptr %138, align 8, !tbaa !20
  invoke void @_ZN5ImGuiL32DockSettingsRenameNodeReferencesEjj(i32 noundef %136, i32 noundef %139)
          to label %140 unwind label %116

140:                                              ; preds = %133
  br label %141

141:                                              ; preds = %140, %127
  invoke void @_ZN8ImVectorIP13ImGuiDockNodeE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %142 unwind label %116

142:                                              ; preds = %141
  br label %143

143:                                              ; preds = %142, %102
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  br label %144

144:                                              ; preds = %143, %78
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %145

145:                                              ; preds = %144
  %146 = load i32, ptr %11, align 4, !tbaa !5
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %11, align 4, !tbaa !5
  br label %63, !llvm.loop !30

148:                                              ; preds = %116, %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %291

149:                                              ; preds = %71
  %150 = load ptr, ptr %5, align 8, !tbaa !9
  %151 = icmp ne ptr %150, null
  br i1 %151, label %152, label %170

152:                                              ; preds = %149
  %153 = load i32, ptr %8, align 4, !tbaa !5
  %154 = load ptr, ptr %5, align 8, !tbaa !9
  %155 = getelementptr inbounds %struct.ImGuiDockNode, ptr %154, i32 0, i32 28
  %156 = trunc i32 %153 to i16
  %157 = load i16, ptr %155, align 8
  %158 = and i16 %156, 7
  %159 = and i16 %157, -8
  %160 = or i16 %159, %158
  store i16 %160, ptr %155, align 8
  %161 = load i32, ptr %9, align 4, !tbaa !5
  %162 = load ptr, ptr %5, align 8, !tbaa !9
  %163 = getelementptr inbounds %struct.ImGuiDockNode, ptr %162, i32 0, i32 28
  %164 = trunc i32 %161 to i16
  %165 = load i16, ptr %163, align 8
  %166 = and i16 %164, 7
  %167 = shl i16 %166, 3
  %168 = and i16 %165, -57
  %169 = or i16 %168, %167
  store i16 %169, ptr %163, align 8
  br label %170

170:                                              ; preds = %152, %149
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %171 = load ptr, ptr %3, align 8, !tbaa !9
  %172 = getelementptr inbounds %struct.ImGuiContext, ptr %171, i32 0, i32 246
  %173 = invoke noundef ptr @_ZN13ImChunkStreamI19ImGuiWindowSettingsE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %172)
          to label %174 unwind label %179

174:                                              ; preds = %170
  store ptr %173, ptr %16, align 8, !tbaa !9
  br label %175

175:                                              ; preds = %225, %174
  %176 = load ptr, ptr %16, align 8, !tbaa !9
  %177 = icmp ne ptr %176, null
  br i1 %177, label %183, label %178

178:                                              ; preds = %175
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %227

179:                                              ; preds = %220, %170
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %13, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %14, align 4
  br label %226

183:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %184 = load ptr, ptr %16, align 8, !tbaa !9
  %185 = getelementptr inbounds %struct.ImGuiWindowSettings, ptr %184, i32 0, i32 5
  %186 = load i32, ptr %185, align 4, !tbaa !32
  store i32 %186, ptr %17, align 4, !tbaa !5
  %187 = load i32, ptr %17, align 4, !tbaa !5
  %188 = icmp ne i32 %187, 0
  br i1 %188, label %189, label %219

189:                                              ; preds = %183
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %190

190:                                              ; preds = %214, %189
  %191 = load i32, ptr %18, align 4, !tbaa !5
  %192 = getelementptr inbounds %struct.ImVector.54, ptr %10, i32 0, i32 0
  %193 = load i32, ptr %192, align 8, !tbaa !36
  %194 = icmp slt i32 %191, %193
  br i1 %194, label %196, label %195

195:                                              ; preds = %190
  store i32 8, ptr %6, align 4
  br label %217

196:                                              ; preds = %190
  %197 = load i32, ptr %18, align 4, !tbaa !5
  %198 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP13ImGuiDockNodeEixEi(ptr noundef nonnull align 8 dereferenceable(16) %10, i32 noundef %197)
          to label %199 unwind label %209

199:                                              ; preds = %196
  %200 = load ptr, ptr %198, align 8, !tbaa !9
  %201 = getelementptr inbounds %struct.ImGuiDockNode, ptr %200, i32 0, i32 0
  %202 = load i32, ptr %201, align 8, !tbaa !20
  %203 = load i32, ptr %17, align 4, !tbaa !5
  %204 = icmp eq i32 %202, %203
  br i1 %204, label %205, label %213

205:                                              ; preds = %199
  %206 = load i32, ptr %2, align 4, !tbaa !5
  %207 = load ptr, ptr %16, align 8, !tbaa !9
  %208 = getelementptr inbounds %struct.ImGuiWindowSettings, ptr %207, i32 0, i32 5
  store i32 %206, ptr %208, align 4, !tbaa !32
  store i32 8, ptr %6, align 4
  br label %217

209:                                              ; preds = %196
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %13, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %226

213:                                              ; preds = %199
  br label %214

214:                                              ; preds = %213
  %215 = load i32, ptr %18, align 4, !tbaa !5
  %216 = add nsw i32 %215, 1
  store i32 %216, ptr %18, align 4, !tbaa !5
  br label %190, !llvm.loop !38

217:                                              ; preds = %205, %195
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %218

218:                                              ; preds = %217
  br label %219

219:                                              ; preds = %218, %183
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %220

220:                                              ; preds = %219
  %221 = load ptr, ptr %3, align 8, !tbaa !9
  %222 = getelementptr inbounds %struct.ImGuiContext, ptr %221, i32 0, i32 246
  %223 = load ptr, ptr %16, align 8, !tbaa !9
  %224 = invoke noundef ptr @_ZN13ImChunkStreamI19ImGuiWindowSettingsE10next_chunkEPS0_(ptr noundef nonnull align 8 dereferenceable(16) %222, ptr noundef %223)
          to label %225 unwind label %179

225:                                              ; preds = %220
  store ptr %224, ptr %16, align 8, !tbaa !9
  br label %175, !llvm.loop !39

226:                                              ; preds = %209, %179
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %291

227:                                              ; preds = %178
  %228 = getelementptr inbounds %struct.ImVector.54, ptr %10, i32 0, i32 0
  %229 = load i32, ptr %228, align 8, !tbaa !36
  %230 = icmp sgt i32 %229, 1
  br i1 %230, label %231, label %242

231:                                              ; preds = %227
  %232 = getelementptr inbounds %struct.ImVector.54, ptr %10, i32 0, i32 2
  %233 = load ptr, ptr %232, align 8, !tbaa !40
  %234 = getelementptr inbounds %struct.ImVector.54, ptr %10, i32 0, i32 0
  %235 = load i32, ptr %234, align 8, !tbaa !36
  %236 = sext i32 %235 to i64
  invoke void @_ZL7ImQsortPvmmPFiPKvS1_E(ptr noundef %233, i64 noundef %236, i64 noundef 8, ptr noundef @_ZL30DockNodeComparerDepthMostFirstPKvS0_)
          to label %237 unwind label %238

237:                                              ; preds = %231
  br label %242

238:                                              ; preds = %276, %269, %266, %231
  %239 = landingpad { ptr, i32 }
          cleanup
  %240 = extractvalue { ptr, i32 } %239, 0
  store ptr %240, ptr %13, align 8
  %241 = extractvalue { ptr, i32 } %239, 1
  store i32 %241, ptr %14, align 4
  br label %291

242:                                              ; preds = %237, %227
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %243

243:                                              ; preds = %256, %242
  %244 = load i32, ptr %19, align 4, !tbaa !5
  %245 = getelementptr inbounds %struct.ImVector.54, ptr %10, i32 0, i32 0
  %246 = load i32, ptr %245, align 8, !tbaa !36
  %247 = icmp slt i32 %244, %246
  br i1 %247, label %249, label %248

248:                                              ; preds = %243
  store i32 11, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %263

249:                                              ; preds = %243
  %250 = load ptr, ptr %3, align 8, !tbaa !9
  %251 = load i32, ptr %19, align 4, !tbaa !5
  %252 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP13ImGuiDockNodeEixEi(ptr noundef nonnull align 8 dereferenceable(16) %10, i32 noundef %251)
          to label %253 unwind label %259

253:                                              ; preds = %249
  %254 = load ptr, ptr %252, align 8, !tbaa !9
  invoke void @_ZN5ImGuiL21DockContextRemoveNodeEP12ImGuiContextP13ImGuiDockNodeb(ptr noundef %250, ptr noundef %254, i1 noundef zeroext false)
          to label %255 unwind label %259

255:                                              ; preds = %253
  br label %256

256:                                              ; preds = %255
  %257 = load i32, ptr %19, align 4, !tbaa !5
  %258 = add nsw i32 %257, 1
  store i32 %258, ptr %19, align 4, !tbaa !5
  br label %243, !llvm.loop !41

259:                                              ; preds = %253, %249
  %260 = landingpad { ptr, i32 }
          cleanup
  %261 = extractvalue { ptr, i32 } %260, 0
  store ptr %261, ptr %13, align 8
  %262 = extractvalue { ptr, i32 } %260, 1
  store i32 %262, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %291

263:                                              ; preds = %248
  %264 = load i32, ptr %2, align 4, !tbaa !5
  %265 = icmp eq i32 %264, 0
  br i1 %265, label %266, label %273

266:                                              ; preds = %263
  %267 = load ptr, ptr %4, align 8, !tbaa !9
  %268 = getelementptr inbounds %struct.ImGuiDockContext, ptr %267, i32 0, i32 0
  invoke void @_ZN12ImGuiStorage5ClearEv(ptr noundef nonnull align 8 dereferenceable(16) %268)
          to label %269 unwind label %238

269:                                              ; preds = %266
  %270 = load ptr, ptr %4, align 8, !tbaa !9
  %271 = getelementptr inbounds %struct.ImGuiDockContext, ptr %270, i32 0, i32 1
  invoke void @_ZN8ImVectorI16ImGuiDockRequestE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %271)
          to label %272 unwind label %238

272:                                              ; preds = %269
  br label %287

273:                                              ; preds = %263
  %274 = load i8, ptr %7, align 1, !tbaa !11, !range !28, !noundef !29
  %275 = trunc i8 %274 to i1
  br i1 %275, label %276, label %286

276:                                              ; preds = %273
  %277 = load ptr, ptr %5, align 8, !tbaa !9
  %278 = load ptr, ptr %5, align 8, !tbaa !9
  %279 = getelementptr inbounds %struct.ImGuiDockNode, ptr %278, i32 0, i32 18
  store ptr %277, ptr %279, align 8, !tbaa !42
  %280 = load ptr, ptr %5, align 8, !tbaa !9
  %281 = load ptr, ptr %5, align 8, !tbaa !9
  %282 = getelementptr inbounds %struct.ImGuiDockNode, ptr %281, i32 0, i32 2
  %283 = load i32, ptr %282, align 8, !tbaa !43
  %284 = or i32 %283, 2048
  invoke void @_ZN13ImGuiDockNode13SetLocalFlagsEi(ptr noundef nonnull align 8 dereferenceable(203) %280, i32 noundef %284)
          to label %285 unwind label %238

285:                                              ; preds = %276
  br label %286

286:                                              ; preds = %285, %273
  br label %287

287:                                              ; preds = %286, %272
  call void @_ZN8ImVectorIP13ImGuiDockNodeED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  store i32 0, ptr %6, align 4
  br label %288

288:                                              ; preds = %287, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  %289 = load i32, ptr %6, align 4
  switch i32 %289, label %297 [
    i32 0, label %290
    i32 1, label %290
  ]

290:                                              ; preds = %288, %288
  ret void

291:                                              ; preds = %259, %238, %226, %148
  call void @_ZN8ImVectorIP13ImGuiDockNodeED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  br label %292

292:                                              ; preds = %291
  %293 = load ptr, ptr %13, align 8
  %294 = load i32, ptr %14, align 4
  %295 = insertvalue { ptr, i32 } poison, ptr %293, 0
  %296 = insertvalue { ptr, i32 } %295, i32 %294, 1
  resume { ptr, i32 } %296

297:                                              ; preds = %288
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5ImGui23DockContextFindNodeByIDEP12ImGuiContextj(ptr noundef, i32 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK13ImGuiDockNode13IsCentralNodeEv(ptr noundef nonnull align 8 dereferenceable(203)) #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN5ImGuiL19DockNodeMoveWindowsEP13ImGuiDockNodeS1_(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN5ImGuiL32DockSettingsRenameNodeReferencesEjj(i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN13ImGuiDockNode13SetLocalFlagsEi(ptr noundef nonnull align 8 dereferenceable(203), i32 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN5ImGuiL21DockContextRemoveNodeEP12ImGuiContextP13ImGuiDockNodeb(ptr noundef, ptr noundef, i1 noundef zeroext) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8ImVectorIP13ImGuiDockNodeEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN5ImGuiL33DockContextQueueNotifyRemovedNodeEP12ImGuiContextP13ImGuiDockNode(ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorIP13ImGuiDockNodeE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL30DockNodeComparerDepthMostFirstPKvS0_(ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorI16ImGuiDockRequestE5clearEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8ImVectorIP13ImGuiDockNodeED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint 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 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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTS16ImGuiDockContext", !15, i64 0, !17, i64 16, !18, i64 32, !12, i64 48}
!15 = !{!"_ZTS12ImGuiStorage", !16, i64 0}
!16 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !6, i64 0, !6, i64 4, !10, i64 8}
!17 = !{!"_ZTS8ImVectorI16ImGuiDockRequestE", !6, i64 0, !6, i64 4, !10, i64 8}
!18 = !{!"_ZTS8ImVectorI21ImGuiDockNodeSettingsE", !6, i64 0, !6, i64 4, !10, i64 8}
!19 = !{!7, !7, i64 0}
!20 = !{!21, !6, i64 0}
!21 = !{!"_ZTS13ImGuiDockNode", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !22, i64 20, !10, i64 24, !7, i64 32, !23, i64 48, !10, i64 64, !24, i64 72, !24, i64 80, !24, i64 88, !26, i64 96, !27, i64 100, !6, i64 132, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !6, i64 168, !6, i64 172, !6, i64 176, !6, i64 180, !6, i64 184, !6, i64 188, !6, i64 192, !6, i64 196, !6, i64 200, !6, i64 200, !6, i64 200, !12, i64 201, !12, i64 201, !12, i64 201, !12, i64 201, !12, i64 201, !12, i64 201, !12, i64 201, !12, i64 202, !12, i64 202, !12, i64 202, !12, i64 202}
!22 = !{!"_ZTS18ImGuiDockNodeState", !7, i64 0}
!23 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !6, i64 0, !6, i64 4, !10, i64 8}
!24 = !{!"_ZTS6ImVec2", !25, i64 0, !25, i64 4}
!25 = !{!"float", !7, i64 0}
!26 = !{!"_ZTS9ImGuiAxis", !7, i64 0}
!27 = !{!"_ZTS16ImGuiWindowClass", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !12, i64 28, !12, i64 29}
!28 = !{i8 0, i8 2}
!29 = !{}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!33, !6, i64 20}
!33 = !{!"_ZTS19ImGuiWindowSettings", !6, i64 0, !34, i64 4, !34, i64 8, !34, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !35, i64 28, !12, i64 30, !12, i64 31, !12, i64 32, !12, i64 33}
!34 = !{!"_ZTS8ImVec2ih", !35, i64 0, !35, i64 2}
!35 = !{!"short", !7, i64 0}
!36 = !{!37, !6, i64 0}
!37 = !{!"_ZTS8ImVectorIP13ImGuiDockNodeE", !6, i64 0, !6, i64 4, !10, i64 8}
!38 = distinct !{!38, !31}
!39 = distinct !{!39, !31}
!40 = !{!37, !10, i64 8}
!41 = distinct !{!41, !31}
!42 = !{!21, !10, i64 152}
!43 = !{!21, !6, i64 8}


; 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.ImVector.54 = type { i32, i32, ptr }

@GImGui = external dso_local local_unnamed_addr global ptr, align 8

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZL7ImQsortPvmmPFiPKvS1_E(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12ImGuiStorage5ClearEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN13ImChunkStreamI19ImGuiWindowSettingsE10next_chunkEPS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui31DockBuilderRemoveNodeChildNodesEj(i32 noundef %0) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %2 = alloca %struct.ImVector.54, align 8
  %3 = alloca ptr, align 8
  %4 = load ptr, ptr @GImGui, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %4, i64 24880
  %.not = icmp eq i32 %0, 0
  br i1 %.not, label %.thread80, label %6

6:                                                ; preds = %1
  %7 = tail call noundef ptr @_ZN5ImGui23DockContextFindNodeByIDEP12ImGuiContextj(ptr noundef %4, i32 noundef %0)
  %8 = icmp eq ptr %7, null
  br i1 %8, label %118, label %.thread80.thread

.thread80:                                        ; preds = %1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #5
  call void @_ZN8ImVectorIP13ImGuiDockNodeEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %9 = load i32, ptr %5, align 8, !tbaa !9
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %.lr.ph.split.us.split.us, label %._crit_edge

.thread80.thread:                                 ; preds = %6
  %11 = getelementptr inbounds i8, ptr %7, i64 200
  %12 = load i16, ptr %11, align 8
  %13 = shl i16 %12, 13
  %14 = ashr exact i16 %13, 13
  %15 = shl i16 %12, 10
  %16 = ashr i16 %15, 13
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #5
  call void @_ZN8ImVectorIP13ImGuiDockNodeEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %17 = load i32, ptr %5, align 8, !tbaa !9
  %18 = icmp sgt i32 %17, 0
  br i1 %18, label %.lr.ph.split, label %._crit_edge.thread

.lr.ph.split.us.split.us:                         ; preds = %.thread80, %.critedge76.us.us
  %.05786.us.us = phi i1 [ %.3.us.us, %.critedge76.us.us ], [ false, %.thread80 ]
  %.06085.us.us = phi i32 [ %23, %.critedge76.us.us ], [ 0, %.thread80 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8ImVectorIN12ImGuiStorage16ImGuiStoragePairEEixEi(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %.06085.us.us)
  %20 = getelementptr inbounds i8, ptr %19, i64 8
  %21 = load ptr, ptr %20, align 8, !tbaa !17
  store ptr %21, ptr %3, align 8, !tbaa !5
  %.not72.us.us = icmp eq ptr %21, null
  br i1 %.not72.us.us, label %.critedge76.us.us, label %.critedge.us.us

.critedge.us.us:                                  ; preds = %.lr.ph.split.us.split.us
  %22 = call noundef zeroext i1 @_ZNK13ImGuiDockNode13IsCentralNodeEv(ptr noundef nonnull align 8 dereferenceable(203) %21)
  %spec.select.us.us = select i1 %22, i1 true, i1 %.05786.us.us
  invoke void @_ZN8ImVectorIP13ImGuiDockNodeE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %.critedge76.us.us unwind label %.split.us.split.us

.critedge76.us.us:                                ; preds = %.critedge.us.us, %.lr.ph.split.us.split.us
  %.3.us.us = phi i1 [ %.05786.us.us, %.lr.ph.split.us.split.us ], [ %spec.select.us.us, %.critedge.us.us ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  %23 = add nuw nsw i32 %.06085.us.us, 1
  %24 = load i32, ptr %5, align 8, !tbaa !9
  %25 = icmp slt i32 %23, %24
  br i1 %25, label %.lr.ph.split.us.split.us, label %._crit_edge, !llvm.loop !18

.split.us.split.us:                               ; preds = %.critedge.us.us
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %.split.us

._crit_edge:                                      ; preds = %.critedge76, %.critedge76.us.us, %.thread80
  %27 = phi i16 [ 0, %.thread80 ], [ 0, %.critedge76.us.us ], [ %16, %.critedge76 ]
  %28 = phi ptr [ null, %.thread80 ], [ null, %.critedge76.us.us ], [ %7, %.critedge76 ]
  %29 = phi i16 [ 0, %.thread80 ], [ 0, %.critedge76.us.us ], [ %14, %.critedge76 ]
  %.057.lcssa = phi i1 [ false, %.thread80 ], [ %.3.us.us, %.critedge76.us.us ], [ %.3, %.critedge76 ]
  br i1 %.not, label %66, label %._crit_edge.thread

.lr.ph.split:                                     ; preds = %.thread80.thread, %.critedge76
  %.05786 = phi i1 [ %.3, %.critedge76 ], [ false, %.thread80.thread ]
  %.06085 = phi i32 [ %52, %.critedge76 ], [ 0, %.thread80.thread ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8ImVectorIN12ImGuiStorage16ImGuiStoragePairEEixEi(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %.06085)
  %31 = getelementptr inbounds i8, ptr %30, i64 8
  %32 = load ptr, ptr %31, align 8, !tbaa !17
  store ptr %32, ptr %3, align 8, !tbaa !5
  %.not72 = icmp eq ptr %32, null
  br i1 %.not72, label %.critedge76, label %33

33:                                               ; preds = %.lr.ph.split
  %34 = load i32, ptr %32, align 8, !tbaa !20
  %.not73 = icmp eq i32 %34, %0
  br i1 %.not73, label %.critedge76, label %35

35:                                               ; preds = %33
  %36 = call noundef ptr @_ZN5ImGui19DockNodeGetRootNodeEP13ImGuiDockNode(ptr noundef nonnull %32)
  %37 = load i32, ptr %36, align 8, !tbaa !20
  %38 = icmp eq i32 %37, %0
  br i1 %38, label %40, label %.critedge76

.split:                                           ; preds = %51, %47, %45, %40
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %.split.us

.split.us:                                        ; preds = %.split.us.split.us, %.split
  %.us-phi = phi { ptr, i32 } [ %39, %.split ], [ %26, %.split.us.split.us ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %119

40:                                               ; preds = %35
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = call noundef zeroext i1 @_ZNK13ImGuiDockNode13IsCentralNodeEv(ptr noundef nonnull align 8 dereferenceable(203) %41)
  %spec.select81 = select i1 %42, i1 true, i1 %.05786
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  invoke void @_ZN5ImGuiL33DockContextQueueNotifyRemovedNodeEP12ImGuiContextP13ImGuiDockNode(ptr noundef nonnull %4, ptr noundef %43)
          to label %44 unwind label %.split

44:                                               ; preds = %40
  br i1 %.not, label %51, label %45

45:                                               ; preds = %44
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  invoke void @_ZN5ImGuiL19DockNodeMoveWindowsEP13ImGuiDockNodeS1_(ptr noundef nonnull %7, ptr noundef %46)
          to label %47 unwind label %.split

47:                                               ; preds = %45
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = load i32, ptr %48, align 8, !tbaa !20
  %50 = load i32, ptr %7, align 8, !tbaa !20
  invoke void @_ZN5ImGuiL32DockSettingsRenameNodeReferencesEjj(i32 noundef %49, i32 noundef %50)
          to label %51 unwind label %.split

51:                                               ; preds = %47, %44
  invoke void @_ZN8ImVectorIP13ImGuiDockNodeE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %.critedge76 unwind label %.split

.critedge76:                                      ; preds = %35, %51, %33, %.lr.ph.split
  %.3 = phi i1 [ %.05786, %.lr.ph.split ], [ %spec.select81, %51 ], [ %.05786, %35 ], [ %.05786, %33 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  %52 = add nuw nsw i32 %.06085, 1
  %53 = load i32, ptr %5, align 8, !tbaa !9
  %54 = icmp slt i32 %52, %53
  br i1 %54, label %.lr.ph.split, label %._crit_edge, !llvm.loop !18

._crit_edge.thread:                               ; preds = %.thread80.thread, %._crit_edge
  %.057.lcssa102 = phi i1 [ %.057.lcssa, %._crit_edge ], [ false, %.thread80.thread ]
  %55 = phi i16 [ %29, %._crit_edge ], [ %14, %.thread80.thread ]
  %56 = phi ptr [ %28, %._crit_edge ], [ %7, %.thread80.thread ]
  %57 = phi i16 [ %27, %._crit_edge ], [ %16, %.thread80.thread ]
  %58 = getelementptr inbounds i8, ptr %56, i64 200
  %59 = load i16, ptr %58, align 8
  %60 = and i16 %55, 7
  %61 = and i16 %59, -64
  %62 = shl nsw i16 %57, 3
  %63 = and i16 %62, 56
  %64 = or disjoint i16 %63, %60
  %65 = or disjoint i16 %64, %61
  store i16 %65, ptr %58, align 8
  br label %66

66:                                               ; preds = %._crit_edge.thread, %._crit_edge
  %.057.lcssa103 = phi i1 [ %.057.lcssa102, %._crit_edge.thread ], [ %.057.lcssa, %._crit_edge ]
  %67 = phi ptr [ %56, %._crit_edge.thread ], [ %28, %._crit_edge ]
  %68 = getelementptr inbounds i8, ptr %4, i64 24984
  %69 = call noundef ptr @_ZN13ImChunkStreamI19ImGuiWindowSettingsE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %68)
  br label %70

70:                                               ; preds = %.loopexit, %66
  %.056 = phi ptr [ %69, %66 ], [ %90, %.loopexit ]
  %.not70 = icmp eq ptr %.056, null
  br i1 %.not70, label %71, label %76

71:                                               ; preds = %70
  %72 = load i32, ptr %2, align 8, !tbaa !28
  %73 = icmp sgt i32 %72, 1
  br i1 %73, label %91, label %97

74:                                               ; preds = %.loopexit
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %119

76:                                               ; preds = %70
  %77 = getelementptr inbounds i8, ptr %.056, i64 20
  %78 = load i32, ptr %77, align 4, !tbaa !30
  %.not71 = icmp ne i32 %78, 0
  %79 = load i32, ptr %2, align 8
  %80 = icmp sgt i32 %79, 0
  %or.cond97 = select i1 %.not71, i1 %80, i1 false
  br i1 %or.cond97, label %.lr.ph91, label %.loopexit

81:                                               ; preds = %.lr.ph91
  %82 = add nuw nsw i32 %.05590, 1
  %83 = load i32, ptr %2, align 8, !tbaa !28
  %84 = icmp slt i32 %82, %83
  br i1 %84, label %.lr.ph91, label %.loopexit, !llvm.loop !34

.lr.ph91:                                         ; preds = %76, %81
  %.05590 = phi i32 [ %82, %81 ], [ 0, %76 ]
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP13ImGuiDockNodeEixEi(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef %.05590)
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  %87 = load i32, ptr %86, align 8, !tbaa !20
  %88 = icmp eq i32 %87, %78
  br i1 %88, label %89, label %81

89:                                               ; preds = %.lr.ph91
  store i32 %0, ptr %77, align 4, !tbaa !30
  br label %.loopexit

.loopexit:                                        ; preds = %81, %89, %76
  %90 = invoke noundef ptr @_ZN13ImChunkStreamI19ImGuiWindowSettingsE10next_chunkEPS0_(ptr noundef nonnull align 8 dereferenceable(16) %68, ptr noundef nonnull %.056)
          to label %70 unwind label %74, !llvm.loop !35

91:                                               ; preds = %71
  %92 = getelementptr inbounds i8, ptr %2, i64 8
  %93 = load ptr, ptr %92, align 8, !tbaa !36
  %94 = zext nneg i32 %72 to i64
  invoke void @_ZL7ImQsortPvmmPFiPKvS1_E(ptr noundef %93, i64 noundef %94, i64 noundef 8, ptr noundef nonnull @_ZL30DockNodeComparerDepthMostFirstPKvS0_)
          to label %._crit_edge100 unwind label %95

._crit_edge100:                                   ; preds = %91
  %.pre = load i32, ptr %2, align 8, !tbaa !28
  br label %97

95:                                               ; preds = %109, %108, %91
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %119

97:                                               ; preds = %._crit_edge100, %71
  %98 = phi i32 [ %.pre, %._crit_edge100 ], [ %72, %71 ]
  %99 = icmp sgt i32 %98, 0
  br i1 %99, label %.lr.ph94, label %._crit_edge95

._crit_edge95:                                    ; preds = %102, %97
  br i1 %.not, label %108, label %111

.lr.ph94:                                         ; preds = %97, %102
  %.092 = phi i32 [ %103, %102 ], [ 0, %97 ]
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP13ImGuiDockNodeEixEi(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef %.092)
  %101 = load ptr, ptr %100, align 8, !tbaa !5
  invoke void @_ZN5ImGuiL21DockContextRemoveNodeEP12ImGuiContextP13ImGuiDockNodeb(ptr noundef %4, ptr noundef %101, i1 noundef zeroext false)
          to label %102 unwind label %106

102:                                              ; preds = %.lr.ph94
  %103 = add nuw nsw i32 %.092, 1
  %104 = load i32, ptr %2, align 8, !tbaa !28
  %105 = icmp slt i32 %103, %104
  br i1 %105, label %.lr.ph94, label %._crit_edge95, !llvm.loop !37

106:                                              ; preds = %.lr.ph94
  %107 = landingpad { ptr, i32 }
          cleanup
  br label %119

108:                                              ; preds = %._crit_edge95
  invoke void @_ZN12ImGuiStorage5ClearEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %109 unwind label %95

109:                                              ; preds = %108
  %110 = getelementptr inbounds i8, ptr %4, i64 24896
  invoke void @_ZN8ImVectorI16ImGuiDockRequestE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %110)
          to label %117 unwind label %95

111:                                              ; preds = %._crit_edge95
  br i1 %.057.lcssa103, label %112, label %117

112:                                              ; preds = %111
  %113 = getelementptr inbounds i8, ptr %67, i64 152
  store ptr %67, ptr %113, align 8, !tbaa !38
  %114 = getelementptr inbounds i8, ptr %67, i64 8
  %115 = load i32, ptr %114, align 8, !tbaa !39
  %116 = or i32 %115, 2048
  call void @_ZN13ImGuiDockNode13SetLocalFlagsEi(ptr noundef nonnull align 8 dereferenceable(203) %67, i32 noundef %116)
  br label %117

117:                                              ; preds = %111, %112, %109
  call void @_ZN8ImVectorIP13ImGuiDockNodeED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  br label %118

118:                                              ; preds = %6, %117
  ret void

119:                                              ; preds = %106, %95, %74, %.split.us
  %.pn = phi { ptr, i32 } [ %.us-phi, %.split.us ], [ %75, %74 ], [ %107, %106 ], [ %96, %95 ]
  call void @_ZN8ImVectorIP13ImGuiDockNodeED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  resume { ptr, i32 } %.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5ImGui23DockContextFindNodeByIDEP12ImGuiContextj(ptr noundef, i32 noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN5ImGuiL19DockNodeMoveWindowsEP13ImGuiDockNodeS1_(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN5ImGuiL32DockSettingsRenameNodeReferencesEjj(i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN13ImGuiDockNode13SetLocalFlagsEi(ptr noundef nonnull align 8 dereferenceable(203), i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN5ImGuiL21DockContextRemoveNodeEP12ImGuiContextP13ImGuiDockNodeb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8ImVectorIP13ImGuiDockNodeEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN5ImGuiL33DockContextQueueNotifyRemovedNodeEP12ImGuiContextP13ImGuiDockNode(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorIP13ImGuiDockNodeE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL30DockNodeComparerDepthMostFirstPKvS0_(ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorI16ImGuiDockRequestE5clearEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8ImVectorIP13ImGuiDockNodeED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint 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 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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !13, i64 0}
!10 = !{!"_ZTS16ImGuiDockContext", !11, i64 0, !14, i64 16, !15, i64 32, !16, i64 48}
!11 = !{!"_ZTS12ImGuiStorage", !12, i64 0}
!12 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !13, i64 0, !13, i64 4, !6, i64 8}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTS8ImVectorI16ImGuiDockRequestE", !13, i64 0, !13, i64 4, !6, i64 8}
!15 = !{!"_ZTS8ImVectorI21ImGuiDockNodeSettingsE", !13, i64 0, !13, i64 4, !6, i64 8}
!16 = !{!"bool", !7, i64 0}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !13, i64 0}
!21 = !{!"_ZTS13ImGuiDockNode", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !22, i64 20, !6, i64 24, !7, i64 32, !23, i64 48, !6, i64 64, !24, i64 72, !24, i64 80, !24, i64 88, !26, i64 96, !27, i64 100, !13, i64 132, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !13, i64 168, !13, i64 172, !13, i64 176, !13, i64 180, !13, i64 184, !13, i64 188, !13, i64 192, !13, i64 196, !13, i64 200, !13, i64 200, !13, i64 200, !16, i64 201, !16, i64 201, !16, i64 201, !16, i64 201, !16, i64 201, !16, i64 201, !16, i64 201, !16, i64 202, !16, i64 202, !16, i64 202, !16, i64 202}
!22 = !{!"_ZTS18ImGuiDockNodeState", !7, i64 0}
!23 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !13, i64 0, !13, i64 4, !6, i64 8}
!24 = !{!"_ZTS6ImVec2", !25, i64 0, !25, i64 4}
!25 = !{!"float", !7, i64 0}
!26 = !{!"_ZTS9ImGuiAxis", !7, i64 0}
!27 = !{!"_ZTS16ImGuiWindowClass", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !16, i64 28, !16, i64 29}
!28 = !{!29, !13, i64 0}
!29 = !{!"_ZTS8ImVectorIP13ImGuiDockNodeE", !13, i64 0, !13, i64 4, !6, i64 8}
!30 = !{!31, !13, i64 20}
!31 = !{!"_ZTS19ImGuiWindowSettings", !13, i64 0, !32, i64 4, !32, i64 8, !32, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !33, i64 28, !16, i64 30, !16, i64 31, !16, i64 32, !16, i64 33}
!32 = !{!"_ZTS8ImVec2ih", !33, i64 0, !33, i64 2}
!33 = !{!"short", !7, i64 0}
!34 = distinct !{!34, !19}
!35 = distinct !{!35, !19}
!36 = !{!29, !6, i64 8}
!37 = distinct !{!37, !19}
!38 = !{!21, !6, i64 152}
!39 = !{!21, !13, i64 8}


; Effective O3 passes: AggressiveInstCombinePass,ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass