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

; 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.ImVec2 = type { float, float }
%"struct.vox::NodeEditor::Detail::SizeAction" = type { %"struct.vox::NodeEditor::Detail::EditorAction", i8, i8, ptr, %struct.ImRect, %struct.ImRect, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, i32 }
%"struct.vox::NodeEditor::Detail::EditorAction" = type { ptr, ptr }
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%"struct.vox::NodeEditor::Detail::Control" = type <{ ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, [4 x i8] }>
%"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 }

@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [12 x i8], align 1
@__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail10SizeAction6AcceptERKNS1_7ControlE = external hidden unnamed_addr constant [100 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: mustprogress uwtable
declare dso_local <2 x float> @_ZNK6ImRect7GetSizeEv(ptr noundef nonnull align 4 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL7IsGroupPKN3vox10NodeEditor6Detail4NodeE(ptr noundef) #3

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

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

declare noundef zeroext i1 @_ZN5ImGui15IsMouseDraggingEif(i32 noundef, float noundef) #5

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN3vox10NodeEditor6Detail10SizeAction6AcceptERKNS1_7ControlE(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef nonnull align 8 dereferenceable(132) %1) unnamed_addr #2 align 2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca %struct.ImVec2, align 4
  %8 = alloca %struct.ImVec2, align 4
  %9 = alloca %struct.ImVec2, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %10 = load ptr, ptr %4, align 8
  %11 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::SizeAction", ptr %10, i32 0, i32 1
  %12 = load i8, ptr %11, align 8, !tbaa !9, !range !18, !noundef !19
  %13 = trunc i8 %12 to i1
  %14 = xor i1 %13, true
  br i1 %14, label %15, label %16

15:                                               ; preds = %2
  br label %18

16:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str.30, ptr noundef @.str.1, i32 noundef 2902, ptr noundef @__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail10SizeAction6AcceptERKNS1_7ControlE) #6
  unreachable

17:                                               ; No predecessors!
  br label %18

18:                                               ; preds = %17, %15
  %19 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::SizeAction", ptr %10, i32 0, i32 1
  %20 = load i8, ptr %19, align 8, !tbaa !9, !range !18, !noundef !19
  %21 = trunc i8 %20 to i1
  br i1 %21, label %22, label %23

22:                                               ; preds = %18
  store i32 0, ptr %3, align 4
  br label %100

23:                                               ; preds = %18
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Control", ptr %24, i32 0, i32 5
  %26 = load ptr, ptr %25, align 8, !tbaa !20
  %27 = icmp ne ptr %26, null
  br i1 %27, label %28, label %76

28:                                               ; preds = %23
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Control", ptr %29, i32 0, i32 5
  %31 = load ptr, ptr %30, align 8, !tbaa !20
  %32 = call noundef zeroext i1 @_ZL7IsGroupPKN3vox10NodeEditor6Detail4NodeE(ptr noundef %31)
  br i1 %32, label %33, label %76

33:                                               ; preds = %28
  %34 = call noundef zeroext i1 @_ZN5ImGui15IsMouseDraggingEif(i32 noundef 0, float noundef 0.000000e+00)
  br i1 %34, label %35, label %76

35:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #7
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Control", ptr %36, i32 0, i32 5
  %38 = load ptr, ptr %37, align 8, !tbaa !20
  %39 = call noundef zeroext i8 @_ZN3vox10NodeEditor6Detail10SizeAction9GetRegionEPNS1_4NodeE(ptr noundef nonnull align 8 dereferenceable(96) %10, ptr noundef %38)
  store i8 %39, ptr %6, align 1, !tbaa !22
  %40 = load i8, ptr %6, align 1, !tbaa !22
  %41 = icmp ne i8 %40, 32
  br i1 %41, label %42, label %75

42:                                               ; preds = %35
  %43 = load i8, ptr %6, align 1, !tbaa !22
  %44 = icmp ne i8 %43, 16
  br i1 %44, label %45, label %75

45:                                               ; preds = %42
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Control", ptr %46, i32 0, i32 5
  %48 = load ptr, ptr %47, align 8, !tbaa !20
  %49 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Node", ptr %48, i32 0, i32 4
  %50 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::SizeAction", ptr %10, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %50, ptr align 4 %49, i64 16, i1 false), !tbaa.struct !23
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Control", ptr %51, i32 0, i32 5
  %53 = load ptr, ptr %52, align 8, !tbaa !20
  %54 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Node", ptr %53, i32 0, i32 16
  %55 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::SizeAction", ptr %10, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %55, ptr align 8 %54, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Control", ptr %56, i32 0, i32 5
  %58 = load ptr, ptr %57, align 8, !tbaa !20
  %59 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Node", ptr %58, i32 0, i32 4
  %60 = call <2 x float> @_ZNK6ImRect7GetSizeEv(ptr noundef nonnull align 4 dereferenceable(16) %59)
  store <2 x float> %60, ptr %7, align 4
  %61 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::SizeAction", ptr %10, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %61, ptr align 4 %7, i64 8, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %8, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %62 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::SizeAction", ptr %10, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %62, ptr align 4 %8, i64 8, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %9, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %63 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::SizeAction", ptr %10, i32 0, i32 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %63, ptr align 4 %9, i64 8, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  %64 = load i8, ptr %6, align 1, !tbaa !22
  %65 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::SizeAction", ptr %10, i32 0, i32 9
  store i8 %64, ptr %65, align 8, !tbaa !26
  %66 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::SizeAction", ptr %10, i32 0, i32 9
  %67 = load i8, ptr %66, align 8, !tbaa !26
  %68 = call noundef i32 @_ZN3vox10NodeEditor6Detail10SizeAction12ChooseCursorENS1_10NodeRegionE(ptr noundef nonnull align 8 dereferenceable(96) %10, i8 noundef zeroext %67)
  %69 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::SizeAction", ptr %10, i32 0, i32 10
  store i32 %68, ptr %69, align 4, !tbaa !27
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Control", ptr %70, i32 0, i32 5
  %72 = load ptr, ptr %71, align 8, !tbaa !20
  %73 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::SizeAction", ptr %10, i32 0, i32 3
  store ptr %72, ptr %73, align 8, !tbaa !28
  %74 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::SizeAction", ptr %10, i32 0, i32 1
  store i8 1, ptr %74, align 8, !tbaa !9
  br label %75

75:                                               ; preds = %45, %42, %35
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #7
  br label %94

76:                                               ; preds = %33, %28, %23
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Control", ptr %77, i32 0, i32 4
  %79 = load ptr, ptr %78, align 8, !tbaa !29
  %80 = icmp ne ptr %79, null
  br i1 %80, label %81, label %93

81:                                               ; preds = %76
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Control", ptr %82, i32 0, i32 4
  %84 = load ptr, ptr %83, align 8, !tbaa !29
  %85 = call noundef zeroext i1 @_ZL7IsGroupPKN3vox10NodeEditor6Detail4NodeE(ptr noundef %84)
  br i1 %85, label %86, label %93

86:                                               ; preds = %81
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Control", ptr %87, i32 0, i32 4
  %89 = load ptr, ptr %88, align 8, !tbaa !29
  %90 = call noundef zeroext i8 @_ZN3vox10NodeEditor6Detail10SizeAction9GetRegionEPNS1_4NodeE(ptr noundef nonnull align 8 dereferenceable(96) %10, ptr noundef %89)
  %91 = call noundef i32 @_ZN3vox10NodeEditor6Detail10SizeAction12ChooseCursorENS1_10NodeRegionE(ptr noundef nonnull align 8 dereferenceable(96) %10, i8 noundef zeroext %90)
  %92 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::SizeAction", ptr %10, i32 0, i32 10
  store i32 %91, ptr %92, align 4, !tbaa !27
  store i32 2, ptr %3, align 4
  br label %100

93:                                               ; preds = %81, %76
  br label %94

94:                                               ; preds = %93, %75
  %95 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::SizeAction", ptr %10, i32 0, i32 1
  %96 = load i8, ptr %95, align 8, !tbaa !9, !range !18, !noundef !19
  %97 = trunc i8 %96 to i1
  %98 = zext i1 %97 to i64
  %99 = select i1 %97, i32 1, i32 0
  store i32 %99, ptr %3, align 4
  br label %100

100:                                              ; preds = %94, %86, %22
  %101 = load i32, ptr %3, align 4
  ret i32 %101
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i8 @_ZN3vox10NodeEditor6Detail10SizeAction9GetRegionEPNS1_4NodeE(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3vox10NodeEditor6Detail10SizeAction12ChooseCursorENS1_10NodeRegionE(ptr noundef nonnull align 8 dereferenceable(96), i8 noundef zeroext) #3 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #5 = { "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 = { noreturn nounwind }
attributes #7 = { 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, !12, i64 16}
!10 = !{!"_ZTSN3vox10NodeEditor6Detail10SizeActionE", !11, i64 0, !12, i64 16, !12, i64 17, !6, i64 24, !13, i64 32, !13, i64 48, !14, i64 64, !14, i64 72, !14, i64 80, !16, i64 88, !17, i64 92}
!11 = !{!"_ZTSN3vox10NodeEditor6Detail12EditorActionE", !6, i64 8}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTS6ImRect", !14, i64 0, !14, i64 8}
!14 = !{!"_ZTS6ImVec2", !15, i64 0, !15, i64 4}
!15 = !{!"float", !7, i64 0}
!16 = !{!"_ZTSN3vox10NodeEditor6Detail10NodeRegionE", !7, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!21, !6, i64 40}
!21 = !{!"_ZTSN3vox10NodeEditor6Detail7ControlE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !12, i64 128, !12, i64 129, !12, i64 130, !12, i64 131}
!22 = !{!16, !16, i64 0}
!23 = !{i64 0, i64 4, !24, i64 4, i64 4, !24, i64 8, i64 4, !24, i64 12, i64 4, !24}
!24 = !{!15, !15, i64 0}
!25 = !{i64 0, i64 4, !24, i64 4, i64 4, !24}
!26 = !{!10, !16, i64 88}
!27 = !{!10, !17, i64 92}
!28 = !{!10, !6, i64 24}
!29 = !{!21, !6, i64 32}


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

@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [12 x i8], align 1
@__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail10SizeAction6AcceptERKNS1_7ControlE = external hidden unnamed_addr constant [100 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 nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL7IsGroupPKN3vox10NodeEditor6Detail4NodeE(ptr noundef) local_unnamed_addr #3

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

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

declare noundef zeroext i1 @_ZN5ImGui15IsMouseDraggingEif(i32 noundef, float noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 3) i32 @_ZN3vox10NodeEditor6Detail10SizeAction6AcceptERKNS1_7ControlE(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(132) %1) unnamed_addr #2 align 2 {
  %3 = alloca %struct.ImVec2, align 8
  %4 = alloca %struct.ImVec2, align 8
  %5 = getelementptr inbounds i8, ptr %0, i64 16
  %6 = load i8, ptr %5, align 8, !tbaa !5, !range !17, !noundef !18
  %7 = trunc nuw i8 %6 to i1
  br i1 %7, label %8, label %9

8:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.30, ptr noundef nonnull @.str.1, i32 noundef 2902, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail10SizeAction6AcceptERKNS1_7ControlE) #6
  unreachable

9:                                                ; preds = %2
  %10 = getelementptr inbounds i8, ptr %1, i64 40
  %11 = load ptr, ptr %10, align 8, !tbaa !19
  %.not = icmp eq ptr %11, null
  br i1 %.not, label %39, label %12

12:                                               ; preds = %9
  %13 = tail call noundef zeroext i1 @_ZL7IsGroupPKN3vox10NodeEditor6Detail4NodeE(ptr noundef nonnull %11)
  br i1 %13, label %14, label %39

14:                                               ; preds = %12
  %15 = tail call noundef zeroext i1 @_ZN5ImGui15IsMouseDraggingEif(i32 noundef 0, float noundef 0.000000e+00)
  br i1 %15, label %16, label %39

16:                                               ; preds = %14
  %17 = load ptr, ptr %10, align 8, !tbaa !19
  %18 = tail call noundef zeroext i8 @_ZN3vox10NodeEditor6Detail10SizeAction9GetRegionEPNS1_4NodeE(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef %17)
  switch i8 %18, label %19 [
    i8 32, label %49
    i8 16, label %49
  ]

19:                                               ; preds = %16
  %20 = load ptr, ptr %10, align 8, !tbaa !19
  %21 = getelementptr inbounds i8, ptr %20, i64 36
  %22 = getelementptr inbounds i8, ptr %0, i64 32
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 4 dereferenceable(16) %21, i64 16, i1 false), !tbaa.struct !21
  %23 = load ptr, ptr %10, align 8, !tbaa !19
  %24 = getelementptr inbounds i8, ptr %23, i64 104
  %25 = getelementptr inbounds i8, ptr %0, i64 48
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(16) %24, i64 16, i1 false), !tbaa.struct !21
  %26 = load ptr, ptr %10, align 8, !tbaa !19
  %27 = getelementptr inbounds i8, ptr %26, i64 36
  %28 = tail call <2 x float> @_ZNK6ImRect7GetSizeEv(ptr noundef nonnull align 4 dereferenceable(16) %27)
  %29 = getelementptr inbounds i8, ptr %0, i64 64
  store <2 x float> %28, ptr %29, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %3, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %30 = getelementptr inbounds i8, ptr %0, i64 72
  %31 = load i64, ptr %3, align 8
  store i64 %31, ptr %30, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %4, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %32 = getelementptr inbounds i8, ptr %0, i64 80
  %33 = load i64, ptr %4, align 8
  store i64 %33, ptr %32, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  %34 = getelementptr inbounds i8, ptr %0, i64 88
  store i8 %18, ptr %34, align 8, !tbaa !23
  %35 = call noundef i32 @_ZN3vox10NodeEditor6Detail10SizeAction12ChooseCursorENS1_10NodeRegionE(ptr noundef nonnull align 8 dereferenceable(96) %0, i8 noundef zeroext %18)
  %36 = getelementptr inbounds i8, ptr %0, i64 92
  store i32 %35, ptr %36, align 4, !tbaa !24
  %37 = load ptr, ptr %10, align 8, !tbaa !19
  %38 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %37, ptr %38, align 8, !tbaa !25
  store i8 1, ptr %5, align 8, !tbaa !5
  br label %49

39:                                               ; preds = %14, %12, %9
  %40 = getelementptr inbounds i8, ptr %1, i64 32
  %41 = load ptr, ptr %40, align 8, !tbaa !26
  %.not18 = icmp eq ptr %41, null
  br i1 %.not18, label %49, label %42

42:                                               ; preds = %39
  %43 = tail call noundef zeroext i1 @_ZL7IsGroupPKN3vox10NodeEditor6Detail4NodeE(ptr noundef nonnull %41)
  br i1 %43, label %44, label %49

44:                                               ; preds = %42
  %45 = load ptr, ptr %40, align 8, !tbaa !26
  %46 = tail call noundef zeroext i8 @_ZN3vox10NodeEditor6Detail10SizeAction9GetRegionEPNS1_4NodeE(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef %45)
  %47 = tail call noundef i32 @_ZN3vox10NodeEditor6Detail10SizeAction12ChooseCursorENS1_10NodeRegionE(ptr noundef nonnull align 8 dereferenceable(96) %0, i8 noundef zeroext %46)
  %48 = getelementptr inbounds i8, ptr %0, i64 92
  store i32 %47, ptr %48, align 4, !tbaa !24
  br label %52

49:                                               ; preds = %19, %16, %16, %39, %42
  %50 = load i8, ptr %5, align 8, !tbaa !5, !range !17, !noundef !18
  %51 = zext nneg i8 %50 to i32
  br label %52

52:                                               ; preds = %49, %44
  %.0 = phi i32 [ %51, %49 ], [ 2, %44 ]
  ret i32 %.0
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i8 @_ZN3vox10NodeEditor6Detail10SizeAction9GetRegionEPNS1_4NodeE(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3vox10NodeEditor6Detail10SizeAction12ChooseCursorENS1_10NodeRegionE(ptr noundef nonnull align 8 dereferenceable(96), i8 noundef zeroext) local_unnamed_addr #3 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #5 = { "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 = { noreturn nounwind }
attributes #7 = { 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, !11, i64 16}
!6 = !{!"_ZTSN3vox10NodeEditor6Detail10SizeActionE", !7, i64 0, !11, i64 16, !11, i64 17, !8, i64 24, !12, i64 32, !12, i64 48, !13, i64 64, !13, i64 72, !13, i64 80, !15, i64 88, !16, i64 92}
!7 = !{!"_ZTSN3vox10NodeEditor6Detail12EditorActionE", !8, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"bool", !9, i64 0}
!12 = !{!"_ZTS6ImRect", !13, i64 0, !13, i64 8}
!13 = !{!"_ZTS6ImVec2", !14, i64 0, !14, i64 4}
!14 = !{!"float", !9, i64 0}
!15 = !{!"_ZTSN3vox10NodeEditor6Detail10NodeRegionE", !9, i64 0}
!16 = !{!"int", !9, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!20, !8, i64 40}
!20 = !{!"_ZTSN3vox10NodeEditor6Detail7ControlE", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !8, i64 48, !8, i64 56, !8, i64 64, !8, i64 72, !8, i64 80, !8, i64 88, !8, i64 96, !8, i64 104, !8, i64 112, !8, i64 120, !11, i64 128, !11, i64 129, !11, i64 130, !11, i64 131}
!21 = !{i64 0, i64 4, !22, i64 4, i64 4, !22, i64 8, i64 4, !22, i64 12, i64 4, !22}
!22 = !{!14, !14, i64 0}
!23 = !{!6, !15, i64 88}
!24 = !{!6, !16, i64 92}
!25 = !{!6, !8, i64 24}
!26 = !{!20, !8, i64 32}


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