//
// EditorUI::updateEditMenu from 0x7c4570 to 0x7c45f0 (128 bytes)
//
// 7 xrefs:
// > EditorUI::resetUI @ 0x7ce4a8
// > EditorUI::onShowUIBtn @ 0x7ce658
// > EditorUI::clickOnPosition @ 0x7d1cf8
// > EditorUI::handleEditorAction @ 0xbd7814
// > EditorUI::setupEditMenu @ 0xbe1fec
// > EditorUI::recreateButtonTabs @ 0xbe2134
// > ??> @ 0x424d8
//
// This function is hookable on this platform (idp: arm, 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 12:54:08 +0000
//
__int64 __fastcall EditorUI::updateEditMenu(EditorUI *this)
{
_BOOL8 v1; // x1
__int64 v3; // x0
__int64 result; // x0
v1 = 0;
if ( !*((_BYTE *)this + 1589) )
v1 = *((_DWORD *)this + 359) == 3;
v3 = *((_QWORD *)this + 199);
if ( v3 )
{
(*(void (__fastcall **)(__int64, _BOOL8))(*(_QWORD *)v3 + 344LL))(v3, v1);
result = *((_QWORD *)this + 104);
if ( result )
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)result + 344LL))(result, 0);
}
else
{
result = *((_QWORD *)this + 104);
if ( result )
return (*(__int64 (__fastcall **)(__int64, _BOOL8))(*(_QWORD *)result + 344LL))(result, v1);
}
return result;
}