//
// EditorSFXActionConfigLayer::onEditSound from 0x77baf6 to 0x77bb4e (88 bytes)
//
// 0 xrefs:
//
// 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:59:23 +0000
//
SetupTriggerPopup *__fastcall EditorSFXActionConfigLayer::onEditSound(
EditorSFXActionConfigLayer *this,
cocos2d::CCObject *a2)
{
EditorSFXManager *v3; // r0
int v4; // r4
EditorSFXManager *v5; // r0
SetupTriggerPopup *result; // r0
signed int v7; // r4
cocos2d::CCArray *v8; // r5
int v9; // r3
v3 = (EditorSFXManager *)(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
v4 = (int)v3 - 1000;
if ( (int)v3 - 1000 < 0 )
v4 = (int)v3 - 993;
v5 = (EditorSFXManager *)EditorSFXManager::sharedState(v3);
result = (SetupTriggerPopup *)EditorSFXManager::soundsForAction(v5, *((_DWORD *)this + 179));
v7 = v4 >> 3;
v8 = result;
if ( result )
{
if ( v7 >= 0 )
{
result = (SetupTriggerPopup *)cocos2d::CCArray::count(result);
if ( v7 < (int)result )
{
result = (SetupTriggerPopup *)cocos2d::CCArray::objectAtIndex(v8, v7);
if ( result )
{
result = SetupSFXPopup::create(result, nullptr, (cocos2d::CCArray *)((char *)&dword_0 + 1), v9);
if ( result )
return (SetupTriggerPopup *)(*(int (__fastcall **)(SetupTriggerPopup *))(*(_DWORD *)result + 656))(result);
}
}
}
}
return result;
}