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

; 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.ImVec2ih = type { i16, i16 }
%struct.ImGuiWindow = type { ptr, ptr, i32, i32, i32, i32, %struct.ImGuiWindowClass, ptr, i32, %struct.ImVec2, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, float, float, float, float, float, float, i32, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i16, i16, i16, i16, i16, i32, i8, i8, i8, i32, i8, i8, i8, i8, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVector.29, %struct.ImGuiWindowTempData, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImVec2ih, %struct.ImVec2ih, i32, i32, float, float, %struct.ImGuiStorage, %struct.ImVector.38, float, float, i32, ptr, %struct.ImDrawList, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, [2 x i32], [2 x %struct.ImRect], [2 x %struct.ImVec2], i32, i32, i32, i8, i8, i16, %struct.ImGuiWindowDockStyle, ptr, ptr, i32, i32, %struct.ImRect }
%struct.ImGuiWindowClass = type <{ i32, i32, i32, i32, i32, i32, i32, i8, i8, [2 x i8] }>
%struct.ImVec2 = type { float, float }
%struct.ImVector.29 = type { i32, i32, ptr }
%struct.ImGuiWindowTempData = type { %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, i8, i8, %struct.ImVec1, %struct.ImVec1, %struct.ImVec1, %struct.ImVec2, i32, i16, i16, i8, i8, i8, i8, %struct.ImVec2, %struct.ImGuiMenuColumns, i32, i32, %struct.ImVector.4, ptr, ptr, i32, i32, i32, float, float, %struct.ImVector.21, %struct.ImVector.21 }
%struct.ImVec1 = type { float }
%struct.ImGuiMenuColumns = type <{ i32, i32, i16, i16, i16, i16, i16, [4 x i16], [2 x i8] }>
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImVector.21 = type { i32, i32, ptr }
%struct.ImGuiStorage = type { %struct.ImVector.6 }
%struct.ImVector.6 = type { i32, i32, ptr }
%struct.ImVector.38 = type { i32, i32, ptr }
%struct.ImDrawList = type <{ %struct.ImVector.39, %struct.ImVector, %struct.ImVector.40, i32, i32, ptr, ptr, ptr, ptr, %struct.ImVector.41, %struct.ImVector.42, %struct.ImVector.2, %struct.ImDrawCmdHeader, %struct.ImDrawListSplitter, float, [4 x i8] }>
%struct.ImVector.39 = type { i32, i32, ptr }
%struct.ImVector = type { i32, i32, ptr }
%struct.ImVector.40 = type { i32, i32, ptr }
%struct.ImVector.41 = type { i32, i32, ptr }
%struct.ImVector.42 = type { i32, i32, ptr }
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImDrawCmdHeader = type <{ %struct.ImVec4, ptr, i32, [4 x i8] }>
%struct.ImVec4 = type { float, float, float, float }
%struct.ImDrawListSplitter = type { i32, i32, %struct.ImVector.22 }
%struct.ImVector.22 = type { i32, i32, ptr }
%struct.ImGuiWindowDockStyle = type { [6 x i32] }
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImGuiWindowSettings = type <{ i32, %struct.ImVec2ih, %struct.ImVec2ih, %struct.ImVec2ih, i32, i32, i32, i16, i8, i8, i8, i8, [2 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 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z9ImHashStrPKcmj(ptr noundef, i64 noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5ImGui16FindWindowByNameEPKc(ptr noundef) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5ImGui23CreateNewWindowSettingsEPKc(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5ImGui22FindWindowSettingsByIDEj(i32 noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui29DockBuilderCopyWindowSettingsEPKcS1_(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %struct.ImVec2ih, align 2
  %10 = alloca %struct.ImVec2ih, align 2
  %11 = alloca %struct.ImVec2ih, align 2
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = call noundef ptr @_ZN5ImGui16FindWindowByNameEPKc(ptr noundef %12)
  store ptr %13, ptr %5, align 8, !tbaa !5
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = icmp eq ptr %14, null
  br i1 %15, label %16, label %17

16:                                               ; preds = %2
  store i32 1, ptr %6, align 4
  br label %89

17:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = call noundef ptr @_ZN5ImGui16FindWindowByNameEPKc(ptr noundef %18)
  store ptr %19, ptr %7, align 8, !tbaa !5
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  %21 = icmp ne ptr %20, null
  br i1 %21, label %22, label %42

22:                                               ; preds = %17
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.ImGuiWindow, ptr %23, i32 0, i32 11
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.ImGuiWindow, ptr %25, i32 0, i32 11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %24, i64 8, i1 false), !tbaa.struct !9
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.ImGuiWindow, ptr %27, i32 0, i32 12
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.ImGuiWindow, ptr %29, i32 0, i32 12
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %30, ptr align 8 %28, i64 8, i1 false), !tbaa.struct !9
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.ImGuiWindow, ptr %31, i32 0, i32 13
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.ImGuiWindow, ptr %33, i32 0, i32 13
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %34, ptr align 8 %32, i64 8, i1 false), !tbaa.struct !9
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.ImGuiWindow, ptr %35, i32 0, i32 42
  %37 = load i8, ptr %36, align 2, !tbaa !12, !range !43, !noundef !44
  %38 = trunc i8 %37 to i1
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.ImGuiWindow, ptr %39, i32 0, i32 42
  %41 = zext i1 %38 to i8
  store i8 %41, ptr %40, align 2, !tbaa !12
  br label %88

42:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = call noundef i32 @_Z9ImHashStrPKcmj(ptr noundef %43, i64 noundef 0, i32 noundef 0)
  %45 = call noundef ptr @_ZN5ImGui22FindWindowSettingsByIDEj(i32 noundef %44)
  store ptr %45, ptr %8, align 8, !tbaa !5
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  %47 = icmp ne ptr %46, null
  br i1 %47, label %51, label %48

48:                                               ; preds = %42
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = call noundef ptr @_ZN5ImGui23CreateNewWindowSettingsEPKc(ptr noundef %49)
  store ptr %50, ptr %8, align 8, !tbaa !5
  br label %51

51:                                               ; preds = %48, %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.ImGuiWindow, ptr %52, i32 0, i32 11
  call void @_ZN8ImVec2ihC2ERK6ImVec2(ptr noundef nonnull align 2 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(8) %53)
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.ImGuiWindow, ptr %54, i32 0, i32 8
  %56 = load i32, ptr %55, align 8, !tbaa !45
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %58, label %73

58:                                               ; preds = %51
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.ImGuiWindow, ptr %59, i32 0, i32 8
  %61 = load i32, ptr %60, align 8, !tbaa !45
  %62 = icmp ne i32 %61, 286331153
  br i1 %62, label %63, label %73

63:                                               ; preds = %58
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.ImGuiWindowSettings, ptr %64, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %65, ptr align 2 %9, i64 4, i1 false), !tbaa.struct !46
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.ImGuiWindow, ptr %66, i32 0, i32 8
  %68 = load i32, ptr %67, align 8, !tbaa !45
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.ImGuiWindowSettings, ptr %69, i32 0, i32 4
  store i32 %68, ptr %70, align 4, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @_ZN8ImVec2ihC2Ess(ptr noundef nonnull align 2 dereferenceable(4) %10, i16 noundef signext 0, i16 noundef signext 0)
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.ImGuiWindowSettings, ptr %71, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %72, ptr align 2 %10, i64 4, i1 false), !tbaa.struct !46
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %76

73:                                               ; preds = %58, %51
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.ImGuiWindowSettings, ptr %74, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %75, ptr align 2 %9, i64 4, i1 false), !tbaa.struct !46
  br label %76

76:                                               ; preds = %73, %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.ImGuiWindow, ptr %77, i32 0, i32 13
  call void @_ZN8ImVec2ihC2ERK6ImVec2(ptr noundef nonnull align 2 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(8) %78)
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.ImGuiWindowSettings, ptr %79, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %80, ptr align 2 %11, i64 4, i1 false), !tbaa.struct !46
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.ImGuiWindow, ptr %81, i32 0, i32 42
  %83 = load i8, ptr %82, align 2, !tbaa !12, !range !43, !noundef !44
  %84 = trunc i8 %83 to i1
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.ImGuiWindowSettings, ptr %85, i32 0, i32 8
  %87 = zext i1 %84 to i8
  store i8 %87, ptr %86, align 2, !tbaa !50
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %88

88:                                               ; preds = %76, %22
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  store i32 0, ptr %6, align 4
  br label %89

89:                                               ; preds = %88, %16
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  %90 = load i32, ptr %6, align 4
  switch i32 %90, label %92 [
    i32 0, label %91
    i32 1, label %91
  ]

91:                                               ; preds = %89, %89
  ret void

92:                                               ; preds = %89
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8ImVec2ihC2Ess(ptr noundef nonnull align 2 dereferenceable(4), i16 noundef signext, i16 noundef signext) unnamed_addr #2 align 2

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


; 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.ImVec2ih = type { i16, i16 }

; 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 nounwind uwtable
declare dso_local noundef i32 @_Z9ImHashStrPKcmj(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5ImGui16FindWindowByNameEPKc(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5ImGui23CreateNewWindowSettingsEPKc(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5ImGui22FindWindowSettingsByIDEj(i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui29DockBuilderCopyWindowSettingsEPKcS1_(ptr noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = alloca %struct.ImVec2ih, align 4
  %4 = alloca %struct.ImVec2ih, align 4
  %5 = alloca %struct.ImVec2ih, align 4
  %6 = tail call noundef ptr @_ZN5ImGui16FindWindowByNameEPKc(ptr noundef %0)
  %7 = icmp eq ptr %6, null
  br i1 %7, label %49, label %8

8:                                                ; preds = %2
  %9 = tail call noundef ptr @_ZN5ImGui16FindWindowByNameEPKc(ptr noundef %1)
  %.not = icmp eq ptr %9, null
  br i1 %.not, label %23, label %10

10:                                               ; preds = %8
  %11 = getelementptr inbounds i8, ptr %6, i64 88
  %12 = getelementptr inbounds i8, ptr %9, i64 88
  %13 = load i64, ptr %11, align 8
  store i64 %13, ptr %12, align 8
  %14 = getelementptr inbounds i8, ptr %6, i64 96
  %15 = getelementptr inbounds i8, ptr %9, i64 96
  %16 = load i64, ptr %14, align 8
  store i64 %16, ptr %15, align 8
  %17 = getelementptr inbounds i8, ptr %6, i64 104
  %18 = getelementptr inbounds i8, ptr %9, i64 104
  %19 = load i64, ptr %17, align 8
  store i64 %19, ptr %18, align 8
  %20 = getelementptr inbounds i8, ptr %6, i64 246
  %21 = load i8, ptr %20, align 2, !tbaa !5, !range !40, !noundef !41
  %22 = getelementptr inbounds i8, ptr %9, i64 246
  store i8 %21, ptr %22, align 2, !tbaa !5
  br label %49

23:                                               ; preds = %8
  %24 = tail call noundef i32 @_Z9ImHashStrPKcmj(ptr noundef %1, i64 noundef 0, i32 noundef 0)
  %25 = tail call noundef ptr @_ZN5ImGui22FindWindowSettingsByIDEj(i32 noundef %24)
  %.not31 = icmp eq ptr %25, null
  br i1 %.not31, label %26, label %28

26:                                               ; preds = %23
  %27 = tail call noundef ptr @_ZN5ImGui23CreateNewWindowSettingsEPKc(ptr noundef %1)
  br label %28

28:                                               ; preds = %26, %23
  %.0 = phi ptr [ %25, %23 ], [ %27, %26 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  %29 = getelementptr inbounds i8, ptr %6, i64 88
  call void @_ZN8ImVec2ihC2ERK6ImVec2(ptr noundef nonnull align 2 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(8) %29)
  %30 = getelementptr inbounds i8, ptr %6, i64 72
  %31 = load i32, ptr %30, align 8, !tbaa !42
  switch i32 %31, label %32 [
    i32 0, label %39
    i32 286331153, label %39
  ]

32:                                               ; preds = %28
  %33 = getelementptr inbounds i8, ptr %.0, i64 12
  %34 = load i32, ptr %3, align 4
  store i32 %34, ptr %33, align 4
  %35 = load i32, ptr %30, align 8, !tbaa !42
  %36 = getelementptr inbounds i8, ptr %.0, i64 16
  store i32 %35, ptr %36, align 4, !tbaa !43
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
  call void @_ZN8ImVec2ihC2Ess(ptr noundef nonnull align 2 dereferenceable(4) %4, i16 noundef signext 0, i16 noundef signext 0)
  %37 = getelementptr inbounds i8, ptr %.0, i64 4
  %38 = load i32, ptr %4, align 4
  store i32 %38, ptr %37, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
  br label %42

39:                                               ; preds = %28, %28
  %40 = getelementptr inbounds i8, ptr %.0, i64 4
  %41 = load i32, ptr %3, align 4
  store i32 %41, ptr %40, align 4
  br label %42

42:                                               ; preds = %39, %32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
  %43 = getelementptr inbounds i8, ptr %6, i64 104
  call void @_ZN8ImVec2ihC2ERK6ImVec2(ptr noundef nonnull align 2 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(8) %43)
  %44 = getelementptr inbounds i8, ptr %.0, i64 8
  %45 = load i32, ptr %5, align 4
  store i32 %45, ptr %44, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
  %46 = getelementptr inbounds i8, ptr %6, i64 246
  %47 = load i8, ptr %46, align 2, !tbaa !5, !range !40, !noundef !41
  %48 = getelementptr inbounds i8, ptr %.0, i64 30
  store i8 %47, ptr %48, align 2, !tbaa !45
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  br label %49

49:                                               ; preds = %10, %42, %2
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8ImVec2ihC2Ess(ptr noundef nonnull align 2 dereferenceable(4), i16 noundef signext, i16 noundef signext) unnamed_addr #1 align 2

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


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