//
// EditorSFXActionConfigLayer::onDeleteSound from 0xcbdaa8 to 0xcbdafc (84 bytes)
//
// 3 xrefs:
// > ??> @ 0xf2980
// > EditorSFXActionConfigLayer::refreshRows @ 0xcbe660
// > ??> @ 0x1547580
//
// 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
//
__int64 __fastcall EditorSFXActionConfigLayer::onDeleteSound(EditorSFXActionConfigLayer *this, cocos2d::CCObject *a2)
{
EditorSFXManager *v3; // x0
int v4; // w19
EditorSFXManager *v5; // x0
int v6; // w2
v3 = (EditorSFXManager *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
v4 = (int)v3;
v5 = (EditorSFXManager *)EditorSFXManager::sharedState(v3);
v6 = v4 - 993;
if ( v4 - 1000 >= 0 )
v6 = v4 - 1000;
EditorSFXManager::removeSoundAt(v5, *((_DWORD *)this + 256), v6 >> 3);
return FLAlertLayer::requestRebuild(this);
}