; LLVM IR from hadryansalles/Luz :: deps/imgui/imgui_widgets.ll (ZN5ImGui22GetWindowScrollbarRectEP11ImGuiWindow9ImGuiAxis)

; 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.ImGuiWindow = type { ptr, ptr, i32, i32, i32, i32, %struct.ImGuiWindowClass, ptr, i32, %struct.ImVec2, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, float, float, float, float, float, float, i32, 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, i8, i8, i16, i16, i16, i16, i16, i32, i8, i8, i8, i32, i8, i8, i8, i8, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVector, %struct.ImGuiWindowTempData, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImVec2ih, %struct.ImVec2ih, i32, i32, float, float, %struct.ImGuiStorage, %struct.ImVector.3, float, float, i32, ptr, %struct.ImDrawList, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, [2 x i32], [2 x %struct.ImRect], [2 x %struct.ImVec2], i32, i32, i32, i8, i8, i16, %struct.ImGuiWindowDockStyle, ptr, ptr, i32, i32, %struct.ImRect }
%struct.ImGuiWindowClass = type <{ i32, i32, i32, i32, i32, i32, i32, i8, i8, [2 x i8] }>
%struct.ImVector = type { i32, i32, ptr }
%struct.ImGuiWindowTempData = type { %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, i8, i8, %struct.ImVec1, %struct.ImVec1, %struct.ImVec1, %struct.ImVec2, i32, i16, i16, i8, i8, i8, i8, %struct.ImVec2, %struct.ImGuiMenuColumns, i32, i32, %struct.ImVector.0, ptr, ptr, i32, i32, i32, float, float, %struct.ImVector.1, %struct.ImVector.1 }
%struct.ImVec1 = type { float }
%struct.ImGuiMenuColumns = type <{ i32, i32, i16, i16, i16, i16, i16, [4 x i16], [2 x i8] }>
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImVector.1 = type { i32, i32, ptr }
%struct.ImVec2ih = type { i16, i16 }
%struct.ImGuiStorage = type { %struct.ImVector.2 }
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImVector.3 = type { i32, i32, ptr }
%struct.ImDrawList = type <{ %struct.ImVector.4, %struct.ImVector.5, %struct.ImVector.6, i32, i32, ptr, ptr, ptr, ptr, %struct.ImVector.7, %struct.ImVector.8, %struct.ImVector.9, %struct.ImDrawCmdHeader, %struct.ImDrawListSplitter, float, [4 x i8] }>
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImVector.5 = type { i32, i32, ptr }
%struct.ImVector.6 = type { i32, i32, ptr }
%struct.ImVector.7 = type { i32, i32, ptr }
%struct.ImVector.8 = type { i32, i32, ptr }
%struct.ImVector.9 = type { i32, i32, ptr }
%struct.ImDrawCmdHeader = type <{ %struct.ImVec4, ptr, i32, [4 x i8] }>
%struct.ImVec4 = type { float, float, float, float }
%struct.ImDrawListSplitter = type { i32, i32, %struct.ImVector.10 }
%struct.ImVector.10 = type { i32, i32, ptr }
%struct.ImGuiWindowDockStyle = type { [6 x i32] }

@.str.4 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [22 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui22GetWindowScrollbarRectEP11ImGuiWindow9ImGuiAxis = external hidden unnamed_addr constant [63 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local { <2 x float>, <2 x float> } @_ZN5ImGui22GetWindowScrollbarRectEP11ImGuiWindow9ImGuiAxis(ptr noundef %0, i32 noundef %1) #4 {
  %3 = alloca %struct.ImRect, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %struct.ImRect, align 4
  %7 = alloca %struct.ImRect, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #7
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = call { <2 x float>, <2 x float> } @_ZNK11ImGuiWindow4RectEv(ptr noundef nonnull align 8 dereferenceable(1152) %11)
  %13 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 0
  %14 = extractvalue { <2 x float>, <2 x float> } %12, 0
  store <2 x float> %14, ptr %13, align 4
  %15 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 1
  %16 = extractvalue { <2 x float>, <2 x float> } %12, 1
  store <2 x float> %16, ptr %15, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #7
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.ImGuiWindow, ptr %17, i32 0, i32 72
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.ImGuiWindow, ptr %19, i32 0, i32 19
  %21 = load float, ptr %20, align 4, !tbaa !14
  store float %21, ptr %8, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.ImGuiWindow, ptr %22, i32 0, i32 35
  %24 = load i32, ptr %5, align 4, !tbaa !9
  %25 = xor i32 %24, 1
  %26 = sext i32 %25 to i64
  %27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6ImVec2ixEm(ptr noundef nonnull align 4 dereferenceable(8) %23, i64 noundef %26)
  %28 = load float, ptr %27, align 4, !tbaa !12
  store float %28, ptr %9, align 4, !tbaa !12
  %29 = load float, ptr %9, align 4, !tbaa !12
  %30 = fcmp ogt float %29, 0.000000e+00
  br i1 %30, label %31, label %32

31:                                               ; preds = %2
  br label %34

32:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.4, i32 noundef 893, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui22GetWindowScrollbarRectEP11ImGuiWindow9ImGuiAxis) #8
  unreachable

33:                                               ; No predecessors!
  br label %34

34:                                               ; preds = %33, %31
  %35 = load i32, ptr %5, align 4, !tbaa !9
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %62

37:                                               ; preds = %34
  %38 = getelementptr inbounds %struct.ImRect, ptr %7, i32 0, i32 0
  %39 = getelementptr inbounds %struct.ImVec2, ptr %38, i32 0, i32 0
  %40 = load float, ptr %39, align 4, !tbaa !45
  %41 = getelementptr inbounds %struct.ImRect, ptr %6, i32 0, i32 0
  %42 = getelementptr inbounds %struct.ImVec2, ptr %41, i32 0, i32 1
  %43 = load float, ptr %42, align 4, !tbaa !46
  %44 = getelementptr inbounds %struct.ImRect, ptr %6, i32 0, i32 1
  %45 = getelementptr inbounds %struct.ImVec2, ptr %44, i32 0, i32 1
  %46 = load float, ptr %45, align 4, !tbaa !47
  %47 = load float, ptr %8, align 4, !tbaa !12
  %48 = fsub float %46, %47
  %49 = load float, ptr %9, align 4, !tbaa !12
  %50 = fsub float %48, %49
  %51 = call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef %43, float noundef %50)
  %52 = getelementptr inbounds %struct.ImRect, ptr %7, i32 0, i32 1
  %53 = getelementptr inbounds %struct.ImVec2, ptr %52, i32 0, i32 0
  %54 = load float, ptr %53, align 4, !tbaa !48
  %55 = load float, ptr %8, align 4, !tbaa !12
  %56 = fsub float %54, %55
  %57 = getelementptr inbounds %struct.ImRect, ptr %6, i32 0, i32 1
  %58 = getelementptr inbounds %struct.ImVec2, ptr %57, i32 0, i32 1
  %59 = load float, ptr %58, align 4, !tbaa !47
  %60 = load float, ptr %8, align 4, !tbaa !12
  %61 = fsub float %59, %60
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %3, float noundef %40, float noundef %51, float noundef %56, float noundef %61)
  store i32 1, ptr %10, align 4
  br label %87

62:                                               ; preds = %34
  %63 = getelementptr inbounds %struct.ImRect, ptr %6, i32 0, i32 0
  %64 = getelementptr inbounds %struct.ImVec2, ptr %63, i32 0, i32 0
  %65 = load float, ptr %64, align 4, !tbaa !45
  %66 = getelementptr inbounds %struct.ImRect, ptr %6, i32 0, i32 1
  %67 = getelementptr inbounds %struct.ImVec2, ptr %66, i32 0, i32 0
  %68 = load float, ptr %67, align 4, !tbaa !48
  %69 = load float, ptr %8, align 4, !tbaa !12
  %70 = fsub float %68, %69
  %71 = load float, ptr %9, align 4, !tbaa !12
  %72 = fsub float %70, %71
  %73 = call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef %65, float noundef %72)
  %74 = getelementptr inbounds %struct.ImRect, ptr %7, i32 0, i32 0
  %75 = getelementptr inbounds %struct.ImVec2, ptr %74, i32 0, i32 1
  %76 = load float, ptr %75, align 4, !tbaa !46
  %77 = getelementptr inbounds %struct.ImRect, ptr %6, i32 0, i32 1
  %78 = getelementptr inbounds %struct.ImVec2, ptr %77, i32 0, i32 0
  %79 = load float, ptr %78, align 4, !tbaa !48
  %80 = load float, ptr %8, align 4, !tbaa !12
  %81 = fsub float %79, %80
  %82 = getelementptr inbounds %struct.ImRect, ptr %7, i32 0, i32 1
  %83 = getelementptr inbounds %struct.ImVec2, ptr %82, i32 0, i32 1
  %84 = load float, ptr %83, align 4, !tbaa !47
  %85 = load float, ptr %8, align 4, !tbaa !12
  %86 = fsub float %84, %85
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %3, float noundef %73, float noundef %76, float noundef %81, float noundef %86)
  store i32 1, ptr %10, align 4
  br label %87

87:                                               ; preds = %62, %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #7
  %88 = load { <2 x float>, <2 x float> }, ptr %3, align 4
  ret { <2 x float>, <2 x float> } %88
}

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZNK11ImGuiWindow4RectEv(ptr noundef nonnull align 8 dereferenceable(1152)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN6ImVec2ixEm(ptr noundef nonnull align 4 dereferenceable(8), i64 noundef) #6 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn nounwind "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"="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 #5 = { 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { noreturn 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 = !{!"_ZTS9ImGuiAxis", !7, i64 0}
!11 = !{i64 0, i64 4, !12, i64 4, i64 4, !12, i64 8, i64 4, !12, i64 12, i64 4, !12}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!15, !13, i64 148}
!15 = !{!"_ZTS11ImGuiWindow", !6, i64 0, !6, i64 8, !16, i64 16, !16, i64 20, !16, i64 24, !16, i64 28, !17, i64 32, !6, i64 64, !16, i64 72, !19, i64 76, !16, i64 84, !19, i64 88, !19, i64 96, !19, i64 104, !19, i64 112, !19, i64 120, !19, i64 128, !19, i64 136, !13, i64 144, !13, i64 148, !13, i64 152, !13, i64 156, !13, i64 160, !13, i64 164, !13, i64 168, !13, i64 172, !16, i64 176, !16, i64 180, !16, i64 184, !16, i64 188, !19, i64 192, !19, i64 200, !19, i64 208, !19, i64 216, !19, i64 224, !19, i64 232, !18, i64 240, !18, i64 241, !18, i64 242, !18, i64 243, !18, i64 244, !18, i64 245, !18, i64 246, !18, i64 247, !18, i64 248, !18, i64 249, !18, i64 250, !18, i64 251, !18, i64 252, !18, i64 253, !7, i64 254, !7, i64 255, !20, i64 256, !20, i64 258, !20, i64 260, !20, i64 262, !20, i64 264, !16, i64 268, !7, i64 272, !7, i64 273, !18, i64 274, !16, i64 276, !7, i64 280, !7, i64 281, !7, i64 282, !7, i64 283, !16, i64 284, !16, i64 285, !16, i64 286, !16, i64 287, !19, i64 288, !19, i64 296, !21, i64 304, !22, i64 320, !28, i64 552, !28, i64 568, !28, i64 584, !28, i64 600, !28, i64 616, !28, i64 632, !28, i64 648, !29, i64 664, !29, i64 668, !16, i64 672, !16, i64 676, !13, i64 680, !13, i64 684, !30, i64 688, !32, i64 704, !13, i64 720, !13, i64 724, !16, i64 728, !6, i64 736, !33, i64 744, !6, i64 944, !6, i64 952, !6, i64 960, !6, i64 968, !6, i64 976, !6, i64 984, !6, i64 992, !6, i64 1000, !6, i64 1008, !7, i64 1016, !7, i64 1024, !7, i64 1056, !16, i64 1072, !16, i64 1076, !16, i64 1080, !18, i64 1084, !18, i64 1085, !18, i64 1085, !18, i64 1085, !18, i64 1085, !20, i64 1086, !44, i64 1088, !6, i64 1112, !6, i64 1120, !16, i64 1128, !16, i64 1132, !28, i64 1136}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_ZTS16ImGuiWindowClass", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12, !16, i64 16, !16, i64 20, !16, i64 24, !18, i64 28, !18, i64 29}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"_ZTS6ImVec2", !13, i64 0, !13, i64 4}
!20 = !{!"short", !7, i64 0}
!21 = !{!"_ZTS8ImVectorIjE", !16, i64 0, !16, i64 4, !6, i64 8}
!22 = !{!"_ZTS19ImGuiWindowTempData", !19, i64 0, !19, i64 8, !19, i64 16, !19, i64 24, !19, i64 32, !19, i64 40, !19, i64 48, !13, i64 56, !13, i64 60, !18, i64 64, !18, i64 65, !23, i64 68, !23, i64 72, !23, i64 76, !19, i64 80, !24, i64 88, !20, i64 92, !20, i64 94, !18, i64 96, !18, i64 97, !18, i64 98, !18, i64 99, !19, i64 100, !25, i64 108, !16, i64 136, !16, i64 140, !26, i64 144, !6, i64 160, !6, i64 168, !16, i64 176, !16, i64 180, !16, i64 184, !13, i64 188, !13, i64 192, !27, i64 200, !27, i64 216}
!23 = !{!"_ZTS6ImVec1", !13, i64 0}
!24 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!25 = !{!"_ZTS16ImGuiMenuColumns", !16, i64 0, !16, i64 4, !20, i64 8, !20, i64 10, !20, i64 12, !20, i64 14, !20, i64 16, !7, i64 18}
!26 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !16, i64 0, !16, i64 4, !6, i64 8}
!27 = !{!"_ZTS8ImVectorIfE", !16, i64 0, !16, i64 4, !6, i64 8}
!28 = !{!"_ZTS6ImRect", !19, i64 0, !19, i64 8}
!29 = !{!"_ZTS8ImVec2ih", !20, i64 0, !20, i64 2}
!30 = !{!"_ZTS12ImGuiStorage", !31, i64 0}
!31 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !16, i64 0, !16, i64 4, !6, i64 8}
!32 = !{!"_ZTS8ImVectorI15ImGuiOldColumnsE", !16, i64 0, !16, i64 4, !6, i64 8}
!33 = !{!"_ZTS10ImDrawList", !34, i64 0, !35, i64 16, !36, i64 32, !16, i64 48, !16, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !37, i64 88, !38, i64 104, !39, i64 120, !40, i64 136, !42, i64 168, !13, i64 192}
!34 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !16, i64 0, !16, i64 4, !6, i64 8}
!35 = !{!"_ZTS8ImVectorItE", !16, i64 0, !16, i64 4, !6, i64 8}
!36 = !{!"_ZTS8ImVectorI10ImDrawVertE", !16, i64 0, !16, i64 4, !6, i64 8}
!37 = !{!"_ZTS8ImVectorI6ImVec4E", !16, i64 0, !16, i64 4, !6, i64 8}
!38 = !{!"_ZTS8ImVectorIPvE", !16, i64 0, !16, i64 4, !6, i64 8}
!39 = !{!"_ZTS8ImVectorI6ImVec2E", !16, i64 0, !16, i64 4, !6, i64 8}
!40 = !{!"_ZTS15ImDrawCmdHeader", !41, i64 0, !6, i64 16, !16, i64 24}
!41 = !{!"_ZTS6ImVec4", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12}
!42 = !{!"_ZTS18ImDrawListSplitter", !16, i64 0, !16, i64 4, !43, i64 8}
!43 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !16, i64 0, !16, i64 4, !6, i64 8}
!44 = !{!"_ZTS20ImGuiWindowDockStyle", !7, i64 0}
!45 = !{!28, !13, i64 0}
!46 = !{!28, !13, i64 4}
!47 = !{!28, !13, i64 12}
!48 = !{!28, !13, i64 8}


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

@.str.4 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [22 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui22GetWindowScrollbarRectEP11ImGuiWindow9ImGuiAxis = external hidden unnamed_addr constant [63 x i8], align 1

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local { <2 x float>, <2 x float> } @_ZN5ImGui22GetWindowScrollbarRectEP11ImGuiWindow9ImGuiAxis(ptr noundef nonnull %0, i32 noundef %1) local_unnamed_addr #2 {
  %3 = alloca %struct.ImRect, align 8
  %4 = tail call { <2 x float>, <2 x float> } @_ZNK11ImGuiWindow4RectEv(ptr noundef nonnull align 8 dereferenceable(1152) %0)
  %5 = extractvalue { <2 x float>, <2 x float> } %4, 0
  %6 = extractvalue { <2 x float>, <2 x float> } %4, 1
  %7 = getelementptr inbounds i8, ptr %0, i64 568
  %.sroa.0.0.copyload = load float, ptr %7, align 8, !tbaa !5
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 572
  %.sroa.4.0.copyload = load float, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !5
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 576
  %.sroa.5.0.copyload = load float, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !5
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 580
  %.sroa.6.0.copyload = load float, ptr %.sroa.6.0..sroa_idx, align 4, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 148
  %9 = load float, ptr %8, align 4, !tbaa !9
  %10 = getelementptr inbounds i8, ptr %0, i64 232
  %11 = xor i32 %1, 1
  %12 = sext i32 %11 to i64
  %13 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6ImVec2ixEm(ptr noundef nonnull align 4 dereferenceable(8) %10, i64 noundef %12)
  %14 = load float, ptr %13, align 4, !tbaa !5
  %15 = fcmp ogt float %14, 0.000000e+00
  br i1 %15, label %17, label %16

16:                                               ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4, i32 noundef 893, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui22GetWindowScrollbarRectEP11ImGuiWindow9ImGuiAxis) #5
  unreachable

17:                                               ; preds = %2
  %18 = icmp eq i32 %1, 0
  br i1 %18, label %19, label %24

19:                                               ; preds = %17
  %.sroa.09.4.vec.extract = extractelement <2 x float> %5, i64 1
  %.sroa.510.12.vec.extract = extractelement <2 x float> %6, i64 1
  %20 = fsub float %.sroa.510.12.vec.extract, %9
  %21 = fsub float %20, %14
  %22 = tail call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef %.sroa.09.4.vec.extract, float noundef %21)
  %23 = fsub float %.sroa.5.0.copyload, %9
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %3, float noundef %.sroa.0.0.copyload, float noundef %22, float noundef %23, float noundef %20)
  br label %29

24:                                               ; preds = %17
  %.sroa.09.0.vec.extract = extractelement <2 x float> %5, i64 0
  %.sroa.510.8.vec.extract = extractelement <2 x float> %6, i64 0
  %25 = fsub float %.sroa.510.8.vec.extract, %9
  %26 = fsub float %25, %14
  %27 = tail call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef %.sroa.09.0.vec.extract, float noundef %26)
  %28 = fsub float %.sroa.6.0.copyload, %9
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %3, float noundef %27, float noundef %.sroa.4.0.copyload, float noundef %25, float noundef %28)
  br label %29

29:                                               ; preds = %24, %19
  %.fca.0.load = load <2 x float>, ptr %3, align 8
  %.fca.0.insert = insertvalue { <2 x float>, <2 x float> } poison, <2 x float> %.fca.0.load, 0
  %.fca.1.gep = getelementptr inbounds i8, ptr %3, i64 8
  %.fca.1.load = load <2 x float>, ptr %.fca.1.gep, align 8
  %.fca.1.insert = insertvalue { <2 x float>, <2 x float> } %.fca.0.insert, <2 x float> %.fca.1.load, 1
  ret { <2 x float>, <2 x float> } %.fca.1.insert
}

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZNK11ImGuiWindow4RectEv(ptr noundef nonnull align 8 dereferenceable(1152)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN6ImVec2ixEm(ptr noundef nonnull align 4 dereferenceable(8), i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16), float noundef, float noundef, float noundef, float noundef) unnamed_addr #3 align 2

attributes #0 = { 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 #1 = { noreturn nounwind "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"="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 = { 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 = { noreturn 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 148}
!10 = !{!"_ZTS11ImGuiWindow", !11, i64 0, !11, i64 8, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !13, i64 32, !11, i64 64, !12, i64 72, !15, i64 76, !12, i64 84, !15, i64 88, !15, i64 96, !15, i64 104, !15, i64 112, !15, i64 120, !15, i64 128, !15, i64 136, !6, i64 144, !6, i64 148, !6, i64 152, !6, i64 156, !6, i64 160, !6, i64 164, !6, i64 168, !6, i64 172, !12, i64 176, !12, i64 180, !12, i64 184, !12, i64 188, !15, i64 192, !15, i64 200, !15, i64 208, !15, i64 216, !15, i64 224, !15, i64 232, !14, i64 240, !14, i64 241, !14, i64 242, !14, i64 243, !14, i64 244, !14, i64 245, !14, i64 246, !14, i64 247, !14, i64 248, !14, i64 249, !14, i64 250, !14, i64 251, !14, i64 252, !14, i64 253, !7, i64 254, !7, i64 255, !16, i64 256, !16, i64 258, !16, i64 260, !16, i64 262, !16, i64 264, !12, i64 268, !7, i64 272, !7, i64 273, !14, i64 274, !12, i64 276, !7, i64 280, !7, i64 281, !7, i64 282, !7, i64 283, !12, i64 284, !12, i64 285, !12, i64 286, !12, i64 287, !15, i64 288, !15, i64 296, !17, i64 304, !18, i64 320, !24, i64 552, !24, i64 568, !24, i64 584, !24, i64 600, !24, i64 616, !24, i64 632, !24, i64 648, !25, i64 664, !25, i64 668, !12, i64 672, !12, i64 676, !6, i64 680, !6, i64 684, !26, i64 688, !28, i64 704, !6, i64 720, !6, i64 724, !12, i64 728, !11, i64 736, !29, i64 744, !11, i64 944, !11, i64 952, !11, i64 960, !11, i64 968, !11, i64 976, !11, i64 984, !11, i64 992, !11, i64 1000, !11, i64 1008, !7, i64 1016, !7, i64 1024, !7, i64 1056, !12, i64 1072, !12, i64 1076, !12, i64 1080, !14, i64 1084, !14, i64 1085, !14, i64 1085, !14, i64 1085, !14, i64 1085, !16, i64 1086, !40, i64 1088, !11, i64 1112, !11, i64 1120, !12, i64 1128, !12, i64 1132, !24, i64 1136}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTS16ImGuiWindowClass", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !14, i64 28, !14, i64 29}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTS6ImVec2", !6, i64 0, !6, i64 4}
!16 = !{!"short", !7, i64 0}
!17 = !{!"_ZTS8ImVectorIjE", !12, i64 0, !12, i64 4, !11, i64 8}
!18 = !{!"_ZTS19ImGuiWindowTempData", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !6, i64 56, !6, i64 60, !14, i64 64, !14, i64 65, !19, i64 68, !19, i64 72, !19, i64 76, !15, i64 80, !20, i64 88, !16, i64 92, !16, i64 94, !14, i64 96, !14, i64 97, !14, i64 98, !14, i64 99, !15, i64 100, !21, i64 108, !12, i64 136, !12, i64 140, !22, i64 144, !11, i64 160, !11, i64 168, !12, i64 176, !12, i64 180, !12, i64 184, !6, i64 188, !6, i64 192, !23, i64 200, !23, i64 216}
!19 = !{!"_ZTS6ImVec1", !6, i64 0}
!20 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!21 = !{!"_ZTS16ImGuiMenuColumns", !12, i64 0, !12, i64 4, !16, i64 8, !16, i64 10, !16, i64 12, !16, i64 14, !16, i64 16, !7, i64 18}
!22 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !12, i64 0, !12, i64 4, !11, i64 8}
!23 = !{!"_ZTS8ImVectorIfE", !12, i64 0, !12, i64 4, !11, i64 8}
!24 = !{!"_ZTS6ImRect", !15, i64 0, !15, i64 8}
!25 = !{!"_ZTS8ImVec2ih", !16, i64 0, !16, i64 2}
!26 = !{!"_ZTS12ImGuiStorage", !27, i64 0}
!27 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !12, i64 0, !12, i64 4, !11, i64 8}
!28 = !{!"_ZTS8ImVectorI15ImGuiOldColumnsE", !12, i64 0, !12, i64 4, !11, i64 8}
!29 = !{!"_ZTS10ImDrawList", !30, i64 0, !31, i64 16, !32, i64 32, !12, i64 48, !12, i64 52, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !33, i64 88, !34, i64 104, !35, i64 120, !36, i64 136, !38, i64 168, !6, i64 192}
!30 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !12, i64 0, !12, i64 4, !11, i64 8}
!31 = !{!"_ZTS8ImVectorItE", !12, i64 0, !12, i64 4, !11, i64 8}
!32 = !{!"_ZTS8ImVectorI10ImDrawVertE", !12, i64 0, !12, i64 4, !11, i64 8}
!33 = !{!"_ZTS8ImVectorI6ImVec4E", !12, i64 0, !12, i64 4, !11, i64 8}
!34 = !{!"_ZTS8ImVectorIPvE", !12, i64 0, !12, i64 4, !11, i64 8}
!35 = !{!"_ZTS8ImVectorI6ImVec2E", !12, i64 0, !12, i64 4, !11, i64 8}
!36 = !{!"_ZTS15ImDrawCmdHeader", !37, i64 0, !11, i64 16, !12, i64 24}
!37 = !{!"_ZTS6ImVec4", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!38 = !{!"_ZTS18ImDrawListSplitter", !12, i64 0, !12, i64 4, !39, i64 8}
!39 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !12, i64 0, !12, i64 4, !11, i64 8}
!40 = !{!"_ZTS20ImGuiWindowDockStyle", !7, i64 0}


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