//
// EditorUI::editObjectOptions from 0x7c60ec to 0x7c6168 (124 bytes)
//
// 2 xrefs:
// > EditorUI::handleEditorAction @ 0xbd84dc
// > ??> @ 0xde520
//
// 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::editObjectOptions(EditorUI *this, cocos2d::CCObject *a2)
{
EditorBuildStats *v3; // x0
EditorSFXManager *v4; // x0
EditorSFXManager *v5; // x0
cocos2d::CCArray *v6; // x2
__int64 v7; // x0
__int64 result; // x0
if ( *((_QWORD *)this + 187) || (result = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 112)), (_DWORD)result) )
{
v3 = (EditorBuildStats *)(*((_QWORD *)this + 180) + 14704LL);
*((_DWORD *)v3 + 4) = *(_DWORD *)(*((_QWORD *)this + 180) + 14720LL) + 1;
v4 = (EditorSFXManager *)EditorBuildStats::noteAction(v3);
v5 = (EditorSFXManager *)EditorSFXManager::sharedState(v4);
EditorSFXManager::playAction(v5, 108, 107);
v7 = SetupObjectOptionsPopup::create(*((SetupObjectOptionsPopup **)this + 187), *((GameObject **)this + 112), v6);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 1312LL))(v7);
}
return result;
}