//
// sub_1004734B8 from 0x1004734b8 to 0x100473540 (136 bytes)
//
// 1 xrefs:
// > EditorUI::init @ 0x100470a20
//
// 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 11:05:39 +0000
//
__int64 __fastcall sub_1004734B8(__int64 result)
{
__int64 v1; // x19
_BOOL8 v2; // x1
__n128 v3; // q0
__int64 v4; // x0
if ( (*(_BYTE *)(result + 1588) & 1) == 0 )
{
v1 = result;
*(_WORD *)(result + 1589) = 0;
EditorUI::updateDeleteMenu(result);
EditorUI::updateCreateMenu(v1, 0);
EditorUI::updateEditMenu(v1);
v2 = 0;
if ( (*(_BYTE *)(v1 + 1589) & 1) == 0 )
v2 = *(_DWORD *)(v1 + 1436) == 4;
(*(void (__fastcall **)(_QWORD, _BOOL8))(**(_QWORD **)(v1 + 1384) + 344LL))(*(_QWORD *)(v1 + 1384), v2);
v3.n128_f64[0] = EditorUI::showUI(v1, 1);
v4 = EditorSFXManager::sharedState(v3);
return EditorSFXManager::playAction(v4, 194, 189);
}
return result;
}