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

; 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::NodeBuilder" = type { ptr, ptr, ptr, %struct.ImRect, %struct.ImRect, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, i8, %struct.ImRect, i8, %struct.ImDrawListSplitter, %struct.ImDrawListSplitter }
%struct.ImDrawListSplitter = type { i32, i32, %struct.ImVector.5 }
%struct.ImVector.5 = type { i32, i32, ptr }
%struct.ImDrawList = type <{ %struct.ImVector, %struct.ImVector.0, %struct.ImVector.1, i32, i32, ptr, ptr, ptr, ptr, %struct.ImVector.2, %struct.ImVector.3, %struct.ImVector.4, %struct.ImDrawCmdHeader, %struct.ImDrawListSplitter, float, [4 x i8] }>
%struct.ImVector = type { i32, i32, ptr }
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImVector.1 = type { i32, i32, ptr }
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImVector.3 = type { i32, i32, ptr }
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImDrawCmdHeader = type <{ %struct.ImVec4, ptr, i32, [4 x i8] }>
%struct.ImVec4 = type { float, float, float, float }
%"struct.vox::NodeEditor::Detail::Pin" = type <{ %"struct.vox::NodeEditor::Detail::Object.base", [7 x i8], %"struct.vox::NodeEditor::PinId", i32, [4 x i8], ptr, %struct.ImRect, %struct.ImRect, ptr, i32, i32, float, float, i32, %struct.ImVec2, float, float, float, float, i8, i8, [2 x i8] }>
%"struct.vox::NodeEditor::Detail::Object.base" = type <{ ptr, ptr, i8 }>
%"struct.vox::NodeEditor::PinId" = type { %"struct.vox::NodeEditor::Details::SafePointerType" }
%"struct.vox::NodeEditor::Details::SafePointerType" = type { %"struct.vox::NodeEditor::Details::SafeType" }
%"struct.vox::NodeEditor::Details::SafeType" = type { i64 }

@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [24 x i8], align 1
@__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail11NodeBuilder6EndPinEv = external hidden unnamed_addr constant [52 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: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK6ImRect8GetWidthEv(ptr noundef nonnull align 4 dereferenceable(16)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK6ImRect9GetHeightEv(ptr noundef nonnull align 4 dereferenceable(16)) #4 align 2

declare noundef ptr @_ZN5ImGui17GetWindowDrawListEv() #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL23ImDrawList_SwapSplitterP10ImDrawListR18ImDrawListSplitter(ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) #6

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

declare void @_ZN5ImGui8EndGroupEv() #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZN3vox10NodeEditor6Detail17ImGui_GetItemRectEv() #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vox10NodeEditor6Detail11NodeBuilder6EndPinEv(ptr noundef nonnull align 8 dereferenceable(152) %0) #2 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %struct.ImRect, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %struct.ImVec2, align 4
  %7 = alloca %struct.ImVec2, align 4
  %8 = alloca %struct.ImVec2, align 4
  %9 = alloca %struct.ImVec2, align 4
  %10 = alloca %struct.ImVec2, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %11 = load ptr, ptr %2, align 8
  %12 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %11, i32 0, i32 2
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  %14 = icmp ne ptr null, %13
  br i1 %14, label %15, label %16

15:                                               ; preds = %1
  br label %18

16:                                               ; preds = %1
  call void @__assert_fail(ptr noundef @.str.61, ptr noundef @.str.1, i32 noundef 4352, ptr noundef @__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail11NodeBuilder6EndPinEv) #8
  unreachable

17:                                               ; No predecessors!
  br label %18

18:                                               ; preds = %17, %15
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #9
  %19 = call noundef ptr @_ZN5ImGui17GetWindowDrawListEv()
  store ptr %19, ptr %3, align 8, !tbaa !5
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = icmp ne ptr %20, null
  br i1 %21, label %22, label %34

22:                                               ; preds = %18
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.ImDrawList, ptr %23, i32 0, i32 13
  %25 = getelementptr inbounds %struct.ImDrawListSplitter, ptr %24, i32 0, i32 1
  %26 = load i32, ptr %25, align 4, !tbaa !18
  %27 = icmp eq i32 %26, 1
  br i1 %27, label %28, label %29

28:                                               ; preds = %22
  br label %31

29:                                               ; preds = %22
  call void @__assert_fail(ptr noundef @.str.58, ptr noundef @.str.1, i32 noundef 4355, ptr noundef @__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail11NodeBuilder6EndPinEv) #8
  unreachable

30:                                               ; No predecessors!
  br label %31

31:                                               ; preds = %30, %28
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %11, i32 0, i32 13
  call void @_ZL23ImDrawList_SwapSplitterP10ImDrawListR18ImDrawListSplitter(ptr noundef %32, ptr noundef nonnull align 8 dereferenceable(24) %33)
  br label %34

34:                                               ; preds = %31, %18
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #9
  call void @_ZN5ImGui8EndGroupEv()
  %35 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %11, i32 0, i32 8
  %36 = load i8, ptr %35, align 8, !tbaa !28, !range !29, !noundef !30
  %37 = trunc i8 %36 to i1
  br i1 %37, label %38, label %47

38:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #9
  %39 = call { <2 x float>, <2 x float> } @_ZN3vox10NodeEditor6Detail17ImGui_GetItemRectEv()
  %40 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %4, i32 0, i32 0
  %41 = extractvalue { <2 x float>, <2 x float> } %39, 0
  store <2 x float> %41, ptr %40, align 4
  %42 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %4, i32 0, i32 1
  %43 = extractvalue { <2 x float>, <2 x float> } %39, 1
  store <2 x float> %43, ptr %42, align 4
  %44 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %11, i32 0, i32 2
  %45 = load ptr, ptr %44, align 8, !tbaa !9
  %46 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Pin", ptr %45, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %46, ptr align 4 %4, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #9
  br label %47

47:                                               ; preds = %38, %34
  %48 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %11, i32 0, i32 9
  %49 = load i8, ptr %48, align 1, !tbaa !33, !range !29, !noundef !30
  %50 = trunc i8 %49 to i1
  br i1 %50, label %51, label %98

51:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #9
  %52 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %11, i32 0, i32 2
  %53 = load ptr, ptr %52, align 8, !tbaa !9
  %54 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Pin", ptr %53, i32 0, i32 6
  store ptr %54, ptr %5, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %11, i32 0, i32 6
  %56 = getelementptr inbounds %struct.ImVec2, ptr %55, i32 0, i32 0
  %57 = load float, ptr %56, align 8, !tbaa !34
  %58 = fcmp olt float %57, 0.000000e+00
  br i1 %58, label %59, label %64

59:                                               ; preds = %51
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = call noundef float @_ZNK6ImRect8GetWidthEv(ptr noundef nonnull align 4 dereferenceable(16) %60)
  %62 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %11, i32 0, i32 6
  %63 = getelementptr inbounds %struct.ImVec2, ptr %62, i32 0, i32 0
  store float %61, ptr %63, align 8, !tbaa !34
  br label %64

64:                                               ; preds = %59, %51
  %65 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %11, i32 0, i32 6
  %66 = getelementptr inbounds %struct.ImVec2, ptr %65, i32 0, i32 1
  %67 = load float, ptr %66, align 4, !tbaa !35
  %68 = fcmp olt float %67, 0.000000e+00
  br i1 %68, label %69, label %74

69:                                               ; preds = %64
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = call noundef float @_ZNK6ImRect9GetHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %70)
  %72 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %11, i32 0, i32 6
  %73 = getelementptr inbounds %struct.ImVec2, ptr %72, i32 0, i32 1
  store float %71, ptr %73, align 4, !tbaa !35
  br label %74

74:                                               ; preds = %69, %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #9
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.ImRect, ptr %75, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = call <2 x float> @_ZNK6ImRect7GetSizeEv(ptr noundef nonnull align 4 dereferenceable(16) %77)
  store <2 x float> %78, ptr %8, align 4
  %79 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %11, i32 0, i32 5
  %80 = call <2 x float> @_ZL5ImMulRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %79)
  store <2 x float> %80, ptr %7, align 4
  %81 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %76, ptr noundef nonnull align 4 dereferenceable(8) %7)
  store <2 x float> %81, ptr %6, align 4
  %82 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %11, i32 0, i32 2
  %83 = load ptr, ptr %82, align 8, !tbaa !9
  %84 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Pin", ptr %83, i32 0, i32 7
  %85 = getelementptr inbounds %struct.ImRect, ptr %84, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %85, ptr align 4 %6, i64 8, i1 false), !tbaa.struct !36
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  %86 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %11, i32 0, i32 2
  %87 = load ptr, ptr %86, align 8, !tbaa !9
  %88 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Pin", ptr %87, i32 0, i32 7
  %89 = getelementptr inbounds %struct.ImRect, ptr %88, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  %90 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %11, i32 0, i32 6
  %91 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %11, i32 0, i32 7
  %92 = call <2 x float> @_ZL5ImMulRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %90, ptr noundef nonnull align 4 dereferenceable(8) %91)
  store <2 x float> %92, ptr %10, align 4
  %93 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %89, ptr noundef nonnull align 4 dereferenceable(8) %10)
  store <2 x float> %93, ptr %9, align 4
  %94 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %11, i32 0, i32 2
  %95 = load ptr, ptr %94, align 8, !tbaa !9
  %96 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::Pin", ptr %95, i32 0, i32 7
  %97 = getelementptr inbounds %struct.ImRect, ptr %96, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %97, ptr align 4 %9, i64 8, i1 false), !tbaa.struct !36
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  br label %98

98:                                               ; preds = %74, %47
  %99 = getelementptr inbounds %"struct.vox::NodeEditor::Detail::NodeBuilder", ptr %11, i32 0, i32 2
  store ptr null, ptr %99, align 8, !tbaa !9
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZL5ImMulRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3

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 = { 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 #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 = { "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 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 = { 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 #8 = { noreturn nounwind }
attributes #9 = { 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, !6, i64 16}
!10 = !{!"_ZTSN3vox10NodeEditor6Detail11NodeBuilderE", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 40, !12, i64 56, !12, i64 64, !12, i64 72, !14, i64 80, !14, i64 81, !11, i64 84, !14, i64 100, !15, i64 104, !15, i64 128}
!11 = !{!"_ZTS6ImRect", !12, i64 0, !12, i64 8}
!12 = !{!"_ZTS6ImVec2", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTS18ImDrawListSplitter", !16, i64 0, !16, i64 4, !17, i64 8}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !16, i64 0, !16, i64 4, !6, i64 8}
!18 = !{!19, !16, i64 172}
!19 = !{!"_ZTS10ImDrawList", !20, i64 0, !21, i64 16, !22, i64 32, !16, i64 48, !16, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !23, i64 88, !24, i64 104, !25, i64 120, !26, i64 136, !15, i64 168, !13, i64 192}
!20 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !16, i64 0, !16, i64 4, !6, i64 8}
!21 = !{!"_ZTS8ImVectorItE", !16, i64 0, !16, i64 4, !6, i64 8}
!22 = !{!"_ZTS8ImVectorI10ImDrawVertE", !16, i64 0, !16, i64 4, !6, i64 8}
!23 = !{!"_ZTS8ImVectorI6ImVec4E", !16, i64 0, !16, i64 4, !6, i64 8}
!24 = !{!"_ZTS8ImVectorIPvE", !16, i64 0, !16, i64 4, !6, i64 8}
!25 = !{!"_ZTS8ImVectorI6ImVec2E", !16, i64 0, !16, i64 4, !6, i64 8}
!26 = !{!"_ZTS15ImDrawCmdHeader", !27, i64 0, !6, i64 16, !16, i64 24}
!27 = !{!"_ZTS6ImVec4", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12}
!28 = !{!10, !14, i64 80}
!29 = !{i8 0, i8 2}
!30 = !{}
!31 = !{i64 0, i64 4, !32, i64 4, i64 4, !32, i64 8, i64 4, !32, i64 12, i64 4, !32}
!32 = !{!13, !13, i64 0}
!33 = !{!10, !14, i64 81}
!34 = !{!10, !13, i64 64}
!35 = !{!10, !13, i64 68}
!36 = !{i64 0, i64 4, !32, i64 4, i64 4, !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.58 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [24 x i8], align 1
@__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail11NodeBuilder6EndPinEv = external hidden unnamed_addr constant [52 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> @_ZNK6ImRect7GetSizeEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2

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

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

declare noundef ptr @_ZN5ImGui17GetWindowDrawListEv() local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL23ImDrawList_SwapSplitterP10ImDrawListR18ImDrawListSplitter(ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5

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

declare void @_ZN5ImGui8EndGroupEv() local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZN3vox10NodeEditor6Detail17ImGui_GetItemRectEv() local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vox10NodeEditor6Detail11NodeBuilder6EndPinEv(ptr noundef nonnull align 8 dereferenceable(152) %0) local_unnamed_addr #1 align 2 {
  %2 = alloca %struct.ImVec2, align 8
  %3 = alloca %struct.ImVec2, align 8
  %4 = alloca %struct.ImVec2, align 8
  %5 = getelementptr inbounds i8, ptr %0, i64 16
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %.not = icmp eq ptr %6, null
  br i1 %.not, label %7, label %8

7:                                                ; preds = %1
  tail call void @__assert_fail(ptr noundef nonnull @.str.61, ptr noundef nonnull @.str.1, i32 noundef 4352, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail11NodeBuilder6EndPinEv) #7
  unreachable

8:                                                ; preds = %1
  %9 = tail call noundef ptr @_ZN5ImGui17GetWindowDrawListEv()
  %.not10 = icmp eq ptr %9, null
  br i1 %.not10, label %17, label %10

10:                                               ; preds = %8
  %11 = getelementptr inbounds i8, ptr %9, i64 172
  %12 = load i32, ptr %11, align 4, !tbaa !17
  %13 = icmp eq i32 %12, 1
  br i1 %13, label %15, label %14

14:                                               ; preds = %10
  tail call void @__assert_fail(ptr noundef nonnull @.str.58, ptr noundef nonnull @.str.1, i32 noundef 4355, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3vox10NodeEditor6Detail11NodeBuilder6EndPinEv) #7
  unreachable

15:                                               ; preds = %10
  %16 = getelementptr inbounds i8, ptr %0, i64 128
  tail call void @_ZL23ImDrawList_SwapSplitterP10ImDrawListR18ImDrawListSplitter(ptr noundef nonnull %9, ptr noundef nonnull align 8 dereferenceable(24) %16)
  br label %17

17:                                               ; preds = %15, %8
  tail call void @_ZN5ImGui8EndGroupEv()
  %18 = getelementptr inbounds i8, ptr %0, i64 80
  %19 = load i8, ptr %18, align 8, !tbaa !27, !range !28, !noundef !29
  %20 = trunc nuw i8 %19 to i1
  br i1 %20, label %21, label %27

21:                                               ; preds = %17
  %22 = tail call { <2 x float>, <2 x float> } @_ZN3vox10NodeEditor6Detail17ImGui_GetItemRectEv()
  %23 = extractvalue { <2 x float>, <2 x float> } %22, 0
  %24 = extractvalue { <2 x float>, <2 x float> } %22, 1
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %25, i64 48
  store <2 x float> %23, ptr %26, align 8
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %25, i64 56
  store <2 x float> %24, ptr %.sroa.4.0..sroa_idx, align 8
  br label %27

27:                                               ; preds = %21, %17
  %28 = getelementptr inbounds i8, ptr %0, i64 81
  %29 = load i8, ptr %28, align 1, !tbaa !30, !range !28, !noundef !29
  %30 = trunc nuw i8 %29 to i1
  br i1 %30, label %31, label %59

31:                                               ; preds = %27
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %32, i64 48
  %34 = getelementptr inbounds i8, ptr %0, i64 64
  %35 = load float, ptr %34, align 8, !tbaa !31
  %36 = fcmp olt float %35, 0.000000e+00
  br i1 %36, label %37, label %39

37:                                               ; preds = %31
  %38 = tail call noundef float @_ZNK6ImRect8GetWidthEv(ptr noundef nonnull align 4 dereferenceable(16) %33)
  store float %38, ptr %34, align 8, !tbaa !31
  br label %39

39:                                               ; preds = %37, %31
  %40 = getelementptr inbounds i8, ptr %0, i64 68
  %41 = load float, ptr %40, align 4, !tbaa !32
  %42 = fcmp olt float %41, 0.000000e+00
  br i1 %42, label %43, label %45

43:                                               ; preds = %39
  %44 = tail call noundef float @_ZNK6ImRect9GetHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %33)
  store float %44, ptr %40, align 4, !tbaa !32
  br label %45

45:                                               ; preds = %43, %39
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  %46 = tail call <2 x float> @_ZNK6ImRect7GetSizeEv(ptr noundef nonnull align 4 dereferenceable(16) %33)
  store <2 x float> %46, ptr %3, align 8
  %47 = getelementptr inbounds i8, ptr %0, i64 56
  %48 = call <2 x float> @_ZL5ImMulRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %47)
  store <2 x float> %48, ptr %2, align 8
  %49 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %33, ptr noundef nonnull align 4 dereferenceable(8) %2)
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %50, i64 64
  store <2 x float> %49, ptr %51, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds i8, ptr %52, i64 64
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %54 = getelementptr inbounds i8, ptr %0, i64 72
  %55 = call <2 x float> @_ZL5ImMulRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %34, ptr noundef nonnull align 4 dereferenceable(8) %54)
  store <2 x float> %55, ptr %4, align 8
  %56 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %53, ptr noundef nonnull align 4 dereferenceable(8) %4)
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = getelementptr inbounds i8, ptr %57, i64 72
  store <2 x float> %56, ptr %58, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  br label %59

59:                                               ; preds = %45, %27
  store ptr null, ptr %5, align 8, !tbaa !5
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZL5ImMulRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2

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 = { 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 #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 = { "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 = { 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 #7 = { noreturn nounwind }
attributes #8 = { 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, !7, i64 16}
!6 = !{!"_ZTSN3vox10NodeEditor6Detail11NodeBuilderE", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 40, !11, i64 56, !11, i64 64, !11, i64 72, !13, i64 80, !13, i64 81, !10, i64 84, !13, i64 100, !14, i64 104, !14, i64 128}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS6ImRect", !11, i64 0, !11, i64 8}
!11 = !{!"_ZTS6ImVec2", !12, i64 0, !12, i64 4}
!12 = !{!"float", !8, i64 0}
!13 = !{!"bool", !8, i64 0}
!14 = !{!"_ZTS18ImDrawListSplitter", !15, i64 0, !15, i64 4, !16, i64 8}
!15 = !{!"int", !8, i64 0}
!16 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !15, i64 0, !15, i64 4, !7, i64 8}
!17 = !{!18, !15, i64 172}
!18 = !{!"_ZTS10ImDrawList", !19, i64 0, !20, i64 16, !21, i64 32, !15, i64 48, !15, i64 52, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !22, i64 88, !23, i64 104, !24, i64 120, !25, i64 136, !14, i64 168, !12, i64 192}
!19 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !15, i64 0, !15, i64 4, !7, i64 8}
!20 = !{!"_ZTS8ImVectorItE", !15, i64 0, !15, i64 4, !7, i64 8}
!21 = !{!"_ZTS8ImVectorI10ImDrawVertE", !15, i64 0, !15, i64 4, !7, i64 8}
!22 = !{!"_ZTS8ImVectorI6ImVec4E", !15, i64 0, !15, i64 4, !7, i64 8}
!23 = !{!"_ZTS8ImVectorIPvE", !15, i64 0, !15, i64 4, !7, i64 8}
!24 = !{!"_ZTS8ImVectorI6ImVec2E", !15, i64 0, !15, i64 4, !7, i64 8}
!25 = !{!"_ZTS15ImDrawCmdHeader", !26, i64 0, !7, i64 16, !15, i64 24}
!26 = !{!"_ZTS6ImVec4", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12}
!27 = !{!6, !13, i64 80}
!28 = !{i8 0, i8 2}
!29 = !{}
!30 = !{!6, !13, i64 81}
!31 = !{!6, !12, i64 64}
!32 = !{!6, !12, i64 68}


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