//
// EditorUI::updateEditMenu from 0x10000d4b0 to 0x10000d53a (138 bytes)
//
// 3 xrefs:
// > EditorUI::handleEditorAction @ 0x10060c0d0
// > EditorUI::setupEditMenu @ 0x1006390d7
// > EditorUI::recreateButtonTabs @ 0x10063cd43
//
// 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 12:18:50 +0000
//
unsigned __int8 __fastcall EditorUI::updateEditMenu(__int64 a1)
{
unsigned __int8 result; // al
__int64 v3; // rdi
__int64 v4; // rdi
__int64 v5; // rdi
if ( *(_BYTE *)(a1 + 1589) )
{
result = 0;
v3 = *(_QWORD *)(a1 + 1592);
if ( v3 )
goto LABEL_3;
}
else
{
result = *(_DWORD *)(a1 + 1436) == 3;
v3 = *(_QWORD *)(a1 + 1592);
if ( v3 )
{
LABEL_3:
result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 344LL))(v3, result);
v4 = *(_QWORD *)(a1 + 832);
if ( v4 )
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 344LL))(v4, 0);
return result;
}
}
v5 = *(_QWORD *)(a1 + 832);
if ( v5 )
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 344LL))(v5, result);
return result;
}