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

; 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.ImGuiTabBar = type { %struct.ImVector.53, i32, i32, i32, i32, i32, i32, i32, %struct.ImRect, float, float, float, float, float, float, float, float, float, float, float, float, i32, i16, i8, i8, i8, i8, i16, i16, float, %struct.ImVec2, %struct.ImVec2, %struct.ImGuiTextBuffer }
%struct.ImVector.53 = type { i32, i32, ptr }
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImGuiTextBuffer = type { %struct.ImVector.27 }
%struct.ImVector.27 = type { i32, i32, ptr }
%struct.ImGuiTabItem = type <{ i32, i32, ptr, i32, i32, float, float, float, float, i32, i16, i16, i8, [7 x i8] }>

@.str.17 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.400 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.696 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.697 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.698 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.699 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.700 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.701 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.702 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.703 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.704 = external hidden unnamed_addr constant [54 x i8], align 1

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

; Function Attrs: 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z14ImFormatStringPcmPKcz(ptr noundef, i64 noundef, ptr noundef, ...) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL5ImMinIiET_S0_S0_(i32 noundef, i32 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZN5ImGui17GetStyleColorVec4Ei(i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui14PushStyleColorEiRK6ImVec4(i32 noundef, ptr noundef nonnull align 4 dereferenceable(16)) #3

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

declare void @_ZN10ImDrawList7AddRectERK6ImVec2S2_jfif(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, float noundef, i32 noundef, float noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5ImGui13IsItemHoveredEi(i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5ImGui21GetForegroundDrawListEv() #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5ImGui13GetFrameCountEv() #1

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

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

declare void @_ZN5ImGui7TreePopEv() #4

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

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

declare noundef ptr @_ZN5ImGui16TabBarGetTabNameEP11ImGuiTabBarP12ImGuiTabItem(ptr noundef, ptr noundef) #4

declare void @_ZN5ImGui4TextEPKcz(ptr noundef, ...) #4

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui15DebugNodeTabBarEP11ImGuiTabBarPKc(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca [256 x i8], align 16
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i8, align 1
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i8, align 1
  %12 = alloca ptr, align 8
  %13 = alloca %struct.ImVec2, align 4
  %14 = alloca %struct.ImVec2, align 4
  %15 = alloca %struct.ImVec2, align 4
  %16 = alloca %struct.ImVec2, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %19 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  store ptr %19, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %20 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %21 = getelementptr inbounds i8, ptr %20, i64 256
  store ptr %21, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #5
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.ImGuiTabBar, ptr %22, i32 0, i32 7
  %24 = load i32, ptr %23, align 8, !tbaa !9
  %25 = call noundef i32 @_ZN5ImGui13GetFrameCountEv()
  %26 = sub nsw i32 %25, 2
  %27 = icmp sge i32 %24, %26
  %28 = zext i1 %27 to i8
  store i8 %28, ptr %8, align 1, !tbaa !20
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = ptrtoint ptr %30 to i64
  %33 = ptrtoint ptr %31 to i64
  %34 = sub i64 %32, %33
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.ImGuiTabBar, ptr %36, i32 0, i32 2
  %38 = load i32, ptr %37, align 4, !tbaa !21
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.ImGuiTabBar, ptr %39, i32 0, i32 0
  %41 = getelementptr inbounds %struct.ImVector.53, ptr %40, i32 0, i32 0
  %42 = load i32, ptr %41, align 8, !tbaa !22
  %43 = load i8, ptr %8, align 1, !tbaa !20, !range !23, !noundef !24
  %44 = trunc i8 %43 to i1
  %45 = zext i1 %44 to i64
  %46 = select i1 %44, ptr @.str.17, ptr @.str.697
  %47 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %29, i64 noundef %34, ptr noundef @.str.696, ptr noundef %35, i32 noundef %38, i32 noundef %42, ptr noundef %46)
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = sext i32 %47 to i64
  %50 = getelementptr inbounds i8, ptr %48, i64 %49
  store ptr %50, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !25
  br label %51

51:                                               ; preds = %82, %2
  %52 = load i32, ptr %9, align 4, !tbaa !25
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.ImGuiTabBar, ptr %53, i32 0, i32 0
  %55 = getelementptr inbounds %struct.ImVector.53, ptr %54, i32 0, i32 0
  %56 = load i32, ptr %55, align 8, !tbaa !22
  %57 = call noundef i32 @_ZL5ImMinIiET_S0_S0_(i32 noundef %56, i32 noundef 3)
  %58 = icmp slt i32 %52, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %85

60:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.ImGuiTabBar, ptr %61, i32 0, i32 0
  %63 = load i32, ptr %9, align 4, !tbaa !25
  %64 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZN8ImVectorI12ImGuiTabItemEixEi(ptr noundef nonnull align 8 dereferenceable(16) %62, i32 noundef %63)
  store ptr %64, ptr %10, align 8, !tbaa !5
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = ptrtoint ptr %66 to i64
  %69 = ptrtoint ptr %67 to i64
  %70 = sub i64 %68, %69
  %71 = load i32, ptr %9, align 4, !tbaa !25
  %72 = icmp sgt i32 %71, 0
  %73 = zext i1 %72 to i64
  %74 = select i1 %72, ptr @.str.699, ptr @.str.17
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  %77 = call noundef ptr @_ZN5ImGui16TabBarGetTabNameEP11ImGuiTabBarP12ImGuiTabItem(ptr noundef %75, ptr noundef %76)
  %78 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %65, i64 noundef %70, ptr noundef @.str.698, ptr noundef %74, ptr noundef %77)
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = sext i32 %78 to i64
  %81 = getelementptr inbounds i8, ptr %79, i64 %80
  store ptr %81, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %82

82:                                               ; preds = %60
  %83 = load i32, ptr %9, align 4, !tbaa !25
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %9, align 4, !tbaa !25
  br label %51, !llvm.loop !26

85:                                               ; preds = %59
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = ptrtoint ptr %87 to i64
  %90 = ptrtoint ptr %88 to i64
  %91 = sub i64 %89, %90
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.ImGuiTabBar, ptr %92, i32 0, i32 0
  %94 = getelementptr inbounds %struct.ImVector.53, ptr %93, i32 0, i32 0
  %95 = load i32, ptr %94, align 8, !tbaa !22
  %96 = icmp sgt i32 %95, 3
  %97 = zext i1 %96 to i64
  %98 = select i1 %96, ptr @.str.700, ptr @.str.701
  %99 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %86, i64 noundef %91, ptr noundef %98)
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = sext i32 %99 to i64
  %102 = getelementptr inbounds i8, ptr %100, i64 %101
  store ptr %102, ptr %6, align 8, !tbaa !5
  %103 = load i8, ptr %8, align 1, !tbaa !20, !range !23, !noundef !24
  %104 = trunc i8 %103 to i1
  br i1 %104, label %107, label %105

105:                                              ; preds = %85
  %106 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN5ImGui17GetStyleColorVec4Ei(i32 noundef 1)
  call void @_ZN5ImGui14PushStyleColorEiRK6ImVec4(i32 noundef 0, ptr noundef nonnull align 4 dereferenceable(16) %106)
  br label %107

107:                                              ; preds = %105, %85
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #5
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %110 = call noundef zeroext i1 (ptr, ptr, ...) @_ZN5ImGui8TreeNodeEPKcS1_z(ptr noundef %108, ptr noundef @.str.400, ptr noundef %109)
  %111 = zext i1 %110 to i8
  store i8 %111, ptr %11, align 1, !tbaa !20
  %112 = load i8, ptr %8, align 1, !tbaa !20, !range !23, !noundef !24
  %113 = trunc i8 %112 to i1
  br i1 %113, label %115, label %114

114:                                              ; preds = %107
  call void @_ZN5ImGui13PopStyleColorEi(i32 noundef 1)
  br label %115

115:                                              ; preds = %114, %107
  %116 = load i8, ptr %8, align 1, !tbaa !20, !range !23, !noundef !24
  %117 = trunc i8 %116 to i1
  br i1 %117, label %118, label %163

118:                                              ; preds = %115
  %119 = call noundef zeroext i1 @_ZN5ImGui13IsItemHoveredEi(i32 noundef 0)
  br i1 %119, label %120, label %163

120:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %121 = call noundef ptr @_ZN5ImGui21GetForegroundDrawListEv()
  store ptr %121, ptr %12, align 8, !tbaa !5
  %122 = load ptr, ptr %12, align 8, !tbaa !5
  %123 = load ptr, ptr %3, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.ImGuiTabBar, ptr %123, i32 0, i32 8
  %125 = getelementptr inbounds %struct.ImRect, ptr %124, i32 0, i32 0
  %126 = load ptr, ptr %3, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.ImGuiTabBar, ptr %126, i32 0, i32 8
  %128 = getelementptr inbounds %struct.ImRect, ptr %127, i32 0, i32 1
  call void @_ZN10ImDrawList7AddRectERK6ImVec2S2_jfif(ptr noundef nonnull align 8 dereferenceable(196) %122, ptr noundef nonnull align 4 dereferenceable(8) %125, ptr noundef nonnull align 4 dereferenceable(8) %128, i32 noundef -16711681, float noundef 0.000000e+00, i32 noundef 0, float noundef 1.000000e+00)
  %129 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %130 = load ptr, ptr %3, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.ImGuiTabBar, ptr %130, i32 0, i32 17
  %132 = load float, ptr %131, align 4, !tbaa !28
  %133 = load ptr, ptr %3, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.ImGuiTabBar, ptr %133, i32 0, i32 8
  %135 = getelementptr inbounds %struct.ImRect, ptr %134, i32 0, i32 0
  %136 = getelementptr inbounds %struct.ImVec2, ptr %135, i32 0, i32 1
  %137 = load float, ptr %136, align 4, !tbaa !29
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %13, float noundef %132, float noundef %137)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %138 = load ptr, ptr %3, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.ImGuiTabBar, ptr %138, i32 0, i32 17
  %140 = load float, ptr %139, align 4, !tbaa !28
  %141 = load ptr, ptr %3, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.ImGuiTabBar, ptr %141, i32 0, i32 8
  %143 = getelementptr inbounds %struct.ImRect, ptr %142, i32 0, i32 1
  %144 = getelementptr inbounds %struct.ImVec2, ptr %143, i32 0, i32 1
  %145 = load float, ptr %144, align 4, !tbaa !30
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %14, float noundef %140, float noundef %145)
  call void @_ZN10ImDrawList7AddLineERK6ImVec2S2_jf(ptr noundef nonnull align 8 dereferenceable(196) %129, ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %14, i32 noundef -16711936, float noundef 1.000000e+00)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  %146 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %147 = load ptr, ptr %3, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.ImGuiTabBar, ptr %147, i32 0, i32 18
  %149 = load float, ptr %148, align 8, !tbaa !31
  %150 = load ptr, ptr %3, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.ImGuiTabBar, ptr %150, i32 0, i32 8
  %152 = getelementptr inbounds %struct.ImRect, ptr %151, i32 0, i32 0
  %153 = getelementptr inbounds %struct.ImVec2, ptr %152, i32 0, i32 1
  %154 = load float, ptr %153, align 4, !tbaa !29
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %15, float noundef %149, float noundef %154)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %155 = load ptr, ptr %3, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.ImGuiTabBar, ptr %155, i32 0, i32 18
  %157 = load float, ptr %156, align 8, !tbaa !31
  %158 = load ptr, ptr %3, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.ImGuiTabBar, ptr %158, i32 0, i32 8
  %160 = getelementptr inbounds %struct.ImRect, ptr %159, i32 0, i32 1
  %161 = getelementptr inbounds %struct.ImVec2, ptr %160, i32 0, i32 1
  %162 = load float, ptr %161, align 4, !tbaa !30
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %16, float noundef %157, float noundef %162)
  call void @_ZN10ImDrawList7AddLineERK6ImVec2S2_jf(ptr noundef nonnull align 8 dereferenceable(196) %146, ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(8) %16, i32 noundef -16711936, float noundef 1.000000e+00)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %163

163:                                              ; preds = %120, %118, %115
  %164 = load i8, ptr %11, align 1, !tbaa !20, !range !23, !noundef !24
  %165 = trunc i8 %164 to i1
  br i1 %165, label %166, label %224

166:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !25
  br label %167

167:                                              ; preds = %220, %166
  %168 = load i32, ptr %17, align 4, !tbaa !25
  %169 = load ptr, ptr %3, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.ImGuiTabBar, ptr %169, i32 0, i32 0
  %171 = getelementptr inbounds %struct.ImVector.53, ptr %170, i32 0, i32 0
  %172 = load i32, ptr %171, align 8, !tbaa !22
  %173 = icmp slt i32 %168, %172
  br i1 %173, label %175, label %174

174:                                              ; preds = %167
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %223

175:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %176 = load ptr, ptr %3, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.ImGuiTabBar, ptr %176, i32 0, i32 0
  %178 = load i32, ptr %17, align 4, !tbaa !25
  %179 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZN8ImVectorI12ImGuiTabItemEixEi(ptr noundef nonnull align 8 dereferenceable(16) %177, i32 noundef %178)
  store ptr %179, ptr %18, align 8, !tbaa !5
  %180 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN5ImGui6PushIDEPKv(ptr noundef %180)
  %181 = call noundef zeroext i1 @_ZN5ImGui11SmallButtonEPKc(ptr noundef @.str.702)
  br i1 %181, label %182, label %185

182:                                              ; preds = %175
  %183 = load ptr, ptr %3, align 8, !tbaa !5
  %184 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN5ImGui18TabBarQueueReorderEP11ImGuiTabBarP12ImGuiTabItemi(ptr noundef %183, ptr noundef %184, i32 noundef -1)
  br label %185

185:                                              ; preds = %182, %175
  call void @_ZN5ImGui8SameLineEff(float noundef 0.000000e+00, float noundef 2.000000e+00)
  %186 = call noundef zeroext i1 @_ZN5ImGui11SmallButtonEPKc(ptr noundef @.str.703)
  br i1 %186, label %187, label %190

187:                                              ; preds = %185
  %188 = load ptr, ptr %3, align 8, !tbaa !5
  %189 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN5ImGui18TabBarQueueReorderEP11ImGuiTabBarP12ImGuiTabItemi(ptr noundef %188, ptr noundef %189, i32 noundef 1)
  br label %190

190:                                              ; preds = %187, %185
  call void @_ZN5ImGui8SameLineEff(float noundef 0.000000e+00, float noundef -1.000000e+00)
  %191 = load i32, ptr %17, align 4, !tbaa !25
  %192 = load ptr, ptr %18, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.ImGuiTabItem, ptr %192, i32 0, i32 0
  %194 = load i32, ptr %193, align 8, !tbaa !32
  %195 = load ptr, ptr %3, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.ImGuiTabBar, ptr %195, i32 0, i32 3
  %197 = load i32, ptr %196, align 8, !tbaa !34
  %198 = icmp eq i32 %194, %197
  %199 = zext i1 %198 to i64
  %200 = select i1 %198, i8 42, i8 32
  %201 = sext i8 %200 to i32
  %202 = load ptr, ptr %18, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.ImGuiTabItem, ptr %202, i32 0, i32 0
  %204 = load i32, ptr %203, align 8, !tbaa !32
  %205 = load ptr, ptr %3, align 8, !tbaa !5
  %206 = load ptr, ptr %18, align 8, !tbaa !5
  %207 = call noundef ptr @_ZN5ImGui16TabBarGetTabNameEP11ImGuiTabBarP12ImGuiTabItem(ptr noundef %205, ptr noundef %206)
  %208 = load ptr, ptr %18, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.ImGuiTabItem, ptr %208, i32 0, i32 5
  %210 = load float, ptr %209, align 8, !tbaa !35
  %211 = fpext float %210 to double
  %212 = load ptr, ptr %18, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.ImGuiTabItem, ptr %212, i32 0, i32 6
  %214 = load float, ptr %213, align 4, !tbaa !36
  %215 = fpext float %214 to double
  %216 = load ptr, ptr %18, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.ImGuiTabItem, ptr %216, i32 0, i32 7
  %218 = load float, ptr %217, align 8, !tbaa !37
  %219 = fpext float %218 to double
  call void (ptr, ...) @_ZN5ImGui4TextEPKcz(ptr noundef @.str.704, i32 noundef %191, i32 noundef %201, i32 noundef %204, ptr noundef %207, double noundef %211, double noundef %215, double noundef %219)
  call void @_ZN5ImGui5PopIDEv()
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %220

220:                                              ; preds = %190
  %221 = load i32, ptr %17, align 4, !tbaa !25
  %222 = add nsw i32 %221, 1
  store i32 %222, ptr %17, align 4, !tbaa !25
  br label %167, !llvm.loop !38

223:                                              ; preds = %174
  call void @_ZN5ImGui7TreePopEv()
  br label %224

224:                                              ; preds = %223, %163
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 256, ptr %5) #5
  ret void
}

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

declare void @_ZN10ImDrawList7AddLineERK6ImVec2S2_jf(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, float noundef) #4

declare void @_ZN5ImGui18TabBarQueueReorderEP11ImGuiTabBarP12ImGuiTabItemi(ptr noundef, ptr noundef, i32 noundef) #4

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 = { 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 = { "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, !12, i64 40}
!10 = !{!"_ZTS11ImGuiTabBar", !11, i64 0, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !13, i64 44, !15, i64 60, !15, i64 64, !15, i64 68, !15, i64 72, !15, i64 76, !15, i64 80, !15, i64 84, !15, i64 88, !15, i64 92, !15, i64 96, !15, i64 100, !15, i64 104, !12, i64 108, !16, i64 112, !7, i64 114, !17, i64 115, !17, i64 116, !17, i64 117, !16, i64 118, !16, i64 120, !15, i64 124, !14, i64 128, !14, i64 136, !18, i64 144}
!11 = !{!"_ZTS8ImVectorI12ImGuiTabItemE", !12, i64 0, !12, i64 4, !6, i64 8}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTS6ImRect", !14, i64 0, !14, i64 8}
!14 = !{!"_ZTS6ImVec2", !15, i64 0, !15, i64 4}
!15 = !{!"float", !7, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"_ZTS15ImGuiTextBuffer", !19, i64 0}
!19 = !{!"_ZTS8ImVectorIcE", !12, i64 0, !12, i64 4, !6, i64 8}
!20 = !{!17, !17, i64 0}
!21 = !{!10, !12, i64 20}
!22 = !{!10, !12, i64 0}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!12, !12, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!10, !15, i64 92}
!29 = !{!10, !15, i64 48}
!30 = !{!10, !15, i64 56}
!31 = !{!10, !15, i64 96}
!32 = !{!33, !12, i64 0}
!33 = !{!"_ZTS12ImGuiTabItem", !12, i64 0, !12, i64 4, !6, i64 8, !12, i64 16, !12, i64 20, !15, i64 24, !15, i64 28, !15, i64 32, !15, i64 36, !12, i64 40, !16, i64 44, !16, i64 46, !17, i64 48}
!34 = !{!10, !12, i64 24}
!35 = !{!33, !15, i64 24}
!36 = !{!33, !15, i64 28}
!37 = !{!33, !15, i64 32}
!38 = distinct !{!38, !27}


; 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.17 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.400 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.696 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.697 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.698 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.699 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.700 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.701 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.702 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.703 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.704 = external hidden unnamed_addr constant [54 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 nounwind uwtable
declare dso_local noundef i32 @_Z14ImFormatStringPcmPKcz(ptr noundef, i64 noundef, ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL5ImMinIiET_S0_S0_(i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZN5ImGui17GetStyleColorVec4Ei(i32 noundef) local_unnamed_addr #1

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

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

declare void @_ZN10ImDrawList7AddRectERK6ImVec2S2_jfif(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, float noundef, i32 noundef, float noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5ImGui13IsItemHoveredEi(i32 noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5ImGui13GetFrameCountEv() local_unnamed_addr #1

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

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

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

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

declare noundef ptr @_ZN5ImGui16TabBarGetTabNameEP11ImGuiTabBarP12ImGuiTabItem(ptr noundef, ptr noundef) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui15DebugNodeTabBarEP11ImGuiTabBarPKc(ptr noundef %0, ptr noundef %1) local_unnamed_addr #3 {
  %3 = alloca [256 x i8], align 16
  %4 = alloca %struct.ImVec2, align 4
  %5 = alloca %struct.ImVec2, align 4
  %6 = alloca %struct.ImVec2, align 4
  %7 = alloca %struct.ImVec2, align 4
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %3) #5
  %8 = getelementptr inbounds i8, ptr %3, i64 256
  %9 = getelementptr inbounds i8, ptr %0, i64 40
  %10 = load i32, ptr %9, align 8, !tbaa !5
  %11 = tail call noundef i32 @_ZN5ImGui13GetFrameCountEv()
  %12 = add nsw i32 %11, -2
  %.not = icmp slt i32 %10, %12
  %13 = ptrtoint ptr %8 to i64
  %14 = getelementptr inbounds i8, ptr %0, i64 20
  %15 = load i32, ptr %14, align 4, !tbaa !19
  %16 = load i32, ptr %0, align 8, !tbaa !20
  %17 = select i1 %.not, ptr @.str.697, ptr @.str.17
  %18 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef nonnull %3, i64 noundef 256, ptr noundef nonnull @.str.696, ptr noundef %1, i32 noundef %15, i32 noundef %16, ptr noundef nonnull %17)
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds i8, ptr %3, i64 %19
  %21 = load i32, ptr %0, align 8, !tbaa !20
  %22 = call noundef i32 @_ZL5ImMinIiET_S0_S0_(i32 noundef %21, i32 noundef 3)
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %2
  %24 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZN8ImVectorI12ImGuiTabItemEixEi(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 0)
  %gepdiff = sub nsw i64 256, %19
  %25 = call noundef ptr @_ZN5ImGui16TabBarGetTabNameEP11ImGuiTabBarP12ImGuiTabItem(ptr noundef nonnull %0, ptr noundef nonnull %24)
  %26 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef nonnull %20, i64 noundef %gepdiff, ptr noundef nonnull @.str.698, ptr noundef nonnull @.str.17, ptr noundef %25)
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds i8, ptr %20, i64 %27
  %29 = load i32, ptr %0, align 8, !tbaa !20
  %30 = call noundef i32 @_ZL5ImMinIiET_S0_S0_(i32 noundef %29, i32 noundef 3)
  %31 = icmp sgt i32 %30, 1
  br i1 %31, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph.preheader, %2
  %.0.lcssa = phi ptr [ %20, %2 ], [ %28, %.lr.ph.preheader ], [ %44, %.lr.ph ]
  %32 = ptrtoint ptr %.0.lcssa to i64
  %33 = sub i64 %13, %32
  %34 = load i32, ptr %0, align 8, !tbaa !20
  %35 = icmp sgt i32 %34, 3
  %36 = select i1 %35, ptr @.str.700, ptr @.str.701
  %37 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %.0.lcssa, i64 noundef %33, ptr noundef nonnull %36)
  br i1 %.not, label %49, label %.critedge

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %.066 = phi ptr [ %44, %.lr.ph ], [ %28, %.lr.ph.preheader ]
  %.06365 = phi i32 [ %45, %.lr.ph ], [ 1, %.lr.ph.preheader ]
  %38 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZN8ImVectorI12ImGuiTabItemEixEi(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %.06365)
  %39 = ptrtoint ptr %.066 to i64
  %40 = sub i64 %13, %39
  %41 = call noundef ptr @_ZN5ImGui16TabBarGetTabNameEP11ImGuiTabBarP12ImGuiTabItem(ptr noundef nonnull %0, ptr noundef nonnull %38)
  %42 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %.066, i64 noundef %40, ptr noundef nonnull @.str.698, ptr noundef nonnull @.str.699, ptr noundef %41)
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds i8, ptr %.066, i64 %43
  %45 = add nuw nsw i32 %.06365, 1
  %46 = load i32, ptr %0, align 8, !tbaa !20
  %47 = call noundef i32 @_ZL5ImMinIiET_S0_S0_(i32 noundef %46, i32 noundef 3)
  %48 = icmp slt i32 %45, %47
  br i1 %48, label %.lr.ph, label %._crit_edge, !llvm.loop !21

49:                                               ; preds = %._crit_edge
  %50 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN5ImGui17GetStyleColorVec4Ei(i32 noundef 1)
  call void @_ZN5ImGui14PushStyleColorEiRK6ImVec4(i32 noundef 0, ptr noundef nonnull align 4 dereferenceable(16) %50)
  %51 = call noundef zeroext i1 (ptr, ptr, ...) @_ZN5ImGui8TreeNodeEPKcS1_z(ptr noundef %1, ptr noundef nonnull @.str.400, ptr noundef nonnull %3)
  call void @_ZN5ImGui13PopStyleColorEi(i32 noundef 1)
  br i1 %51, label %.preheader, label %99

.critedge:                                        ; preds = %._crit_edge
  %52 = call noundef zeroext i1 (ptr, ptr, ...) @_ZN5ImGui8TreeNodeEPKcS1_z(ptr noundef %1, ptr noundef nonnull @.str.400, ptr noundef nonnull %3)
  %53 = call noundef zeroext i1 @_ZN5ImGui13IsItemHoveredEi(i32 noundef 0)
  br i1 %53, label %54, label %70

54:                                               ; preds = %.critedge
  %55 = call noundef ptr @_ZN5ImGui21GetForegroundDrawListEv()
  %56 = getelementptr inbounds i8, ptr %0, i64 44
  %57 = getelementptr inbounds i8, ptr %0, i64 52
  call void @_ZN10ImDrawList7AddRectERK6ImVec2S2_jfif(ptr noundef nonnull align 8 dereferenceable(196) %55, ptr noundef nonnull align 4 dereferenceable(8) %56, ptr noundef nonnull align 4 dereferenceable(8) %57, i32 noundef -16711681, float noundef 0.000000e+00, i32 noundef 0, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %58 = getelementptr inbounds i8, ptr %0, i64 92
  %59 = load float, ptr %58, align 4, !tbaa !24
  %60 = getelementptr inbounds i8, ptr %0, i64 48
  %61 = load float, ptr %60, align 4, !tbaa !25
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %4, float noundef %59, float noundef %61)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %62 = load float, ptr %58, align 4, !tbaa !24
  %63 = getelementptr inbounds i8, ptr %0, i64 56
  %64 = load float, ptr %63, align 4, !tbaa !26
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %5, float noundef %62, float noundef %64)
  call void @_ZN10ImDrawList7AddLineERK6ImVec2S2_jf(ptr noundef nonnull align 8 dereferenceable(196) %55, ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %5, i32 noundef -16711936, float noundef 1.000000e+00)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %65 = getelementptr inbounds i8, ptr %0, i64 96
  %66 = load float, ptr %65, align 8, !tbaa !27
  %67 = load float, ptr %60, align 4, !tbaa !25
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %6, float noundef %66, float noundef %67)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %68 = load float, ptr %65, align 8, !tbaa !27
  %69 = load float, ptr %63, align 4, !tbaa !26
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %7, float noundef %68, float noundef %69)
  call void @_ZN10ImDrawList7AddLineERK6ImVec2S2_jf(ptr noundef nonnull align 8 dereferenceable(196) %55, ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %7, i32 noundef -16711936, float noundef 1.000000e+00)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br i1 %52, label %.preheader, label %99

70:                                               ; preds = %.critedge
  br i1 %52, label %.preheader, label %99

.preheader:                                       ; preds = %70, %49, %54
  %71 = load i32, ptr %0, align 8, !tbaa !20
  %72 = icmp sgt i32 %71, 0
  br i1 %72, label %.lr.ph68, label %._crit_edge69

.lr.ph68:                                         ; preds = %.preheader
  %73 = getelementptr inbounds i8, ptr %0, i64 24
  br label %74

._crit_edge69:                                    ; preds = %81, %.preheader
  call void @_ZN5ImGui7TreePopEv()
  br label %99

74:                                               ; preds = %.lr.ph68, %81
  %.06267 = phi i32 [ 0, %.lr.ph68 ], [ %96, %81 ]
  %75 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZN8ImVectorI12ImGuiTabItemEixEi(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %.06267)
  call void @_ZN5ImGui6PushIDEPKv(ptr noundef nonnull %75)
  %76 = call noundef zeroext i1 @_ZN5ImGui11SmallButtonEPKc(ptr noundef nonnull @.str.702)
  br i1 %76, label %77, label %78

77:                                               ; preds = %74
  call void @_ZN5ImGui18TabBarQueueReorderEP11ImGuiTabBarP12ImGuiTabItemi(ptr noundef nonnull %0, ptr noundef nonnull %75, i32 noundef -1)
  br label %78

78:                                               ; preds = %77, %74
  call void @_ZN5ImGui8SameLineEff(float noundef 0.000000e+00, float noundef 2.000000e+00)
  %79 = call noundef zeroext i1 @_ZN5ImGui11SmallButtonEPKc(ptr noundef nonnull @.str.703)
  br i1 %79, label %80, label %81

80:                                               ; preds = %78
  call void @_ZN5ImGui18TabBarQueueReorderEP11ImGuiTabBarP12ImGuiTabItemi(ptr noundef nonnull %0, ptr noundef nonnull %75, i32 noundef 1)
  br label %81

81:                                               ; preds = %80, %78
  call void @_ZN5ImGui8SameLineEff(float noundef 0.000000e+00, float noundef -1.000000e+00)
  %82 = load i32, ptr %75, align 8, !tbaa !28
  %83 = load i32, ptr %73, align 8, !tbaa !30
  %84 = icmp eq i32 %82, %83
  %85 = select i1 %84, i32 42, i32 32
  %86 = call noundef ptr @_ZN5ImGui16TabBarGetTabNameEP11ImGuiTabBarP12ImGuiTabItem(ptr noundef nonnull %0, ptr noundef nonnull %75)
  %87 = getelementptr inbounds i8, ptr %75, i64 24
  %88 = load float, ptr %87, align 8, !tbaa !31
  %89 = fpext float %88 to double
  %90 = getelementptr inbounds i8, ptr %75, i64 28
  %91 = load float, ptr %90, align 4, !tbaa !32
  %92 = fpext float %91 to double
  %93 = getelementptr inbounds i8, ptr %75, i64 32
  %94 = load float, ptr %93, align 8, !tbaa !33
  %95 = fpext float %94 to double
  call void (ptr, ...) @_ZN5ImGui4TextEPKcz(ptr noundef nonnull @.str.704, i32 noundef %.06267, i32 noundef %85, i32 noundef %82, ptr noundef %86, double noundef %89, double noundef %92, double noundef %95)
  call void @_ZN5ImGui5PopIDEv()
  %96 = add nuw nsw i32 %.06267, 1
  %97 = load i32, ptr %0, align 8, !tbaa !20
  %98 = icmp slt i32 %96, %97
  br i1 %98, label %74, label %._crit_edge69, !llvm.loop !34

99:                                               ; preds = %54, %49, %._crit_edge69, %70
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %3) #5
  ret void
}

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

declare void @_ZN10ImDrawList7AddLineERK6ImVec2S2_jf(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, float noundef) local_unnamed_addr #4

declare void @_ZN5ImGui18TabBarQueueReorderEP11ImGuiTabBarP12ImGuiTabItemi(ptr noundef, ptr noundef, 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 = { 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 = { "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, !8, i64 40}
!6 = !{!"_ZTS11ImGuiTabBar", !7, i64 0, !8, i64 16, !8, i64 20, !8, i64 24, !8, i64 28, !8, i64 32, !8, i64 36, !8, i64 40, !12, i64 44, !14, i64 60, !14, i64 64, !14, i64 68, !14, i64 72, !14, i64 76, !14, i64 80, !14, i64 84, !14, i64 88, !14, i64 92, !14, i64 96, !14, i64 100, !14, i64 104, !8, i64 108, !15, i64 112, !9, i64 114, !16, i64 115, !16, i64 116, !16, i64 117, !15, i64 118, !15, i64 120, !14, i64 124, !13, i64 128, !13, i64 136, !17, i64 144}
!7 = !{!"_ZTS8ImVectorI12ImGuiTabItemE", !8, i64 0, !8, i64 4, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"_ZTS6ImRect", !13, i64 0, !13, i64 8}
!13 = !{!"_ZTS6ImVec2", !14, i64 0, !14, i64 4}
!14 = !{!"float", !9, i64 0}
!15 = !{!"short", !9, i64 0}
!16 = !{!"bool", !9, i64 0}
!17 = !{!"_ZTS15ImGuiTextBuffer", !18, i64 0}
!18 = !{!"_ZTS8ImVectorIcE", !8, i64 0, !8, i64 4, !11, i64 8}
!19 = !{!6, !8, i64 20}
!20 = !{!6, !8, i64 0}
!21 = distinct !{!21, !22, !23}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!"llvm.loop.peeled.count", i32 1}
!24 = !{!6, !14, i64 92}
!25 = !{!6, !14, i64 48}
!26 = !{!6, !14, i64 56}
!27 = !{!6, !14, i64 96}
!28 = !{!29, !8, i64 0}
!29 = !{!"_ZTS12ImGuiTabItem", !8, i64 0, !8, i64 4, !11, i64 8, !8, i64 16, !8, i64 20, !14, i64 24, !14, i64 28, !14, i64 32, !14, i64 36, !8, i64 40, !15, i64 44, !15, i64 46, !16, i64 48}
!30 = !{!6, !8, i64 24}
!31 = !{!29, !14, i64 24}
!32 = !{!29, !14, i64 28}
!33 = !{!29, !14, i64 32}
!34 = distinct !{!34, !22}


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