; LLVM IR from JawherBenjeddou/GraphicsRenderer :: Graphics/vendor/ImGui/imgui.ll (ZN5ImGui17DebugNodeViewportEP14ImGuiViewportP)

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

%struct.ImVec2 = type { float, float }
%struct.ImGuiViewport = type <{ i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, i32, ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, [4 x i8] }>
%struct.ImGuiViewportP = type { %struct.ImGuiViewport.base, ptr, i32, i32, i32, i32, %struct.ImVec2, float, float, i8, i16, [2 x i32], [2 x ptr], %struct.ImDrawData, %struct.ImDrawDataBuilder, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2 }
%struct.ImGuiViewport.base = type <{ i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, i32, ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8 }>
%struct.ImDrawData = type { i8, i32, i32, i32, %struct.ImVector.49, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, ptr }
%struct.ImVector.49 = type { i32, i32, ptr }
%struct.ImDrawDataBuilder = type { [2 x ptr], %struct.ImVector.49 }
%struct.ImGuiWindow = type { ptr, ptr, 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, i16, i16, i16, i16, i16, i32, i8, i8, i8, i8, i32, i8, i8, i8, i8, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVector.11, %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.36, float, float, i32, ptr, %struct.ImDrawList, 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.ImGuiWindowClass = type <{ i32, i32, i32, i32, i32, i32, i8, i8, [2 x i8] }>
%struct.ImVector.11 = 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.20, %struct.ImVector.20 }
%struct.ImVec1 = type { float }
%struct.ImGuiMenuColumns = type <{ i32, i32, i16, i16, i16, i16, i16, [4 x i16], [2 x i8] }>
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImVector.20 = type { i32, i32, ptr }
%struct.ImVec2ih = type { i16, i16 }
%struct.ImGuiStorage = type { %struct.ImVector.6 }
%struct.ImVector.6 = type { i32, i32, ptr }
%struct.ImVector.36 = type { i32, i32, ptr }
%struct.ImDrawList = type <{ %struct.ImVector.37, %struct.ImVector, %struct.ImVector.38, i32, i32, ptr, ptr, ptr, ptr, %struct.ImVector.39, %struct.ImVector.40, %struct.ImVector.2, %struct.ImDrawCmdHeader, %struct.ImDrawListSplitter, float, [4 x i8] }>
%struct.ImVector.37 = type { i32, i32, ptr }
%struct.ImVector = type { i32, i32, ptr }
%struct.ImVector.38 = type { i32, i32, ptr }
%struct.ImVector.39 = type { i32, i32, ptr }
%struct.ImVector.40 = 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.21 }
%struct.ImVector.21 = type { i32, i32, ptr }
%struct.ImGuiWindowDockStyle = type { [6 x i32] }
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }

@.str.16 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.183 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.456 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.600 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.655 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.656 = external hidden unnamed_addr constant [135 x i8], align 1
@.str.657 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.658 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.659 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.660 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.661 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.662 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.663 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.664 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.665 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.666 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.667 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.668 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.669 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.670 = external hidden unnamed_addr constant [21 x i8], align 1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #1 align 2

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

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

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

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

declare void @_ZN5ImGui7TreePopEv() #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5ImGui8SameLineEff(float noundef, float noundef) #1

declare void @_ZN5ImGui10BulletTextEPKcz(ptr noundef, ...) #5

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui17DebugNodeViewportEP14ImGuiViewportP(ptr noundef %0) #6 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca %struct.ImVec2, align 4
  %5 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @_ZN5ImGui15SetNextItemOpenEbi(i1 noundef zeroext true, i32 noundef 2)
  %6 = load ptr, ptr %2, align 8, !tbaa !5
  %7 = getelementptr inbounds %struct.ImGuiViewport, ptr %6, i32 0, i32 0
  %8 = load i32, ptr %7, align 8, !tbaa !9
  %9 = zext i32 %8 to i64
  %10 = inttoptr i64 %9 to ptr
  %11 = load ptr, ptr %2, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.ImGuiViewportP, ptr %11, i32 0, i32 2
  %13 = load i32, ptr %12, align 8, !tbaa !15
  %14 = load ptr, ptr %2, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.ImGuiViewport, ptr %14, i32 0, i32 0
  %16 = load i32, ptr %15, align 8, !tbaa !9
  %17 = load ptr, ptr %2, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.ImGuiViewport, ptr %17, i32 0, i32 7
  %19 = load i32, ptr %18, align 4, !tbaa !21
  %20 = load ptr, ptr %2, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.ImGuiViewportP, ptr %20, i32 0, i32 1
  %22 = load ptr, ptr %21, align 8, !tbaa !22
  %23 = icmp ne ptr %22, null
  br i1 %23, label %24, label %30

24:                                               ; preds = %1
  %25 = load ptr, ptr %2, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.ImGuiViewportP, ptr %25, i32 0, i32 1
  %27 = load ptr, ptr %26, align 8, !tbaa !22
  %28 = getelementptr inbounds %struct.ImGuiWindow, ptr %27, i32 0, i32 1
  %29 = load ptr, ptr %28, align 8, !tbaa !23
  br label %31

30:                                               ; preds = %1
  br label %31

31:                                               ; preds = %30, %24
  %32 = phi ptr [ %29, %24 ], [ @.str.183, %30 ]
  %33 = call noundef zeroext i1 (ptr, ptr, ...) @_ZN5ImGui8TreeNodeEPKvPKcz(ptr noundef %10, ptr noundef @.str.655, i32 noundef %13, i32 noundef %16, i32 noundef %19, ptr noundef %32)
  br i1 %33, label %34, label %200

34:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  %35 = load ptr, ptr %2, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.ImGuiViewport, ptr %35, i32 0, i32 1
  %37 = load i32, ptr %36, align 4, !tbaa !50
  store i32 %37, ptr %3, align 4, !tbaa !51
  %38 = load ptr, ptr %2, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.ImGuiViewport, ptr %38, i32 0, i32 2
  %40 = getelementptr inbounds %struct.ImVec2, ptr %39, i32 0, i32 0
  %41 = load float, ptr %40, align 8, !tbaa !52
  %42 = fpext float %41 to double
  %43 = load ptr, ptr %2, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.ImGuiViewport, ptr %43, i32 0, i32 2
  %45 = getelementptr inbounds %struct.ImVec2, ptr %44, i32 0, i32 1
  %46 = load float, ptr %45, align 4, !tbaa !53
  %47 = fpext float %46 to double
  %48 = load ptr, ptr %2, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.ImGuiViewport, ptr %48, i32 0, i32 3
  %50 = getelementptr inbounds %struct.ImVec2, ptr %49, i32 0, i32 0
  %51 = load float, ptr %50, align 8, !tbaa !54
  %52 = fpext float %51 to double
  %53 = load ptr, ptr %2, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.ImGuiViewport, ptr %53, i32 0, i32 3
  %55 = getelementptr inbounds %struct.ImVec2, ptr %54, i32 0, i32 1
  %56 = load float, ptr %55, align 4, !tbaa !55
  %57 = fpext float %56 to double
  %58 = load ptr, ptr %2, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.ImGuiViewportP, ptr %58, i32 0, i32 18
  %60 = getelementptr inbounds %struct.ImVec2, ptr %59, i32 0, i32 0
  %61 = load float, ptr %60, align 8, !tbaa !56
  %62 = fpext float %61 to double
  %63 = load ptr, ptr %2, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.ImGuiViewportP, ptr %63, i32 0, i32 18
  %65 = getelementptr inbounds %struct.ImVec2, ptr %64, i32 0, i32 1
  %66 = load float, ptr %65, align 4, !tbaa !57
  %67 = fpext float %66 to double
  %68 = load ptr, ptr %2, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.ImGuiViewportP, ptr %68, i32 0, i32 19
  %70 = getelementptr inbounds %struct.ImVec2, ptr %69, i32 0, i32 0
  %71 = load float, ptr %70, align 8, !tbaa !58
  %72 = fpext float %71 to double
  %73 = load ptr, ptr %2, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.ImGuiViewportP, ptr %73, i32 0, i32 19
  %75 = getelementptr inbounds %struct.ImVec2, ptr %74, i32 0, i32 1
  %76 = load float, ptr %75, align 4, !tbaa !59
  %77 = fpext float %76 to double
  %78 = load ptr, ptr %2, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.ImGuiViewportP, ptr %78, i32 0, i32 10
  %80 = load i16, ptr %79, align 2, !tbaa !60
  %81 = sext i16 %80 to i32
  %82 = load ptr, ptr %2, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.ImGuiViewport, ptr %82, i32 0, i32 6
  %84 = load float, ptr %83, align 8, !tbaa !61
  %85 = fmul float %84, 1.000000e+02
  %86 = fpext float %85 to double
  call void (ptr, ...) @_ZN5ImGui10BulletTextEPKcz(ptr noundef @.str.656, double noundef %42, double noundef %47, double noundef %52, double noundef %57, double noundef %62, double noundef %67, double noundef %72, double noundef %77, i32 noundef %81, double noundef %86)
  %87 = load ptr, ptr %2, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.ImGuiViewportP, ptr %87, i32 0, i32 2
  %89 = load i32, ptr %88, align 8, !tbaa !15
  %90 = icmp sgt i32 %89, 0
  br i1 %90, label %91, label %110

91:                                               ; preds = %34
  call void @_ZN5ImGui8SameLineEff(float noundef 0.000000e+00, float noundef -1.000000e+00)
  %92 = call noundef zeroext i1 @_ZN5ImGui11SmallButtonEPKc(ptr noundef @.str.657)
  br i1 %92, label %93, label %109

93:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %4, float noundef 2.000000e+02, float noundef 2.000000e+02)
  %94 = load ptr, ptr %2, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.ImGuiViewport, ptr %94, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %95, ptr align 4 %4, i64 8, i1 false), !tbaa.struct !62
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  %96 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN14ImGuiViewportP14UpdateWorkRectEv(ptr noundef nonnull align 8 dereferenceable(320) %96)
  %97 = load ptr, ptr %2, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.ImGuiViewportP, ptr %97, i32 0, i32 1
  %99 = load ptr, ptr %98, align 8, !tbaa !22
  %100 = icmp ne ptr %99, null
  br i1 %100, label %101, label %108

101:                                              ; preds = %93
  %102 = load ptr, ptr %2, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.ImGuiViewport, ptr %102, i32 0, i32 2
  %104 = load ptr, ptr %2, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.ImGuiViewportP, ptr %104, i32 0, i32 1
  %106 = load ptr, ptr %105, align 8, !tbaa !22
  %107 = getelementptr inbounds %struct.ImGuiWindow, ptr %106, i32 0, i32 10
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %107, ptr align 8 %103, i64 8, i1 false), !tbaa.struct !62
  br label %108

108:                                              ; preds = %101, %93
  br label %109

109:                                              ; preds = %108, %91
  br label %110

110:                                              ; preds = %109, %34
  %111 = load ptr, ptr %2, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.ImGuiViewport, ptr %111, i32 0, i32 1
  %113 = load i32, ptr %112, align 4, !tbaa !50
  %114 = load i32, ptr %3, align 4, !tbaa !51
  %115 = and i32 %114, 2
  %116 = icmp ne i32 %115, 0
  %117 = zext i1 %116 to i64
  %118 = select i1 %116, ptr @.str.659, ptr @.str.16
  %119 = load i32, ptr %3, align 4, !tbaa !51
  %120 = and i32 %119, 4096
  %121 = icmp ne i32 %120, 0
  %122 = zext i1 %121 to i64
  %123 = select i1 %121, ptr @.str.660, ptr @.str.16
  %124 = load i32, ptr %3, align 4, !tbaa !51
  %125 = and i32 %124, 8192
  %126 = icmp ne i32 %125, 0
  %127 = zext i1 %126 to i64
  %128 = select i1 %126, ptr @.str.600, ptr @.str.16
  %129 = load i32, ptr %3, align 4, !tbaa !51
  %130 = and i32 %129, 4
  %131 = icmp ne i32 %130, 0
  %132 = zext i1 %131 to i64
  %133 = select i1 %131, ptr @.str.661, ptr @.str.16
  %134 = load i32, ptr %3, align 4, !tbaa !51
  %135 = and i32 %134, 8
  %136 = icmp ne i32 %135, 0
  %137 = zext i1 %136 to i64
  %138 = select i1 %136, ptr @.str.662, ptr @.str.16
  %139 = load i32, ptr %3, align 4, !tbaa !51
  %140 = and i32 %139, 16
  %141 = icmp ne i32 %140, 0
  %142 = zext i1 %141 to i64
  %143 = select i1 %141, ptr @.str.663, ptr @.str.16
  %144 = load i32, ptr %3, align 4, !tbaa !51
  %145 = and i32 %144, 32
  %146 = icmp ne i32 %145, 0
  %147 = zext i1 %146 to i64
  %148 = select i1 %146, ptr @.str.664, ptr @.str.16
  %149 = load i32, ptr %3, align 4, !tbaa !51
  %150 = and i32 %149, 64
  %151 = icmp ne i32 %150, 0
  %152 = zext i1 %151 to i64
  %153 = select i1 %151, ptr @.str.665, ptr @.str.16
  %154 = load i32, ptr %3, align 4, !tbaa !51
  %155 = and i32 %154, 128
  %156 = icmp ne i32 %155, 0
  %157 = zext i1 %156 to i64
  %158 = select i1 %156, ptr @.str.666, ptr @.str.16
  %159 = load i32, ptr %3, align 4, !tbaa !51
  %160 = and i32 %159, 256
  %161 = icmp ne i32 %160, 0
  %162 = zext i1 %161 to i64
  %163 = select i1 %161, ptr @.str.667, ptr @.str.16
  %164 = load i32, ptr %3, align 4, !tbaa !51
  %165 = and i32 %164, 512
  %166 = icmp ne i32 %165, 0
  %167 = zext i1 %166 to i64
  %168 = select i1 %166, ptr @.str.668, ptr @.str.16
  %169 = load i32, ptr %3, align 4, !tbaa !51
  %170 = and i32 %169, 1024
  %171 = icmp ne i32 %170, 0
  %172 = zext i1 %171 to i64
  %173 = select i1 %171, ptr @.str.669, ptr @.str.16
  %174 = load i32, ptr %3, align 4, !tbaa !51
  %175 = and i32 %174, 2048
  %176 = icmp ne i32 %175, 0
  %177 = zext i1 %176 to i64
  %178 = select i1 %176, ptr @.str.670, ptr @.str.16
  call void (ptr, ...) @_ZN5ImGui10BulletTextEPKcz(ptr noundef @.str.658, i32 noundef %113, ptr noundef %118, ptr noundef %123, ptr noundef %128, ptr noundef %133, ptr noundef %138, ptr noundef %143, ptr noundef %148, ptr noundef %153, ptr noundef %158, ptr noundef %163, ptr noundef %168, ptr noundef %173, ptr noundef %178)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 0, ptr %5, align 4, !tbaa !51
  br label %179

179:                                              ; preds = %196, %110
  %180 = load i32, ptr %5, align 4, !tbaa !51
  %181 = load ptr, ptr %2, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.ImGuiViewportP, ptr %181, i32 0, i32 13
  %183 = getelementptr inbounds %struct.ImDrawData, ptr %182, i32 0, i32 4
  %184 = getelementptr inbounds %struct.ImVector.49, ptr %183, i32 0, i32 0
  %185 = load i32, ptr %184, align 8, !tbaa !64
  %186 = icmp slt i32 %180, %185
  br i1 %186, label %188, label %187

187:                                              ; preds = %179
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %199

188:                                              ; preds = %179
  %189 = load ptr, ptr %2, align 8, !tbaa !5
  %190 = load ptr, ptr %2, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.ImGuiViewportP, ptr %190, i32 0, i32 13
  %192 = getelementptr inbounds %struct.ImDrawData, ptr %191, i32 0, i32 4
  %193 = load i32, ptr %5, align 4, !tbaa !51
  %194 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP10ImDrawListEixEi(ptr noundef nonnull align 8 dereferenceable(16) %192, i32 noundef %193)
  %195 = load ptr, ptr %194, align 8, !tbaa !5
  call void @_ZN5ImGui17DebugNodeDrawListEP11ImGuiWindowP14ImGuiViewportPPK10ImDrawListPKc(ptr noundef null, ptr noundef %189, ptr noundef %195, ptr noundef @.str.456)
  br label %196

196:                                              ; preds = %188
  %197 = load i32, ptr %5, align 4, !tbaa !51
  %198 = add nsw i32 %197, 1
  store i32 %198, ptr %5, align 4, !tbaa !51
  br label %179, !llvm.loop !65

199:                                              ; preds = %187
  call void @_ZN5ImGui7TreePopEv()
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %200

200:                                              ; preds = %199, %31
  ret void
}

declare noundef zeroext i1 @_ZN5ImGui11SmallButtonEPKc(ptr noundef) #5

declare noundef zeroext i1 @_ZN5ImGui8TreeNodeEPKvPKcz(ptr noundef, ptr noundef, ...) #5

declare void @_ZN5ImGui15SetNextItemOpenEbi(i1 noundef zeroext, i32 noundef) #5

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTS13ImGuiViewport", !11, i64 0, !11, i64 4, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !13, i64 40, !11, i64 44, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !14, i64 88, !14, i64 89, !14, i64 90, !14, i64 91}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS6ImVec2", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!16, !11, i64 104}
!16 = !{!"_ZTS14ImGuiViewportP", !10, i64 0, !6, i64 96, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !12, i64 120, !13, i64 128, !13, i64 132, !14, i64 136, !17, i64 138, !7, i64 140, !7, i64 152, !18, i64 168, !20, i64 232, !12, i64 264, !12, i64 272, !12, i64 280, !12, i64 288, !12, i64 296, !12, i64 304, !12, i64 312}
!17 = !{!"short", !7, i64 0}
!18 = !{!"_ZTS10ImDrawData", !14, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !19, i64 16, !12, i64 32, !12, i64 40, !12, i64 48, !6, i64 56}
!19 = !{!"_ZTS8ImVectorIP10ImDrawListE", !11, i64 0, !11, i64 4, !6, i64 8}
!20 = !{!"_ZTS17ImDrawDataBuilder", !7, i64 0, !19, i64 16}
!21 = !{!10, !11, i64 44}
!22 = !{!16, !6, i64 96}
!23 = !{!24, !6, i64 8}
!24 = !{!"_ZTS11ImGuiWindow", !6, i64 0, !6, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !25, i64 28, !6, i64 56, !11, i64 64, !12, i64 68, !11, i64 76, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !13, i64 136, !13, i64 140, !13, i64 144, !13, i64 148, !13, i64 152, !13, i64 156, !13, i64 160, !13, i64 164, !11, i64 168, !11, i64 172, !11, i64 176, !11, i64 180, !12, i64 184, !12, i64 192, !12, i64 200, !12, i64 208, !12, i64 216, !12, i64 224, !14, i64 232, !14, i64 233, !14, i64 234, !14, i64 235, !14, i64 236, !14, i64 237, !14, i64 238, !14, i64 239, !14, i64 240, !14, i64 241, !14, i64 242, !14, i64 243, !14, i64 244, !14, i64 245, !7, i64 246, !17, i64 248, !17, i64 250, !17, i64 252, !17, i64 254, !17, i64 256, !11, i64 260, !7, i64 264, !7, i64 265, !7, i64 266, !14, i64 267, !11, i64 268, !7, i64 272, !7, i64 273, !7, i64 274, !7, i64 275, !11, i64 276, !11, i64 277, !11, i64 278, !11, i64 279, !12, i64 280, !12, i64 288, !26, i64 296, !27, i64 312, !33, i64 544, !33, i64 560, !33, i64 576, !33, i64 592, !33, i64 608, !33, i64 624, !33, i64 640, !34, i64 656, !34, i64 660, !11, i64 664, !11, i64 668, !13, i64 672, !13, i64 676, !35, i64 680, !37, i64 696, !13, i64 712, !13, i64 716, !11, i64 720, !6, i64 728, !38, i64 736, !6, i64 936, !6, i64 944, !6, i64 952, !6, i64 960, !6, i64 968, !6, i64 976, !6, i64 984, !6, i64 992, !7, i64 1000, !7, i64 1008, !7, i64 1040, !11, i64 1056, !11, i64 1060, !11, i64 1064, !14, i64 1068, !14, i64 1069, !14, i64 1069, !14, i64 1069, !14, i64 1069, !17, i64 1070, !49, i64 1072, !6, i64 1096, !6, i64 1104, !11, i64 1112, !11, i64 1116, !33, i64 1120}
!25 = !{!"_ZTS16ImGuiWindowClass", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !14, i64 24, !14, i64 25}
!26 = !{!"_ZTS8ImVectorIjE", !11, i64 0, !11, i64 4, !6, i64 8}
!27 = !{!"_ZTS19ImGuiWindowTempData", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !13, i64 56, !13, i64 60, !14, i64 64, !14, i64 65, !28, i64 68, !28, i64 72, !28, i64 76, !12, i64 80, !29, i64 88, !17, i64 92, !17, i64 94, !14, i64 96, !14, i64 97, !14, i64 98, !14, i64 99, !12, i64 100, !30, i64 108, !11, i64 136, !11, i64 140, !31, i64 144, !6, i64 160, !6, i64 168, !11, i64 176, !11, i64 180, !11, i64 184, !13, i64 188, !13, i64 192, !32, i64 200, !32, i64 216}
!28 = !{!"_ZTS6ImVec1", !13, i64 0}
!29 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!30 = !{!"_ZTS16ImGuiMenuColumns", !11, i64 0, !11, i64 4, !17, i64 8, !17, i64 10, !17, i64 12, !17, i64 14, !17, i64 16, !7, i64 18}
!31 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !11, i64 0, !11, i64 4, !6, i64 8}
!32 = !{!"_ZTS8ImVectorIfE", !11, i64 0, !11, i64 4, !6, i64 8}
!33 = !{!"_ZTS6ImRect", !12, i64 0, !12, i64 8}
!34 = !{!"_ZTS8ImVec2ih", !17, i64 0, !17, i64 2}
!35 = !{!"_ZTS12ImGuiStorage", !36, i64 0}
!36 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !11, i64 0, !11, i64 4, !6, i64 8}
!37 = !{!"_ZTS8ImVectorI15ImGuiOldColumnsE", !11, i64 0, !11, i64 4, !6, i64 8}
!38 = !{!"_ZTS10ImDrawList", !39, i64 0, !40, i64 16, !41, i64 32, !11, i64 48, !11, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !42, i64 88, !43, i64 104, !44, i64 120, !45, i64 136, !47, i64 168, !13, i64 192}
!39 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !11, i64 0, !11, i64 4, !6, i64 8}
!40 = !{!"_ZTS8ImVectorItE", !11, i64 0, !11, i64 4, !6, i64 8}
!41 = !{!"_ZTS8ImVectorI10ImDrawVertE", !11, i64 0, !11, i64 4, !6, i64 8}
!42 = !{!"_ZTS8ImVectorI6ImVec4E", !11, i64 0, !11, i64 4, !6, i64 8}
!43 = !{!"_ZTS8ImVectorIPvE", !11, i64 0, !11, i64 4, !6, i64 8}
!44 = !{!"_ZTS8ImVectorI6ImVec2E", !11, i64 0, !11, i64 4, !6, i64 8}
!45 = !{!"_ZTS15ImDrawCmdHeader", !46, i64 0, !6, i64 16, !11, i64 24}
!46 = !{!"_ZTS6ImVec4", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12}
!47 = !{!"_ZTS18ImDrawListSplitter", !11, i64 0, !11, i64 4, !48, i64 8}
!48 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !11, i64 0, !11, i64 4, !6, i64 8}
!49 = !{!"_ZTS20ImGuiWindowDockStyle", !7, i64 0}
!50 = !{!10, !11, i64 4}
!51 = !{!11, !11, i64 0}
!52 = !{!10, !13, i64 8}
!53 = !{!10, !13, i64 12}
!54 = !{!10, !13, i64 16}
!55 = !{!10, !13, i64 20}
!56 = !{!16, !13, i64 288}
!57 = !{!16, !13, i64 292}
!58 = !{!16, !13, i64 296}
!59 = !{!16, !13, i64 300}
!60 = !{!16, !17, i64 138}
!61 = !{!10, !13, i64 40}
!62 = !{i64 0, i64 4, !63, i64 4, i64 4, !63}
!63 = !{!13, !13, i64 0}
!64 = !{!16, !11, i64 184}
!65 = distinct !{!65, !66}
!66 = !{!"llvm.loop.mustprogress"}


; 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.ImVec2 = type { float, float }

@.str.16 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.183 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.456 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.600 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.655 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.656 = external hidden unnamed_addr constant [135 x i8], align 1
@.str.657 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.658 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.659 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.660 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.661 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.662 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.663 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.664 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.665 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.666 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.667 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.668 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.669 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.670 = external hidden unnamed_addr constant [21 x i8], align 1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #1 align 2

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

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

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

declare void @_ZN5ImGui7TreePopEv() local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5ImGui8SameLineEff(float noundef, float noundef) local_unnamed_addr #1

declare void @_ZN5ImGui10BulletTextEPKcz(ptr noundef, ...) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui17DebugNodeViewportEP14ImGuiViewportP(ptr noundef %0) local_unnamed_addr #5 {
  %2 = alloca %struct.ImVec2, align 8
  tail call void @_ZN5ImGui15SetNextItemOpenEbi(i1 noundef zeroext true, i32 noundef 2)
  %3 = load i32, ptr %0, align 8, !tbaa !5
  %4 = zext i32 %3 to i64
  %5 = inttoptr i64 %4 to ptr
  %6 = getelementptr inbounds i8, ptr %0, i64 104
  %7 = load i32, ptr %6, align 8, !tbaa !14
  %8 = getelementptr inbounds i8, ptr %0, i64 44
  %9 = load i32, ptr %8, align 4, !tbaa !20
  %10 = getelementptr inbounds i8, ptr %0, i64 96
  %11 = load ptr, ptr %10, align 8, !tbaa !21
  %.not = icmp eq ptr %11, null
  br i1 %.not, label %15, label %12

12:                                               ; preds = %1
  %13 = getelementptr inbounds i8, ptr %11, i64 8
  %14 = load ptr, ptr %13, align 8, !tbaa !22
  br label %15

15:                                               ; preds = %1, %12
  %16 = phi ptr [ %14, %12 ], [ @.str.183, %1 ]
  %17 = tail call noundef zeroext i1 (ptr, ptr, ...) @_ZN5ImGui8TreeNodeEPKvPKcz(ptr noundef %5, ptr noundef nonnull @.str.655, i32 noundef %7, i32 noundef %3, i32 noundef %9, ptr noundef %16)
  br i1 %17, label %18, label %102

18:                                               ; preds = %15
  %19 = getelementptr inbounds i8, ptr %0, i64 4
  %20 = load i32, ptr %19, align 4, !tbaa !49
  %21 = getelementptr inbounds i8, ptr %0, i64 8
  %22 = load float, ptr %21, align 8, !tbaa !50
  %23 = fpext float %22 to double
  %24 = getelementptr inbounds i8, ptr %0, i64 12
  %25 = load float, ptr %24, align 4, !tbaa !51
  %26 = fpext float %25 to double
  %27 = getelementptr inbounds i8, ptr %0, i64 16
  %28 = load float, ptr %27, align 8, !tbaa !52
  %29 = fpext float %28 to double
  %30 = getelementptr inbounds i8, ptr %0, i64 20
  %31 = load float, ptr %30, align 4, !tbaa !53
  %32 = fpext float %31 to double
  %33 = getelementptr inbounds i8, ptr %0, i64 288
  %34 = load float, ptr %33, align 8, !tbaa !54
  %35 = fpext float %34 to double
  %36 = getelementptr inbounds i8, ptr %0, i64 292
  %37 = load float, ptr %36, align 4, !tbaa !55
  %38 = fpext float %37 to double
  %39 = getelementptr inbounds i8, ptr %0, i64 296
  %40 = load float, ptr %39, align 8, !tbaa !56
  %41 = fpext float %40 to double
  %42 = getelementptr inbounds i8, ptr %0, i64 300
  %43 = load float, ptr %42, align 4, !tbaa !57
  %44 = fpext float %43 to double
  %45 = getelementptr inbounds i8, ptr %0, i64 138
  %46 = load i16, ptr %45, align 2, !tbaa !58
  %47 = sext i16 %46 to i32
  %48 = getelementptr inbounds i8, ptr %0, i64 40
  %49 = load float, ptr %48, align 8, !tbaa !59
  %50 = fmul float %49, 1.000000e+02
  %51 = fpext float %50 to double
  tail call void (ptr, ...) @_ZN5ImGui10BulletTextEPKcz(ptr noundef nonnull @.str.656, double noundef %23, double noundef %26, double noundef %29, double noundef %32, double noundef %35, double noundef %38, double noundef %41, double noundef %44, i32 noundef %47, double noundef %51)
  %52 = load i32, ptr %6, align 8, !tbaa !14
  %53 = icmp sgt i32 %52, 0
  br i1 %53, label %54, label %62

54:                                               ; preds = %18
  tail call void @_ZN5ImGui8SameLineEff(float noundef 0.000000e+00, float noundef -1.000000e+00)
  %55 = tail call noundef zeroext i1 @_ZN5ImGui11SmallButtonEPKc(ptr noundef nonnull @.str.657)
  br i1 %55, label %56, label %62

56:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %2, float noundef 2.000000e+02, float noundef 2.000000e+02)
  %57 = load i64, ptr %2, align 8
  store i64 %57, ptr %21, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @_ZN14ImGuiViewportP14UpdateWorkRectEv(ptr noundef nonnull align 8 dereferenceable(320) %0)
  %58 = load ptr, ptr %10, align 8, !tbaa !21
  %.not44 = icmp eq ptr %58, null
  br i1 %.not44, label %62, label %59

59:                                               ; preds = %56
  %60 = getelementptr inbounds i8, ptr %58, i64 80
  %61 = load i64, ptr %21, align 8
  store i64 %61, ptr %60, align 8
  br label %62

62:                                               ; preds = %54, %59, %56, %18
  %63 = load i32, ptr %19, align 4, !tbaa !49
  %64 = and i32 %20, 2
  %.not45 = icmp eq i32 %64, 0
  %65 = select i1 %.not45, ptr @.str.16, ptr @.str.659
  %66 = and i32 %20, 4096
  %.not46 = icmp eq i32 %66, 0
  %67 = select i1 %.not46, ptr @.str.16, ptr @.str.660
  %68 = and i32 %20, 8192
  %.not47 = icmp eq i32 %68, 0
  %69 = select i1 %.not47, ptr @.str.16, ptr @.str.600
  %70 = and i32 %20, 4
  %.not48 = icmp eq i32 %70, 0
  %71 = select i1 %.not48, ptr @.str.16, ptr @.str.661
  %72 = and i32 %20, 8
  %.not49 = icmp eq i32 %72, 0
  %73 = select i1 %.not49, ptr @.str.16, ptr @.str.662
  %74 = insertelement <8 x i32> poison, i32 %20, i64 0
  %75 = shufflevector <8 x i32> %74, <8 x i32> poison, <8 x i32> zeroinitializer
  %76 = and <8 x i32> %75, <i32 2048, i32 1024, i32 512, i32 256, i32 128, i32 64, i32 32, i32 16>
  %77 = icmp eq <8 x i32> %76, zeroinitializer
  %78 = extractelement <8 x i1> %77, i64 7
  %79 = select i1 %78, ptr @.str.16, ptr @.str.663
  %80 = extractelement <8 x i1> %77, i64 6
  %81 = select i1 %80, ptr @.str.16, ptr @.str.664
  %82 = extractelement <8 x i1> %77, i64 5
  %83 = select i1 %82, ptr @.str.16, ptr @.str.665
  %84 = extractelement <8 x i1> %77, i64 4
  %85 = select i1 %84, ptr @.str.16, ptr @.str.666
  %86 = extractelement <8 x i1> %77, i64 3
  %87 = select i1 %86, ptr @.str.16, ptr @.str.667
  %88 = extractelement <8 x i1> %77, i64 2
  %89 = select i1 %88, ptr @.str.16, ptr @.str.668
  %90 = extractelement <8 x i1> %77, i64 1
  %91 = select i1 %90, ptr @.str.16, ptr @.str.669
  %92 = extractelement <8 x i1> %77, i64 0
  %93 = select i1 %92, ptr @.str.16, ptr @.str.670
  call void (ptr, ...) @_ZN5ImGui10BulletTextEPKcz(ptr noundef nonnull @.str.658, i32 noundef %63, ptr noundef nonnull %65, ptr noundef nonnull %67, ptr noundef nonnull %69, ptr noundef nonnull %71, ptr noundef nonnull %73, ptr noundef nonnull %79, ptr noundef nonnull %81, ptr noundef nonnull %83, ptr noundef nonnull %85, ptr noundef nonnull %87, ptr noundef nonnull %89, ptr noundef nonnull %91, ptr noundef nonnull %93)
  %94 = getelementptr inbounds i8, ptr %0, i64 184
  %95 = load i32, ptr %94, align 8, !tbaa !60
  %96 = icmp sgt i32 %95, 0
  br i1 %96, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %62
  call void @_ZN5ImGui7TreePopEv()
  br label %102

.lr.ph:                                           ; preds = %62, %.lr.ph
  %.058 = phi i32 [ %99, %.lr.ph ], [ 0, %62 ]
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP10ImDrawListEixEi(ptr noundef nonnull align 8 dereferenceable(16) %94, i32 noundef %.058)
  %98 = load ptr, ptr %97, align 8, !tbaa !61
  call void @_ZN5ImGui17DebugNodeDrawListEP11ImGuiWindowP14ImGuiViewportPPK10ImDrawListPKc(ptr noundef null, ptr noundef nonnull %0, ptr noundef %98, ptr noundef nonnull @.str.456)
  %99 = add nuw nsw i32 %.058, 1
  %100 = load i32, ptr %94, align 8, !tbaa !60
  %101 = icmp slt i32 %99, %100
  br i1 %101, label %.lr.ph, label %._crit_edge, !llvm.loop !62

102:                                              ; preds = %._crit_edge, %15
  ret void
}

declare noundef zeroext i1 @_ZN5ImGui11SmallButtonEPKc(ptr noundef) local_unnamed_addr #4

declare noundef zeroext i1 @_ZN5ImGui8TreeNodeEPKvPKcz(ptr noundef, ptr noundef, ...) local_unnamed_addr #4

declare void @_ZN5ImGui15SetNextItemOpenEbi(i1 noundef zeroext, i32 noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 = { 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 = { "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"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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, !7, i64 0}
!6 = !{!"_ZTS13ImGuiViewport", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !11, i64 40, !7, i64 44, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !13, i64 88, !13, i64 89, !13, i64 90, !13, i64 91}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS6ImVec2", !11, i64 0, !11, i64 4}
!11 = !{!"float", !8, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"bool", !8, i64 0}
!14 = !{!15, !7, i64 104}
!15 = !{!"_ZTS14ImGuiViewportP", !6, i64 0, !12, i64 96, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 116, !10, i64 120, !11, i64 128, !11, i64 132, !13, i64 136, !16, i64 138, !8, i64 140, !8, i64 152, !17, i64 168, !19, i64 232, !10, i64 264, !10, i64 272, !10, i64 280, !10, i64 288, !10, i64 296, !10, i64 304, !10, i64 312}
!16 = !{!"short", !8, i64 0}
!17 = !{!"_ZTS10ImDrawData", !13, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !18, i64 16, !10, i64 32, !10, i64 40, !10, i64 48, !12, i64 56}
!18 = !{!"_ZTS8ImVectorIP10ImDrawListE", !7, i64 0, !7, i64 4, !12, i64 8}
!19 = !{!"_ZTS17ImDrawDataBuilder", !8, i64 0, !18, i64 16}
!20 = !{!6, !7, i64 44}
!21 = !{!15, !12, i64 96}
!22 = !{!23, !12, i64 8}
!23 = !{!"_ZTS11ImGuiWindow", !12, i64 0, !12, i64 8, !7, i64 16, !7, i64 20, !7, i64 24, !24, i64 28, !12, i64 56, !7, i64 64, !10, i64 68, !7, i64 76, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !11, i64 136, !11, i64 140, !11, i64 144, !11, i64 148, !11, i64 152, !11, i64 156, !11, i64 160, !11, i64 164, !7, i64 168, !7, i64 172, !7, i64 176, !7, i64 180, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216, !10, i64 224, !13, i64 232, !13, i64 233, !13, i64 234, !13, i64 235, !13, i64 236, !13, i64 237, !13, i64 238, !13, i64 239, !13, i64 240, !13, i64 241, !13, i64 242, !13, i64 243, !13, i64 244, !13, i64 245, !8, i64 246, !16, i64 248, !16, i64 250, !16, i64 252, !16, i64 254, !16, i64 256, !7, i64 260, !8, i64 264, !8, i64 265, !8, i64 266, !13, i64 267, !7, i64 268, !8, i64 272, !8, i64 273, !8, i64 274, !8, i64 275, !7, i64 276, !7, i64 277, !7, i64 278, !7, i64 279, !10, i64 280, !10, i64 288, !25, i64 296, !26, i64 312, !32, i64 544, !32, i64 560, !32, i64 576, !32, i64 592, !32, i64 608, !32, i64 624, !32, i64 640, !33, i64 656, !33, i64 660, !7, i64 664, !7, i64 668, !11, i64 672, !11, i64 676, !34, i64 680, !36, i64 696, !11, i64 712, !11, i64 716, !7, i64 720, !12, i64 728, !37, i64 736, !12, i64 936, !12, i64 944, !12, i64 952, !12, i64 960, !12, i64 968, !12, i64 976, !12, i64 984, !12, i64 992, !8, i64 1000, !8, i64 1008, !8, i64 1040, !7, i64 1056, !7, i64 1060, !7, i64 1064, !13, i64 1068, !13, i64 1069, !13, i64 1069, !13, i64 1069, !13, i64 1069, !16, i64 1070, !48, i64 1072, !12, i64 1096, !12, i64 1104, !7, i64 1112, !7, i64 1116, !32, i64 1120}
!24 = !{!"_ZTS16ImGuiWindowClass", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !13, i64 24, !13, i64 25}
!25 = !{!"_ZTS8ImVectorIjE", !7, i64 0, !7, i64 4, !12, i64 8}
!26 = !{!"_ZTS19ImGuiWindowTempData", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !11, i64 56, !11, i64 60, !13, i64 64, !13, i64 65, !27, i64 68, !27, i64 72, !27, i64 76, !10, i64 80, !28, i64 88, !16, i64 92, !16, i64 94, !13, i64 96, !13, i64 97, !13, i64 98, !13, i64 99, !10, i64 100, !29, i64 108, !7, i64 136, !7, i64 140, !30, i64 144, !12, i64 160, !12, i64 168, !7, i64 176, !7, i64 180, !7, i64 184, !11, i64 188, !11, i64 192, !31, i64 200, !31, i64 216}
!27 = !{!"_ZTS6ImVec1", !11, i64 0}
!28 = !{!"_ZTS13ImGuiNavLayer", !8, i64 0}
!29 = !{!"_ZTS16ImGuiMenuColumns", !7, i64 0, !7, i64 4, !16, i64 8, !16, i64 10, !16, i64 12, !16, i64 14, !16, i64 16, !8, i64 18}
!30 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !7, i64 0, !7, i64 4, !12, i64 8}
!31 = !{!"_ZTS8ImVectorIfE", !7, i64 0, !7, i64 4, !12, i64 8}
!32 = !{!"_ZTS6ImRect", !10, i64 0, !10, i64 8}
!33 = !{!"_ZTS8ImVec2ih", !16, i64 0, !16, i64 2}
!34 = !{!"_ZTS12ImGuiStorage", !35, i64 0}
!35 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !7, i64 0, !7, i64 4, !12, i64 8}
!36 = !{!"_ZTS8ImVectorI15ImGuiOldColumnsE", !7, i64 0, !7, i64 4, !12, i64 8}
!37 = !{!"_ZTS10ImDrawList", !38, i64 0, !39, i64 16, !40, i64 32, !7, i64 48, !7, i64 52, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !41, i64 88, !42, i64 104, !43, i64 120, !44, i64 136, !46, i64 168, !11, i64 192}
!38 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !7, i64 0, !7, i64 4, !12, i64 8}
!39 = !{!"_ZTS8ImVectorItE", !7, i64 0, !7, i64 4, !12, i64 8}
!40 = !{!"_ZTS8ImVectorI10ImDrawVertE", !7, i64 0, !7, i64 4, !12, i64 8}
!41 = !{!"_ZTS8ImVectorI6ImVec4E", !7, i64 0, !7, i64 4, !12, i64 8}
!42 = !{!"_ZTS8ImVectorIPvE", !7, i64 0, !7, i64 4, !12, i64 8}
!43 = !{!"_ZTS8ImVectorI6ImVec2E", !7, i64 0, !7, i64 4, !12, i64 8}
!44 = !{!"_ZTS15ImDrawCmdHeader", !45, i64 0, !12, i64 16, !7, i64 24}
!45 = !{!"_ZTS6ImVec4", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12}
!46 = !{!"_ZTS18ImDrawListSplitter", !7, i64 0, !7, i64 4, !47, i64 8}
!47 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !7, i64 0, !7, i64 4, !12, i64 8}
!48 = !{!"_ZTS20ImGuiWindowDockStyle", !8, i64 0}
!49 = !{!6, !7, i64 4}
!50 = !{!6, !11, i64 8}
!51 = !{!6, !11, i64 12}
!52 = !{!6, !11, i64 16}
!53 = !{!6, !11, i64 20}
!54 = !{!15, !11, i64 288}
!55 = !{!15, !11, i64 292}
!56 = !{!15, !11, i64 296}
!57 = !{!15, !11, i64 300}
!58 = !{!15, !16, i64 138}
!59 = !{!6, !11, i64 40}
!60 = !{!15, !7, i64 184}
!61 = !{!12, !12, i64 0}
!62 = distinct !{!62, !63}
!63 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass