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

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

@.str.183 = external hidden unnamed_addr constant [15 x i8], align 1

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN16ImGuiListClipper4StepEv(ptr noundef nonnull align 4 dereferenceable(24)) #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui6PushIDEi(i32 noundef) #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui13ListBoxFooterEv() #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN5ImGui7ListBoxEPKcPiPFbPviPS1_ES3_ii(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5) #2 personality ptr @__gxx_personality_v0 {
  %7 = alloca i1, align 1
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i8, align 1
  %15 = alloca %struct.ImGuiListClipper, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i8, align 1
  %20 = alloca ptr, align 8
  %21 = alloca %struct.ImVec2, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store i32 %4, ptr %12, align 4, !tbaa !9
  store i32 %5, ptr %13, align 4, !tbaa !9
  %22 = load ptr, ptr %8, align 8, !tbaa !5
  %23 = load i32, ptr %12, align 4, !tbaa !9
  %24 = load i32, ptr %13, align 4, !tbaa !9
  %25 = call noundef zeroext i1 @_ZN5ImGui13ListBoxHeaderEPKcii(ptr noundef %22, i32 noundef %23, i32 noundef %24)
  br i1 %25, label %27, label %26

26:                                               ; preds = %6
  store i1 false, ptr %7, align 1
  br label %95

27:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #4
  store i8 0, ptr %14, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #4
  %28 = load i32, ptr %12, align 4, !tbaa !9
  %29 = call noundef float @_ZN5ImGui28GetTextLineHeightWithSpacingEv()
  call void @_ZN16ImGuiListClipperC2Eif(ptr noundef nonnull align 4 dereferenceable(24) %15, i32 noundef %28, float noundef %29)
  br label %30

30:                                               ; preds = %89, %27
  %31 = invoke noundef zeroext i1 @_ZN16ImGuiListClipper4StepEv(ptr noundef nonnull align 4 dereferenceable(24) %15)
          to label %32 unwind label %42

32:                                               ; preds = %30
  br i1 %31, label %33, label %90

33:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %34 = getelementptr inbounds %struct.ImGuiListClipper, ptr %15, i32 0, i32 4
  %35 = load i32, ptr %34, align 4, !tbaa !13
  store i32 %35, ptr %18, align 4, !tbaa !9
  br label %36

36:                                               ; preds = %85, %33
  %37 = load i32, ptr %18, align 4, !tbaa !9
  %38 = getelementptr inbounds %struct.ImGuiListClipper, ptr %15, i32 0, i32 5
  %39 = load i32, ptr %38, align 4, !tbaa !16
  %40 = icmp slt i32 %37, %39
  br i1 %40, label %46, label %41

41:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %89

42:                                               ; preds = %90, %30
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %16, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %17, align 4
  br label %94

46:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #4
  %47 = load i32, ptr %18, align 4, !tbaa !9
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = load i32, ptr %48, align 4, !tbaa !9
  %50 = icmp eq i32 %47, %49
  %51 = zext i1 %50 to i8
  store i8 %51, ptr %19, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  %53 = load ptr, ptr %11, align 8, !tbaa !5
  %54 = load i32, ptr %18, align 4, !tbaa !9
  %55 = invoke noundef zeroext i1 %52(ptr noundef %53, i32 noundef %54, ptr noundef %20)
          to label %56 unwind label %58

56:                                               ; preds = %46
  br i1 %55, label %62, label %57

57:                                               ; preds = %56
  store ptr @.str.183, ptr %20, align 8, !tbaa !5
  br label %62

58:                                               ; preds = %83, %81, %62, %46
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %16, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %17, align 4
  br label %88

62:                                               ; preds = %57, %56
  %63 = load i32, ptr %18, align 4, !tbaa !9
  invoke void @_ZN5ImGui6PushIDEi(i32 noundef %63)
          to label %64 unwind label %58

64:                                               ; preds = %62
  %65 = load ptr, ptr %20, align 8, !tbaa !5
  %66 = load i8, ptr %19, align 1, !tbaa !11, !range !17, !noundef !18
  %67 = trunc i8 %66 to i1
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  invoke void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %21, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %68 unwind label %74

68:                                               ; preds = %64
  %69 = invoke noundef zeroext i1 @_ZN5ImGui10SelectableEPKcbiRK6ImVec2(ptr noundef %65, i1 noundef zeroext %67, i32 noundef 0, ptr noundef nonnull align 4 dereferenceable(8) %21)
          to label %70 unwind label %74

70:                                               ; preds = %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  br i1 %69, label %71, label %78

71:                                               ; preds = %70
  %72 = load i32, ptr %18, align 4, !tbaa !9
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 %72, ptr %73, align 4, !tbaa !9
  store i8 1, ptr %14, align 1, !tbaa !11
  br label %78

74:                                               ; preds = %68, %64
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %16, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  br label %88

78:                                               ; preds = %71, %70
  %79 = load i8, ptr %19, align 1, !tbaa !11, !range !17, !noundef !18
  %80 = trunc i8 %79 to i1
  br i1 %80, label %81, label %83

81:                                               ; preds = %78
  invoke void @_ZN5ImGui19SetItemDefaultFocusEv()
          to label %82 unwind label %58

82:                                               ; preds = %81
  br label %83

83:                                               ; preds = %82, %78
  invoke void @_ZN5ImGui5PopIDEv()
          to label %84 unwind label %58

84:                                               ; preds = %83
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #4
  br label %85

85:                                               ; preds = %84
  %86 = load i32, ptr %18, align 4, !tbaa !9
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %18, align 4, !tbaa !9
  br label %36, !llvm.loop !19

88:                                               ; preds = %74, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %94

89:                                               ; preds = %41
  br label %30, !llvm.loop !21

90:                                               ; preds = %32
  invoke void @_ZN5ImGui13ListBoxFooterEv()
          to label %91 unwind label %42

91:                                               ; preds = %90
  %92 = load i8, ptr %14, align 1, !tbaa !11, !range !17, !noundef !18
  %93 = trunc i8 %92 to i1
  store i1 %93, ptr %7, align 1
  call void @_ZN16ImGuiListClipperD2Ev(ptr noundef nonnull align 4 dereferenceable(24) %15) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
  br label %95

94:                                               ; preds = %88, %42
  call void @_ZN16ImGuiListClipperD2Ev(ptr noundef nonnull align 4 dereferenceable(24) %15) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
  br label %97

95:                                               ; preds = %91, %26
  %96 = load i1, ptr %7, align 1
  ret i1 %96

97:                                               ; preds = %94
  %98 = load ptr, ptr %16, align 8
  %99 = load i32, ptr %17, align 4
  %100 = insertvalue { ptr, i32 } poison, ptr %98, 0
  %101 = insertvalue { ptr, i32 } %100, i32 %99, 1
  resume { ptr, i32 } %101
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16ImGuiListClipperC2Eif(ptr noundef nonnull align 4 dereferenceable(24), i32 noundef, float noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN16ImGuiListClipperD2Ev(ptr noundef nonnull align 4 dereferenceable(24)) unnamed_addr #1 align 2

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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { 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, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !10, i64 16}
!14 = !{!"_ZTS16ImGuiListClipper", !15, i64 0, !15, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!15 = !{!"float", !7, i64 0}
!16 = !{!14, !10, i64 20}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}


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

@.str.183 = external hidden unnamed_addr constant [15 x i8], align 1

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN16ImGuiListClipper4StepEv(ptr noundef nonnull align 4 dereferenceable(24)) local_unnamed_addr #2 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui13ListBoxFooterEv() local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN5ImGui7ListBoxEPKcPiPFbPviPS1_ES3_ii(ptr noundef %0, ptr nocapture noundef %1, ptr nocapture noundef readonly %2, ptr noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %struct.ImGuiListClipper, align 4
  %8 = alloca ptr, align 8
  %9 = alloca %struct.ImVec2, align 4
  %10 = tail call noundef zeroext i1 @_ZN5ImGui13ListBoxHeaderEPKcii(ptr noundef %0, i32 noundef %4, i32 noundef %5)
  br i1 %10, label %11, label %48

11:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #4
  %12 = tail call noundef float @_ZN5ImGui28GetTextLineHeightWithSpacingEv()
  call void @_ZN16ImGuiListClipperC2Eif(ptr noundef nonnull align 4 dereferenceable(24) %7, i32 noundef %4, float noundef %12)
  %13 = getelementptr inbounds i8, ptr %7, i64 16
  %14 = getelementptr inbounds i8, ptr %7, i64 20
  br label %15

.loopexit:                                        ; preds = %40, %18
  %.124.lcssa = phi i1 [ %.023, %18 ], [ %.2, %40 ]
  br label %15, !llvm.loop !5

15:                                               ; preds = %.loopexit, %11
  %.023 = phi i1 [ false, %11 ], [ %.124.lcssa, %.loopexit ]
  %16 = invoke noundef zeroext i1 @_ZN16ImGuiListClipper4StepEv(ptr noundef nonnull align 4 dereferenceable(24) %7)
          to label %17 unwind label %.loopexit27

17:                                               ; preds = %15
  br i1 %16, label %18, label %45

18:                                               ; preds = %17
  %19 = load i32, ptr %13, align 4, !tbaa !7
  %20 = load i32, ptr %14, align 4, !tbaa !13
  %21 = icmp slt i32 %19, %20
  br i1 %21, label %.lr.ph, label %.loopexit

.loopexit27:                                      ; preds = %15
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %47

.loopexit.split-lp:                               ; preds = %45
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %47

.lr.ph:                                           ; preds = %18, %40
  %.01934 = phi i32 [ %41, %40 ], [ %19, %18 ]
  %.12433 = phi i1 [ %.2, %40 ], [ %.023, %18 ]
  %22 = load i32, ptr %1, align 4, !tbaa !14
  %23 = icmp eq i32 %.01934, %22
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %24 = invoke noundef zeroext i1 %2(ptr noundef %3, i32 noundef %.01934, ptr noundef nonnull %8)
          to label %25 unwind label %27

25:                                               ; preds = %.lr.ph
  br i1 %24, label %29, label %26

26:                                               ; preds = %25
  store ptr @.str.183, ptr %8, align 8, !tbaa !15
  br label %29

27:                                               ; preds = %39, %38, %29, %.lr.ph
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %44

29:                                               ; preds = %26, %25
  invoke void @_ZN5ImGui6PushIDEi(i32 noundef %.01934)
          to label %30 unwind label %27

30:                                               ; preds = %29
  %31 = load ptr, ptr %8, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %9, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %32 = invoke noundef zeroext i1 @_ZN5ImGui10SelectableEPKcbiRK6ImVec2(ptr noundef %31, i1 noundef zeroext %23, i32 noundef 0, ptr noundef nonnull align 4 dereferenceable(8) %9)
          to label %33 unwind label %35

33:                                               ; preds = %30
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  br i1 %32, label %34, label %37

34:                                               ; preds = %33
  store i32 %.01934, ptr %1, align 4, !tbaa !14
  br label %37

35:                                               ; preds = %30
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  br label %44

37:                                               ; preds = %34, %33
  %.2 = phi i1 [ true, %34 ], [ %.12433, %33 ]
  br i1 %23, label %38, label %39

38:                                               ; preds = %37
  invoke void @_ZN5ImGui19SetItemDefaultFocusEv()
          to label %39 unwind label %27

39:                                               ; preds = %38, %37
  invoke void @_ZN5ImGui5PopIDEv()
          to label %40 unwind label %27

40:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  %41 = add nsw i32 %.01934, 1
  %42 = load i32, ptr %14, align 4, !tbaa !13
  %43 = icmp slt i32 %41, %42
  br i1 %43, label %.lr.ph, label %.loopexit, !llvm.loop !17

44:                                               ; preds = %35, %27
  %.pn = phi { ptr, i32 } [ %28, %27 ], [ %36, %35 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  br label %47

45:                                               ; preds = %17
  invoke void @_ZN5ImGui13ListBoxFooterEv()
          to label %46 unwind label %.loopexit.split-lp

46:                                               ; preds = %45
  call void @_ZN16ImGuiListClipperD2Ev(ptr noundef nonnull align 4 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  br label %48

47:                                               ; preds = %.loopexit27, %.loopexit.split-lp, %44
  %.pn.pn = phi { ptr, i32 } [ %.pn, %44 ], [ %lpad.loopexit, %.loopexit27 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN16ImGuiListClipperD2Ev(ptr noundef nonnull align 4 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  resume { ptr, i32 } %.pn.pn

48:                                               ; preds = %6, %46
  %.0 = phi i1 [ %.023, %46 ], [ false, %6 ]
  ret i1 %.0
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16ImGuiListClipperC2Eif(ptr noundef nonnull align 4 dereferenceable(24), i32 noundef, float noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN16ImGuiListClipperD2Ev(ptr noundef nonnull align 4 dereferenceable(24)) unnamed_addr #1 align 2

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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !12, i64 16}
!8 = !{!"_ZTS16ImGuiListClipper", !9, i64 0, !9, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20}
!9 = !{!"float", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"int", !10, i64 0}
!13 = !{!8, !12, i64 20}
!14 = !{!12, !12, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"any pointer", !10, i64 0}
!17 = distinct !{!17, !6}


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