; LLVM IR from yangfengzzz/DigitalVox4 :: editor/imgui_node_editor.ll (ZNK3vox10NodeEditor6Detail4Link7TestHitERK6ImRectb)

; 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.ImCubicBezierPointsT = type { %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2 }
%struct.ImVec2 = type { float, float }
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImCubicBezierIntersectResult = type { i32, [3 x %struct.ImVec2] }
%"struct.vox::NodeEditor::Detail::Object" = type <{ ptr, ptr, i8, [7 x i8] }>

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3vox10NodeEditor6Detail4Link8GetCurveEv(ptr dead_on_unwind noalias writable sret(%struct.ImCubicBezierPointsT) align 4, ptr noundef nonnull align 8 dereferenceable(72)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZNK3vox10NodeEditor6Detail4Link9GetBoundsEv(ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK3vox10NodeEditor6Detail4Link7TestHitERK6ImRectb(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef nonnull align 4 dereferenceable(16) %1, i1 noundef zeroext %2) unnamed_addr #1 align 2 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  %8 = alloca %struct.ImRect, align 4
  %9 = alloca i32, align 4
  %10 = alloca %struct.ImCubicBezierPointsT, align 4
  %11 = alloca %struct.ImVec2, align 4
  %12 = alloca %struct.ImVec2, align 4
  %13 = alloca %struct.ImVec2, align 4
  %14 = alloca %struct.ImVec2, align 4
  %15 = alloca %struct.ImCubicBezierIntersectResult, align 4
  %16 = alloca %struct.ImCubicBezierIntersectResult, align 4
  %17 = alloca %struct.ImCubicBezierIntersectResult, align 4
  %18 = alloca %struct.ImCubicBezierIntersectResult, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  %19 = zext i1 %2 to i8
  store i8 %19, ptr %7, align 1, !tbaa !9
  %20 = load ptr, ptr %5, align 8
  %21 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Object", ptr %20, i32 0, i32 2
  %22 = load i8, ptr %21, align 8, !tbaa !11, !range !13, !noundef !14
  %23 = trunc i8 %22 to i1
  br i1 %23, label %25, label %24

24:                                               ; preds = %3
  store i1 false, ptr %4, align 1
  br label %88

25:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #5
  %26 = call { <2 x float>, <2 x float> } @_ZNK3vox10NodeEditor6Detail4Link9GetBoundsEv(ptr noundef nonnull align 8 dereferenceable(72) %20)
  %27 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %8, i32 0, i32 0
  %28 = extractvalue { <2 x float>, <2 x float> } %26, 0
  store <2 x float> %28, ptr %27, align 4
  %29 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %8, i32 0, i32 1
  %30 = extractvalue { <2 x float>, <2 x float> } %26, 1
  store <2 x float> %30, ptr %29, align 4
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = call noundef zeroext i1 @_ZNK6ImRect8ContainsERKS_(ptr noundef nonnull align 4 dereferenceable(16) %31, ptr noundef nonnull align 4 dereferenceable(16) %8)
  br i1 %32, label %33, label %34

33:                                               ; preds = %25
  store i1 true, ptr %4, align 1
  store i32 1, ptr %9, align 4
  br label %87

34:                                               ; preds = %25
  %35 = load i8, ptr %7, align 1, !tbaa !9, !range !13, !noundef !14
  %36 = trunc i8 %35 to i1
  br i1 %36, label %37, label %40

37:                                               ; preds = %34
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = call noundef zeroext i1 @_ZNK6ImRect8OverlapsERKS_(ptr noundef nonnull align 4 dereferenceable(16) %38, ptr noundef nonnull align 4 dereferenceable(16) %8)
  br i1 %39, label %41, label %40

40:                                               ; preds = %37, %34
  store i1 false, ptr %4, align 1
  store i32 1, ptr %9, align 4
  br label %87

41:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #5
  call void @_ZNK3vox10NodeEditor6Detail4Link8GetCurveEv(ptr dead_on_unwind writable sret(%struct.ImCubicBezierPointsT) align 4 %10, ptr noundef nonnull align 8 dereferenceable(72) %20)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = call <2 x float> @_ZNK6ImRect5GetTLEv(ptr noundef nonnull align 4 dereferenceable(16) %42)
  store <2 x float> %43, ptr %11, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = call <2 x float> @_ZNK6ImRect5GetTREv(ptr noundef nonnull align 4 dereferenceable(16) %44)
  store <2 x float> %45, ptr %12, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = call <2 x float> @_ZNK6ImRect5GetBREv(ptr noundef nonnull align 4 dereferenceable(16) %46)
  store <2 x float> %47, ptr %13, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = call <2 x float> @_ZNK6ImRect5GetBLEv(ptr noundef nonnull align 4 dereferenceable(16) %48)
  store <2 x float> %49, ptr %14, align 4
  call void @llvm.lifetime.start.p0(i64 28, ptr %15) #5
  %50 = getelementptr inbounds %struct.ImCubicBezierPointsT, ptr %10, i32 0, i32 0
  %51 = getelementptr inbounds %struct.ImCubicBezierPointsT, ptr %10, i32 0, i32 1
  %52 = getelementptr inbounds %struct.ImCubicBezierPointsT, ptr %10, i32 0, i32 2
  %53 = getelementptr inbounds %struct.ImCubicBezierPointsT, ptr %10, i32 0, i32 3
  call void @_Z26ImCubicBezierLineIntersectRK6ImVec2S1_S1_S1_S1_S1_(ptr dead_on_unwind writable sret(%struct.ImCubicBezierIntersectResult) align 4 %15, ptr noundef nonnull align 4 dereferenceable(8) %50, ptr noundef nonnull align 4 dereferenceable(8) %51, ptr noundef nonnull align 4 dereferenceable(8) %52, ptr noundef nonnull align 4 dereferenceable(8) %53, ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %12)
  %54 = getelementptr inbounds %struct.ImCubicBezierIntersectResult, ptr %15, i32 0, i32 0
  %55 = load i32, ptr %54, align 4, !tbaa !15
  %56 = icmp sgt i32 %55, 0
  call void @llvm.lifetime.end.p0(i64 28, ptr %15) #5
  br i1 %56, label %57, label %58

57:                                               ; preds = %41
  store i1 true, ptr %4, align 1
  store i32 1, ptr %9, align 4
  br label %86

58:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 28, ptr %16) #5
  %59 = getelementptr inbounds %struct.ImCubicBezierPointsT, ptr %10, i32 0, i32 0
  %60 = getelementptr inbounds %struct.ImCubicBezierPointsT, ptr %10, i32 0, i32 1
  %61 = getelementptr inbounds %struct.ImCubicBezierPointsT, ptr %10, i32 0, i32 2
  %62 = getelementptr inbounds %struct.ImCubicBezierPointsT, ptr %10, i32 0, i32 3
  call void @_Z26ImCubicBezierLineIntersectRK6ImVec2S1_S1_S1_S1_S1_(ptr dead_on_unwind writable sret(%struct.ImCubicBezierIntersectResult) align 4 %16, ptr noundef nonnull align 4 dereferenceable(8) %59, ptr noundef nonnull align 4 dereferenceable(8) %60, ptr noundef nonnull align 4 dereferenceable(8) %61, ptr noundef nonnull align 4 dereferenceable(8) %62, ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %13)
  %63 = getelementptr inbounds %struct.ImCubicBezierIntersectResult, ptr %16, i32 0, i32 0
  %64 = load i32, ptr %63, align 4, !tbaa !15
  %65 = icmp sgt i32 %64, 0
  call void @llvm.lifetime.end.p0(i64 28, ptr %16) #5
  br i1 %65, label %66, label %67

66:                                               ; preds = %58
  store i1 true, ptr %4, align 1
  store i32 1, ptr %9, align 4
  br label %86

67:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 28, ptr %17) #5
  %68 = getelementptr inbounds %struct.ImCubicBezierPointsT, ptr %10, i32 0, i32 0
  %69 = getelementptr inbounds %struct.ImCubicBezierPointsT, ptr %10, i32 0, i32 1
  %70 = getelementptr inbounds %struct.ImCubicBezierPointsT, ptr %10, i32 0, i32 2
  %71 = getelementptr inbounds %struct.ImCubicBezierPointsT, ptr %10, i32 0, i32 3
  call void @_Z26ImCubicBezierLineIntersectRK6ImVec2S1_S1_S1_S1_S1_(ptr dead_on_unwind writable sret(%struct.ImCubicBezierIntersectResult) align 4 %17, ptr noundef nonnull align 4 dereferenceable(8) %68, ptr noundef nonnull align 4 dereferenceable(8) %69, ptr noundef nonnull align 4 dereferenceable(8) %70, ptr noundef nonnull align 4 dereferenceable(8) %71, ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %14)
  %72 = getelementptr inbounds %struct.ImCubicBezierIntersectResult, ptr %17, i32 0, i32 0
  %73 = load i32, ptr %72, align 4, !tbaa !15
  %74 = icmp sgt i32 %73, 0
  call void @llvm.lifetime.end.p0(i64 28, ptr %17) #5
  br i1 %74, label %75, label %76

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

76:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 28, ptr %18) #5
  %77 = getelementptr inbounds %struct.ImCubicBezierPointsT, ptr %10, i32 0, i32 0
  %78 = getelementptr inbounds %struct.ImCubicBezierPointsT, ptr %10, i32 0, i32 1
  %79 = getelementptr inbounds %struct.ImCubicBezierPointsT, ptr %10, i32 0, i32 2
  %80 = getelementptr inbounds %struct.ImCubicBezierPointsT, ptr %10, i32 0, i32 3
  call void @_Z26ImCubicBezierLineIntersectRK6ImVec2S1_S1_S1_S1_S1_(ptr dead_on_unwind writable sret(%struct.ImCubicBezierIntersectResult) align 4 %18, ptr noundef nonnull align 4 dereferenceable(8) %77, ptr noundef nonnull align 4 dereferenceable(8) %78, ptr noundef nonnull align 4 dereferenceable(8) %79, ptr noundef nonnull align 4 dereferenceable(8) %80, ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %11)
  %81 = getelementptr inbounds %struct.ImCubicBezierIntersectResult, ptr %18, i32 0, i32 0
  %82 = load i32, ptr %81, align 4, !tbaa !15
  %83 = icmp sgt i32 %82, 0
  call void @llvm.lifetime.end.p0(i64 28, ptr %18) #5
  br i1 %83, label %84, label %85

84:                                               ; preds = %76
  store i1 true, ptr %4, align 1
  store i32 1, ptr %9, align 4
  br label %86

85:                                               ; preds = %76
  store i1 false, ptr %4, align 1
  store i32 1, ptr %9, align 4
  br label %86

86:                                               ; preds = %85, %84, %75, %66, %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #5
  br label %87

87:                                               ; preds = %86, %40, %33
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  br label %88

88:                                               ; preds = %87, %24
  %89 = load i1, ptr %4, align 1
  ret i1 %89
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZNK6ImRect5GetTLEv(ptr noundef nonnull align 4 dereferenceable(16)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZNK6ImRect5GetTREv(ptr noundef nonnull align 4 dereferenceable(16)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZNK6ImRect5GetBREv(ptr noundef nonnull align 4 dereferenceable(16)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZNK6ImRect5GetBLEv(ptr noundef nonnull align 4 dereferenceable(16)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z26ImCubicBezierLineIntersectRK6ImVec2S1_S1_S1_S1_S1_(ptr dead_on_unwind noalias writable sret(%struct.ImCubicBezierIntersectResult) align 4, ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="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 = { 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 #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !10, i64 16}
!12 = !{!"_ZTSN3vox10NodeEditor6Detail6ObjectE", !6, i64 8, !10, i64 16}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !17, i64 0}
!16 = !{!"_ZTS28ImCubicBezierIntersectResult", !17, i64 0, !7, i64 4}
!17 = !{!"int", !7, i64 0}


; 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.ImCubicBezierPointsT = type { %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2 }
%struct.ImVec2 = type { float, float }
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImCubicBezierIntersectResult = type { i32, [3 x %struct.ImVec2] }

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3vox10NodeEditor6Detail4Link8GetCurveEv(ptr dead_on_unwind noalias writable sret(%struct.ImCubicBezierPointsT) align 4, ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZNK3vox10NodeEditor6Detail4Link9GetBoundsEv(ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK3vox10NodeEditor6Detail4Link7TestHitERK6ImRectb(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef nonnull align 4 dereferenceable(16) %1, i1 noundef zeroext %2) unnamed_addr #1 align 2 {
  %4 = alloca %struct.ImRect, align 8
  %5 = alloca %struct.ImCubicBezierPointsT, align 4
  %6 = alloca %struct.ImVec2, align 8
  %7 = alloca %struct.ImVec2, align 8
  %8 = alloca %struct.ImVec2, align 8
  %9 = alloca %struct.ImVec2, align 8
  %10 = alloca %struct.ImCubicBezierIntersectResult, align 4
  %11 = alloca %struct.ImCubicBezierIntersectResult, align 4
  %12 = alloca %struct.ImCubicBezierIntersectResult, align 4
  %13 = alloca %struct.ImCubicBezierIntersectResult, align 4
  %14 = getelementptr inbounds i8, ptr %0, i64 16
  %15 = load i8, ptr %14, align 8, !tbaa !5, !range !11, !noundef !12
  %16 = trunc nuw i8 %15 to i1
  br i1 %16, label %17, label %46

17:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  %18 = tail call { <2 x float>, <2 x float> } @_ZNK3vox10NodeEditor6Detail4Link9GetBoundsEv(ptr noundef nonnull align 8 dereferenceable(72) %0)
  %19 = extractvalue { <2 x float>, <2 x float> } %18, 0
  store <2 x float> %19, ptr %4, align 8
  %20 = getelementptr inbounds i8, ptr %4, i64 8
  %21 = extractvalue { <2 x float>, <2 x float> } %18, 1
  store <2 x float> %21, ptr %20, align 8
  %22 = call noundef zeroext i1 @_ZNK6ImRect8ContainsERKS_(ptr noundef nonnull align 4 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(16) %4)
  %.not = xor i1 %2, true
  %brmerge = or i1 %22, %.not
  br i1 %brmerge, label %45, label %23

23:                                               ; preds = %17
  %24 = call noundef zeroext i1 @_ZNK6ImRect8OverlapsERKS_(ptr noundef nonnull align 4 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(16) %4)
  br i1 %24, label %25, label %45

25:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #5
  call void @_ZNK3vox10NodeEditor6Detail4Link8GetCurveEv(ptr dead_on_unwind nonnull writable sret(%struct.ImCubicBezierPointsT) align 4 %5, ptr noundef nonnull align 8 dereferenceable(72) %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %26 = call <2 x float> @_ZNK6ImRect5GetTLEv(ptr noundef nonnull align 4 dereferenceable(16) %1)
  store <2 x float> %26, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %27 = call <2 x float> @_ZNK6ImRect5GetTREv(ptr noundef nonnull align 4 dereferenceable(16) %1)
  store <2 x float> %27, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %28 = call <2 x float> @_ZNK6ImRect5GetBREv(ptr noundef nonnull align 4 dereferenceable(16) %1)
  store <2 x float> %28, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %29 = call <2 x float> @_ZNK6ImRect5GetBLEv(ptr noundef nonnull align 4 dereferenceable(16) %1)
  store <2 x float> %29, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %10) #5
  %30 = getelementptr inbounds i8, ptr %5, i64 8
  %31 = getelementptr inbounds i8, ptr %5, i64 16
  %32 = getelementptr inbounds i8, ptr %5, i64 24
  call void @_Z26ImCubicBezierLineIntersectRK6ImVec2S1_S1_S1_S1_S1_(ptr dead_on_unwind nonnull writable sret(%struct.ImCubicBezierIntersectResult) align 4 %10, ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %30, ptr noundef nonnull align 4 dereferenceable(8) %31, ptr noundef nonnull align 4 dereferenceable(8) %32, ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %7)
  %33 = load i32, ptr %10, align 4, !tbaa !13
  %34 = icmp sgt i32 %33, 0
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %10) #5
  br i1 %34, label %44, label %35

35:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %11) #5
  call void @_Z26ImCubicBezierLineIntersectRK6ImVec2S1_S1_S1_S1_S1_(ptr dead_on_unwind nonnull writable sret(%struct.ImCubicBezierIntersectResult) align 4 %11, ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %30, ptr noundef nonnull align 4 dereferenceable(8) %31, ptr noundef nonnull align 4 dereferenceable(8) %32, ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %8)
  %36 = load i32, ptr %11, align 4, !tbaa !13
  %37 = icmp sgt i32 %36, 0
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %11) #5
  br i1 %37, label %44, label %38

38:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %12) #5
  call void @_Z26ImCubicBezierLineIntersectRK6ImVec2S1_S1_S1_S1_S1_(ptr dead_on_unwind nonnull writable sret(%struct.ImCubicBezierIntersectResult) align 4 %12, ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %30, ptr noundef nonnull align 4 dereferenceable(8) %31, ptr noundef nonnull align 4 dereferenceable(8) %32, ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %9)
  %39 = load i32, ptr %12, align 4, !tbaa !13
  %40 = icmp sgt i32 %39, 0
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %12) #5
  br i1 %40, label %44, label %41

41:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %13) #5
  call void @_Z26ImCubicBezierLineIntersectRK6ImVec2S1_S1_S1_S1_S1_(ptr dead_on_unwind nonnull writable sret(%struct.ImCubicBezierIntersectResult) align 4 %13, ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %30, ptr noundef nonnull align 4 dereferenceable(8) %31, ptr noundef nonnull align 4 dereferenceable(8) %32, ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %6)
  %42 = load i32, ptr %13, align 4, !tbaa !13
  %43 = icmp sgt i32 %42, 0
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %13) #5
  br label %44

44:                                               ; preds = %41, %38, %35, %25
  %.0 = phi i1 [ true, %25 ], [ true, %35 ], [ true, %38 ], [ %43, %41 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  br label %45

45:                                               ; preds = %17, %23, %44
  %.1 = phi i1 [ %.0, %44 ], [ %22, %17 ], [ false, %23 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  br label %46

46:                                               ; preds = %3, %45
  %.2 = phi i1 [ %.1, %45 ], [ false, %3 ]
  ret i1 %.2
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6ImRect8ContainsERKS_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6ImRect8OverlapsERKS_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZNK6ImRect5GetTLEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZNK6ImRect5GetTREv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZNK6ImRect5GetBREv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZNK6ImRect5GetBLEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z26ImCubicBezierLineIntersectRK6ImVec2S1_S1_S1_S1_S1_(ptr dead_on_unwind noalias writable sret(%struct.ImCubicBezierIntersectResult) align 4, ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="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 = { 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 #5 = { 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, !10, i64 16}
!6 = !{!"_ZTSN3vox10NodeEditor6Detail6ObjectE", !7, i64 8, !10, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTS28ImCubicBezierIntersectResult", !15, i64 0, !8, i64 4}
!15 = !{!"int", !8, i64 0}


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