; LLVM IR from Samson-Mano/EM_Propogation_simulation :: EM_Propogation_simulation/src/ImGui (imgui_widgets)

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

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

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

; Function Attrs: 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) #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN5ImGui20TabBarProcessReorderEP11ImGuiTabBar(ptr noundef %0) #2 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca %struct.ImGuiTabItem, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.ImGuiTabBar, ptr %13, i32 0, i32 19
  %15 = load i32, ptr %14, align 4, !tbaa !9
  %16 = call noundef ptr @_ZN5ImGui17TabBarFindTabByIDEP11ImGuiTabBarj(ptr noundef %12, i32 noundef %15)
  store ptr %16, ptr %4, align 8, !tbaa !5
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = icmp eq ptr %17, null
  br i1 %18, label %25, label %19

19:                                               ; preds = %1
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.ImGuiTabItem, ptr %20, i32 0, i32 1
  %22 = load i32, ptr %21, align 4, !tbaa !20
  %23 = and i32 %22, 32
  %24 = icmp ne i32 %23, 0
  br i1 %24, label %25, label %26

25:                                               ; preds = %19, %1
  store i1 false, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %126

26:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = call noundef i32 @_ZN5ImGui17TabBarGetTabOrderEP11ImGuiTabBarP12ImGuiTabItem(ptr noundef %27, ptr noundef %28)
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.ImGuiTabBar, ptr %30, i32 0, i32 20
  %32 = load i16, ptr %31, align 8, !tbaa !22
  %33 = sext i16 %32 to i32
  %34 = add nsw i32 %29, %33
  store i32 %34, ptr %6, align 4, !tbaa !23
  %35 = load i32, ptr %6, align 4, !tbaa !23
  %36 = icmp slt i32 %35, 0
  br i1 %36, label %44, label %37

37:                                               ; preds = %26
  %38 = load i32, ptr %6, align 4, !tbaa !23
  %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.41, ptr %40, i32 0, i32 0
  %42 = load i32, ptr %41, align 8, !tbaa !24
  %43 = icmp sge i32 %38, %42
  br i1 %43, label %44, label %45

44:                                               ; preds = %37, %26
  store i1 false, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %125

45:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.ImGuiTabBar, ptr %46, i32 0, i32 0
  %48 = load i32, ptr %6, align 4, !tbaa !23
  %49 = call noundef nonnull align 4 dereferenceable(41) ptr @_ZN8ImVectorI12ImGuiTabItemEixEi(ptr noundef nonnull align 8 dereferenceable(16) %47, i32 noundef %48)
  store ptr %49, ptr %7, align 8, !tbaa !5
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.ImGuiTabItem, ptr %50, i32 0, i32 1
  %52 = load i32, ptr %51, align 4, !tbaa !20
  %53 = and i32 %52, 32
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %55, label %56

55:                                               ; preds = %45
  store i1 false, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %124

56:                                               ; preds = %45
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.ImGuiTabItem, ptr %57, i32 0, i32 1
  %59 = load i32, ptr %58, align 4, !tbaa !20
  %60 = and i32 %59, 192
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.ImGuiTabItem, ptr %61, i32 0, i32 1
  %63 = load i32, ptr %62, align 4, !tbaa !20
  %64 = and i32 %63, 192
  %65 = icmp ne i32 %60, %64
  br i1 %65, label %66, label %67

66:                                               ; preds = %56
  store i1 false, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %124

67:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 44, ptr %8) #6
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %68, i64 44, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.ImGuiTabBar, ptr %69, i32 0, i32 20
  %71 = load i16, ptr %70, align 8, !tbaa !22
  %72 = sext i16 %71 to i32
  %73 = icmp sgt i32 %72, 0
  br i1 %73, label %74, label %77

74:                                               ; preds = %67
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.ImGuiTabItem, ptr %75, i64 1
  br label %79

77:                                               ; preds = %67
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  br label %79

79:                                               ; preds = %77, %74
  %80 = phi ptr [ %76, %74 ], [ %78, %77 ]
  store ptr %80, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.ImGuiTabBar, ptr %81, i32 0, i32 20
  %83 = load i16, ptr %82, align 8, !tbaa !22
  %84 = sext i16 %83 to i32
  %85 = icmp sgt i32 %84, 0
  br i1 %85, label %86, label %88

86:                                               ; preds = %79
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  br label %91

88:                                               ; preds = %79
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.ImGuiTabItem, ptr %89, i64 1
  br label %91

91:                                               ; preds = %88, %86
  %92 = phi ptr [ %87, %86 ], [ %90, %88 ]
  store ptr %92, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.ImGuiTabBar, ptr %93, i32 0, i32 20
  %95 = load i16, ptr %94, align 8, !tbaa !22
  %96 = sext i16 %95 to i32
  %97 = icmp sgt i32 %96, 0
  br i1 %97, label %98, label %103

98:                                               ; preds = %91
  %99 = load ptr, ptr %3, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.ImGuiTabBar, ptr %99, i32 0, i32 20
  %101 = load i16, ptr %100, align 8, !tbaa !22
  %102 = sext i16 %101 to i32
  br label %109

103:                                              ; preds = %91
  %104 = load ptr, ptr %3, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.ImGuiTabBar, ptr %104, i32 0, i32 20
  %106 = load i16, ptr %105, align 8, !tbaa !22
  %107 = sext i16 %106 to i32
  %108 = sub nsw i32 0, %107
  br label %109

109:                                              ; preds = %103, %98
  %110 = phi i32 [ %102, %98 ], [ %108, %103 ]
  store i32 %110, ptr %11, align 4, !tbaa !23
  %111 = load ptr, ptr %10, align 8, !tbaa !5
  %112 = load ptr, ptr %9, align 8, !tbaa !5
  %113 = load i32, ptr %11, align 4, !tbaa !23
  %114 = sext i32 %113 to i64
  %115 = mul i64 %114, 44
  call void @llvm.memmove.p0.p0.i64(ptr align 4 %111, ptr align 4 %112, i64 %115, i1 false)
  %116 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %116, ptr align 4 %8, i64 41, i1 false), !tbaa.struct !25
  %117 = load ptr, ptr %3, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.ImGuiTabBar, ptr %117, i32 0, i32 1
  %119 = load i32, ptr %118, align 8, !tbaa !29
  %120 = and i32 %119, 4194304
  %121 = icmp ne i32 %120, 0
  br i1 %121, label %122, label %123

122:                                              ; preds = %109
  call void @_ZN5ImGui20MarkIniSettingsDirtyEv()
  br label %123

123:                                              ; preds = %122, %109
  store i1 true, ptr %2, align 1
  store i32 1, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 44, ptr %8) #6
  br label %124

124:                                              ; preds = %123, %66, %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %125

125:                                              ; preds = %124, %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %126

126:                                              ; preds = %125, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  %127 = load i1, ptr %2, align 1
  ret i1 %127
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN5ImGui17TabBarGetTabOrderEP11ImGuiTabBarP12ImGuiTabItem(ptr noundef, ptr noundef) #4

declare void @_ZN5ImGui20MarkIniSettingsDirtyEv() #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #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 = { 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 100}
!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, !12, i64 100, !16, i64 104, !7, i64 106, !17, i64 107, !17, i64 108, !17, i64 109, !16, i64 110, !16, i64 112, !15, i64 116, !14, i64 120, !14, i64 128, !18, i64 136}
!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 = !{!21, !12, i64 4}
!21 = !{!"_ZTS12ImGuiTabItem", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !15, i64 16, !15, i64 20, !15, i64 24, !15, i64 28, !12, i64 32, !16, i64 36, !16, i64 38, !17, i64 40}
!22 = !{!10, !16, i64 104}
!23 = !{!12, !12, i64 0}
!24 = !{!10, !12, i64 0}
!25 = !{i64 0, i64 4, !23, i64 4, i64 4, !23, i64 8, i64 4, !23, i64 12, i64 4, !23, i64 16, i64 4, !26, i64 20, i64 4, !26, i64 24, i64 4, !26, i64 28, i64 4, !26, i64 32, i64 4, !23, i64 36, i64 2, !27, i64 38, i64 2, !27, i64 40, i64 1, !28}
!26 = !{!15, !15, i64 0}
!27 = !{!16, !16, i64 0}
!28 = !{!17, !17, i64 0}
!29 = !{!10, !12, i64 16}


; 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.ImGuiTabItem = type <{ i32, i32, i32, i32, float, float, float, float, i32, i16, i16, i8, [3 x i8] }>

; 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

; Function Attrs: mustprogress 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) #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN5ImGui20TabBarProcessReorderEP11ImGuiTabBar(ptr noundef %0) local_unnamed_addr #2 {
  %2 = alloca %struct.ImGuiTabItem, align 4
  %3 = getelementptr inbounds i8, ptr %0, i64 100
  %4 = load i32, ptr %3, align 4, !tbaa !5
  %5 = tail call noundef ptr @_ZN5ImGui17TabBarFindTabByIDEP11ImGuiTabBarj(ptr noundef %0, i32 noundef %4)
  %6 = icmp eq ptr %5, null
  br i1 %6, label %44, label %7

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

11:                                               ; preds = %7
  %12 = tail call noundef i32 @_ZN5ImGui17TabBarGetTabOrderEP11ImGuiTabBarP12ImGuiTabItem(ptr noundef nonnull %0, ptr noundef nonnull %5)
  %13 = getelementptr inbounds i8, ptr %0, i64 104
  %14 = load i16, ptr %13, align 8, !tbaa !21
  %15 = sext i16 %14 to i32
  %16 = add nsw i32 %12, %15
  %17 = icmp slt i32 %16, 0
  br i1 %17, label %44, label %18

18:                                               ; preds = %11
  %19 = load i32, ptr %0, align 8, !tbaa !22
  %.not34 = icmp slt i32 %16, %19
  br i1 %.not34, label %20, label %44

20:                                               ; preds = %18
  %21 = tail call noundef nonnull align 4 dereferenceable(41) ptr @_ZN8ImVectorI12ImGuiTabItemEixEi(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %16)
  %22 = getelementptr inbounds i8, ptr %21, i64 4
  %23 = load i32, ptr %22, align 4, !tbaa !19
  %24 = and i32 %23, 32
  %.not35 = icmp eq i32 %24, 0
  br i1 %.not35, label %25, label %44

25:                                               ; preds = %20
  %26 = load i32, ptr %8, align 4, !tbaa !19
  %27 = xor i32 %26, %23
  %28 = and i32 %27, 192
  %.not36 = icmp eq i32 %28, 0
  br i1 %.not36, label %29, label %44

29:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 44, ptr nonnull %2)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(44) %2, ptr noundef nonnull align 4 dereferenceable(44) %5, i64 44, i1 false), !tbaa.struct !23
  %30 = load i16, ptr %13, align 8, !tbaa !21
  %31 = icmp sgt i16 %30, 0
  %32 = getelementptr inbounds i8, ptr %5, i64 44
  %33 = select i1 %31, ptr %32, ptr %21
  %34 = getelementptr inbounds i8, ptr %21, i64 44
  %35 = select i1 %31, ptr %5, ptr %34
  %36 = tail call i16 @llvm.abs.i16(i16 %30, i1 false)
  %37 = zext i16 %36 to i64
  %38 = mul nuw nsw i64 %37, 44
  tail call void @llvm.memmove.p0.p0.i64(ptr nonnull align 4 %35, ptr nonnull align 4 %33, i64 %38, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(41) %21, ptr noundef nonnull align 4 dereferenceable(41) %2, i64 41, i1 false), !tbaa.struct !23
  %39 = getelementptr inbounds i8, ptr %0, i64 16
  %40 = load i32, ptr %39, align 8, !tbaa !28
  %41 = and i32 %40, 4194304
  %.not37 = icmp eq i32 %41, 0
  br i1 %.not37, label %43, label %42

42:                                               ; preds = %29
  tail call void @_ZN5ImGui20MarkIniSettingsDirtyEv()
  br label %43

43:                                               ; preds = %42, %29
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %2)
  br label %44

44:                                               ; preds = %18, %11, %25, %20, %43, %1, %7
  %.2 = phi i1 [ false, %7 ], [ false, %1 ], [ false, %18 ], [ false, %11 ], [ true, %43 ], [ false, %20 ], [ false, %25 ]
  ret i1 %.2
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN5ImGui17TabBarGetTabOrderEP11ImGuiTabBarP12ImGuiTabItem(ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @_ZN5ImGui20MarkIniSettingsDirtyEv() local_unnamed_addr #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i16 @llvm.abs.i16(i16, i1 immarg) #6

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

!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 100}
!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, !8, i64 100, !15, i64 104, !9, i64 106, !16, i64 107, !16, i64 108, !16, i64 109, !15, i64 110, !15, i64 112, !14, i64 116, !13, i64 120, !13, i64 128, !17, i64 136}
!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 = !{!20, !8, i64 4}
!20 = !{!"_ZTS12ImGuiTabItem", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !14, i64 28, !8, i64 32, !15, i64 36, !15, i64 38, !16, i64 40}
!21 = !{!6, !15, i64 104}
!22 = !{!6, !8, i64 0}
!23 = !{i64 0, i64 4, !24, i64 4, i64 4, !24, i64 8, i64 4, !24, i64 12, i64 4, !24, i64 16, i64 4, !25, i64 20, i64 4, !25, i64 24, i64 4, !25, i64 28, i64 4, !25, i64 32, i64 4, !24, i64 36, i64 2, !26, i64 38, i64 2, !26, i64 40, i64 1, !27}
!24 = !{!8, !8, i64 0}
!25 = !{!14, !14, i64 0}
!26 = !{!15, !15, i64 0}
!27 = !{!16, !16, i64 0}
!28 = !{!6, !8, i64 16}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass