//
// EditorUI::editObjectOptions from 0x4842a0 to 0x4842ee (78 bytes)
//
// 1 xrefs:
// > EditorUI::handleEditorAction @ 0x6f23f4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:49:24 +0000
//
int __fastcall EditorUI::editObjectOptions(EditorUI *this, cocos2d::CCObject *a2)
{
int result; // r0
EditorBuildStats *v4; // r0
EditorSFXManager *v5; // r0
EditorSFXManager *v6; // r0
cocos2d::CCArray *v7; // r2
int v8; // r0
if ( *((_DWORD *)this + 249) || (result = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 167))) != 0 )
{
v4 = (EditorBuildStats *)(*((_DWORD *)this + 236) + 12104);
*((_DWORD *)v4 + 4) = *(_DWORD *)(*((_DWORD *)this + 236) + 12120) + 1;
v5 = (EditorSFXManager *)EditorBuildStats::noteAction(v4);
v6 = (EditorSFXManager *)EditorSFXManager::sharedState(v5);
EditorSFXManager::playAction(v6, 108, 107);
v8 = SetupObjectOptionsPopup::create(*((SetupObjectOptionsPopup **)this + 249), *((GameObject **)this + 167), v7);
return (*(int (__fastcall **)(int))(*(_DWORD *)v8 + 656))(v8);
}
return result;
}