//
// EditorUI::updateEditMenu from 0x1401ba2a0 to 0x1401ba314 (116 bytes)
//
// 5 xrefs:
// > EditorUI::init @ 0x1401ab144
// > EditorUI::clickOnPosition @ 0x1401adb6b
// > EditorUI::resetUI @ 0x1401afce6
// > EditorUI::handleEditorAction @ 0x1401c3332
// > ??> @ 0x14091a420
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:27:59 +0000
//
__int64 __fastcall EditorUI::updateEditMenu(__int64 a1, __int64 a2)
{
__int64 v3; // rcx
__int64 result; // rax
__int64 v5; // rcx
__int64 v6; // rcx
LOBYTE(a2) = !*(_BYTE *)(a1 + 1661) && *(_DWORD *)(a1 + 1508) == 3;
v3 = *(_QWORD *)(a1 + 1664);
if ( v3 )
{
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 336LL))(v3, a2);
v5 = *(_QWORD *)(a1 + 880);
if ( v5 )
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 336LL))(v5, 0);
}
else
{
v6 = *(_QWORD *)(a1 + 880);
if ( v6 )
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 336LL))(v6, a2);
}
return result;
}