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

; 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.vox::NodeEditor::Detail::Node" = type <{ %"struct.vox::NodeEditor::Detail::Object.base", [7 x i8], %"struct.vox::NodeEditor::NodeId", i32, %struct.ImRect, i32, ptr, %struct.ImVec2, i32, i32, float, float, i32, i32, float, float, %struct.ImRect, i8, i8, [6 x i8] }>
%"struct.vox::NodeEditor::Detail::Object.base" = type <{ ptr, ptr, i8 }>
%"struct.vox::NodeEditor::NodeId" = type { %"struct.vox::NodeEditor::Details::SafePointerType.6" }
%"struct.vox::NodeEditor::Details::SafePointerType.6" = type { %"struct.vox::NodeEditor::Details::SafeType.7" }
%"struct.vox::NodeEditor::Details::SafeType.7" = type { i64 }

@_ZZNK3vox10NodeEditor6Detail4Node9GetRegionERK6ImVec2E9c_Regions = external hidden constant [10 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: mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZNK3vox10NodeEditor6Detail4Node15GetRegionBoundsENS1_10NodeRegionE(ptr noundef nonnull align 8 dereferenceable(128), i8 noundef zeroext) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i8 @_ZNK3vox10NodeEditor6Detail4Node9GetRegionERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 4 dereferenceable(8) %1) #2 align 2 {
  %3 = alloca i8, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i8, align 1
  %11 = alloca %struct.ImRect, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %12 = load ptr, ptr %4, align 8
  %13 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Node", ptr %12, i32 0, i32 3
  %14 = load i32, ptr %13, align 8, !tbaa !9
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %16, label %22

16:                                               ; preds = %2
  %17 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Node", ptr %12, i32 0, i32 4
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = call noundef zeroext i1 @_ZNK6ImRect8ContainsERK6ImVec2(ptr noundef nonnull align 4 dereferenceable(16) %17, ptr noundef nonnull align 4 dereferenceable(8) %18)
  br i1 %19, label %20, label %21

20:                                               ; preds = %16
  store i8 32, ptr %3, align 1
  br label %60

21:                                               ; preds = %16
  store i8 0, ptr %3, align 1
  br label %60

22:                                               ; preds = %2
  %23 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Node", ptr %12, i32 0, i32 3
  %24 = load i32, ptr %23, align 8, !tbaa !9
  %25 = icmp eq i32 %24, 1
  br i1 %25, label %26, label %58

26:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store ptr @_ZZNK3vox10NodeEditor6Detail4Node9GetRegionERK6ImVec2E9c_Regions, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store ptr @_ZZNK3vox10NodeEditor6Detail4Node9GetRegionERK6ImVec2E9c_Regions, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  store ptr getelementptr inbounds (i8, ptr @_ZZNK3vox10NodeEditor6Detail4Node9GetRegionERK6ImVec2E9c_Regions, i64 10), ptr %8, align 8, !tbaa !5
  br label %27

27:                                               ; preds = %52, %26
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = icmp ne ptr %28, %29
  br i1 %30, label %32, label %31

31:                                               ; preds = %27
  store i32 2, ptr %9, align 4
  br label %55

32:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #4
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = load i8, ptr %33, align 1, !tbaa !22
  store i8 %34, ptr %10, align 1, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #4
  %35 = load i8, ptr %10, align 1, !tbaa !22
  %36 = call { <2 x float>, <2 x float> } @_ZNK3vox10NodeEditor6Detail4Node15GetRegionBoundsENS1_10NodeRegionE(ptr noundef nonnull align 8 dereferenceable(128) %12, i8 noundef zeroext %35)
  %37 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %11, i32 0, i32 0
  %38 = extractvalue { <2 x float>, <2 x float> } %36, 0
  store <2 x float> %38, ptr %37, align 4
  %39 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %11, i32 0, i32 1
  %40 = extractvalue { <2 x float>, <2 x float> } %36, 1
  store <2 x float> %40, ptr %39, align 4
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = call noundef zeroext i1 @_ZNK6ImRect8ContainsERK6ImVec2(ptr noundef nonnull align 4 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(8) %41)
  br i1 %42, label %43, label %45

43:                                               ; preds = %32
  %44 = load i8, ptr %10, align 1, !tbaa !22
  store i8 %44, ptr %3, align 1
  store i32 1, ptr %9, align 4
  br label %46

45:                                               ; preds = %32
  store i32 0, ptr %9, align 4
  br label %46

46:                                               ; preds = %45, %43
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #4
  %47 = load i32, ptr %9, align 4
  switch i32 %47, label %49 [
    i32 0, label %48
  ]

48:                                               ; preds = %46
  store i32 0, ptr %9, align 4
  br label %49

49:                                               ; preds = %48, %46
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  %50 = load i32, ptr %9, align 4
  switch i32 %50, label %55 [
    i32 0, label %51
  ]

51:                                               ; preds = %49
  br label %52

52:                                               ; preds = %51
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %53, i32 1
  store ptr %54, ptr %7, align 8, !tbaa !5
  br label %27

55:                                               ; preds = %49, %31
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  %56 = load i32, ptr %9, align 4
  switch i32 %56, label %62 [
    i32 2, label %57
    i32 1, label %60
  ]

57:                                               ; preds = %55
  br label %58

58:                                               ; preds = %57, %22
  br label %59

59:                                               ; preds = %58
  store i8 0, ptr %3, align 1
  br label %60

60:                                               ; preds = %59, %55, %21, %20
  %61 = load i8, ptr %3, align 1
  ret i8 %61

62:                                               ; preds = %55
  unreachable
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 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 #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, !17, i64 32}
!10 = !{!"_ZTSN3vox10NodeEditor6Detail4NodeE", !11, i64 0, !13, i64 24, !17, i64 32, !18, i64 36, !21, i64 52, !6, i64 56, !19, i64 64, !21, i64 72, !21, i64 76, !20, i64 80, !20, i64 84, !21, i64 88, !21, i64 92, !20, i64 96, !20, i64 100, !18, i64 104, !12, i64 120, !12, i64 121}
!11 = !{!"_ZTSN3vox10NodeEditor6Detail6ObjectE", !6, i64 8, !12, i64 16}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTSN3vox10NodeEditor6NodeIdE", !14, i64 0}
!14 = !{!"_ZTSN3vox10NodeEditor7Details15SafePointerTypeINS0_6NodeIdEEE", !15, i64 0}
!15 = !{!"_ZTSN3vox10NodeEditor7Details8SafeTypeImNS0_6NodeIdEEE", !16, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_ZTSN3vox10NodeEditor6Detail8NodeTypeE", !7, i64 0}
!18 = !{!"_ZTS6ImRect", !19, i64 0, !19, i64 8}
!19 = !{!"_ZTS6ImVec2", !20, i64 0, !20, i64 4}
!20 = !{!"float", !7, i64 0}
!21 = !{!"int", !7, i64 0}
!22 = !{!23, !23, i64 0}
!23 = !{!"_ZTSN3vox10NodeEditor6Detail10NodeRegionE", !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.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImVec2 = type { float, float }

@_ZZNK3vox10NodeEditor6Detail4Node9GetRegionERK6ImVec2E9c_Regions = external hidden local_unnamed_addr constant [10 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 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 { <2 x float>, <2 x float> } @_ZNK3vox10NodeEditor6Detail4Node15GetRegionBoundsENS1_10NodeRegionE(ptr noundef nonnull align 8 dereferenceable(128), i8 noundef zeroext) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i8 @_ZNK3vox10NodeEditor6Detail4Node9GetRegionERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 4 dereferenceable(8) %1) local_unnamed_addr #2 align 2 {
  %3 = alloca %struct.ImRect, align 8
  %4 = getelementptr inbounds i8, ptr %0, i64 32
  %5 = load i32, ptr %4, align 8, !tbaa !5
  switch i32 %5, label %.thread [
    i32 0, label %12
    i32 1, label %.preheader
  ]

.preheader:                                       ; preds = %2
  %6 = getelementptr inbounds i8, ptr %3, i64 8
  %7 = load i8, ptr @_ZZNK3vox10NodeEditor6Detail4Node9GetRegionERK6ImVec2E9c_Regions, align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #4
  %8 = tail call { <2 x float>, <2 x float> } @_ZNK3vox10NodeEditor6Detail4Node15GetRegionBoundsENS1_10NodeRegionE(ptr noundef nonnull align 8 dereferenceable(128) %0, i8 noundef zeroext %7)
  %9 = extractvalue { <2 x float>, <2 x float> } %8, 0
  store <2 x float> %9, ptr %3, align 8
  %10 = extractvalue { <2 x float>, <2 x float> } %8, 1
  store <2 x float> %10, ptr %6, align 8
  %11 = call noundef zeroext i1 @_ZNK6ImRect8ContainsERK6ImVec2(ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(8) %1)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #4
  br i1 %11, label %.thread, label %15

12:                                               ; preds = %2
  %13 = getelementptr inbounds i8, ptr %0, i64 36
  %14 = tail call noundef zeroext i1 @_ZNK6ImRect8ContainsERK6ImVec2(ptr noundef nonnull align 4 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(8) %1)
  %. = select i1 %14, i8 32, i8 0
  br label %.thread

15:                                               ; preds = %.preheader
  %16 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZNK3vox10NodeEditor6Detail4Node9GetRegionERK6ImVec2E9c_Regions, i64 1), align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #4
  %17 = call { <2 x float>, <2 x float> } @_ZNK3vox10NodeEditor6Detail4Node15GetRegionBoundsENS1_10NodeRegionE(ptr noundef nonnull align 8 dereferenceable(128) %0, i8 noundef zeroext %16)
  %18 = extractvalue { <2 x float>, <2 x float> } %17, 0
  store <2 x float> %18, ptr %3, align 8
  %19 = extractvalue { <2 x float>, <2 x float> } %17, 1
  store <2 x float> %19, ptr %6, align 8
  %20 = call noundef zeroext i1 @_ZNK6ImRect8ContainsERK6ImVec2(ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(8) %1)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #4
  br i1 %20, label %.thread, label %21

21:                                               ; preds = %15
  %22 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZNK3vox10NodeEditor6Detail4Node9GetRegionERK6ImVec2E9c_Regions, i64 2), align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #4
  %23 = call { <2 x float>, <2 x float> } @_ZNK3vox10NodeEditor6Detail4Node15GetRegionBoundsENS1_10NodeRegionE(ptr noundef nonnull align 8 dereferenceable(128) %0, i8 noundef zeroext %22)
  %24 = extractvalue { <2 x float>, <2 x float> } %23, 0
  store <2 x float> %24, ptr %3, align 8
  %25 = extractvalue { <2 x float>, <2 x float> } %23, 1
  store <2 x float> %25, ptr %6, align 8
  %26 = call noundef zeroext i1 @_ZNK6ImRect8ContainsERK6ImVec2(ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(8) %1)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #4
  br i1 %26, label %.thread, label %27

27:                                               ; preds = %21
  %28 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZNK3vox10NodeEditor6Detail4Node9GetRegionERK6ImVec2E9c_Regions, i64 3), align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #4
  %29 = call { <2 x float>, <2 x float> } @_ZNK3vox10NodeEditor6Detail4Node15GetRegionBoundsENS1_10NodeRegionE(ptr noundef nonnull align 8 dereferenceable(128) %0, i8 noundef zeroext %28)
  %30 = extractvalue { <2 x float>, <2 x float> } %29, 0
  store <2 x float> %30, ptr %3, align 8
  %31 = extractvalue { <2 x float>, <2 x float> } %29, 1
  store <2 x float> %31, ptr %6, align 8
  %32 = call noundef zeroext i1 @_ZNK6ImRect8ContainsERK6ImVec2(ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(8) %1)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #4
  br i1 %32, label %.thread, label %33

33:                                               ; preds = %27
  %34 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZNK3vox10NodeEditor6Detail4Node9GetRegionERK6ImVec2E9c_Regions, i64 4), align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #4
  %35 = call { <2 x float>, <2 x float> } @_ZNK3vox10NodeEditor6Detail4Node15GetRegionBoundsENS1_10NodeRegionE(ptr noundef nonnull align 8 dereferenceable(128) %0, i8 noundef zeroext %34)
  %36 = extractvalue { <2 x float>, <2 x float> } %35, 0
  store <2 x float> %36, ptr %3, align 8
  %37 = extractvalue { <2 x float>, <2 x float> } %35, 1
  store <2 x float> %37, ptr %6, align 8
  %38 = call noundef zeroext i1 @_ZNK6ImRect8ContainsERK6ImVec2(ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(8) %1)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #4
  br i1 %38, label %.thread, label %39

39:                                               ; preds = %33
  %40 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZNK3vox10NodeEditor6Detail4Node9GetRegionERK6ImVec2E9c_Regions, i64 5), align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #4
  %41 = call { <2 x float>, <2 x float> } @_ZNK3vox10NodeEditor6Detail4Node15GetRegionBoundsENS1_10NodeRegionE(ptr noundef nonnull align 8 dereferenceable(128) %0, i8 noundef zeroext %40)
  %42 = extractvalue { <2 x float>, <2 x float> } %41, 0
  store <2 x float> %42, ptr %3, align 8
  %43 = extractvalue { <2 x float>, <2 x float> } %41, 1
  store <2 x float> %43, ptr %6, align 8
  %44 = call noundef zeroext i1 @_ZNK6ImRect8ContainsERK6ImVec2(ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(8) %1)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #4
  br i1 %44, label %.thread, label %45

45:                                               ; preds = %39
  %46 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZNK3vox10NodeEditor6Detail4Node9GetRegionERK6ImVec2E9c_Regions, i64 6), align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #4
  %47 = call { <2 x float>, <2 x float> } @_ZNK3vox10NodeEditor6Detail4Node15GetRegionBoundsENS1_10NodeRegionE(ptr noundef nonnull align 8 dereferenceable(128) %0, i8 noundef zeroext %46)
  %48 = extractvalue { <2 x float>, <2 x float> } %47, 0
  store <2 x float> %48, ptr %3, align 8
  %49 = extractvalue { <2 x float>, <2 x float> } %47, 1
  store <2 x float> %49, ptr %6, align 8
  %50 = call noundef zeroext i1 @_ZNK6ImRect8ContainsERK6ImVec2(ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(8) %1)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #4
  br i1 %50, label %.thread, label %51

51:                                               ; preds = %45
  %52 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZNK3vox10NodeEditor6Detail4Node9GetRegionERK6ImVec2E9c_Regions, i64 7), align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #4
  %53 = call { <2 x float>, <2 x float> } @_ZNK3vox10NodeEditor6Detail4Node15GetRegionBoundsENS1_10NodeRegionE(ptr noundef nonnull align 8 dereferenceable(128) %0, i8 noundef zeroext %52)
  %54 = extractvalue { <2 x float>, <2 x float> } %53, 0
  store <2 x float> %54, ptr %3, align 8
  %55 = extractvalue { <2 x float>, <2 x float> } %53, 1
  store <2 x float> %55, ptr %6, align 8
  %56 = call noundef zeroext i1 @_ZNK6ImRect8ContainsERK6ImVec2(ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(8) %1)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #4
  br i1 %56, label %.thread, label %57

57:                                               ; preds = %51
  %58 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZNK3vox10NodeEditor6Detail4Node9GetRegionERK6ImVec2E9c_Regions, i64 8), align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #4
  %59 = call { <2 x float>, <2 x float> } @_ZNK3vox10NodeEditor6Detail4Node15GetRegionBoundsENS1_10NodeRegionE(ptr noundef nonnull align 8 dereferenceable(128) %0, i8 noundef zeroext %58)
  %60 = extractvalue { <2 x float>, <2 x float> } %59, 0
  store <2 x float> %60, ptr %3, align 8
  %61 = extractvalue { <2 x float>, <2 x float> } %59, 1
  store <2 x float> %61, ptr %6, align 8
  %62 = call noundef zeroext i1 @_ZNK6ImRect8ContainsERK6ImVec2(ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(8) %1)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #4
  br i1 %62, label %.thread, label %63

63:                                               ; preds = %57
  %64 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZNK3vox10NodeEditor6Detail4Node9GetRegionERK6ImVec2E9c_Regions, i64 9), align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #4
  %65 = call { <2 x float>, <2 x float> } @_ZNK3vox10NodeEditor6Detail4Node15GetRegionBoundsENS1_10NodeRegionE(ptr noundef nonnull align 8 dereferenceable(128) %0, i8 noundef zeroext %64)
  %66 = extractvalue { <2 x float>, <2 x float> } %65, 0
  store <2 x float> %66, ptr %3, align 8
  %67 = extractvalue { <2 x float>, <2 x float> } %65, 1
  store <2 x float> %67, ptr %6, align 8
  %68 = call noundef zeroext i1 @_ZNK6ImRect8ContainsERK6ImVec2(ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(8) %1)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #4
  %spec.select = select i1 %68, i8 %64, i8 0
  br label %.thread

.thread:                                          ; preds = %63, %.preheader, %15, %21, %27, %33, %39, %45, %51, %57, %2, %12
  %.3 = phi i8 [ %., %12 ], [ 0, %2 ], [ %7, %.preheader ], [ %16, %15 ], [ %22, %21 ], [ %28, %27 ], [ %34, %33 ], [ %40, %39 ], [ %46, %45 ], [ %52, %51 ], [ %58, %57 ], [ %spec.select, %63 ]
  ret i8 %.3
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 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 #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, !16, i64 32}
!6 = !{!"_ZTSN3vox10NodeEditor6Detail4NodeE", !7, i64 0, !12, i64 24, !16, i64 32, !17, i64 36, !20, i64 52, !8, i64 56, !18, i64 64, !20, i64 72, !20, i64 76, !19, i64 80, !19, i64 84, !20, i64 88, !20, i64 92, !19, i64 96, !19, i64 100, !17, i64 104, !11, i64 120, !11, i64 121}
!7 = !{!"_ZTSN3vox10NodeEditor6Detail6ObjectE", !8, i64 8, !11, i64 16}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"bool", !9, i64 0}
!12 = !{!"_ZTSN3vox10NodeEditor6NodeIdE", !13, i64 0}
!13 = !{!"_ZTSN3vox10NodeEditor7Details15SafePointerTypeINS0_6NodeIdEEE", !14, i64 0}
!14 = !{!"_ZTSN3vox10NodeEditor7Details8SafeTypeImNS0_6NodeIdEEE", !15, i64 0}
!15 = !{!"long", !9, i64 0}
!16 = !{!"_ZTSN3vox10NodeEditor6Detail8NodeTypeE", !9, i64 0}
!17 = !{!"_ZTS6ImRect", !18, i64 0, !18, i64 8}
!18 = !{!"_ZTS6ImVec2", !19, i64 0, !19, i64 4}
!19 = !{!"float", !9, i64 0}
!20 = !{!"int", !9, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"_ZTSN3vox10NodeEditor6Detail10NodeRegionE", !9, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,SROAPass,SimplifyCFGPass,TailCallElimPass