; LLVM IR from DarrenSweeney/3D-Physics-Engine :: Physics Engine/Imgui/imgui.ll (ZN11ImGuiWindow17FocusItemRegisterEbb)

; 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.ImGuiWindow = type { ptr, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, i8, i8, i8, i8, i8, i32, i8, i32, i32, i32, %struct.ImGuiDrawContext, %class.ImVector.11, %class.ImVector.12, %struct.ImGuiAabb, i32, float, %struct.ImGuiStorage, float, ptr, ptr, i32, i32, i32, i32, i32, i32 }
%struct.ImVec2 = type { float, float }
%struct.ImGuiDrawContext = type { %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, float, i32, i32, %struct.ImGuiAabb, i8, %class.ImVector.1, %class.ImVector.9, %class.ImVector.10, %class.ImVector.10, i32, ptr, float, float, i32, i32, %struct.ImVec2, float, float, i8, i32, %class.ImVector.10 }
%class.ImVector.1 = type { i64, i64, ptr }
%class.ImVector.9 = type { i64, i64, ptr }
%class.ImVector.10 = type { i64, i64, ptr }
%class.ImVector.11 = type { i64, i64, ptr }
%class.ImVector.12 = type { i64, i64, ptr }
%struct.ImGuiAabb = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImGuiStorage = type { %class.ImVector.6 }
%class.ImVector.6 = type { i64, i64, ptr }
%struct.ImGuiState = type { i8, [7 x i8], %struct.ImGuiIO, %struct.ImGuiStyle, ptr, float, %struct.ImVec2, float, i32, i32, %class.ImVector.1, ptr, %class.ImVector.1, ptr, ptr, ptr, i32, i32, i32, i8, i8, ptr, float, %class.ImVector.2, %class.ImVector.3, %class.ImVector.4, %class.ImVector, %struct.ImVec2, i32, %struct.ImVec2, i32, i8, i32, i8, i8, i32, %class.ImVector.5, %class.ImVector.1, %struct.ImGuiTextEditState, i32, %struct.ImGuiStorage, i32, [1024 x i8], ptr, i8, ptr, ptr, i32, i32, [120 x float], i32, float }
%struct.ImGuiIO = type <{ %struct.ImVec2, float, float, ptr, ptr, float, float, [17 x i32], [4 x i8], ptr, ptr, float, i8, [3 x i8], %struct.ImVec2, %struct.ImVec2, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.ImVec2, [5 x i8], [3 x i8], float, i8, i8, i8, [512 x i8], i8, [17 x i16], i8, i8, float, %struct.ImVec2, %struct.ImVec2, [5 x i8], [3 x i8], [5 x %struct.ImVec2], [5 x float], [5 x i8], [5 x i8], [2 x i8], [5 x float], [512 x float], [4 x i8] }>
%struct.ImGuiStyle = type { float, %struct.ImVec2, %struct.ImVec2, float, float, %struct.ImVec2, float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, float, float, [39 x %struct.ImVec4] }
%struct.ImVec4 = type { float, float, float, float }
%class.ImVector.2 = type { i64, i64, ptr }
%class.ImVector.3 = type { i64, i64, ptr }
%class.ImVector.4 = type { i64, i64, ptr }
%class.ImVector = type { i64, i64, ptr }
%class.ImVector.5 = type { i64, i64, ptr }
%struct.ImGuiTextEditState = type <{ i32, [1024 x i16], [3073 x i8], [3 x i8], i64, float, float, %struct.STB_TexteditState, float, %struct.ImVec2, i8, [7 x i8], ptr, float, [4 x i8] }>
%struct.STB_TexteditState = type { i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, float, %struct.StbUndoState }
%struct.StbUndoState = type { [99 x %struct.StbUndoRecord], [999 x i16], i16, i16, i16, i16 }
%struct.StbUndoRecord = type { i32, i16, i16, i16 }

@_ZL6GImGui = external hidden global ptr, align 8

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11ImGuiWindow17FocusItemRegisterEbb(ptr noundef nonnull align 8 dereferenceable(480) %0, i1 noundef zeroext %1, i1 noundef zeroext %2) #1 align 2 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i8, align 1
  %11 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  %12 = zext i1 %1 to i8
  store i8 %12, ptr %6, align 1, !tbaa !9
  %13 = zext i1 %2 to i8
  store i8 %13, ptr %7, align 1, !tbaa !9
  %14 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %15 = load ptr, ptr @_ZL6GImGui, align 8, !tbaa !5
  store ptr %15, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %16 = call noundef ptr @_ZL16GetCurrentWindowv()
  store ptr %16, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #4
  %17 = load ptr, ptr %9, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.ImGuiWindow, ptr %17, i32 0, i32 20
  %19 = getelementptr inbounds %struct.ImGuiDrawContext, ptr %18, i32 0, i32 11
  %20 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN8ImVectorIbE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %19)
  %21 = load i8, ptr %20, align 1, !tbaa !9, !range !11, !noundef !12
  %22 = trunc i8 %21 to i1
  %23 = zext i1 %22 to i8
  store i8 %23, ptr %10, align 1, !tbaa !9
  %24 = getelementptr inbounds %struct.ImGuiWindow, ptr %14, i32 0, i32 30
  %25 = load i32, ptr %24, align 8, !tbaa !13
  %26 = add nsw i32 %25, 1
  store i32 %26, ptr %24, align 8, !tbaa !13
  %27 = load i8, ptr %10, align 1, !tbaa !9, !range !11, !noundef !12
  %28 = trunc i8 %27 to i1
  br i1 %28, label %29, label %33

29:                                               ; preds = %3
  %30 = getelementptr inbounds %struct.ImGuiWindow, ptr %14, i32 0, i32 31
  %31 = load i32, ptr %30, align 4, !tbaa !28
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %30, align 4, !tbaa !28
  br label %33

33:                                               ; preds = %29, %3
  %34 = load i8, ptr %7, align 1, !tbaa !9, !range !11, !noundef !12
  %35 = trunc i8 %34 to i1
  br i1 %35, label %36, label %67

36:                                               ; preds = %33
  %37 = getelementptr inbounds %struct.ImGuiWindow, ptr %14, i32 0, i32 34
  %38 = load i32, ptr %37, align 8, !tbaa !29
  %39 = icmp eq i32 %38, 2147483647
  br i1 %39, label %40, label %67

40:                                               ; preds = %36
  %41 = getelementptr inbounds %struct.ImGuiWindow, ptr %14, i32 0, i32 35
  %42 = load i32, ptr %41, align 4, !tbaa !30
  %43 = icmp eq i32 %42, 2147483647
  br i1 %43, label %44, label %67

44:                                               ; preds = %40
  %45 = load i8, ptr %6, align 1, !tbaa !9, !range !11, !noundef !12
  %46 = trunc i8 %45 to i1
  br i1 %46, label %47, label %67

47:                                               ; preds = %44
  %48 = call noundef zeroext i1 @_ZL15IsKeyPressedMapib(i32 noundef 0, i1 noundef zeroext true)
  br i1 %48, label %49, label %67

49:                                               ; preds = %47
  %50 = getelementptr inbounds %struct.ImGuiWindow, ptr %14, i32 0, i32 31
  %51 = load i32, ptr %50, align 4, !tbaa !28
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.ImGuiState, ptr %52, i32 0, i32 2
  %54 = getelementptr inbounds %struct.ImGuiIO, ptr %53, i32 0, i32 29
  %55 = load i8, ptr %54, align 2, !tbaa !31, !range !11, !noundef !12
  %56 = trunc i8 %55 to i1
  br i1 %56, label %57, label %62

57:                                               ; preds = %49
  %58 = load i8, ptr %10, align 1, !tbaa !9, !range !11, !noundef !12
  %59 = trunc i8 %58 to i1
  %60 = zext i1 %59 to i64
  %61 = select i1 %59, i32 -1, i32 0
  br label %63

62:                                               ; preds = %49
  br label %63

63:                                               ; preds = %62, %57
  %64 = phi i32 [ %61, %57 ], [ 1, %62 ]
  %65 = add nsw i32 %51, %64
  %66 = getelementptr inbounds %struct.ImGuiWindow, ptr %14, i32 0, i32 35
  store i32 %65, ptr %66, align 4, !tbaa !30
  br label %67

67:                                               ; preds = %63, %47, %44, %40, %36, %33
  %68 = getelementptr inbounds %struct.ImGuiWindow, ptr %14, i32 0, i32 30
  %69 = load i32, ptr %68, align 8, !tbaa !13
  %70 = getelementptr inbounds %struct.ImGuiWindow, ptr %14, i32 0, i32 32
  %71 = load i32, ptr %70, align 8, !tbaa !44
  %72 = icmp eq i32 %69, %71
  br i1 %72, label %73, label %74

73:                                               ; preds = %67
  store i1 true, ptr %4, align 1
  store i32 1, ptr %11, align 4
  br label %86

74:                                               ; preds = %67
  %75 = load i8, ptr %10, align 1, !tbaa !9, !range !11, !noundef !12
  %76 = trunc i8 %75 to i1
  br i1 %76, label %77, label %85

77:                                               ; preds = %74
  %78 = getelementptr inbounds %struct.ImGuiWindow, ptr %14, i32 0, i32 31
  %79 = load i32, ptr %78, align 4, !tbaa !28
  %80 = getelementptr inbounds %struct.ImGuiWindow, ptr %14, i32 0, i32 33
  %81 = load i32, ptr %80, align 4, !tbaa !45
  %82 = icmp eq i32 %79, %81
  br i1 %82, label %83, label %84

83:                                               ; preds = %77
  store i1 true, ptr %4, align 1
  store i32 1, ptr %11, align 4
  br label %86

84:                                               ; preds = %77
  br label %85

85:                                               ; preds = %84, %74
  store i1 false, ptr %4, align 1
  store i32 1, ptr %11, align 4
  br label %86

86:                                               ; preds = %85, %83, %73
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %87 = load i1, ptr %4, align 1
  ret i1 %87
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN8ImVectorIbE4backEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL15IsKeyPressedMapib(i32 noundef, i1 noundef zeroext) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { 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, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !15, i64 456}
!14 = !{!"_ZTS11ImGuiWindow", !6, i64 0, !15, i64 8, !15, i64 12, !16, i64 16, !16, i64 24, !16, i64 32, !16, i64 40, !16, i64 48, !17, i64 56, !17, i64 60, !10, i64 64, !10, i64 65, !10, i64 66, !10, i64 67, !10, i64 68, !15, i64 72, !10, i64 76, !15, i64 80, !15, i64 84, !15, i64 88, !18, i64 96, !24, i64 336, !25, i64 360, !19, i64 384, !15, i64 400, !17, i64 404, !26, i64 408, !17, i64 432, !6, i64 440, !6, i64 448, !15, i64 456, !15, i64 460, !15, i64 464, !15, i64 468, !15, i64 472, !15, i64 476}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTS6ImVec2", !17, i64 0, !17, i64 4}
!17 = !{!"float", !7, i64 0}
!18 = !{!"_ZTS16ImGuiDrawContext", !16, i64 0, !16, i64 8, !16, i64 16, !17, i64 24, !17, i64 28, !17, i64 32, !15, i64 36, !15, i64 40, !19, i64 44, !10, i64 60, !20, i64 64, !22, i64 88, !23, i64 112, !23, i64 136, !15, i64 160, !6, i64 168, !17, i64 176, !17, i64 180, !15, i64 184, !15, i64 188, !16, i64 192, !17, i64 200, !17, i64 204, !10, i64 208, !15, i64 212, !23, i64 216}
!19 = !{!"_ZTS9ImGuiAabb", !16, i64 0, !16, i64 8}
!20 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !21, i64 0, !21, i64 8, !6, i64 16}
!21 = !{!"long", !7, i64 0}
!22 = !{!"_ZTS8ImVectorIbE", !21, i64 0, !21, i64 8, !6, i64 16}
!23 = !{!"_ZTS8ImVectorIfE", !21, i64 0, !21, i64 8, !6, i64 16}
!24 = !{!"_ZTS8ImVectorIjE", !21, i64 0, !21, i64 8, !6, i64 16}
!25 = !{!"_ZTS8ImVectorI6ImVec4E", !21, i64 0, !21, i64 8, !6, i64 16}
!26 = !{!"_ZTS12ImGuiStorage", !27, i64 0}
!27 = !{!"_ZTS8ImVectorIN12ImGuiStorage4PairEE", !21, i64 0, !21, i64 8, !6, i64 16}
!28 = !{!14, !15, i64 460}
!29 = !{!14, !15, i64 472}
!30 = !{!14, !15, i64 476}
!31 = !{!32, !10, i64 238}
!32 = !{!"_ZTS10ImGuiState", !10, i64 0, !33, i64 8, !34, i64 2960, !6, i64 3672, !17, i64 3680, !16, i64 3684, !17, i64 3692, !15, i64 3696, !15, i64 3700, !20, i64 3704, !6, i64 3728, !20, i64 3736, !6, i64 3760, !6, i64 3768, !6, i64 3776, !15, i64 3784, !15, i64 3788, !15, i64 3792, !10, i64 3796, !10, i64 3797, !6, i64 3800, !17, i64 3808, !35, i64 3816, !36, i64 3840, !37, i64 3864, !38, i64 3888, !16, i64 3912, !15, i64 3920, !16, i64 3924, !15, i64 3932, !10, i64 3936, !15, i64 3940, !10, i64 3944, !10, i64 3945, !15, i64 3948, !39, i64 3952, !20, i64 3976, !40, i64 4000, !15, i64 12400, !26, i64 12408, !15, i64 12432, !7, i64 12436, !6, i64 13464, !10, i64 13472, !6, i64 13480, !6, i64 13488, !15, i64 13496, !15, i64 13500, !7, i64 13504, !15, i64 13984, !17, i64 13988}
!33 = !{!"_ZTS7ImGuiIO", !16, i64 0, !17, i64 8, !17, i64 12, !6, i64 16, !6, i64 24, !17, i64 32, !17, i64 36, !7, i64 40, !6, i64 112, !6, i64 120, !17, i64 128, !10, i64 132, !16, i64 136, !16, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !16, i64 208, !7, i64 216, !17, i64 224, !10, i64 228, !10, i64 229, !10, i64 230, !7, i64 231, !7, i64 744, !10, i64 778, !10, i64 779, !17, i64 780, !16, i64 784, !16, i64 792, !7, i64 800, !7, i64 808, !7, i64 848, !7, i64 868, !7, i64 873, !7, i64 880, !7, i64 900}
!34 = !{!"_ZTS10ImGuiStyle", !17, i64 0, !16, i64 4, !16, i64 12, !17, i64 20, !17, i64 24, !16, i64 28, !17, i64 36, !16, i64 40, !16, i64 48, !16, i64 56, !16, i64 64, !17, i64 72, !17, i64 76, !17, i64 80, !17, i64 84, !7, i64 88}
!35 = !{!"_ZTS8ImVectorIP12ImGuiIniDataE", !21, i64 0, !21, i64 8, !6, i64 16}
!36 = !{!"_ZTS8ImVectorI11ImGuiColModE", !21, i64 0, !21, i64 8, !6, i64 16}
!37 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !21, i64 0, !21, i64 8, !6, i64 16}
!38 = !{!"_ZTS8ImVectorIP6ImFontE", !21, i64 0, !21, i64 8, !6, i64 16}
!39 = !{!"_ZTS8ImVectorIP10ImDrawListE", !21, i64 0, !21, i64 8, !6, i64 16}
!40 = !{!"_ZTS18ImGuiTextEditState", !15, i64 0, !7, i64 4, !7, i64 2052, !21, i64 5128, !17, i64 5136, !17, i64 5140, !41, i64 5144, !17, i64 8364, !16, i64 8368, !10, i64 8376, !6, i64 8384, !17, i64 8392}
!41 = !{!"_ZTS17STB_TexteditState", !15, i64 0, !15, i64 4, !15, i64 8, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 19, !17, i64 20, !42, i64 24}
!42 = !{!"_ZTS12StbUndoState", !7, i64 0, !7, i64 1188, !43, i64 3186, !43, i64 3188, !43, i64 3190, !43, i64 3192}
!43 = !{!"short", !7, i64 0}
!44 = !{!14, !15, i64 464}
!45 = !{!14, !15, i64 468}


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

@_ZL6GImGui = external hidden local_unnamed_addr global ptr, align 8

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZN11ImGuiWindow17FocusItemRegisterEbb(ptr nocapture noundef nonnull align 8 dereferenceable(480) %0, i1 noundef zeroext %1, i1 noundef zeroext %2) local_unnamed_addr #0 align 2 {
  %4 = load ptr, ptr @_ZL6GImGui, align 8, !tbaa !5
  %5 = tail call noundef ptr @_ZL16GetCurrentWindowv()
  %6 = getelementptr inbounds i8, ptr %5, i64 184
  %7 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZN8ImVectorIbE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
  %8 = load i8, ptr %7, align 1, !tbaa !9, !range !11, !noundef !12
  %9 = trunc nuw i8 %8 to i1
  %10 = getelementptr inbounds i8, ptr %0, i64 456
  %11 = load i32, ptr %10, align 8, !tbaa !13
  %12 = add nsw i32 %11, 1
  store i32 %12, ptr %10, align 8, !tbaa !13
  br i1 %9, label %13, label %17

13:                                               ; preds = %3
  %14 = getelementptr inbounds i8, ptr %0, i64 460
  %15 = load i32, ptr %14, align 4, !tbaa !28
  %16 = add nsw i32 %15, 1
  store i32 %16, ptr %14, align 4, !tbaa !28
  br label %17

17:                                               ; preds = %13, %3
  %18 = getelementptr inbounds i8, ptr %0, i64 472
  %19 = load i32, ptr %18, align 8
  %20 = icmp eq i32 %19, 2147483647
  %or.cond = select i1 %2, i1 %20, i1 false
  br i1 %or.cond, label %21, label %35

21:                                               ; preds = %17
  %22 = getelementptr inbounds i8, ptr %0, i64 476
  %23 = load i32, ptr %22, align 4, !tbaa !29
  %24 = icmp eq i32 %23, 2147483647
  %brmerge.not = and i1 %24, %1
  br i1 %brmerge.not, label %25, label %35

25:                                               ; preds = %21
  %26 = tail call noundef zeroext i1 @_ZL15IsKeyPressedMapib(i32 noundef 0, i1 noundef zeroext true)
  br i1 %26, label %27, label %35

27:                                               ; preds = %25
  %28 = getelementptr inbounds i8, ptr %0, i64 460
  %29 = load i32, ptr %28, align 4, !tbaa !28
  %30 = getelementptr inbounds i8, ptr %4, i64 238
  %31 = load i8, ptr %30, align 2, !tbaa !30, !range !11, !noundef !12
  %32 = trunc nuw i8 %31 to i1
  %33 = sext i1 %9 to i32
  %spec.select = select i1 %32, i32 %33, i32 1
  %34 = add nsw i32 %spec.select, %29
  store i32 %34, ptr %22, align 4, !tbaa !29
  br label %35

35:                                               ; preds = %21, %27, %25, %17
  %36 = load i32, ptr %10, align 8, !tbaa !13
  %37 = getelementptr inbounds i8, ptr %0, i64 464
  %38 = load i32, ptr %37, align 8, !tbaa !43
  %39 = icmp eq i32 %36, %38
  br i1 %39, label %48, label %40

40:                                               ; preds = %35
  br i1 %9, label %41, label %47

41:                                               ; preds = %40
  %42 = getelementptr inbounds i8, ptr %0, i64 460
  %43 = load i32, ptr %42, align 4, !tbaa !28
  %44 = getelementptr inbounds i8, ptr %0, i64 468
  %45 = load i32, ptr %44, align 4, !tbaa !44
  %46 = icmp eq i32 %43, %45
  br i1 %46, label %48, label %47

47:                                               ; preds = %41, %40
  br label %48

48:                                               ; preds = %41, %35, %47
  %.0 = phi i1 [ false, %47 ], [ true, %35 ], [ true, %41 ]
  ret i1 %.0
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @_ZL16GetCurrentWindowv() local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN8ImVectorIbE4backEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL15IsKeyPressedMapib(i32 noundef, i1 noundef zeroext) local_unnamed_addr #0

attributes #0 = { 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 #1 = { 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" }

!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, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !15, i64 456}
!14 = !{!"_ZTS11ImGuiWindow", !6, i64 0, !15, i64 8, !15, i64 12, !16, i64 16, !16, i64 24, !16, i64 32, !16, i64 40, !16, i64 48, !17, i64 56, !17, i64 60, !10, i64 64, !10, i64 65, !10, i64 66, !10, i64 67, !10, i64 68, !15, i64 72, !10, i64 76, !15, i64 80, !15, i64 84, !15, i64 88, !18, i64 96, !24, i64 336, !25, i64 360, !19, i64 384, !15, i64 400, !17, i64 404, !26, i64 408, !17, i64 432, !6, i64 440, !6, i64 448, !15, i64 456, !15, i64 460, !15, i64 464, !15, i64 468, !15, i64 472, !15, i64 476}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTS6ImVec2", !17, i64 0, !17, i64 4}
!17 = !{!"float", !7, i64 0}
!18 = !{!"_ZTS16ImGuiDrawContext", !16, i64 0, !16, i64 8, !16, i64 16, !17, i64 24, !17, i64 28, !17, i64 32, !15, i64 36, !15, i64 40, !19, i64 44, !10, i64 60, !20, i64 64, !22, i64 88, !23, i64 112, !23, i64 136, !15, i64 160, !6, i64 168, !17, i64 176, !17, i64 180, !15, i64 184, !15, i64 188, !16, i64 192, !17, i64 200, !17, i64 204, !10, i64 208, !15, i64 212, !23, i64 216}
!19 = !{!"_ZTS9ImGuiAabb", !16, i64 0, !16, i64 8}
!20 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !21, i64 0, !21, i64 8, !6, i64 16}
!21 = !{!"long", !7, i64 0}
!22 = !{!"_ZTS8ImVectorIbE", !21, i64 0, !21, i64 8, !6, i64 16}
!23 = !{!"_ZTS8ImVectorIfE", !21, i64 0, !21, i64 8, !6, i64 16}
!24 = !{!"_ZTS8ImVectorIjE", !21, i64 0, !21, i64 8, !6, i64 16}
!25 = !{!"_ZTS8ImVectorI6ImVec4E", !21, i64 0, !21, i64 8, !6, i64 16}
!26 = !{!"_ZTS12ImGuiStorage", !27, i64 0}
!27 = !{!"_ZTS8ImVectorIN12ImGuiStorage4PairEE", !21, i64 0, !21, i64 8, !6, i64 16}
!28 = !{!14, !15, i64 460}
!29 = !{!14, !15, i64 476}
!30 = !{!31, !10, i64 238}
!31 = !{!"_ZTS10ImGuiState", !10, i64 0, !32, i64 8, !33, i64 2960, !6, i64 3672, !17, i64 3680, !16, i64 3684, !17, i64 3692, !15, i64 3696, !15, i64 3700, !20, i64 3704, !6, i64 3728, !20, i64 3736, !6, i64 3760, !6, i64 3768, !6, i64 3776, !15, i64 3784, !15, i64 3788, !15, i64 3792, !10, i64 3796, !10, i64 3797, !6, i64 3800, !17, i64 3808, !34, i64 3816, !35, i64 3840, !36, i64 3864, !37, i64 3888, !16, i64 3912, !15, i64 3920, !16, i64 3924, !15, i64 3932, !10, i64 3936, !15, i64 3940, !10, i64 3944, !10, i64 3945, !15, i64 3948, !38, i64 3952, !20, i64 3976, !39, i64 4000, !15, i64 12400, !26, i64 12408, !15, i64 12432, !7, i64 12436, !6, i64 13464, !10, i64 13472, !6, i64 13480, !6, i64 13488, !15, i64 13496, !15, i64 13500, !7, i64 13504, !15, i64 13984, !17, i64 13988}
!32 = !{!"_ZTS7ImGuiIO", !16, i64 0, !17, i64 8, !17, i64 12, !6, i64 16, !6, i64 24, !17, i64 32, !17, i64 36, !7, i64 40, !6, i64 112, !6, i64 120, !17, i64 128, !10, i64 132, !16, i64 136, !16, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !16, i64 208, !7, i64 216, !17, i64 224, !10, i64 228, !10, i64 229, !10, i64 230, !7, i64 231, !7, i64 744, !10, i64 778, !10, i64 779, !17, i64 780, !16, i64 784, !16, i64 792, !7, i64 800, !7, i64 808, !7, i64 848, !7, i64 868, !7, i64 873, !7, i64 880, !7, i64 900}
!33 = !{!"_ZTS10ImGuiStyle", !17, i64 0, !16, i64 4, !16, i64 12, !17, i64 20, !17, i64 24, !16, i64 28, !17, i64 36, !16, i64 40, !16, i64 48, !16, i64 56, !16, i64 64, !17, i64 72, !17, i64 76, !17, i64 80, !17, i64 84, !7, i64 88}
!34 = !{!"_ZTS8ImVectorIP12ImGuiIniDataE", !21, i64 0, !21, i64 8, !6, i64 16}
!35 = !{!"_ZTS8ImVectorI11ImGuiColModE", !21, i64 0, !21, i64 8, !6, i64 16}
!36 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !21, i64 0, !21, i64 8, !6, i64 16}
!37 = !{!"_ZTS8ImVectorIP6ImFontE", !21, i64 0, !21, i64 8, !6, i64 16}
!38 = !{!"_ZTS8ImVectorIP10ImDrawListE", !21, i64 0, !21, i64 8, !6, i64 16}
!39 = !{!"_ZTS18ImGuiTextEditState", !15, i64 0, !7, i64 4, !7, i64 2052, !21, i64 5128, !17, i64 5136, !17, i64 5140, !40, i64 5144, !17, i64 8364, !16, i64 8368, !10, i64 8376, !6, i64 8384, !17, i64 8392}
!40 = !{!"_ZTS17STB_TexteditState", !15, i64 0, !15, i64 4, !15, i64 8, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 19, !17, i64 20, !41, i64 24}
!41 = !{!"_ZTS12StbUndoState", !7, i64 0, !7, i64 1188, !42, i64 3186, !42, i64 3188, !42, i64 3190, !42, i64 3192}
!42 = !{!"short", !7, i64 0}
!43 = !{!14, !15, i64 464}
!44 = !{!14, !15, i64 468}


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