; LLVM IR from DarrenSweeney/3D-Physics-Engine :: Physics Engine/Imgui/imgui.ll (ZN11ImGuiWindowC2EPKc)

; 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.ImGuiWindow = type { ptr, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, i8, i8, i8, i8, i8, i32, i8, i32, i32, i32, %struct.ImGuiDrawContext, %class.ImVector.11, %class.ImVector.12, %struct.ImGuiAabb, i32, float, %struct.ImGuiStorage, float, ptr, ptr, i32, i32, i32, i32, i32, i32 }
%struct.ImGuiDrawContext = type { %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, float, i32, i32, %struct.ImGuiAabb, i8, %class.ImVector.1, %class.ImVector.9, %class.ImVector.10, %class.ImVector.10, i32, ptr, float, float, i32, i32, %struct.ImVec2, float, float, i8, i32, %class.ImVector.10 }
%class.ImVector.1 = type { i64, i64, ptr }
%class.ImVector.9 = type { i64, i64, ptr }
%class.ImVector.10 = type { i64, i64, ptr }
%class.ImVector.11 = type { i64, i64, ptr }
%class.ImVector.12 = type { i64, i64, ptr }
%struct.ImGuiAabb = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImGuiStorage = type { %class.ImVector.6 }
%class.ImVector.6 = type { i64, i64, ptr }

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

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

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

; 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) #2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11ImGuiWindowC2EPKc(ptr noundef nonnull align 8 dereferenceable(480) %0, ptr noundef %1) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %struct.ImVec2, align 4
  %8 = alloca %struct.ImVec2, align 4
  %9 = alloca %struct.ImVec2, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %10 = load ptr, ptr %3, align 8
  %11 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 3
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %11)
  %12 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 4
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %12)
  %13 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 5
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %13)
  %14 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 6
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %14)
  %15 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 7
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %15)
  %16 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 20
  call void @_ZN16ImGuiDrawContextC2Ev(ptr noundef nonnull align 8 dereferenceable(240) %16)
  %17 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 21
  invoke void @_ZN8ImVectorIjEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %18 unwind label %67

18:                                               ; preds = %2
  %19 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 22
  invoke void @_ZN8ImVectorI6ImVec4EC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %20 unwind label %71

20:                                               ; preds = %18
  %21 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 23
  invoke void @_ZN9ImGuiAabbC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %21)
          to label %22 unwind label %75

22:                                               ; preds = %20
  %23 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 26
  invoke void @_ZN12ImGuiStorageC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23)
          to label %24 unwind label %75

24:                                               ; preds = %22
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = invoke noundef ptr @_ZL8ImStrdupPKc(ptr noundef %25)
          to label %27 unwind label %79

27:                                               ; preds = %24
  %28 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 0
  store ptr %26, ptr %28, align 8, !tbaa !9
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = invoke noundef i32 @_ZN11ImGuiWindow5GetIDEPKc(ptr noundef nonnull align 8 dereferenceable(480) %10, ptr noundef %29)
          to label %31 unwind label %79

31:                                               ; preds = %27
  %32 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 1
  store i32 %30, ptr %32, align 8, !tbaa !25
  %33 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 2
  store i32 0, ptr %33, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  invoke void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %7, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %34 unwind label %83

34:                                               ; preds = %31
  %35 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %35, ptr align 4 %7, i64 8, i1 false), !tbaa.struct !27
  %36 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %36, ptr align 4 %35, i64 8, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  invoke void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %8, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %37 unwind label %87

37:                                               ; preds = %34
  %38 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %38, ptr align 4 %8, i64 8, i1 false), !tbaa.struct !27
  %39 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %39, ptr align 4 %38, i64 8, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  invoke void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %9, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %40 unwind label %91

40:                                               ; preds = %37
  %41 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %41, ptr align 4 %9, i64 8, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  %42 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 8
  store float 0.000000e+00, ptr %42, align 8, !tbaa !29
  %43 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 9
  store float 0.000000e+00, ptr %43, align 4, !tbaa !30
  %44 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 10
  store i8 0, ptr %44, align 8, !tbaa !31
  %45 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 11
  store i8 0, ptr %45, align 1, !tbaa !32
  %46 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 12
  store i8 0, ptr %46, align 2, !tbaa !33
  %47 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 13
  store i8 0, ptr %47, align 1, !tbaa !34
  %48 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 14
  store i8 0, ptr %48, align 4, !tbaa !35
  %49 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 15
  store i32 -1, ptr %49, align 8, !tbaa !36
  %50 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 16
  store i8 0, ptr %50, align 4, !tbaa !37
  %51 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 19
  store i32 7, ptr %51, align 8, !tbaa !38
  %52 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 18
  store i32 7, ptr %52, align 4, !tbaa !39
  %53 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 17
  store i32 7, ptr %53, align 8, !tbaa !40
  %54 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 21
  %55 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 1
  invoke void @_ZN8ImVectorIjE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %54, ptr noundef nonnull align 4 dereferenceable(4) %55)
          to label %56 unwind label %79

56:                                               ; preds = %40
  %57 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 24
  store i32 -1, ptr %57, align 8, !tbaa !41
  %58 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 25
  store float 0.000000e+00, ptr %58, align 4, !tbaa !42
  %59 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 27
  store float 1.000000e+00, ptr %59, align 8, !tbaa !43
  %60 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 5
  %61 = invoke noundef float @_ZL11ImLengthSqrRK6ImVec2(ptr noundef nonnull align 4 dereferenceable(8) %60)
          to label %62 unwind label %79

62:                                               ; preds = %56
  %63 = fcmp olt float %61, 0x3EE4F8B580000000
  br i1 %63, label %64, label %95

64:                                               ; preds = %62
  %65 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 15
  store i32 2, ptr %65, align 8, !tbaa !36
  %66 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 16
  store i8 1, ptr %66, align 4, !tbaa !37
  br label %95

67:                                               ; preds = %2
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %5, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %6, align 4
  br label %112

71:                                               ; preds = %18
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %5, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %6, align 4
  br label %111

75:                                               ; preds = %22, %20
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %5, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %6, align 4
  br label %110

79:                                               ; preds = %97, %95, %56, %40, %27, %24
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %5, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %6, align 4
  br label %109

83:                                               ; preds = %31
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %5, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %109

87:                                               ; preds = %34
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %5, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %109

91:                                               ; preds = %37
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %5, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %109

95:                                               ; preds = %64, %62
  %96 = invoke noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef 104)
          to label %97 unwind label %79

97:                                               ; preds = %95
  %98 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 28
  store ptr %96, ptr %98, align 8, !tbaa !44
  %99 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 28
  %100 = load ptr, ptr %99, align 8, !tbaa !44
  invoke void @_ZN10ImDrawListC2Ev(ptr noundef nonnull align 8 dereferenceable(104) %100)
          to label %101 unwind label %79

101:                                              ; preds = %97
  %102 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 29
  store ptr null, ptr %102, align 8, !tbaa !45
  %103 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 31
  store i32 -1, ptr %103, align 4, !tbaa !46
  %104 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 30
  store i32 -1, ptr %104, align 8, !tbaa !47
  %105 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 33
  store i32 2147483647, ptr %105, align 4, !tbaa !48
  %106 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 32
  store i32 2147483647, ptr %106, align 8, !tbaa !49
  %107 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 35
  store i32 2147483647, ptr %107, align 4, !tbaa !50
  %108 = getelementptr inbounds %struct.ImGuiWindow, ptr %10, i32 0, i32 34
  store i32 2147483647, ptr %108, align 8, !tbaa !51
  ret void

109:                                              ; preds = %91, %87, %83, %79
  call void @_ZN12ImGuiStorageD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  br label %110

110:                                              ; preds = %109, %75
  call void @_ZN8ImVectorI6ImVec4ED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  br label %111

111:                                              ; preds = %110, %71
  call void @_ZN8ImVectorIjED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  br label %112

112:                                              ; preds = %111, %67
  call void @_ZN16ImGuiDrawContextD2Ev(ptr noundef nonnull align 8 dereferenceable(240) %16) #6
  br label %113

113:                                              ; preds = %112
  %114 = load ptr, ptr %5, align 8
  %115 = load i32, ptr %6, align 4
  %116 = insertvalue { ptr, i32 } poison, ptr %114, 0
  %117 = insertvalue { ptr, i32 } %116, i32 %115, 1
  resume { ptr, i32 } %117
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16ImGuiDrawContextC2Ev(ptr noundef nonnull align 8 dereferenceable(240)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8ImVectorIjEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8ImVectorI6ImVec4EC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9ImGuiAabbC2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN12ImGuiStorageC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL8ImStrdupPKc(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN11ImGuiWindow5GetIDEPKc(ptr noundef nonnull align 8 dereferenceable(480), ptr noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorIjE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL11ImLengthSqrRK6ImVec2(ptr noundef nonnull align 4 dereferenceable(8)) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10ImDrawListC2Ev(ptr noundef nonnull align 8 dereferenceable(104)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN12ImGuiStorageD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8ImVectorI6ImVec4ED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8ImVectorIjED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN16ImGuiDrawContextD2Ev(ptr noundef nonnull align 8 dereferenceable(240)) unnamed_addr #5 align 2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint 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 #5 = { inlinehint 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 #6 = { 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 0}
!10 = !{!"_ZTS11ImGuiWindow", !6, i64 0, !11, i64 8, !11, i64 12, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !13, i64 56, !13, i64 60, !14, i64 64, !14, i64 65, !14, i64 66, !14, i64 67, !14, i64 68, !11, i64 72, !14, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !15, i64 96, !21, i64 336, !22, i64 360, !16, i64 384, !11, i64 400, !13, i64 404, !23, i64 408, !13, i64 432, !6, i64 440, !6, i64 448, !11, i64 456, !11, i64 460, !11, i64 464, !11, i64 468, !11, i64 472, !11, i64 476}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS6ImVec2", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTS16ImGuiDrawContext", !12, i64 0, !12, i64 8, !12, i64 16, !13, i64 24, !13, i64 28, !13, i64 32, !11, i64 36, !11, i64 40, !16, i64 44, !14, i64 60, !17, i64 64, !19, i64 88, !20, i64 112, !20, i64 136, !11, i64 160, !6, i64 168, !13, i64 176, !13, i64 180, !11, i64 184, !11, i64 188, !12, i64 192, !13, i64 200, !13, i64 204, !14, i64 208, !11, i64 212, !20, i64 216}
!16 = !{!"_ZTS9ImGuiAabb", !12, i64 0, !12, i64 8}
!17 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !18, i64 0, !18, i64 8, !6, i64 16}
!18 = !{!"long", !7, i64 0}
!19 = !{!"_ZTS8ImVectorIbE", !18, i64 0, !18, i64 8, !6, i64 16}
!20 = !{!"_ZTS8ImVectorIfE", !18, i64 0, !18, i64 8, !6, i64 16}
!21 = !{!"_ZTS8ImVectorIjE", !18, i64 0, !18, i64 8, !6, i64 16}
!22 = !{!"_ZTS8ImVectorI6ImVec4E", !18, i64 0, !18, i64 8, !6, i64 16}
!23 = !{!"_ZTS12ImGuiStorage", !24, i64 0}
!24 = !{!"_ZTS8ImVectorIN12ImGuiStorage4PairEE", !18, i64 0, !18, i64 8, !6, i64 16}
!25 = !{!10, !11, i64 8}
!26 = !{!10, !11, i64 12}
!27 = !{i64 0, i64 4, !28, i64 4, i64 4, !28}
!28 = !{!13, !13, i64 0}
!29 = !{!10, !13, i64 56}
!30 = !{!10, !13, i64 60}
!31 = !{!10, !14, i64 64}
!32 = !{!10, !14, i64 65}
!33 = !{!10, !14, i64 66}
!34 = !{!10, !14, i64 67}
!35 = !{!10, !14, i64 68}
!36 = !{!10, !11, i64 72}
!37 = !{!10, !14, i64 76}
!38 = !{!10, !11, i64 88}
!39 = !{!10, !11, i64 84}
!40 = !{!10, !11, i64 80}
!41 = !{!10, !11, i64 400}
!42 = !{!10, !13, i64 404}
!43 = !{!10, !13, i64 432}
!44 = !{!10, !6, i64 440}
!45 = !{!10, !6, i64 448}
!46 = !{!10, !11, i64 460}
!47 = !{!10, !11, i64 456}
!48 = !{!10, !11, i64 468}
!49 = !{!10, !11, i64 464}
!50 = !{!10, !11, i64 476}
!51 = !{!10, !11, i64 472}


; 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 }

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

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11ImGuiWindowC2EPKc(ptr noundef nonnull align 8 dereferenceable(480) %0, ptr noundef %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %struct.ImVec2, align 8
  %4 = alloca %struct.ImVec2, align 8
  %5 = alloca %struct.ImVec2, align 8
  %6 = getelementptr inbounds i8, ptr %0, i64 16
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %6)
  %7 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %7)
  %8 = getelementptr inbounds i8, ptr %0, i64 32
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %8)
  %9 = getelementptr inbounds i8, ptr %0, i64 40
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %9)
  %10 = getelementptr inbounds i8, ptr %0, i64 48
  tail call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %10)
  %11 = getelementptr inbounds i8, ptr %0, i64 96
  tail call void @_ZN16ImGuiDrawContextC2Ev(ptr noundef nonnull align 8 dereferenceable(240) %11)
  %12 = getelementptr inbounds i8, ptr %0, i64 336
  tail call void @_ZN8ImVectorIjEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12)
  %13 = getelementptr inbounds i8, ptr %0, i64 360
  tail call void @_ZN8ImVectorI6ImVec4EC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13)
  %14 = getelementptr inbounds i8, ptr %0, i64 384
  invoke void @_ZN9ImGuiAabbC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %14)
          to label %15 unwind label %40

15:                                               ; preds = %2
  %16 = getelementptr inbounds i8, ptr %0, i64 408
  invoke void @_ZN12ImGuiStorageC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %17 unwind label %40

17:                                               ; preds = %15
  %18 = invoke noundef ptr @_ZL8ImStrdupPKc(ptr noundef %1)
          to label %19 unwind label %42

19:                                               ; preds = %17
  store ptr %18, ptr %0, align 8, !tbaa !5
  %20 = invoke noundef i32 @_ZN11ImGuiWindow5GetIDEPKc(ptr noundef nonnull align 8 dereferenceable(480) %0, ptr noundef %1)
          to label %21 unwind label %42

21:                                               ; preds = %19
  %22 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 %20, ptr %22, align 8, !tbaa !24
  %23 = getelementptr inbounds i8, ptr %0, i64 12
  store i32 0, ptr %23, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %3, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %24 = load i64, ptr %3, align 8
  store i64 %24, ptr %7, align 8
  store i64 %24, ptr %6, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %4, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %25 = load i64, ptr %4, align 8
  store i64 %25, ptr %9, align 8
  store i64 %25, ptr %8, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %5, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %26 = load i64, ptr %5, align 8
  store i64 %26, ptr %10, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  %27 = getelementptr inbounds i8, ptr %0, i64 56
  %28 = getelementptr inbounds i8, ptr %0, i64 72
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(13) %27, i8 0, i64 13, i1 false)
  store i32 -1, ptr %28, align 8, !tbaa !26
  %29 = getelementptr inbounds i8, ptr %0, i64 76
  store i8 0, ptr %29, align 4, !tbaa !27
  %30 = getelementptr inbounds i8, ptr %0, i64 88
  store i32 7, ptr %30, align 8, !tbaa !28
  %31 = getelementptr inbounds i8, ptr %0, i64 84
  store i32 7, ptr %31, align 4, !tbaa !29
  %32 = getelementptr inbounds i8, ptr %0, i64 80
  store i32 7, ptr %32, align 8, !tbaa !30
  invoke void @_ZN8ImVectorIjE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %33 unwind label %42

33:                                               ; preds = %21
  %34 = getelementptr inbounds i8, ptr %0, i64 400
  store i32 -1, ptr %34, align 8, !tbaa !31
  %35 = getelementptr inbounds i8, ptr %0, i64 404
  store float 0.000000e+00, ptr %35, align 4, !tbaa !32
  %36 = getelementptr inbounds i8, ptr %0, i64 432
  store float 1.000000e+00, ptr %36, align 8, !tbaa !33
  %37 = call noundef float @_ZL11ImLengthSqrRK6ImVec2(ptr noundef nonnull align 4 dereferenceable(8) %8)
  %38 = fcmp olt float %37, 0x3EE4F8B580000000
  br i1 %38, label %39, label %44

39:                                               ; preds = %33
  store i32 2, ptr %28, align 8, !tbaa !26
  store i8 1, ptr %29, align 4, !tbaa !27
  br label %44

40:                                               ; preds = %15, %2
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %53

42:                                               ; preds = %46, %44, %21, %19, %17
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN12ImGuiStorageD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  br label %53

44:                                               ; preds = %39, %33
  %45 = invoke noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef 104)
          to label %46 unwind label %42

46:                                               ; preds = %44
  %47 = getelementptr inbounds i8, ptr %0, i64 440
  store ptr %45, ptr %47, align 8, !tbaa !34
  invoke void @_ZN10ImDrawListC2Ev(ptr noundef nonnull align 8 dereferenceable(104) %45)
          to label %48 unwind label %42

48:                                               ; preds = %46
  %49 = getelementptr inbounds i8, ptr %0, i64 448
  store ptr null, ptr %49, align 8, !tbaa !35
  %50 = getelementptr inbounds i8, ptr %0, i64 456
  store <4 x i32> <i32 -1, i32 -1, i32 2147483647, i32 2147483647>, ptr %50, align 8, !tbaa !36
  %51 = getelementptr inbounds i8, ptr %0, i64 476
  store i32 2147483647, ptr %51, align 4, !tbaa !37
  %52 = getelementptr inbounds i8, ptr %0, i64 472
  store i32 2147483647, ptr %52, align 8, !tbaa !38
  ret void

53:                                               ; preds = %42, %40
  %.pn = phi { ptr, i32 } [ %43, %42 ], [ %41, %40 ]
  call void @_ZN8ImVectorI6ImVec4ED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @_ZN8ImVectorIjED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @_ZN16ImGuiDrawContextD2Ev(ptr noundef nonnull align 8 dereferenceable(240) %11) #6
  resume { ptr, i32 } %.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16ImGuiDrawContextC2Ev(ptr noundef nonnull align 8 dereferenceable(240)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8ImVectorIjEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8ImVectorI6ImVec4EC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9ImGuiAabbC2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN12ImGuiStorageC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL8ImStrdupPKc(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN11ImGuiWindow5GetIDEPKc(ptr noundef nonnull align 8 dereferenceable(480), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorIjE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL11ImLengthSqrRK6ImVec2(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10ImDrawListC2Ev(ptr noundef nonnull align 8 dereferenceable(104)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8ImVectorI6ImVec4ED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8ImVectorIjED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint 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 = { inlinehint 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 0}
!6 = !{!"_ZTS11ImGuiWindow", !7, i64 0, !10, i64 8, !10, i64 12, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !12, i64 56, !12, i64 60, !13, i64 64, !13, i64 65, !13, i64 66, !13, i64 67, !13, i64 68, !10, i64 72, !13, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !14, i64 96, !20, i64 336, !21, i64 360, !15, i64 384, !10, i64 400, !12, i64 404, !22, i64 408, !12, i64 432, !7, i64 440, !7, i64 448, !10, i64 456, !10, i64 460, !10, i64 464, !10, i64 468, !10, i64 472, !10, i64 476}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTS6ImVec2", !12, i64 0, !12, i64 4}
!12 = !{!"float", !8, i64 0}
!13 = !{!"bool", !8, i64 0}
!14 = !{!"_ZTS16ImGuiDrawContext", !11, i64 0, !11, i64 8, !11, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !10, i64 36, !10, i64 40, !15, i64 44, !13, i64 60, !16, i64 64, !18, i64 88, !19, i64 112, !19, i64 136, !10, i64 160, !7, i64 168, !12, i64 176, !12, i64 180, !10, i64 184, !10, i64 188, !11, i64 192, !12, i64 200, !12, i64 204, !13, i64 208, !10, i64 212, !19, i64 216}
!15 = !{!"_ZTS9ImGuiAabb", !11, i64 0, !11, i64 8}
!16 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !17, i64 0, !17, i64 8, !7, i64 16}
!17 = !{!"long", !8, i64 0}
!18 = !{!"_ZTS8ImVectorIbE", !17, i64 0, !17, i64 8, !7, i64 16}
!19 = !{!"_ZTS8ImVectorIfE", !17, i64 0, !17, i64 8, !7, i64 16}
!20 = !{!"_ZTS8ImVectorIjE", !17, i64 0, !17, i64 8, !7, i64 16}
!21 = !{!"_ZTS8ImVectorI6ImVec4E", !17, i64 0, !17, i64 8, !7, i64 16}
!22 = !{!"_ZTS12ImGuiStorage", !23, i64 0}
!23 = !{!"_ZTS8ImVectorIN12ImGuiStorage4PairEE", !17, i64 0, !17, i64 8, !7, i64 16}
!24 = !{!6, !10, i64 8}
!25 = !{!6, !10, i64 12}
!26 = !{!6, !10, i64 72}
!27 = !{!6, !13, i64 76}
!28 = !{!6, !10, i64 88}
!29 = !{!6, !10, i64 84}
!30 = !{!6, !10, i64 80}
!31 = !{!6, !10, i64 400}
!32 = !{!6, !12, i64 404}
!33 = !{!6, !12, i64 432}
!34 = !{!6, !7, i64 440}
!35 = !{!6, !7, i64 448}
!36 = !{!10, !10, i64 0}
!37 = !{!6, !10, i64 476}
!38 = !{!6, !10, i64 472}


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