//
// EditorSFXActionConfigLayer::onEditSound from 0xcbda18 to 0xcbdaa8 (144 bytes)
//
// 3 xrefs:
// > ??> @ 0x6cb08
// > EditorSFXActionConfigLayer::refreshRows @ 0xcbe708
// > ??> @ 0x1542ae0
//
// 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 13:06:15 +0000
//
cocos2d::CCArray *__fastcall EditorSFXActionConfigLayer::onEditSound(
EditorSFXActionConfigLayer *this,
cocos2d::CCObject *a2)
{
EditorSFXManager *v3; // x0
int v4; // w19
EditorSFXManager *v5; // x0
signed int v6; // w19
cocos2d::CCArray *result; // x0
cocos2d::CCArray *v8; // x20
v3 = (EditorSFXManager *)((*(unsigned int (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2) - 1000);
if ( (int)v3 >= 0 )
v4 = (int)v3;
else
v4 = (_DWORD)v3 + 7;
v5 = (EditorSFXManager *)EditorSFXManager::sharedState(v3);
v6 = v4 >> 3;
result = (cocos2d::CCArray *)EditorSFXManager::soundsForAction(v5, *((_DWORD *)this + 256));
v8 = result;
if ( (v6 & 0x80000000) == 0 )
{
if ( result )
{
result = (cocos2d::CCArray *)cocos2d::CCArray::count(result);
if ( (int)result > v6 )
{
result = (cocos2d::CCArray *)cocos2d::CCArray::objectAtIndex(v8, v6);
if ( result )
{
result = (cocos2d::CCArray *)SetupSFXPopup::create(
result,
nullptr,
(cocos2d::CCArray *)((char *)&dword_0 + 1));
if ( result )
return (cocos2d::CCArray *)(*(__int64 (__fastcall **)(cocos2d::CCArray *))(*(_QWORD *)result + 1312LL))(result);
}
}
}
}
return result;
}