; LLVM IR from theolundqvist/parallax-voxel-ray-marcher :: src/external/Dear ImGui/imgui.ll (ZN5ImGui16CalcListClippingEifPiS0_)

; 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.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImVec2 = type { float, float }
%struct.ImGuiContext = type <{ i8, i8, [6 x i8], %struct.ImGuiIO, %struct.ImGuiStyle, ptr, float, float, %struct.ImDrawListSharedData, double, i32, i32, i32, i8, i8, i8, i8, i8, [3 x i8], i32, ptr, %struct.ImVector.3, %struct.ImVector.3, %struct.ImVector.3, %struct.ImVector.4, %struct.ImGuiStorage, i32, %struct.ImVec2, [4 x i8], ptr, ptr, ptr, ptr, ptr, %struct.ImVec2, float, i32, i32, i8, i8, i8, i8, float, float, i32, i32, float, i8, i8, i8, i8, i8, i8, i8, i8, i32, i32, [4 x i8], i64, %struct.ImVec2, ptr, i32, i32, i32, i8, i8, [2 x i8], ptr, i32, float, i32, %struct.ImGuiNextItemData, %struct.ImGuiLastItemData, [4 x i8], %struct.ImGuiNextWindowData, %struct.ImVector.5, %struct.ImVector.6, %struct.ImVector.7, %struct.ImVector.8, %struct.ImVector.9, %struct.ImVector.10, %struct.ImVector.11, %struct.ImVector.11, %struct.ImVector.12, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.ImRect, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, i32, %struct.ImRect, i8, [3 x i8], i32, i32, i32, i32, i32, i32, [4 x i8], %struct.ImGuiNavItemData, %struct.ImGuiNavItemData, %struct.ImGuiNavItemData, ptr, i32, [4 x i8], ptr, ptr, ptr, float, float, i8, [7 x i8], ptr, ptr, i32, i32, i32, i32, i8, [3 x i8], float, i32, i8, i8, i8, i8, i32, i32, i32, [4 x i8], %struct.ImGuiPayload, %struct.ImRect, i32, i32, float, i32, i32, i32, i32, [4 x i8], %struct.ImVector.13, [16 x i8], ptr, i32, [4 x i8], %struct.ImPool, %struct.ImVector.15, %struct.ImVector.16, %struct.ImVector.17, ptr, %struct.ImPool.18, %struct.ImVector.20, %struct.ImVector.21, %struct.ImVec2, %struct.ImGuiInputTextState, %struct.ImFont, i32, i32, float, float, [3 x float], %struct.ImVec4, %struct.ImGuiComboPreviewData, float, i8, i8, [2 x i8], float, float, float, float, i32, float, [4 x i8], %struct.ImVector.2, %struct.ImVector.8, %struct.ImVec2, %struct.ImVec2, i8, i8, [2 x i8], float, %struct.ImGuiTextBuffer, %struct.ImVector.23, %struct.ImChunkStream, %struct.ImChunkStream.24, %struct.ImVector.25, i32, i8, [3 x i8], i32, [4 x i8], ptr, %struct.ImGuiTextBuffer, ptr, ptr, float, i8, [3 x i8], i32, i32, i32, i8, [3 x i8], i32, %struct.ImGuiMetricsConfig, [120 x float], i32, 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, [22 x i32], float, float, ptr, ptr, float, i8, ptr, %struct.ImVec2, i8, i8, i8, i8, i8, i8, float, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.ImVec2, [5 x i8], float, float, i8, i8, i8, i8, [512 x i8], [20 x float], i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, i32, i32, %struct.ImVec2, i32, i32, %struct.ImVec2, [5 x %struct.ImVec2], [5 x double], [5 x i8], [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], [20 x float], [20 x float], float, i16, %struct.ImVector }
%struct.ImVector = type { i32, i32, ptr }
%struct.ImGuiStyle = type { float, float, %struct.ImVec2, float, float, %struct.ImVec2, %struct.ImVec2, i32, float, float, float, float, %struct.ImVec2, float, float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, float, float, float, float, float, float, float, float, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, i8, i8, i8, float, float, [53 x %struct.ImVec4] }
%struct.ImDrawListSharedData = type { %struct.ImVec2, ptr, float, float, float, %struct.ImVec4, i32, [48 x %struct.ImVec2], float, [64 x i8], ptr }
%struct.ImVector.3 = type { i32, i32, ptr }
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImGuiStorage = type { %struct.ImVector.0 }
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImGuiNextItemData = type <{ i32, float, i32, i32, i8, [3 x i8] }>
%struct.ImGuiLastItemData = type { i32, i32, i32, %struct.ImRect, %struct.ImRect }
%struct.ImGuiNextWindowData = type <{ i32, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, [3 x i8], %struct.ImRect, [4 x i8], ptr, ptr, float, %struct.ImVec2, [4 x i8] }>
%struct.ImVector.5 = type { i32, i32, ptr }
%struct.ImVector.6 = type { i32, i32, ptr }
%struct.ImVector.7 = type { i32, i32, ptr }
%struct.ImVector.9 = type { i32, i32, ptr }
%struct.ImVector.10 = type { i32, i32, ptr }
%struct.ImVector.11 = type { i32, i32, ptr }
%struct.ImVector.12 = type { i32, i32, ptr }
%struct.ImGuiNavItemData = type <{ ptr, i32, i32, %struct.ImRect, float, float, float, [4 x i8] }>
%struct.ImGuiPayload = type <{ ptr, i32, i32, i32, i32, [33 x i8], i8, i8, [5 x i8] }>
%struct.ImVector.13 = type { i32, i32, ptr }
%struct.ImPool = type { %struct.ImVector.14, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.14 = type { i32, i32, ptr }
%struct.ImVector.15 = type { i32, i32, ptr }
%struct.ImVector.16 = type { i32, i32, ptr }
%struct.ImVector.17 = type { i32, i32, ptr }
%struct.ImPool.18 = type { %struct.ImVector.19, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.19 = type { i32, i32, ptr }
%struct.ImVector.20 = type { i32, i32, ptr }
%struct.ImVector.21 = type { i32, i32, ptr }
%struct.ImGuiInputTextState = type { i32, i32, i32, %struct.ImVector, %struct.ImVector.2, %struct.ImVector.2, i8, i32, float, %"struct.ImStb::STB_TexteditState", float, i8, i8, i8, i32, ptr, ptr }
%"struct.ImStb::STB_TexteditState" = type { i32, i32, i32, i8, i32, i8, i8, i8, i8, i8, i8, i8, float, %"struct.ImStb::StbUndoState" }
%"struct.ImStb::StbUndoState" = type { [99 x %"struct.ImStb::StbUndoRecord"], [999 x i16], i16, i16, i32, i32 }
%"struct.ImStb::StbUndoRecord" = type { i32, i32, i32, i32 }
%struct.ImFont = type <{ %struct.ImVector.16, float, float, %struct.ImVector, %struct.ImVector.22, ptr, ptr, ptr, i16, i16, i16, i16, i8, [3 x i8], float, float, float, i32, [2 x i8], [2 x i8] }>
%struct.ImVector.22 = type { i32, i32, ptr }
%struct.ImVec4 = type { float, float, float, float }
%struct.ImGuiComboPreviewData = type { %struct.ImRect, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, i32 }
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImVector.8 = type { i32, i32, ptr }
%struct.ImVector.23 = type { i32, i32, ptr }
%struct.ImChunkStream = type { %struct.ImVector.2 }
%struct.ImChunkStream.24 = type { %struct.ImVector.2 }
%struct.ImVector.25 = type { i32, i32, ptr }
%struct.ImGuiTextBuffer = type { %struct.ImVector.2 }
%struct.ImGuiMetricsConfig = type { i8, i8, i8, i8, i8, i32, i32 }
%struct.ImGuiWindow = type <{ ptr, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i16, i16, i16, i16, [2 x i8], i32, i8, i8, i8, i8, i32, i8, i8, i8, i8, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVector.8, %struct.ImGuiWindowTempData, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImVec2ih, %struct.ImVec2ih, i32, float, float, [4 x i8], %struct.ImGuiStorage, %struct.ImVector.26, float, i32, ptr, %struct.ImDrawList, ptr, ptr, ptr, ptr, ptr, [2 x i32], [2 x %struct.ImRect], i32, i32, i8, [7 x i8] }>
%struct.ImGuiWindowTempData = type <{ %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, %struct.ImVec1, %struct.ImVec1, %struct.ImVec1, i32, i16, i16, i32, i8, i8, i8, i8, %struct.ImVec2, %struct.ImGuiMenuColumns, i32, i32, %struct.ImVector.3, ptr, ptr, i32, i32, i32, i32, i32, float, float, [4 x i8], %struct.ImVector.16, %struct.ImVector.16, %struct.ImGuiStackSizes, [2 x i8] }>
%struct.ImVec1 = type { float }
%struct.ImGuiMenuColumns = type <{ i32, i32, i16, i16, i16, i16, i16, [4 x i16], [2 x i8] }>
%struct.ImGuiStackSizes = type { i16, i16, i16, i16, i16, i16, i16 }
%struct.ImVec2ih = type { i16, i16 }
%struct.ImVector.26 = type { i32, i32, ptr }
%struct.ImDrawList = type <{ %struct.ImVector.27, %struct.ImVector, %struct.ImVector.28, i32, i32, ptr, ptr, ptr, ptr, %struct.ImVector.29, %struct.ImVector.30, %struct.ImVector.31, %struct.ImDrawCmdHeader, %struct.ImDrawListSplitter, float, [4 x i8] }>
%struct.ImVector.27 = type { i32, i32, ptr }
%struct.ImVector.28 = type { i32, i32, ptr }
%struct.ImVector.29 = type { i32, i32, ptr }
%struct.ImVector.30 = type { i32, i32, ptr }
%struct.ImVector.31 = type { i32, i32, ptr }
%struct.ImDrawCmdHeader = type <{ %struct.ImVec4, ptr, i32, [4 x i8] }>
%struct.ImDrawListSplitter = type { i32, i32, %struct.ImVector.17 }

@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: 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 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)) #2

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

27:                                               ; preds = %4
  %28 = load ptr, ptr %7, align 8, !tbaa !11
  store i32 0, ptr %28, align 4, !tbaa !5
  %29 = load i32, ptr %5, align 4, !tbaa !5
  %30 = load ptr, ptr %8, align 8, !tbaa !11
  store i32 %29, ptr %30, align 4, !tbaa !5
  store i32 1, ptr %11, align 4
  br label %135

31:                                               ; preds = %4
  %32 = call noundef zeroext i1 @_ZL26GetSkipItemForListClippingv()
  br i1 %32, label %33, label %36

33:                                               ; preds = %31
  %34 = load ptr, ptr %8, align 8, !tbaa !11
  store i32 0, ptr %34, align 4, !tbaa !5
  %35 = load ptr, ptr %7, align 8, !tbaa !11
  store i32 0, ptr %35, align 4, !tbaa !5
  store i32 1, ptr %11, align 4
  br label %135

36:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  %37 = load ptr, ptr %10, align 8, !tbaa !11
  %38 = getelementptr inbounds %struct.ImGuiWindow, ptr %37, i32 0, i32 60
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 8 %38, i64 16, i1 false), !tbaa.struct !73
  %39 = load ptr, ptr %9, align 8, !tbaa !11
  %40 = getelementptr inbounds %struct.ImGuiContext, ptr %39, i32 0, i32 111
  %41 = load i8, ptr %40, align 8, !tbaa !74, !range !71, !noundef !72
  %42 = trunc i8 %41 to i1
  br i1 %42, label %43, label %46

43:                                               ; preds = %36
  %44 = load ptr, ptr %9, align 8, !tbaa !11
  %45 = getelementptr inbounds %struct.ImGuiContext, ptr %44, i32 0, i32 97
  call void @_ZN6ImRect3AddERKS_(ptr noundef nonnull align 4 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(16) %45)
  br label %46

46:                                               ; preds = %43, %36
  %47 = load ptr, ptr %9, align 8, !tbaa !11
  %48 = getelementptr inbounds %struct.ImGuiContext, ptr %47, i32 0, i32 92
  %49 = load i32, ptr %48, align 4, !tbaa !75
  %50 = icmp ne i32 %49, 0
  br i1 %50, label %51, label %75

51:                                               ; preds = %46
  %52 = load ptr, ptr %10, align 8, !tbaa !11
  %53 = getelementptr inbounds %struct.ImGuiWindow, ptr %52, i32 0, i32 79
  %54 = getelementptr inbounds [2 x i32], ptr %53, i64 0, i64 0
  %55 = load i32, ptr %54, align 8, !tbaa !5
  %56 = load ptr, ptr %9, align 8, !tbaa !11
  %57 = getelementptr inbounds %struct.ImGuiContext, ptr %56, i32 0, i32 92
  %58 = load i32, ptr %57, align 4, !tbaa !75
  %59 = icmp eq i32 %55, %58
  br i1 %59, label %60, label %75

60:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %61 = load ptr, ptr %10, align 8, !tbaa !11
  %62 = getelementptr inbounds %struct.ImGuiWindow, ptr %61, i32 0, i32 3
  %63 = load ptr, ptr %10, align 8, !tbaa !11
  %64 = getelementptr inbounds %struct.ImGuiWindow, ptr %63, i32 0, i32 80
  %65 = getelementptr inbounds [2 x %struct.ImRect], ptr %64, i64 0, i64 0
  %66 = getelementptr inbounds %struct.ImRect, ptr %65, i32 0, i32 0
  %67 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %62, ptr noundef nonnull align 4 dereferenceable(8) %66)
  store <2 x float> %67, ptr %14, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %68 = load ptr, ptr %10, align 8, !tbaa !11
  %69 = getelementptr inbounds %struct.ImGuiWindow, ptr %68, i32 0, i32 3
  %70 = load ptr, ptr %10, align 8, !tbaa !11
  %71 = getelementptr inbounds %struct.ImGuiWindow, ptr %70, i32 0, i32 80
  %72 = getelementptr inbounds [2 x %struct.ImRect], ptr %71, i64 0, i64 0
  %73 = getelementptr inbounds %struct.ImRect, ptr %72, i32 0, i32 1
  %74 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %69, ptr noundef nonnull align 4 dereferenceable(8) %73)
  store <2 x float> %74, ptr %15, align 4
  call void @_ZN6ImRectC2ERK6ImVec2S2_(ptr noundef nonnull align 4 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %15)
  call void @_ZN6ImRect3AddERKS_(ptr noundef nonnull align 4 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(16) %13)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  br label %75

75:                                               ; preds = %60, %51, %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %76 = load ptr, ptr %10, align 8, !tbaa !11
  %77 = getelementptr inbounds %struct.ImGuiWindow, ptr %76, i32 0, i32 54
  %78 = getelementptr inbounds %struct.ImGuiWindowTempData, ptr %77, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 8 %78, i64 8, i1 false), !tbaa.struct !76
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %79 = getelementptr inbounds %struct.ImRect, ptr %12, i32 0, i32 0
  %80 = getelementptr inbounds %struct.ImVec2, ptr %79, i32 0, i32 1
  %81 = load float, ptr %80, align 4, !tbaa !77
  %82 = getelementptr inbounds %struct.ImVec2, ptr %16, i32 0, i32 1
  %83 = load float, ptr %82, align 4, !tbaa !78
  %84 = fsub float %81, %83
  %85 = load float, ptr %6, align 4, !tbaa !9
  %86 = fdiv float %84, %85
  %87 = fptosi float %86 to i32
  store i32 %87, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %88 = getelementptr inbounds %struct.ImRect, ptr %12, i32 0, i32 1
  %89 = getelementptr inbounds %struct.ImVec2, ptr %88, i32 0, i32 1
  %90 = load float, ptr %89, align 4, !tbaa !79
  %91 = getelementptr inbounds %struct.ImVec2, ptr %16, i32 0, i32 1
  %92 = load float, ptr %91, align 4, !tbaa !78
  %93 = fsub float %90, %92
  %94 = load float, ptr %6, align 4, !tbaa !9
  %95 = fdiv float %93, %94
  %96 = fptosi float %95 to i32
  store i32 %96, ptr %18, align 4, !tbaa !5
  %97 = load ptr, ptr %9, align 8, !tbaa !11
  %98 = getelementptr inbounds %struct.ImGuiContext, ptr %97, i32 0, i32 111
  %99 = load i8, ptr %98, align 8, !tbaa !74, !range !71, !noundef !72
  %100 = trunc i8 %99 to i1
  br i1 %100, label %101, label %109

101:                                              ; preds = %75
  %102 = load ptr, ptr %9, align 8, !tbaa !11
  %103 = getelementptr inbounds %struct.ImGuiContext, ptr %102, i32 0, i32 118
  %104 = load i32, ptr %103, align 8, !tbaa !80
  %105 = icmp eq i32 %104, 2
  br i1 %105, label %106, label %109

106:                                              ; preds = %101
  %107 = load i32, ptr %17, align 4, !tbaa !5
  %108 = add nsw i32 %107, -1
  store i32 %108, ptr %17, align 4, !tbaa !5
  br label %109

109:                                              ; preds = %106, %101, %75
  %110 = load ptr, ptr %9, align 8, !tbaa !11
  %111 = getelementptr inbounds %struct.ImGuiContext, ptr %110, i32 0, i32 111
  %112 = load i8, ptr %111, align 8, !tbaa !74, !range !71, !noundef !72
  %113 = trunc i8 %112 to i1
  br i1 %113, label %114, label %122

114:                                              ; preds = %109
  %115 = load ptr, ptr %9, align 8, !tbaa !11
  %116 = getelementptr inbounds %struct.ImGuiContext, ptr %115, i32 0, i32 118
  %117 = load i32, ptr %116, align 8, !tbaa !80
  %118 = icmp eq i32 %117, 3
  br i1 %118, label %119, label %122

119:                                              ; preds = %114
  %120 = load i32, ptr %18, align 4, !tbaa !5
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %18, align 4, !tbaa !5
  br label %122

122:                                              ; preds = %119, %114, %109
  %123 = load i32, ptr %17, align 4, !tbaa !5
  %124 = load i32, ptr %5, align 4, !tbaa !5
  %125 = call noundef i32 @_ZL7ImClampIiET_S0_S0_S0_(i32 noundef %123, i32 noundef 0, i32 noundef %124)
  store i32 %125, ptr %17, align 4, !tbaa !5
  %126 = load i32, ptr %18, align 4, !tbaa !5
  %127 = add nsw i32 %126, 1
  %128 = load i32, ptr %17, align 4, !tbaa !5
  %129 = load i32, ptr %5, align 4, !tbaa !5
  %130 = call noundef i32 @_ZL7ImClampIiET_S0_S0_S0_(i32 noundef %127, i32 noundef %128, i32 noundef %129)
  store i32 %130, ptr %18, align 4, !tbaa !5
  %131 = load i32, ptr %17, align 4, !tbaa !5
  %132 = load ptr, ptr %7, align 8, !tbaa !11
  store i32 %131, ptr %132, align 4, !tbaa !5
  %133 = load i32, ptr %18, align 4, !tbaa !5
  %134 = load ptr, ptr %8, align 8, !tbaa !11
  store i32 %133, ptr %134, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  store i32 0, ptr %11, align 4
  br label %135

135:                                              ; preds = %122, %33, %27
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  %136 = load i32, ptr %11, align 4
  switch i32 %136, label %138 [
    i32 0, label %137
    i32 1, label %137
  ]

137:                                              ; preds = %135, %135
  ret void

138:                                              ; preds = %135
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL26GetSkipItemForListClippingv() #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImRect3AddERKS_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) #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 #4 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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"="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 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 = { 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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !12, i64 7176}
!14 = !{!"_ZTS12ImGuiContext", !15, i64 0, !15, i64 1, !16, i64 8, !20, i64 5464, !12, i64 6512, !10, i64 6520, !10, i64 6524, !21, i64 6528, !23, i64 7040, !6, i64 7048, !6, i64 7052, !6, i64 7056, !15, i64 7060, !15, i64 7061, !15, i64 7062, !15, i64 7063, !15, i64 7064, !6, i64 7068, !12, i64 7072, !24, i64 7080, !24, i64 7096, !24, i64 7112, !25, i64 7128, !26, i64 7144, !6, i64 7160, !17, i64 7164, !12, i64 7176, !12, i64 7184, !12, i64 7192, !12, i64 7200, !12, i64 7208, !17, i64 7216, !10, i64 7224, !6, i64 7228, !6, i64 7232, !15, i64 7236, !15, i64 7237, !15, i64 7238, !15, i64 7239, !10, i64 7240, !10, i64 7244, !6, i64 7248, !6, i64 7252, !10, i64 7256, !15, i64 7260, !15, i64 7261, !15, i64 7262, !15, i64 7263, !15, i64 7264, !15, i64 7265, !15, i64 7266, !6, i64 7268, !6, i64 7272, !28, i64 7280, !17, i64 7288, !12, i64 7296, !29, i64 7304, !6, i64 7308, !6, i64 7312, !15, i64 7316, !15, i64 7317, !12, i64 7320, !6, i64 7328, !10, i64 7332, !6, i64 7336, !30, i64 7340, !31, i64 7360, !33, i64 7408, !34, i64 7520, !35, i64 7536, !36, i64 7552, !37, i64 7568, !38, i64 7584, !39, i64 7600, !40, i64 7616, !40, i64 7632, !41, i64 7648, !12, i64 7664, !6, i64 7672, !6, i64 7676, !6, i64 7680, !6, i64 7684, !6, i64 7688, !6, i64 7692, !6, i64 7696, !6, i64 7700, !6, i64 7704, !6, i64 7708, !6, i64 7712, !29, i64 7716, !32, i64 7720, !6, i64 7736, !42, i64 7740, !6, i64 7744, !15, i64 7748, !15, i64 7749, !15, i64 7750, !15, i64 7751, !15, i64 7752, !15, i64 7753, !15, i64 7754, !6, i64 7756, !32, i64 7760, !15, i64 7776, !6, i64 7780, !43, i64 7784, !6, i64 7788, !6, i64 7792, !6, i64 7796, !6, i64 7800, !44, i64 7808, !44, i64 7856, !44, i64 7904, !12, i64 7952, !6, i64 7960, !12, i64 7968, !12, i64 7976, !12, i64 7984, !10, i64 7992, !10, i64 7996, !15, i64 8000, !12, i64 8008, !12, i64 8016, !6, i64 8024, !6, i64 8028, !6, i64 8032, !6, i64 8036, !15, i64 8040, !10, i64 8044, !6, i64 8048, !15, i64 8052, !15, i64 8053, !15, i64 8054, !6, i64 8056, !6, i64 8060, !6, i64 8064, !45, i64 8072, !32, i64 8136, !6, i64 8152, !6, i64 8156, !10, i64 8160, !6, i64 8164, !6, i64 8168, !6, i64 8172, !6, i64 8176, !46, i64 8184, !7, i64 8200, !12, i64 8216, !6, i64 8224, !47, i64 8232, !49, i64 8272, !50, i64 8288, !51, i64 8304, !12, i64 8320, !52, i64 8328, !54, i64 8368, !55, i64 8384, !17, i64 8400, !56, i64 8408, !60, i64 12144, !6, i64 12256, !6, i64 12260, !10, i64 12264, !10, i64 12268, !7, i64 12272, !22, i64 12284, !62, i64 12300, !10, i64 12348, !15, i64 12352, !15, i64 12353, !10, i64 12356, !10, i64 12360, !10, i64 12364, !10, i64 12368, !6, i64 12372, !10, i64 12376, !57, i64 12384, !37, i64 12400, !17, i64 12416, !17, i64 12424, !7, i64 12432, !15, i64 12433, !10, i64 12436, !63, i64 12440, !64, i64 12456, !65, i64 12472, !66, i64 12488, !67, i64 12504, !6, i64 12520, !15, i64 12524, !68, i64 12528, !12, i64 12536, !63, i64 12544, !12, i64 12560, !12, i64 12568, !10, i64 12576, !15, i64 12580, !6, i64 12584, !6, i64 12588, !6, i64 12592, !15, i64 12596, !6, i64 12600, !69, i64 12604, !7, i64 12620, !6, i64 13100, !6, i64 13104, !10, i64 13108, !6, i64 13112, !6, i64 13116, !6, i64 13120, !7, i64 13124}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTS7ImGuiIO", !6, i64 0, !6, i64 4, !17, i64 8, !10, i64 16, !10, i64 20, !12, i64 24, !12, i64 32, !10, i64 40, !10, i64 44, !10, i64 48, !7, i64 52, !10, i64 140, !10, i64 144, !12, i64 152, !12, i64 160, !10, i64 168, !15, i64 172, !12, i64 176, !17, i64 184, !15, i64 192, !15, i64 193, !15, i64 194, !15, i64 195, !15, i64 196, !15, i64 197, !10, i64 200, !12, i64 208, !12, i64 216, !12, i64 224, !12, i64 232, !12, i64 240, !12, i64 248, !12, i64 256, !12, i64 264, !12, i64 272, !12, i64 280, !17, i64 288, !7, i64 296, !10, i64 304, !10, i64 308, !15, i64 312, !15, i64 313, !15, i64 314, !15, i64 315, !7, i64 316, !7, i64 828, !15, i64 908, !15, i64 909, !15, i64 910, !15, i64 911, !15, i64 912, !15, i64 913, !15, i64 914, !10, i64 916, !6, i64 920, !6, i64 924, !6, i64 928, !6, i64 932, !6, i64 936, !17, i64 940, !6, i64 948, !6, i64 952, !17, i64 956, !7, i64 964, !7, i64 1008, !7, i64 1048, !7, i64 1053, !7, i64 1058, !7, i64 1063, !7, i64 1068, !7, i64 1076, !7, i64 1096, !7, i64 1116, !7, i64 1156, !7, i64 1176, !7, i64 3224, !7, i64 5272, !7, i64 5352, !10, i64 5432, !18, i64 5436, !19, i64 5440}
!17 = !{!"_ZTS6ImVec2", !10, i64 0, !10, i64 4}
!18 = !{!"short", !7, i64 0}
!19 = !{!"_ZTS8ImVectorItE", !6, i64 0, !6, i64 4, !12, i64 8}
!20 = !{!"_ZTS10ImGuiStyle", !10, i64 0, !10, i64 4, !17, i64 8, !10, i64 16, !10, i64 20, !17, i64 24, !17, i64 32, !6, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !17, i64 60, !10, i64 68, !10, i64 72, !17, i64 76, !17, i64 84, !17, i64 92, !17, i64 100, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !6, i64 148, !17, i64 152, !17, i64 160, !17, i64 168, !17, i64 176, !10, i64 184, !15, i64 188, !15, i64 189, !15, i64 190, !10, i64 192, !10, i64 196, !7, i64 200}
!21 = !{!"_ZTS20ImDrawListSharedData", !17, i64 0, !12, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !22, i64 28, !6, i64 44, !7, i64 48, !10, i64 432, !7, i64 436, !12, i64 504}
!22 = !{!"_ZTS6ImVec4", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!23 = !{!"double", !7, i64 0}
!24 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !6, i64 0, !6, i64 4, !12, i64 8}
!25 = !{!"_ZTS8ImVectorI20ImGuiWindowStackDataE", !6, i64 0, !6, i64 4, !12, i64 8}
!26 = !{!"_ZTS12ImGuiStorage", !27, i64 0}
!27 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !6, i64 0, !6, i64 4, !12, i64 8}
!28 = !{!"long long", !7, i64 0}
!29 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!30 = !{!"_ZTS17ImGuiNextItemData", !6, i64 0, !10, i64 4, !6, i64 8, !6, i64 12, !15, i64 16}
!31 = !{!"_ZTS17ImGuiLastItemData", !6, i64 0, !6, i64 4, !6, i64 8, !32, i64 12, !32, i64 28}
!32 = !{!"_ZTS6ImRect", !17, i64 0, !17, i64 8}
!33 = !{!"_ZTS19ImGuiNextWindowData", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !17, i64 16, !17, i64 24, !17, i64 32, !17, i64 40, !17, i64 48, !15, i64 56, !32, i64 60, !12, i64 80, !12, i64 88, !10, i64 96, !17, i64 100}
!34 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !6, i64 0, !6, i64 4, !12, i64 8}
!35 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !6, i64 0, !6, i64 4, !12, i64 8}
!36 = !{!"_ZTS8ImVectorIP6ImFontE", !6, i64 0, !6, i64 4, !12, i64 8}
!37 = !{!"_ZTS8ImVectorIjE", !6, i64 0, !6, i64 4, !12, i64 8}
!38 = !{!"_ZTS8ImVectorIiE", !6, i64 0, !6, i64 4, !12, i64 8}
!39 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !6, i64 0, !6, i64 4, !12, i64 8}
!40 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !6, i64 0, !6, i64 4, !12, i64 8}
!41 = !{!"_ZTS8ImVectorIP14ImGuiViewportPE", !6, i64 0, !6, i64 4, !12, i64 8}
!42 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!43 = !{!"_ZTS15ImGuiNavForward", !7, i64 0}
!44 = !{!"_ZTS16ImGuiNavItemData", !12, i64 0, !6, i64 8, !6, i64 12, !32, i64 16, !10, i64 32, !10, i64 36, !10, i64 40}
!45 = !{!"_ZTS12ImGuiPayload", !12, i64 0, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !7, i64 24, !15, i64 57, !15, i64 58}
!46 = !{!"_ZTS8ImVectorIhE", !6, i64 0, !6, i64 4, !12, i64 8}
!47 = !{!"_ZTS6ImPoolI10ImGuiTableE", !48, i64 0, !26, i64 16, !6, i64 32, !6, i64 36}
!48 = !{!"_ZTS8ImVectorI10ImGuiTableE", !6, i64 0, !6, i64 4, !12, i64 8}
!49 = !{!"_ZTS8ImVectorI18ImGuiTableTempDataE", !6, i64 0, !6, i64 4, !12, i64 8}
!50 = !{!"_ZTS8ImVectorIfE", !6, i64 0, !6, i64 4, !12, i64 8}
!51 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !6, i64 0, !6, i64 4, !12, i64 8}
!52 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !53, i64 0, !26, i64 16, !6, i64 32, !6, i64 36}
!53 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !6, i64 0, !6, i64 4, !12, i64 8}
!54 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !6, i64 0, !6, i64 4, !12, i64 8}
!55 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !6, i64 0, !6, i64 4, !12, i64 8}
!56 = !{!"_ZTS19ImGuiInputTextState", !6, i64 0, !6, i64 4, !6, i64 8, !19, i64 16, !57, i64 32, !57, i64 48, !15, i64 64, !6, i64 68, !10, i64 72, !58, i64 76, !10, i64 3704, !15, i64 3708, !15, i64 3709, !15, i64 3710, !6, i64 3712, !12, i64 3720, !12, i64 3728}
!57 = !{!"_ZTS8ImVectorIcE", !6, i64 0, !6, i64 4, !12, i64 8}
!58 = !{!"_ZTSN5ImStb17STB_TexteditStateE", !6, i64 0, !6, i64 4, !6, i64 8, !7, i64 12, !6, i64 16, !7, i64 20, !7, i64 21, !7, i64 22, !7, i64 23, !7, i64 24, !7, i64 25, !7, i64 26, !10, i64 28, !59, i64 32}
!59 = !{!"_ZTSN5ImStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !18, i64 3582, !18, i64 3584, !6, i64 3588, !6, i64 3592}
!60 = !{!"_ZTS6ImFont", !50, i64 0, !10, i64 16, !10, i64 20, !19, i64 24, !61, i64 40, !12, i64 56, !12, i64 64, !12, i64 72, !18, i64 80, !18, i64 82, !18, i64 84, !18, i64 86, !15, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !6, i64 104, !7, i64 108}
!61 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !6, i64 0, !6, i64 4, !12, i64 8}
!62 = !{!"_ZTS21ImGuiComboPreviewData", !32, i64 0, !17, i64 16, !17, i64 24, !17, i64 32, !10, i64 40, !6, i64 44}
!63 = !{!"_ZTS15ImGuiTextBuffer", !57, i64 0}
!64 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !6, i64 0, !6, i64 4, !12, i64 8}
!65 = !{!"_ZTS13ImChunkStreamI19ImGuiWindowSettingsE", !57, i64 0}
!66 = !{!"_ZTS13ImChunkStreamI18ImGuiTableSettingsE", !57, i64 0}
!67 = !{!"_ZTS8ImVectorI16ImGuiContextHookE", !6, i64 0, !6, i64 4, !12, i64 8}
!68 = !{!"_ZTS12ImGuiLogType", !7, i64 0}
!69 = !{!"_ZTS18ImGuiMetricsConfig", !15, i64 0, !15, i64 1, !15, i64 2, !15, i64 3, !15, i64 4, !6, i64 8, !6, i64 12}
!70 = !{!14, !15, i64 12524}
!71 = !{i8 0, i8 2}
!72 = !{}
!73 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 12, i64 4, !9}
!74 = !{!14, !15, i64 7776}
!75 = !{!14, !6, i64 7700}
!76 = !{i64 0, i64 4, !9, i64 4, i64 4, !9}
!77 = !{!32, !10, i64 4}
!78 = !{!17, !10, i64 4}
!79 = !{!32, !10, i64 12}
!80 = !{!14, !6, i64 7800}


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

@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 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 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
define dso_local void @_ZN5ImGui16CalcListClippingEifPiS0_(i32 noundef %0, float noundef %1, ptr nocapture noundef writeonly %2, ptr nocapture noundef writeonly %3) local_unnamed_addr #3 {
  %5 = alloca %struct.ImRect, align 16
  %6 = alloca %struct.ImRect, align 4
  %7 = alloca %struct.ImVec2, align 8
  %8 = alloca %struct.ImVec2, align 8
  %9 = load ptr, ptr @GImGui, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %9, i64 7176
  %11 = load ptr, ptr %10, align 8, !tbaa !9
  %12 = getelementptr inbounds i8, ptr %9, i64 12524
  %13 = load i8, ptr %12, align 4, !tbaa !68, !range !69, !noundef !70
  %14 = trunc nuw i8 %13 to i1
  br i1 %14, label %15, label %16

15:                                               ; preds = %4
  store i32 0, ptr %2, align 4, !tbaa !71
  store i32 %0, ptr %3, align 4, !tbaa !71
  br label %71

16:                                               ; preds = %4
  %17 = tail call noundef zeroext i1 @_ZL26GetSkipItemForListClippingv()
  br i1 %17, label %18, label %19

18:                                               ; preds = %16
  store i32 0, ptr %3, align 4, !tbaa !71
  store i32 0, ptr %2, align 4, !tbaa !71
  br label %71

19:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  %20 = getelementptr inbounds i8, ptr %11, i64 544
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %20, i64 16, i1 false), !tbaa.struct !72
  %21 = getelementptr inbounds i8, ptr %9, i64 7776
  %22 = load i8, ptr %21, align 8, !tbaa !74, !range !69, !noundef !70
  %23 = trunc nuw i8 %22 to i1
  br i1 %23, label %24, label %26

24:                                               ; preds = %19
  %25 = getelementptr inbounds i8, ptr %9, i64 7720
  call void @_ZN6ImRect3AddERKS_(ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(16) %25)
  br label %26

26:                                               ; preds = %24, %19
  %27 = getelementptr inbounds i8, ptr %9, i64 7700
  %28 = load i32, ptr %27, align 4, !tbaa !75
  %.not = icmp eq i32 %28, 0
  br i1 %.not, label %39, label %29

29:                                               ; preds = %26
  %30 = getelementptr inbounds i8, ptr %11, i64 888
  %31 = load i32, ptr %30, align 8, !tbaa !71
  %32 = icmp eq i32 %31, %28
  br i1 %32, label %33, label %39

33:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %34 = getelementptr inbounds i8, ptr %11, i64 16
  %35 = getelementptr inbounds i8, ptr %11, i64 896
  %36 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %34, ptr noundef nonnull align 4 dereferenceable(8) %35)
  store <2 x float> %36, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %37 = getelementptr inbounds i8, ptr %11, i64 904
  %38 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %34, ptr noundef nonnull align 4 dereferenceable(8) %37)
  store <2 x float> %38, ptr %8, align 8
  call void @_ZN6ImRectC2ERK6ImVec2S2_(ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %8)
  call void @_ZN6ImRect3AddERKS_(ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(16) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  br label %39

39:                                               ; preds = %33, %29, %26
  %.sroa.3.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 220
  %.sroa.3.0.copyload = load float, ptr %.sroa.3.0..sroa_idx, align 4, !tbaa !73
  %40 = load <4 x float>, ptr %5, align 16
  %41 = shufflevector <4 x float> %40, <4 x float> poison, <2 x i32> <i32 1, i32 poison>
  %42 = getelementptr inbounds i8, ptr %5, i64 12
  %43 = load float, ptr %42, align 4, !tbaa !76
  %44 = insertelement <2 x float> %41, float %43, i64 1
  %45 = insertelement <2 x float> poison, float %.sroa.3.0.copyload, i64 0
  %46 = shufflevector <2 x float> %45, <2 x float> poison, <2 x i32> zeroinitializer
  %47 = fsub <2 x float> %44, %46
  %48 = insertelement <2 x float> poison, float %1, i64 0
  %49 = shufflevector <2 x float> %48, <2 x float> poison, <2 x i32> zeroinitializer
  %50 = fdiv <2 x float> %47, %49
  %51 = fptosi <2 x float> %50 to <2 x i32>
  %52 = load i8, ptr %21, align 8, !tbaa !74, !range !69, !noundef !70
  %53 = trunc nuw i8 %52 to i1
  br i1 %53, label %54, label %64

54:                                               ; preds = %39
  %55 = getelementptr inbounds i8, ptr %9, i64 7800
  %56 = load i32, ptr %55, align 8, !tbaa !77
  %57 = insertelement <2 x i32> poison, i32 %56, i64 0
  %58 = shufflevector <2 x i32> %57, <2 x i32> poison, <2 x i32> zeroinitializer
  %59 = icmp eq <2 x i32> %58, <i32 2, i32 3>
  %60 = sext <2 x i1> %59 to <2 x i32>
  %61 = zext <2 x i1> %59 to <2 x i32>
  %62 = shufflevector <2 x i32> %60, <2 x i32> %61, <2 x i32> <i32 0, i32 3>
  %63 = add nsw <2 x i32> %62, %51
  br label %64

64:                                               ; preds = %39, %54
  %65 = phi <2 x i32> [ %63, %54 ], [ %51, %39 ]
  %66 = extractelement <2 x i32> %65, i64 0
  %67 = call noundef i32 @_ZL7ImClampIiET_S0_S0_S0_(i32 noundef %66, i32 noundef 0, i32 noundef %0)
  %68 = extractelement <2 x i32> %65, i64 1
  %69 = add nsw i32 %68, 1
  %70 = call noundef i32 @_ZL7ImClampIiET_S0_S0_S0_(i32 noundef %69, i32 noundef %67, i32 noundef %0)
  store i32 %67, ptr %2, align 4, !tbaa !71
  store i32 %70, ptr %3, align 4, !tbaa !71
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  br label %71

71:                                               ; preds = %64, %18, %15
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL26GetSkipItemForListClippingv() local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImRect3AddERKS_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #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 #4 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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"="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 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 = { 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 = { 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, !6, i64 7176}
!10 = !{!"_ZTS12ImGuiContext", !11, i64 0, !11, i64 1, !12, i64 8, !18, i64 5464, !6, i64 6512, !15, i64 6520, !15, i64 6524, !19, i64 6528, !21, i64 7040, !13, i64 7048, !13, i64 7052, !13, i64 7056, !11, i64 7060, !11, i64 7061, !11, i64 7062, !11, i64 7063, !11, i64 7064, !13, i64 7068, !6, i64 7072, !22, i64 7080, !22, i64 7096, !22, i64 7112, !23, i64 7128, !24, i64 7144, !13, i64 7160, !14, i64 7164, !6, i64 7176, !6, i64 7184, !6, i64 7192, !6, i64 7200, !6, i64 7208, !14, i64 7216, !15, i64 7224, !13, i64 7228, !13, i64 7232, !11, i64 7236, !11, i64 7237, !11, i64 7238, !11, i64 7239, !15, i64 7240, !15, i64 7244, !13, i64 7248, !13, i64 7252, !15, i64 7256, !11, i64 7260, !11, i64 7261, !11, i64 7262, !11, i64 7263, !11, i64 7264, !11, i64 7265, !11, i64 7266, !13, i64 7268, !13, i64 7272, !26, i64 7280, !14, i64 7288, !6, i64 7296, !27, i64 7304, !13, i64 7308, !13, i64 7312, !11, i64 7316, !11, i64 7317, !6, i64 7320, !13, i64 7328, !15, i64 7332, !13, i64 7336, !28, i64 7340, !29, i64 7360, !31, i64 7408, !32, i64 7520, !33, i64 7536, !34, i64 7552, !35, i64 7568, !36, i64 7584, !37, i64 7600, !38, i64 7616, !38, i64 7632, !39, i64 7648, !6, i64 7664, !13, i64 7672, !13, i64 7676, !13, i64 7680, !13, i64 7684, !13, i64 7688, !13, i64 7692, !13, i64 7696, !13, i64 7700, !13, i64 7704, !13, i64 7708, !13, i64 7712, !27, i64 7716, !30, i64 7720, !13, i64 7736, !40, i64 7740, !13, i64 7744, !11, i64 7748, !11, i64 7749, !11, i64 7750, !11, i64 7751, !11, i64 7752, !11, i64 7753, !11, i64 7754, !13, i64 7756, !30, i64 7760, !11, i64 7776, !13, i64 7780, !41, i64 7784, !13, i64 7788, !13, i64 7792, !13, i64 7796, !13, i64 7800, !42, i64 7808, !42, i64 7856, !42, i64 7904, !6, i64 7952, !13, i64 7960, !6, i64 7968, !6, i64 7976, !6, i64 7984, !15, i64 7992, !15, i64 7996, !11, i64 8000, !6, i64 8008, !6, i64 8016, !13, i64 8024, !13, i64 8028, !13, i64 8032, !13, i64 8036, !11, i64 8040, !15, i64 8044, !13, i64 8048, !11, i64 8052, !11, i64 8053, !11, i64 8054, !13, i64 8056, !13, i64 8060, !13, i64 8064, !43, i64 8072, !30, i64 8136, !13, i64 8152, !13, i64 8156, !15, i64 8160, !13, i64 8164, !13, i64 8168, !13, i64 8172, !13, i64 8176, !44, i64 8184, !7, i64 8200, !6, i64 8216, !13, i64 8224, !45, i64 8232, !47, i64 8272, !48, i64 8288, !49, i64 8304, !6, i64 8320, !50, i64 8328, !52, i64 8368, !53, i64 8384, !14, i64 8400, !54, i64 8408, !58, i64 12144, !13, i64 12256, !13, i64 12260, !15, i64 12264, !15, i64 12268, !7, i64 12272, !20, i64 12284, !60, i64 12300, !15, i64 12348, !11, i64 12352, !11, i64 12353, !15, i64 12356, !15, i64 12360, !15, i64 12364, !15, i64 12368, !13, i64 12372, !15, i64 12376, !55, i64 12384, !35, i64 12400, !14, i64 12416, !14, i64 12424, !7, i64 12432, !11, i64 12433, !15, i64 12436, !61, i64 12440, !62, i64 12456, !63, i64 12472, !64, i64 12488, !65, i64 12504, !13, i64 12520, !11, i64 12524, !66, i64 12528, !6, i64 12536, !61, i64 12544, !6, i64 12560, !6, i64 12568, !15, i64 12576, !11, i64 12580, !13, i64 12584, !13, i64 12588, !13, i64 12592, !11, i64 12596, !13, i64 12600, !67, i64 12604, !7, i64 12620, !13, i64 13100, !13, i64 13104, !15, i64 13108, !13, i64 13112, !13, i64 13116, !13, i64 13120, !7, i64 13124}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"_ZTS7ImGuiIO", !13, i64 0, !13, i64 4, !14, i64 8, !15, i64 16, !15, i64 20, !6, i64 24, !6, i64 32, !15, i64 40, !15, i64 44, !15, i64 48, !7, i64 52, !15, i64 140, !15, i64 144, !6, i64 152, !6, i64 160, !15, i64 168, !11, i64 172, !6, i64 176, !14, i64 184, !11, i64 192, !11, i64 193, !11, i64 194, !11, i64 195, !11, i64 196, !11, i64 197, !15, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !14, i64 288, !7, i64 296, !15, i64 304, !15, i64 308, !11, i64 312, !11, i64 313, !11, i64 314, !11, i64 315, !7, i64 316, !7, i64 828, !11, i64 908, !11, i64 909, !11, i64 910, !11, i64 911, !11, i64 912, !11, i64 913, !11, i64 914, !15, i64 916, !13, i64 920, !13, i64 924, !13, i64 928, !13, i64 932, !13, i64 936, !14, i64 940, !13, i64 948, !13, i64 952, !14, i64 956, !7, i64 964, !7, i64 1008, !7, i64 1048, !7, i64 1053, !7, i64 1058, !7, i64 1063, !7, i64 1068, !7, i64 1076, !7, i64 1096, !7, i64 1116, !7, i64 1156, !7, i64 1176, !7, i64 3224, !7, i64 5272, !7, i64 5352, !15, i64 5432, !16, i64 5436, !17, i64 5440}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTS6ImVec2", !15, i64 0, !15, i64 4}
!15 = !{!"float", !7, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = !{!"_ZTS8ImVectorItE", !13, i64 0, !13, i64 4, !6, i64 8}
!18 = !{!"_ZTS10ImGuiStyle", !15, i64 0, !15, i64 4, !14, i64 8, !15, i64 16, !15, i64 20, !14, i64 24, !14, i64 32, !13, i64 40, !15, i64 44, !15, i64 48, !15, i64 52, !15, i64 56, !14, i64 60, !15, i64 68, !15, i64 72, !14, i64 76, !14, i64 84, !14, i64 92, !14, i64 100, !15, i64 108, !15, i64 112, !15, i64 116, !15, i64 120, !15, i64 124, !15, i64 128, !15, i64 132, !15, i64 136, !15, i64 140, !15, i64 144, !13, i64 148, !14, i64 152, !14, i64 160, !14, i64 168, !14, i64 176, !15, i64 184, !11, i64 188, !11, i64 189, !11, i64 190, !15, i64 192, !15, i64 196, !7, i64 200}
!19 = !{!"_ZTS20ImDrawListSharedData", !14, i64 0, !6, i64 8, !15, i64 16, !15, i64 20, !15, i64 24, !20, i64 28, !13, i64 44, !7, i64 48, !15, i64 432, !7, i64 436, !6, i64 504}
!20 = !{!"_ZTS6ImVec4", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!21 = !{!"double", !7, i64 0}
!22 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !13, i64 0, !13, i64 4, !6, i64 8}
!23 = !{!"_ZTS8ImVectorI20ImGuiWindowStackDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!24 = !{!"_ZTS12ImGuiStorage", !25, i64 0}
!25 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !13, i64 0, !13, i64 4, !6, i64 8}
!26 = !{!"long long", !7, i64 0}
!27 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!28 = !{!"_ZTS17ImGuiNextItemData", !13, i64 0, !15, i64 4, !13, i64 8, !13, i64 12, !11, i64 16}
!29 = !{!"_ZTS17ImGuiLastItemData", !13, i64 0, !13, i64 4, !13, i64 8, !30, i64 12, !30, i64 28}
!30 = !{!"_ZTS6ImRect", !14, i64 0, !14, i64 8}
!31 = !{!"_ZTS19ImGuiNextWindowData", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !11, i64 56, !30, i64 60, !6, i64 80, !6, i64 88, !15, i64 96, !14, i64 100}
!32 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !13, i64 0, !13, i64 4, !6, i64 8}
!33 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !13, i64 0, !13, i64 4, !6, i64 8}
!34 = !{!"_ZTS8ImVectorIP6ImFontE", !13, i64 0, !13, i64 4, !6, i64 8}
!35 = !{!"_ZTS8ImVectorIjE", !13, i64 0, !13, i64 4, !6, i64 8}
!36 = !{!"_ZTS8ImVectorIiE", !13, i64 0, !13, i64 4, !6, i64 8}
!37 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!38 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!39 = !{!"_ZTS8ImVectorIP14ImGuiViewportPE", !13, i64 0, !13, i64 4, !6, i64 8}
!40 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!41 = !{!"_ZTS15ImGuiNavForward", !7, i64 0}
!42 = !{!"_ZTS16ImGuiNavItemData", !6, i64 0, !13, i64 8, !13, i64 12, !30, i64 16, !15, i64 32, !15, i64 36, !15, i64 40}
!43 = !{!"_ZTS12ImGuiPayload", !6, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !7, i64 24, !11, i64 57, !11, i64 58}
!44 = !{!"_ZTS8ImVectorIhE", !13, i64 0, !13, i64 4, !6, i64 8}
!45 = !{!"_ZTS6ImPoolI10ImGuiTableE", !46, i64 0, !24, i64 16, !13, i64 32, !13, i64 36}
!46 = !{!"_ZTS8ImVectorI10ImGuiTableE", !13, i64 0, !13, i64 4, !6, i64 8}
!47 = !{!"_ZTS8ImVectorI18ImGuiTableTempDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!48 = !{!"_ZTS8ImVectorIfE", !13, i64 0, !13, i64 4, !6, i64 8}
!49 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !13, i64 0, !13, i64 4, !6, i64 8}
!50 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !51, i64 0, !24, i64 16, !13, i64 32, !13, i64 36}
!51 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !13, i64 0, !13, i64 4, !6, i64 8}
!52 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !13, i64 0, !13, i64 4, !6, i64 8}
!53 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !13, i64 0, !13, i64 4, !6, i64 8}
!54 = !{!"_ZTS19ImGuiInputTextState", !13, i64 0, !13, i64 4, !13, i64 8, !17, i64 16, !55, i64 32, !55, i64 48, !11, i64 64, !13, i64 68, !15, i64 72, !56, i64 76, !15, i64 3704, !11, i64 3708, !11, i64 3709, !11, i64 3710, !13, i64 3712, !6, i64 3720, !6, i64 3728}
!55 = !{!"_ZTS8ImVectorIcE", !13, i64 0, !13, i64 4, !6, i64 8}
!56 = !{!"_ZTSN5ImStb17STB_TexteditStateE", !13, i64 0, !13, i64 4, !13, i64 8, !7, i64 12, !13, i64 16, !7, i64 20, !7, i64 21, !7, i64 22, !7, i64 23, !7, i64 24, !7, i64 25, !7, i64 26, !15, i64 28, !57, i64 32}
!57 = !{!"_ZTSN5ImStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !16, i64 3582, !16, i64 3584, !13, i64 3588, !13, i64 3592}
!58 = !{!"_ZTS6ImFont", !48, i64 0, !15, i64 16, !15, i64 20, !17, i64 24, !59, i64 40, !6, i64 56, !6, i64 64, !6, i64 72, !16, i64 80, !16, i64 82, !16, i64 84, !16, i64 86, !11, i64 88, !15, i64 92, !15, i64 96, !15, i64 100, !13, i64 104, !7, i64 108}
!59 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !13, i64 0, !13, i64 4, !6, i64 8}
!60 = !{!"_ZTS21ImGuiComboPreviewData", !30, i64 0, !14, i64 16, !14, i64 24, !14, i64 32, !15, i64 40, !13, i64 44}
!61 = !{!"_ZTS15ImGuiTextBuffer", !55, i64 0}
!62 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !13, i64 0, !13, i64 4, !6, i64 8}
!63 = !{!"_ZTS13ImChunkStreamI19ImGuiWindowSettingsE", !55, i64 0}
!64 = !{!"_ZTS13ImChunkStreamI18ImGuiTableSettingsE", !55, i64 0}
!65 = !{!"_ZTS8ImVectorI16ImGuiContextHookE", !13, i64 0, !13, i64 4, !6, i64 8}
!66 = !{!"_ZTS12ImGuiLogType", !7, i64 0}
!67 = !{!"_ZTS18ImGuiMetricsConfig", !11, i64 0, !11, i64 1, !11, i64 2, !11, i64 3, !11, i64 4, !13, i64 8, !13, i64 12}
!68 = !{!10, !11, i64 12524}
!69 = !{i8 0, i8 2}
!70 = !{}
!71 = !{!13, !13, i64 0}
!72 = !{i64 0, i64 4, !73, i64 4, i64 4, !73, i64 8, i64 4, !73, i64 12, i64 4, !73}
!73 = !{!15, !15, i64 0}
!74 = !{!10, !11, i64 7776}
!75 = !{!10, !13, i64 7700}
!76 = !{!30, !15, i64 12}
!77 = !{!10, !13, i64 7800}


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