; LLVM IR from Eukky/TRender :: lib/imgui/imgui.ll (ZN5ImGui13ArrowButtonExEPKci6ImVec2i)

; 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.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImGuiWindow = type { ptr, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, i8, i32, i32, i32, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImGuiWindowTempData, %class.ImVector.22, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, i32, float, %struct.ImGuiMenuColumns, %struct.ImGuiStorage, %class.ImVector.23, float, i32, ptr, %struct.ImDrawList, ptr, ptr, ptr, ptr, ptr, ptr, [2 x i32], [2 x %struct.ImRect], i32, i32, i32, i32, i32, i32 }
%struct.ImGuiWindowTempData = type { %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, float, float, float, i32, i32, i32, i32, %struct.ImRect, %struct.ImRect, i8, i8, i32, i32, i32, i32, i8, %struct.ImVec2, %class.ImVector, ptr, i32, i32, i32, float, float, %class.ImVector.20, %class.ImVector.16, %class.ImVector.16, %class.ImVector.21, [6 x i32], float, float, float, ptr }
%class.ImVector = type { i32, i32, ptr }
%class.ImVector.20 = type { i32, i32, ptr }
%class.ImVector.16 = type { i32, i32, ptr }
%class.ImVector.21 = type { i32, i32, ptr }
%class.ImVector.22 = type { i32, i32, ptr }
%struct.ImGuiMenuColumns = type { i32, float, float, float, [4 x float], [4 x float] }
%struct.ImGuiStorage = type { %class.ImVector.0 }
%class.ImVector.0 = type { i32, i32, ptr }
%class.ImVector.23 = type { i32, i32, ptr }
%struct.ImDrawList = type { %class.ImVector.6, %class.ImVector.7, %class.ImVector.8, i32, ptr, ptr, i32, ptr, ptr, %class.ImVector.9, %class.ImVector.10, %class.ImVector.11, i32, i32, %class.ImVector.12 }
%class.ImVector.6 = type { i32, i32, ptr }
%class.ImVector.7 = type { i32, i32, ptr }
%class.ImVector.8 = type { i32, i32, ptr }
%class.ImVector.9 = type { i32, i32, ptr }
%class.ImVector.10 = type { i32, i32, ptr }
%class.ImVector.11 = type { i32, i32, ptr }
%class.ImVector.12 = type { i32, i32, ptr }
%struct.ImGuiContext = type <{ i8, i8, [6 x i8], %struct.ImGuiIO, %struct.ImGuiStyle, ptr, float, float, %struct.ImDrawListSharedData, float, i32, i32, i32, %class.ImVector, %class.ImVector, %class.ImVector, %struct.ImGuiStorage, i32, [4 x i8], ptr, ptr, ptr, i32, i8, [3 x i8], i32, float, i32, i32, float, i8, i8, i8, i8, i8, i8, [2 x i8], i32, %struct.ImVec2, ptr, ptr, i32, i32, float, [4 x i8], ptr, %class.ImVector.1, %class.ImVector.2, %class.ImVector.3, %class.ImVector.4, %class.ImVector.4, %struct.ImGuiNextWindowData, i8, [3 x i8], i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.ImRect, i32, ptr, float, float, i8, [3 x i8], i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, i32, %struct.ImRect, i8, i8, [2 x i8], i32, i32, i32, i32, i32, %struct.ImGuiNavMoveResult, %struct.ImGuiNavMoveResult, %struct.ImGuiNavMoveResult, %struct.ImDrawData, %struct.ImDrawDataBuilder, float, [4 x i8], %struct.ImDrawList, i32, i8, [3 x i8], i32, i32, %struct.ImGuiPayload, %struct.ImRect, i32, i32, float, i32, i32, i32, %class.ImVector.13, [8 x i8], %struct.ImGuiTextEditState, %struct.ImFont, i32, i32, %struct.ImVec4, i8, [3 x i8], float, float, %struct.ImVec2, i32, %class.ImVector.14, %struct.ImVec2, %struct.ImVec2, i8, [3 x i8], float, %struct.ImGuiTextBuffer, %class.ImVector.17, %class.ImVector.18, i8, [7 x i8], ptr, %struct.ImGuiTextBuffer, i32, i32, [120 x float], i32, float, i32, i32, i32, [3073 x i8], [3 x i8] }>
%struct.ImGuiIO = type { i32, i32, %struct.ImVec2, float, float, ptr, ptr, float, float, float, [21 x i32], float, float, ptr, ptr, float, i8, ptr, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, %struct.ImVec2, [5 x i8], float, float, i8, i8, i8, i8, i8, [512 x i8], [17 x i16], [21 x float], i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, [5 x %struct.ImVec2], [5 x float], [5 x i8], [5 x i8], [5 x i8], [5 x i8], [5 x float], [5 x float], [5 x %struct.ImVec2], [5 x float], [512 x float], [512 x float], [21 x float], [21 x float] }
%struct.ImGuiStyle = type { float, %struct.ImVec2, float, float, %struct.ImVec2, %struct.ImVec2, float, float, float, float, %struct.ImVec2, float, float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, float, float, float, float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, i8, i8, float, [42 x %struct.ImVec4] }
%struct.ImDrawListSharedData = type { %struct.ImVec2, ptr, float, float, %struct.ImVec4, [12 x %struct.ImVec2] }
%class.ImVector.1 = type { i32, i32, ptr }
%class.ImVector.2 = type { i32, i32, ptr }
%class.ImVector.3 = type { i32, i32, ptr }
%class.ImVector.4 = type { i32, i32, ptr }
%struct.ImGuiNextWindowData = type <{ i32, i32, i32, i32, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, [3 x i8], %struct.ImRect, ptr, ptr, float, %struct.ImVec2, [4 x i8] }>
%struct.ImGuiNavMoveResult = type <{ i32, [4 x i8], ptr, float, float, float, %struct.ImRect, [4 x i8] }>
%struct.ImDrawData = type <{ i8, [7 x i8], ptr, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, [4 x i8] }>
%struct.ImDrawDataBuilder = type { [2 x %class.ImVector.5] }
%class.ImVector.5 = type { i32, i32, ptr }
%struct.ImGuiPayload = type <{ ptr, i32, i32, i32, i32, [33 x i8], i8, i8, [5 x i8] }>
%class.ImVector.13 = type { i32, i32, ptr }
%struct.ImGuiTextEditState = type <{ i32, [4 x i8], %class.ImVector.7, %class.ImVector.14, %class.ImVector.14, i32, i32, i32, float, %"struct.ImGuiStb::STB_TexteditState", float, i8, i8, [6 x i8] }>
%"struct.ImGuiStb::STB_TexteditState" = type { i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, float, %"struct.ImGuiStb::StbUndoState" }
%"struct.ImGuiStb::StbUndoState" = type { [99 x %"struct.ImGuiStb::StbUndoRecord"], [999 x i16], i16, i16, i32, i32 }
%"struct.ImGuiStb::StbUndoRecord" = type { i32, i32, i32, i32 }
%struct.ImFont = type { float, float, %struct.ImVec2, %class.ImVector.15, %class.ImVector.16, %class.ImVector.7, ptr, float, i16, i16, ptr, ptr, float, float, i8, i32 }
%class.ImVector.15 = type { i32, i32, ptr }
%struct.ImVec4 = type { float, float, float, float }
%class.ImVector.14 = type { i32, i32, ptr }
%class.ImVector.17 = type { i32, i32, ptr }
%class.ImVector.18 = type { i32, i32, ptr }
%struct.ImGuiTextBuffer = type { %class.ImVector.14 }

@GImGui = external dso_local global ptr, align 8

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

; Function Attrs: 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: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN5ImGui11GetColorU32Eif(i32 noundef, float noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef, float noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN11ImGuiWindow5GetIDEPKcS1_(ptr noundef nonnull align 8 dereferenceable(976), ptr noundef, ptr noundef) #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui8ItemSizeERK6ImRectf(ptr noundef nonnull align 4 dereferenceable(16), float noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5ImGui7ItemAddERK6ImRectjPS1_(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef, ptr noundef) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui11RenderFrameE6ImVec2S0_jbf(<2 x float>, <2 x float>, i32 noundef, i1 noundef zeroext, float noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui11RenderArrowE6ImVec2if(<2 x float>, i32 noundef, float noundef) #6

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5ImGui14ButtonBehaviorERK6ImRectjPbS3_i(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef, ptr noundef, ptr noundef, i32 noundef) #6

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN5ImGui13ArrowButtonExEPKci6ImVec2i(ptr noundef %0, i32 noundef %1, <2 x float> %2, i32 noundef %3) #6 {
  %5 = alloca i1, align 1
  %6 = alloca %struct.ImVec2, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %struct.ImRect, align 4
  %15 = alloca %struct.ImVec2, align 4
  %16 = alloca float, align 4
  %17 = alloca i8, align 1
  %18 = alloca i8, align 1
  %19 = alloca i8, align 1
  %20 = alloca i32, align 4
  %21 = alloca %struct.ImVec2, align 4
  %22 = alloca %struct.ImVec2, align 4
  %23 = alloca %struct.ImVec2, align 4
  %24 = alloca %struct.ImVec2, align 4
  store <2 x float> %2, ptr %6, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %25 = call noundef ptr @_ZN5ImGui16GetCurrentWindowEv()
  store ptr %25, ptr %10, align 8, !tbaa !5
  %26 = load ptr, ptr %10, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.ImGuiWindow, ptr %26, i32 0, i32 25
  %28 = load i8, ptr %27, align 1, !tbaa !11, !range !35, !noundef !36
  %29 = trunc i8 %28 to i1
  br i1 %29, label %30, label %31

30:                                               ; preds = %4
  store i1 false, ptr %5, align 1
  store i32 1, ptr %11, align 4
  br label %132

31:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %32 = load ptr, ptr @GImGui, align 8, !tbaa !5
  store ptr %32, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = call noundef i32 @_ZN11ImGuiWindow5GetIDEPKcS1_(ptr noundef nonnull align 8 dereferenceable(976) %33, ptr noundef %34, ptr noundef null)
  store i32 %35, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #7
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.ImGuiWindow, ptr %36, i32 0, i32 43
  %38 = getelementptr inbounds %struct.ImGuiWindowTempData, ptr %37, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %39 = load ptr, ptr %10, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.ImGuiWindow, ptr %39, i32 0, i32 43
  %41 = getelementptr inbounds %struct.ImGuiWindowTempData, ptr %40, i32 0, i32 0
  %42 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %41, ptr noundef nonnull align 4 dereferenceable(8) %6)
  store <2 x float> %42, ptr %15, align 4
  call void @_ZN6ImRectC2ERK6ImVec2S2_(ptr noundef nonnull align 4 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(8) %38, ptr noundef nonnull align 4 dereferenceable(8) %15)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %43 = call noundef float @_ZN5ImGui14GetFrameHeightEv()
  store float %43, ptr %16, align 4, !tbaa !37
  %44 = getelementptr inbounds %struct.ImVec2, ptr %6, i32 0, i32 1
  %45 = load float, ptr %44, align 4, !tbaa !38
  %46 = load float, ptr %16, align 4, !tbaa !37
  %47 = fcmp oge float %45, %46
  br i1 %47, label %48, label %54

48:                                               ; preds = %31
  %49 = load ptr, ptr %12, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.ImGuiContext, ptr %49, i32 0, i32 4
  %51 = getelementptr inbounds %struct.ImGuiStyle, ptr %50, i32 0, i32 10
  %52 = getelementptr inbounds %struct.ImVec2, ptr %51, i32 0, i32 1
  %53 = load float, ptr %52, align 4, !tbaa !39
  br label %55

54:                                               ; preds = %31
  br label %55

55:                                               ; preds = %54, %48
  %56 = phi float [ %53, %48 ], [ 0.000000e+00, %54 ]
  call void @_ZN5ImGui8ItemSizeERK6ImRectf(ptr noundef nonnull align 4 dereferenceable(16) %14, float noundef %56)
  %57 = load i32, ptr %13, align 4, !tbaa !9
  %58 = call noundef zeroext i1 @_ZN5ImGui7ItemAddERK6ImRectjPS1_(ptr noundef nonnull align 4 dereferenceable(16) %14, i32 noundef %57, ptr noundef null)
  br i1 %58, label %60, label %59

59:                                               ; preds = %55
  store i1 false, ptr %5, align 1
  store i32 1, ptr %11, align 4
  br label %131

60:                                               ; preds = %55
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.ImGuiWindow, ptr %61, i32 0, i32 43
  %63 = getelementptr inbounds %struct.ImGuiWindowTempData, ptr %62, i32 0, i32 27
  %64 = load i32, ptr %63, align 8, !tbaa !67
  %65 = and i32 %64, 2
  %66 = icmp ne i32 %65, 0
  br i1 %66, label %67, label %70

67:                                               ; preds = %60
  %68 = load i32, ptr %9, align 4, !tbaa !9
  %69 = or i32 %68, 1
  store i32 %69, ptr %9, align 4, !tbaa !9
  br label %70

70:                                               ; preds = %67, %60
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #7
  %71 = load i32, ptr %13, align 4, !tbaa !9
  %72 = load i32, ptr %9, align 4, !tbaa !9
  %73 = call noundef zeroext i1 @_ZN5ImGui14ButtonBehaviorERK6ImRectjPbS3_i(ptr noundef nonnull align 4 dereferenceable(16) %14, i32 noundef %71, ptr noundef %17, ptr noundef %18, i32 noundef %72)
  %74 = zext i1 %73 to i8
  store i8 %74, ptr %19, align 1, !tbaa !68
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %75 = load i8, ptr %17, align 1, !tbaa !68, !range !35, !noundef !36
  %76 = trunc i8 %75 to i1
  br i1 %76, label %77, label %81

77:                                               ; preds = %70
  %78 = load i8, ptr %18, align 1, !tbaa !68, !range !35, !noundef !36
  %79 = trunc i8 %78 to i1
  br i1 %79, label %80, label %81

80:                                               ; preds = %77
  br label %86

81:                                               ; preds = %77, %70
  %82 = load i8, ptr %17, align 1, !tbaa !68, !range !35, !noundef !36
  %83 = trunc i8 %82 to i1
  %84 = zext i1 %83 to i64
  %85 = select i1 %83, i32 22, i32 21
  br label %86

86:                                               ; preds = %81, %80
  %87 = phi i32 [ 23, %80 ], [ %85, %81 ]
  %88 = call noundef i32 @_ZN5ImGui11GetColorU32Eif(i32 noundef %87, float noundef 1.000000e+00)
  store i32 %88, ptr %20, align 4, !tbaa !9
  %89 = load i32, ptr %13, align 4, !tbaa !9
  call void @_ZN5ImGui18RenderNavHighlightERK6ImRectji(ptr noundef nonnull align 4 dereferenceable(16) %14, i32 noundef %89, i32 noundef 1)
  %90 = getelementptr inbounds %struct.ImRect, ptr %14, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %90, i64 8, i1 false), !tbaa.struct !69
  %91 = getelementptr inbounds %struct.ImRect, ptr %14, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %91, i64 8, i1 false), !tbaa.struct !69
  %92 = load i32, ptr %20, align 4, !tbaa !9
  %93 = load ptr, ptr %12, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.ImGuiContext, ptr %93, i32 0, i32 4
  %95 = getelementptr inbounds %struct.ImGuiStyle, ptr %94, i32 0, i32 11
  %96 = load float, ptr %95, align 4, !tbaa !70
  %97 = load <2 x float>, ptr %21, align 4
  %98 = load <2 x float>, ptr %22, align 4
  call void @_ZN5ImGui11RenderFrameE6ImVec2S0_jbf(<2 x float> %97, <2 x float> %98, i32 noundef %92, i1 noundef zeroext true, float noundef %96)
  %99 = getelementptr inbounds %struct.ImRect, ptr %14, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %100 = getelementptr inbounds %struct.ImVec2, ptr %6, i32 0, i32 0
  %101 = load float, ptr %100, align 4, !tbaa !71
  %102 = load ptr, ptr %12, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.ImGuiContext, ptr %102, i32 0, i32 6
  %104 = load float, ptr %103, align 8, !tbaa !72
  %105 = fsub float %101, %104
  %106 = load ptr, ptr %12, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.ImGuiContext, ptr %106, i32 0, i32 4
  %108 = getelementptr inbounds %struct.ImGuiStyle, ptr %107, i32 0, i32 10
  %109 = getelementptr inbounds %struct.ImVec2, ptr %108, i32 0, i32 0
  %110 = load float, ptr %109, align 4, !tbaa !73
  %111 = fsub float %105, %110
  %112 = call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef 0.000000e+00, float noundef %111)
  %113 = getelementptr inbounds %struct.ImVec2, ptr %6, i32 0, i32 1
  %114 = load float, ptr %113, align 4, !tbaa !38
  %115 = load ptr, ptr %12, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.ImGuiContext, ptr %115, i32 0, i32 6
  %117 = load float, ptr %116, align 8, !tbaa !72
  %118 = fsub float %114, %117
  %119 = load ptr, ptr %12, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.ImGuiContext, ptr %119, i32 0, i32 4
  %121 = getelementptr inbounds %struct.ImGuiStyle, ptr %120, i32 0, i32 10
  %122 = getelementptr inbounds %struct.ImVec2, ptr %121, i32 0, i32 1
  %123 = load float, ptr %122, align 4, !tbaa !39
  %124 = fsub float %118, %123
  %125 = call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef 0.000000e+00, float noundef %124)
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %24, float noundef %112, float noundef %125)
  %126 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %99, ptr noundef nonnull align 4 dereferenceable(8) %24)
  store <2 x float> %126, ptr %23, align 4
  %127 = load i32, ptr %8, align 4, !tbaa !9
  %128 = load <2 x float>, ptr %23, align 4
  call void @_ZN5ImGui11RenderArrowE6ImVec2if(<2 x float> %128, i32 noundef %127, float noundef 1.000000e+00)
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  %129 = load i8, ptr %19, align 1, !tbaa !68, !range !35, !noundef !36
  %130 = trunc i8 %129 to i1
  store i1 %130, ptr %5, align 1
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #7
  br label %131

131:                                              ; preds = %86, %59
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %132

132:                                              ; preds = %131, %30
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  %133 = load i1, ptr %5, align 1
  ret i1 %133
}

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 = { inlinehint 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 = { 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 = { 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 #6 = { 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 #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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !15, i64 127}
!12 = !{!"_ZTS11ImGuiWindow", !6, i64 0, !10, i64 8, !10, i64 12, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !14, i64 72, !14, i64 76, !10, i64 80, !10, i64 84, !13, i64 88, !13, i64 96, !13, i64 104, !13, i64 112, !15, i64 120, !15, i64 121, !15, i64 122, !15, i64 123, !15, i64 124, !15, i64 125, !15, i64 126, !15, i64 127, !15, i64 128, !15, i64 129, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !15, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !10, i64 172, !10, i64 176, !10, i64 180, !13, i64 184, !13, i64 192, !16, i64 200, !22, i64 496, !17, i64 512, !17, i64 528, !17, i64 544, !17, i64 560, !17, i64 576, !10, i64 592, !14, i64 596, !23, i64 600, !24, i64 648, !26, i64 664, !14, i64 680, !10, i64 684, !6, i64 688, !27, i64 696, !6, i64 864, !6, i64 872, !6, i64 880, !6, i64 888, !6, i64 896, !6, i64 904, !7, i64 912, !7, i64 920, !10, i64 952, !10, i64 956, !10, i64 960, !10, i64 964, !10, i64 968, !10, i64 972}
!13 = !{!"_ZTS6ImVec2", !14, i64 0, !14, i64 4}
!14 = !{!"float", !7, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTS19ImGuiWindowTempData", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !14, i64 32, !14, i64 36, !14, i64 40, !14, i64 44, !14, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !17, i64 68, !17, i64 84, !15, i64 100, !15, i64 101, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !15, i64 120, !13, i64 124, !18, i64 136, !6, i64 152, !10, i64 160, !10, i64 164, !10, i64 168, !14, i64 172, !14, i64 176, !19, i64 184, !20, i64 200, !20, i64 216, !21, i64 232, !7, i64 248, !14, i64 272, !14, i64 276, !14, i64 280, !6, i64 288}
!17 = !{!"_ZTS6ImRect", !13, i64 0, !13, i64 8}
!18 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !10, i64 0, !10, i64 4, !6, i64 8}
!19 = !{!"_ZTS8ImVectorIiE", !10, i64 0, !10, i64 4, !6, i64 8}
!20 = !{!"_ZTS8ImVectorIfE", !10, i64 0, !10, i64 4, !6, i64 8}
!21 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!22 = !{!"_ZTS8ImVectorIjE", !10, i64 0, !10, i64 4, !6, i64 8}
!23 = !{!"_ZTS16ImGuiMenuColumns", !10, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !7, i64 16, !7, i64 32}
!24 = !{!"_ZTS12ImGuiStorage", !25, i64 0}
!25 = !{!"_ZTS8ImVectorIN12ImGuiStorage4PairEE", !10, i64 0, !10, i64 4, !6, i64 8}
!26 = !{!"_ZTS8ImVectorI15ImGuiColumnsSetE", !10, i64 0, !10, i64 4, !6, i64 8}
!27 = !{!"_ZTS10ImDrawList", !28, i64 0, !29, i64 16, !30, i64 32, !10, i64 48, !6, i64 56, !6, i64 64, !10, i64 72, !6, i64 80, !6, i64 88, !31, i64 96, !32, i64 112, !33, i64 128, !10, i64 144, !10, i64 148, !34, i64 152}
!28 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !10, i64 0, !10, i64 4, !6, i64 8}
!29 = !{!"_ZTS8ImVectorItE", !10, i64 0, !10, i64 4, !6, i64 8}
!30 = !{!"_ZTS8ImVectorI10ImDrawVertE", !10, i64 0, !10, i64 4, !6, i64 8}
!31 = !{!"_ZTS8ImVectorI6ImVec4E", !10, i64 0, !10, i64 4, !6, i64 8}
!32 = !{!"_ZTS8ImVectorIPvE", !10, i64 0, !10, i64 4, !6, i64 8}
!33 = !{!"_ZTS8ImVectorI6ImVec2E", !10, i64 0, !10, i64 4, !6, i64 8}
!34 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !10, i64 0, !10, i64 4, !6, i64 8}
!35 = !{i8 0, i8 2}
!36 = !{}
!37 = !{!14, !14, i64 0}
!38 = !{!13, !14, i64 4}
!39 = !{!40, !14, i64 5464}
!40 = !{!"_ZTS12ImGuiContext", !15, i64 0, !15, i64 1, !41, i64 8, !42, i64 5408, !6, i64 6232, !14, i64 6240, !14, i64 6244, !43, i64 6248, !14, i64 6384, !10, i64 6388, !10, i64 6392, !10, i64 6396, !18, i64 6400, !18, i64 6416, !18, i64 6432, !24, i64 6448, !10, i64 6464, !6, i64 6472, !6, i64 6480, !6, i64 6488, !10, i64 6496, !15, i64 6500, !10, i64 6504, !14, i64 6508, !10, i64 6512, !10, i64 6516, !14, i64 6520, !15, i64 6524, !15, i64 6525, !15, i64 6526, !15, i64 6527, !15, i64 6528, !15, i64 6529, !10, i64 6532, !13, i64 6536, !6, i64 6544, !6, i64 6552, !45, i64 6560, !10, i64 6564, !14, i64 6568, !6, i64 6576, !46, i64 6584, !47, i64 6600, !48, i64 6616, !49, i64 6632, !49, i64 6648, !50, i64 6664, !15, i64 6776, !10, i64 6780, !6, i64 6784, !10, i64 6792, !10, i64 6796, !10, i64 6800, !10, i64 6804, !10, i64 6808, !10, i64 6812, !10, i64 6816, !10, i64 6820, !45, i64 6824, !17, i64 6828, !10, i64 6844, !6, i64 6848, !14, i64 6856, !14, i64 6860, !15, i64 6864, !10, i64 6868, !10, i64 6872, !15, i64 6876, !15, i64 6877, !15, i64 6878, !15, i64 6879, !15, i64 6880, !15, i64 6881, !15, i64 6882, !10, i64 6884, !17, i64 6888, !15, i64 6904, !15, i64 6905, !10, i64 6908, !51, i64 6912, !10, i64 6916, !10, i64 6920, !10, i64 6924, !52, i64 6928, !52, i64 6976, !52, i64 7024, !53, i64 7072, !54, i64 7120, !14, i64 7152, !27, i64 7160, !10, i64 7328, !15, i64 7332, !10, i64 7336, !10, i64 7340, !55, i64 7344, !17, i64 7408, !10, i64 7424, !10, i64 7428, !14, i64 7432, !10, i64 7436, !10, i64 7440, !10, i64 7444, !56, i64 7448, !7, i64 7464, !57, i64 7472, !62, i64 11176, !10, i64 11288, !10, i64 11292, !44, i64 11296, !15, i64 11312, !14, i64 11316, !14, i64 11320, !13, i64 11324, !10, i64 11332, !58, i64 11336, !13, i64 11352, !13, i64 11360, !15, i64 11368, !14, i64 11372, !64, i64 11376, !65, i64 11392, !66, i64 11408, !15, i64 11424, !6, i64 11432, !64, i64 11440, !10, i64 11456, !10, i64 11460, !7, i64 11464, !10, i64 11944, !14, i64 11948, !10, i64 11952, !10, i64 11956, !10, i64 11960, !7, i64 11964}
!41 = !{!"_ZTS7ImGuiIO", !10, i64 0, !10, i64 4, !13, i64 8, !14, i64 16, !14, i64 20, !6, i64 24, !6, i64 32, !14, i64 40, !14, i64 44, !14, i64 48, !7, i64 52, !14, i64 136, !14, i64 140, !6, i64 144, !6, i64 152, !14, i64 160, !15, i64 164, !6, i64 168, !13, i64 176, !13, i64 184, !13, i64 192, !15, i64 200, !15, i64 201, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !13, i64 256, !7, i64 264, !14, i64 272, !14, i64 276, !15, i64 280, !15, i64 281, !15, i64 282, !15, i64 283, !15, i64 284, !7, i64 285, !7, i64 798, !7, i64 832, !15, i64 916, !15, i64 917, !15, i64 918, !15, i64 919, !15, i64 920, !15, i64 921, !15, i64 922, !14, i64 924, !10, i64 928, !10, i64 932, !10, i64 936, !13, i64 940, !13, i64 948, !7, i64 956, !7, i64 996, !7, i64 1016, !7, i64 1021, !7, i64 1026, !7, i64 1031, !7, i64 1036, !7, i64 1056, !7, i64 1076, !7, i64 1116, !7, i64 1136, !7, i64 3184, !7, i64 5232, !7, i64 5316}
!42 = !{!"_ZTS10ImGuiStyle", !14, i64 0, !13, i64 4, !14, i64 12, !14, i64 16, !13, i64 20, !13, i64 28, !14, i64 36, !14, i64 40, !14, i64 44, !14, i64 48, !13, i64 52, !14, i64 60, !14, i64 64, !13, i64 68, !13, i64 76, !13, i64 84, !14, i64 92, !14, i64 96, !14, i64 100, !14, i64 104, !14, i64 108, !14, i64 112, !13, i64 116, !13, i64 124, !13, i64 132, !14, i64 140, !15, i64 144, !15, i64 145, !14, i64 148, !7, i64 152}
!43 = !{!"_ZTS20ImDrawListSharedData", !13, i64 0, !6, i64 8, !14, i64 16, !14, i64 20, !44, i64 24, !7, i64 40}
!44 = !{!"_ZTS6ImVec4", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12}
!45 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!46 = !{!"_ZTS8ImVectorI11ImGuiColModE", !10, i64 0, !10, i64 4, !6, i64 8}
!47 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !10, i64 0, !10, i64 4, !6, i64 8}
!48 = !{!"_ZTS8ImVectorIP6ImFontE", !10, i64 0, !10, i64 4, !6, i64 8}
!49 = !{!"_ZTS8ImVectorI13ImGuiPopupRefE", !10, i64 0, !10, i64 4, !6, i64 8}
!50 = !{!"_ZTS19ImGuiNextWindowData", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !13, i64 28, !13, i64 36, !13, i64 44, !13, i64 52, !15, i64 60, !17, i64 64, !6, i64 80, !6, i64 88, !14, i64 96, !13, i64 100}
!51 = !{!"_ZTS15ImGuiNavForward", !7, i64 0}
!52 = !{!"_ZTS18ImGuiNavMoveResult", !10, i64 0, !6, i64 8, !14, i64 16, !14, i64 20, !14, i64 24, !17, i64 28}
!53 = !{!"_ZTS10ImDrawData", !15, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !13, i64 28, !13, i64 36}
!54 = !{!"_ZTS17ImDrawDataBuilder", !7, i64 0}
!55 = !{!"_ZTS12ImGuiPayload", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !7, i64 24, !15, i64 57, !15, i64 58}
!56 = !{!"_ZTS8ImVectorIhE", !10, i64 0, !10, i64 4, !6, i64 8}
!57 = !{!"_ZTS18ImGuiTextEditState", !10, i64 0, !29, i64 8, !58, i64 24, !58, i64 40, !10, i64 56, !10, i64 60, !10, i64 64, !14, i64 68, !59, i64 72, !14, i64 3692, !15, i64 3696, !15, i64 3697}
!58 = !{!"_ZTS8ImVectorIcE", !10, i64 0, !10, i64 4, !6, i64 8}
!59 = !{!"_ZTSN8ImGuiStb17STB_TexteditStateE", !10, i64 0, !10, i64 4, !10, 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, !14, i64 20, !60, i64 24}
!60 = !{!"_ZTSN8ImGuiStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !61, i64 3582, !61, i64 3584, !10, i64 3588, !10, i64 3592}
!61 = !{!"short", !7, i64 0}
!62 = !{!"_ZTS6ImFont", !14, i64 0, !14, i64 4, !13, i64 8, !63, i64 16, !20, i64 32, !29, i64 48, !6, i64 64, !14, i64 72, !61, i64 76, !61, i64 78, !6, i64 80, !6, i64 88, !14, i64 96, !14, i64 100, !15, i64 104, !10, i64 108}
!63 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !10, i64 0, !10, i64 4, !6, i64 8}
!64 = !{!"_ZTS15ImGuiTextBuffer", !58, i64 0}
!65 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !10, i64 0, !10, i64 4, !6, i64 8}
!66 = !{!"_ZTS8ImVectorI19ImGuiWindowSettingsE", !10, i64 0, !10, i64 4, !6, i64 8}
!67 = !{!12, !10, i64 368}
!68 = !{!15, !15, i64 0}
!69 = !{i64 0, i64 4, !37, i64 4, i64 4, !37}
!70 = !{!40, !14, i64 5468}
!71 = !{!13, !14, i64 0}
!72 = !{!40, !14, i64 6240}
!73 = !{!40, !14, i64 5460}


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

@GImGui = external dso_local local_unnamed_addr global ptr, align 8

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

; Function Attrs: mustprogress 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: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef, float noundef) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui8ItemSizeERK6ImRectf(ptr noundef nonnull align 4 dereferenceable(16), float noundef) local_unnamed_addr #5

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui11RenderFrameE6ImVec2S0_jbf(<2 x float>, <2 x float>, i32 noundef, i1 noundef zeroext, float noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui11RenderArrowE6ImVec2if(<2 x float>, i32 noundef, float noundef) local_unnamed_addr #5

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5ImGui14ButtonBehaviorERK6ImRectjPbS3_i(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #5

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN5ImGui13ArrowButtonExEPKci6ImVec2i(ptr noundef %0, i32 noundef %1, <2 x float> %2, i32 noundef %3) local_unnamed_addr #5 {
  %5 = alloca %struct.ImVec2, align 8
  %6 = alloca %struct.ImRect, align 8
  %7 = alloca %struct.ImVec2, align 8
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca %struct.ImVec2, align 4
  store <2 x float> %2, ptr %5, align 8
  %11 = tail call noundef ptr @_ZN5ImGui16GetCurrentWindowEv()
  %12 = getelementptr inbounds i8, ptr %11, i64 127
  %13 = load i8, ptr %12, align 1, !tbaa !5, !range !33, !noundef !34
  %14 = trunc nuw i8 %13 to i1
  br i1 %14, label %62, label %15

15:                                               ; preds = %4
  %16 = load ptr, ptr @GImGui, align 8, !tbaa !35
  %17 = tail call noundef i32 @_ZN11ImGuiWindow5GetIDEPKcS1_(ptr noundef nonnull align 8 dereferenceable(976) %11, ptr noundef %0, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  %18 = getelementptr inbounds i8, ptr %11, i64 200
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %19 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %18, ptr noundef nonnull align 4 dereferenceable(8) %5)
  store <2 x float> %19, ptr %7, align 8
  call void @_ZN6ImRectC2ERK6ImVec2S2_(ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(8) %18, ptr noundef nonnull align 4 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  %20 = call noundef float @_ZN5ImGui14GetFrameHeightEv()
  %21 = getelementptr inbounds i8, ptr %5, i64 4
  %22 = load float, ptr %21, align 4, !tbaa !36
  %23 = fcmp ult float %22, %20
  br i1 %23, label %27, label %24

24:                                               ; preds = %15
  %25 = getelementptr inbounds i8, ptr %16, i64 5464
  %26 = load float, ptr %25, align 4, !tbaa !37
  br label %27

27:                                               ; preds = %15, %24
  %28 = phi float [ %26, %24 ], [ 0.000000e+00, %15 ]
  call void @_ZN5ImGui8ItemSizeERK6ImRectf(ptr noundef nonnull align 4 dereferenceable(16) %6, float noundef %28)
  %29 = call noundef zeroext i1 @_ZN5ImGui7ItemAddERK6ImRectjPS1_(ptr noundef nonnull align 4 dereferenceable(16) %6, i32 noundef %17, ptr noundef null)
  br i1 %29, label %30, label %61

30:                                               ; preds = %27
  %31 = getelementptr inbounds i8, ptr %11, i64 368
  %32 = load i32, ptr %31, align 8, !tbaa !65
  %33 = lshr i32 %32, 1
  %34 = and i32 %33, 1
  %spec.select = or i32 %34, %3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #6
  %35 = call noundef zeroext i1 @_ZN5ImGui14ButtonBehaviorERK6ImRectjPbS3_i(ptr noundef nonnull align 4 dereferenceable(16) %6, i32 noundef %17, ptr noundef nonnull %8, ptr noundef nonnull %9, i32 noundef %spec.select)
  %36 = load i8, ptr %8, align 1, !tbaa !66, !range !33, !noundef !34
  %37 = trunc nuw i8 %36 to i1
  %38 = load i8, ptr %9, align 1, !range !33
  %39 = trunc nuw i8 %38 to i1
  %spec.select24 = select i1 %39, i32 23, i32 22
  %40 = select i1 %37, i32 %spec.select24, i32 21
  %41 = call noundef i32 @_ZN5ImGui11GetColorU32Eif(i32 noundef %40, float noundef 1.000000e+00)
  call void @_ZN5ImGui18RenderNavHighlightERK6ImRectji(ptr noundef nonnull align 4 dereferenceable(16) %6, i32 noundef %17, i32 noundef 1)
  %.sroa.02.0.copyload = load <2 x float>, ptr %6, align 8
  %42 = getelementptr inbounds i8, ptr %6, i64 8
  %.sroa.01.0.copyload = load <2 x float>, ptr %42, align 8
  %43 = getelementptr inbounds i8, ptr %16, i64 5468
  %44 = load float, ptr %43, align 4, !tbaa !67
  call void @_ZN5ImGui11RenderFrameE6ImVec2S0_jbf(<2 x float> %.sroa.02.0.copyload, <2 x float> %.sroa.01.0.copyload, i32 noundef %41, i1 noundef zeroext true, float noundef %44)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %45 = load float, ptr %5, align 8, !tbaa !68
  %46 = getelementptr inbounds i8, ptr %16, i64 6240
  %47 = load float, ptr %46, align 8, !tbaa !69
  %48 = fsub float %45, %47
  %49 = getelementptr inbounds i8, ptr %16, i64 5460
  %50 = load float, ptr %49, align 4, !tbaa !70
  %51 = fsub float %48, %50
  %52 = call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef 0.000000e+00, float noundef %51)
  %53 = load float, ptr %21, align 4, !tbaa !36
  %54 = load float, ptr %46, align 8, !tbaa !69
  %55 = fsub float %53, %54
  %56 = getelementptr inbounds i8, ptr %16, i64 5464
  %57 = load float, ptr %56, align 4, !tbaa !37
  %58 = fsub float %55, %57
  %59 = call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef 0.000000e+00, float noundef %58)
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %10, float noundef %52, float noundef %59)
  %60 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %10)
  call void @_ZN5ImGui11RenderArrowE6ImVec2if(<2 x float> %60, i32 noundef %1, float noundef 1.000000e+00)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  br label %61

61:                                               ; preds = %27, %30
  %.0 = phi i1 [ %35, %30 ], [ false, %27 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  br label %62

62:                                               ; preds = %4, %61
  %.1 = phi i1 [ %.0, %61 ], [ false, %4 ]
  ret i1 %.1
}

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 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 = { 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 = { 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 = { 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 #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, !13, i64 127}
!6 = !{!"_ZTS11ImGuiWindow", !7, i64 0, !10, i64 8, !10, i64 12, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !12, i64 72, !12, i64 76, !10, i64 80, !10, i64 84, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !13, i64 120, !13, i64 121, !13, i64 122, !13, i64 123, !13, i64 124, !13, i64 125, !13, i64 126, !13, i64 127, !13, i64 128, !13, i64 129, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !13, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !10, i64 172, !10, i64 176, !10, i64 180, !11, i64 184, !11, i64 192, !14, i64 200, !20, i64 496, !15, i64 512, !15, i64 528, !15, i64 544, !15, i64 560, !15, i64 576, !10, i64 592, !12, i64 596, !21, i64 600, !22, i64 648, !24, i64 664, !12, i64 680, !10, i64 684, !7, i64 688, !25, i64 696, !7, i64 864, !7, i64 872, !7, i64 880, !7, i64 888, !7, i64 896, !7, i64 904, !8, i64 912, !8, i64 920, !10, i64 952, !10, i64 956, !10, i64 960, !10, i64 964, !10, i64 968, !10, i64 972}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTS6ImVec2", !12, i64 0, !12, i64 4}
!12 = !{!"float", !8, i64 0}
!13 = !{!"bool", !8, i64 0}
!14 = !{!"_ZTS19ImGuiWindowTempData", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !15, i64 68, !15, i64 84, !13, i64 100, !13, i64 101, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !13, i64 120, !11, i64 124, !16, i64 136, !7, i64 152, !10, i64 160, !10, i64 164, !10, i64 168, !12, i64 172, !12, i64 176, !17, i64 184, !18, i64 200, !18, i64 216, !19, i64 232, !8, i64 248, !12, i64 272, !12, i64 276, !12, i64 280, !7, i64 288}
!15 = !{!"_ZTS6ImRect", !11, i64 0, !11, i64 8}
!16 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !10, i64 0, !10, i64 4, !7, i64 8}
!17 = !{!"_ZTS8ImVectorIiE", !10, i64 0, !10, i64 4, !7, i64 8}
!18 = !{!"_ZTS8ImVectorIfE", !10, i64 0, !10, i64 4, !7, i64 8}
!19 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !10, i64 0, !10, i64 4, !7, i64 8}
!20 = !{!"_ZTS8ImVectorIjE", !10, i64 0, !10, i64 4, !7, i64 8}
!21 = !{!"_ZTS16ImGuiMenuColumns", !10, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !8, i64 16, !8, i64 32}
!22 = !{!"_ZTS12ImGuiStorage", !23, i64 0}
!23 = !{!"_ZTS8ImVectorIN12ImGuiStorage4PairEE", !10, i64 0, !10, i64 4, !7, i64 8}
!24 = !{!"_ZTS8ImVectorI15ImGuiColumnsSetE", !10, i64 0, !10, i64 4, !7, i64 8}
!25 = !{!"_ZTS10ImDrawList", !26, i64 0, !27, i64 16, !28, i64 32, !10, i64 48, !7, i64 56, !7, i64 64, !10, i64 72, !7, i64 80, !7, i64 88, !29, i64 96, !30, i64 112, !31, i64 128, !10, i64 144, !10, i64 148, !32, i64 152}
!26 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !10, i64 0, !10, i64 4, !7, i64 8}
!27 = !{!"_ZTS8ImVectorItE", !10, i64 0, !10, i64 4, !7, i64 8}
!28 = !{!"_ZTS8ImVectorI10ImDrawVertE", !10, i64 0, !10, i64 4, !7, i64 8}
!29 = !{!"_ZTS8ImVectorI6ImVec4E", !10, i64 0, !10, i64 4, !7, i64 8}
!30 = !{!"_ZTS8ImVectorIPvE", !10, i64 0, !10, i64 4, !7, i64 8}
!31 = !{!"_ZTS8ImVectorI6ImVec2E", !10, i64 0, !10, i64 4, !7, i64 8}
!32 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !10, i64 0, !10, i64 4, !7, i64 8}
!33 = !{i8 0, i8 2}
!34 = !{}
!35 = !{!7, !7, i64 0}
!36 = !{!11, !12, i64 4}
!37 = !{!38, !12, i64 5464}
!38 = !{!"_ZTS12ImGuiContext", !13, i64 0, !13, i64 1, !39, i64 8, !40, i64 5408, !7, i64 6232, !12, i64 6240, !12, i64 6244, !41, i64 6248, !12, i64 6384, !10, i64 6388, !10, i64 6392, !10, i64 6396, !16, i64 6400, !16, i64 6416, !16, i64 6432, !22, i64 6448, !10, i64 6464, !7, i64 6472, !7, i64 6480, !7, i64 6488, !10, i64 6496, !13, i64 6500, !10, i64 6504, !12, i64 6508, !10, i64 6512, !10, i64 6516, !12, i64 6520, !13, i64 6524, !13, i64 6525, !13, i64 6526, !13, i64 6527, !13, i64 6528, !13, i64 6529, !10, i64 6532, !11, i64 6536, !7, i64 6544, !7, i64 6552, !43, i64 6560, !10, i64 6564, !12, i64 6568, !7, i64 6576, !44, i64 6584, !45, i64 6600, !46, i64 6616, !47, i64 6632, !47, i64 6648, !48, i64 6664, !13, i64 6776, !10, i64 6780, !7, i64 6784, !10, i64 6792, !10, i64 6796, !10, i64 6800, !10, i64 6804, !10, i64 6808, !10, i64 6812, !10, i64 6816, !10, i64 6820, !43, i64 6824, !15, i64 6828, !10, i64 6844, !7, i64 6848, !12, i64 6856, !12, i64 6860, !13, i64 6864, !10, i64 6868, !10, i64 6872, !13, i64 6876, !13, i64 6877, !13, i64 6878, !13, i64 6879, !13, i64 6880, !13, i64 6881, !13, i64 6882, !10, i64 6884, !15, i64 6888, !13, i64 6904, !13, i64 6905, !10, i64 6908, !49, i64 6912, !10, i64 6916, !10, i64 6920, !10, i64 6924, !50, i64 6928, !50, i64 6976, !50, i64 7024, !51, i64 7072, !52, i64 7120, !12, i64 7152, !25, i64 7160, !10, i64 7328, !13, i64 7332, !10, i64 7336, !10, i64 7340, !53, i64 7344, !15, i64 7408, !10, i64 7424, !10, i64 7428, !12, i64 7432, !10, i64 7436, !10, i64 7440, !10, i64 7444, !54, i64 7448, !8, i64 7464, !55, i64 7472, !60, i64 11176, !10, i64 11288, !10, i64 11292, !42, i64 11296, !13, i64 11312, !12, i64 11316, !12, i64 11320, !11, i64 11324, !10, i64 11332, !56, i64 11336, !11, i64 11352, !11, i64 11360, !13, i64 11368, !12, i64 11372, !62, i64 11376, !63, i64 11392, !64, i64 11408, !13, i64 11424, !7, i64 11432, !62, i64 11440, !10, i64 11456, !10, i64 11460, !8, i64 11464, !10, i64 11944, !12, i64 11948, !10, i64 11952, !10, i64 11956, !10, i64 11960, !8, i64 11964}
!39 = !{!"_ZTS7ImGuiIO", !10, i64 0, !10, i64 4, !11, i64 8, !12, i64 16, !12, i64 20, !7, i64 24, !7, i64 32, !12, i64 40, !12, i64 44, !12, i64 48, !8, i64 52, !12, i64 136, !12, i64 140, !7, i64 144, !7, i64 152, !12, i64 160, !13, i64 164, !7, i64 168, !11, i64 176, !11, i64 184, !11, i64 192, !13, i64 200, !13, i64 201, !7, i64 208, !7, i64 216, !7, i64 224, !7, i64 232, !7, i64 240, !7, i64 248, !11, i64 256, !8, i64 264, !12, i64 272, !12, i64 276, !13, i64 280, !13, i64 281, !13, i64 282, !13, i64 283, !13, i64 284, !8, i64 285, !8, i64 798, !8, i64 832, !13, i64 916, !13, i64 917, !13, i64 918, !13, i64 919, !13, i64 920, !13, i64 921, !13, i64 922, !12, i64 924, !10, i64 928, !10, i64 932, !10, i64 936, !11, i64 940, !11, i64 948, !8, i64 956, !8, i64 996, !8, i64 1016, !8, i64 1021, !8, i64 1026, !8, i64 1031, !8, i64 1036, !8, i64 1056, !8, i64 1076, !8, i64 1116, !8, i64 1136, !8, i64 3184, !8, i64 5232, !8, i64 5316}
!40 = !{!"_ZTS10ImGuiStyle", !12, i64 0, !11, i64 4, !12, i64 12, !12, i64 16, !11, i64 20, !11, i64 28, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !11, i64 52, !12, i64 60, !12, i64 64, !11, i64 68, !11, i64 76, !11, i64 84, !12, i64 92, !12, i64 96, !12, i64 100, !12, i64 104, !12, i64 108, !12, i64 112, !11, i64 116, !11, i64 124, !11, i64 132, !12, i64 140, !13, i64 144, !13, i64 145, !12, i64 148, !8, i64 152}
!41 = !{!"_ZTS20ImDrawListSharedData", !11, i64 0, !7, i64 8, !12, i64 16, !12, i64 20, !42, i64 24, !8, i64 40}
!42 = !{!"_ZTS6ImVec4", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12}
!43 = !{!"_ZTS16ImGuiInputSource", !8, i64 0}
!44 = !{!"_ZTS8ImVectorI11ImGuiColModE", !10, i64 0, !10, i64 4, !7, i64 8}
!45 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !10, i64 0, !10, i64 4, !7, i64 8}
!46 = !{!"_ZTS8ImVectorIP6ImFontE", !10, i64 0, !10, i64 4, !7, i64 8}
!47 = !{!"_ZTS8ImVectorI13ImGuiPopupRefE", !10, i64 0, !10, i64 4, !7, i64 8}
!48 = !{!"_ZTS19ImGuiNextWindowData", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !11, i64 28, !11, i64 36, !11, i64 44, !11, i64 52, !13, i64 60, !15, i64 64, !7, i64 80, !7, i64 88, !12, i64 96, !11, i64 100}
!49 = !{!"_ZTS15ImGuiNavForward", !8, i64 0}
!50 = !{!"_ZTS18ImGuiNavMoveResult", !10, i64 0, !7, i64 8, !12, i64 16, !12, i64 20, !12, i64 24, !15, i64 28}
!51 = !{!"_ZTS10ImDrawData", !13, i64 0, !7, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !11, i64 28, !11, i64 36}
!52 = !{!"_ZTS17ImDrawDataBuilder", !8, i64 0}
!53 = !{!"_ZTS12ImGuiPayload", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !8, i64 24, !13, i64 57, !13, i64 58}
!54 = !{!"_ZTS8ImVectorIhE", !10, i64 0, !10, i64 4, !7, i64 8}
!55 = !{!"_ZTS18ImGuiTextEditState", !10, i64 0, !27, i64 8, !56, i64 24, !56, i64 40, !10, i64 56, !10, i64 60, !10, i64 64, !12, i64 68, !57, i64 72, !12, i64 3692, !13, i64 3696, !13, i64 3697}
!56 = !{!"_ZTS8ImVectorIcE", !10, i64 0, !10, i64 4, !7, i64 8}
!57 = !{!"_ZTSN8ImGuiStb17STB_TexteditStateE", !10, i64 0, !10, i64 4, !10, i64 8, !8, i64 12, !8, i64 13, !8, i64 14, !8, i64 15, !8, i64 16, !8, i64 17, !8, i64 18, !8, i64 19, !12, i64 20, !58, i64 24}
!58 = !{!"_ZTSN8ImGuiStb12StbUndoStateE", !8, i64 0, !8, i64 1584, !59, i64 3582, !59, i64 3584, !10, i64 3588, !10, i64 3592}
!59 = !{!"short", !8, i64 0}
!60 = !{!"_ZTS6ImFont", !12, i64 0, !12, i64 4, !11, i64 8, !61, i64 16, !18, i64 32, !27, i64 48, !7, i64 64, !12, i64 72, !59, i64 76, !59, i64 78, !7, i64 80, !7, i64 88, !12, i64 96, !12, i64 100, !13, i64 104, !10, i64 108}
!61 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !10, i64 0, !10, i64 4, !7, i64 8}
!62 = !{!"_ZTS15ImGuiTextBuffer", !56, i64 0}
!63 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !10, i64 0, !10, i64 4, !7, i64 8}
!64 = !{!"_ZTS8ImVectorI19ImGuiWindowSettingsE", !10, i64 0, !10, i64 4, !7, i64 8}
!65 = !{!6, !10, i64 368}
!66 = !{!13, !13, i64 0}
!67 = !{!38, !12, i64 5468}
!68 = !{!11, !12, i64 0}
!69 = !{!38, !12, i64 6240}
!70 = !{!38, !12, i64 5460}


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