//
// EditorSFXActionConfigLayer::onDeleteSound from 0x1008e05e0 to 0x1008e062c (76 bytes)
//
// 1 xrefs:
// > EditorSFXActionConfigLayer::refreshRows @ 0x1008e0229
//
// This function is hookable on this platform (idp: pc, 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:37:45 +0000
//
__int64 __fastcall EditorSFXActionConfigLayer::onDeleteSound(__int64 a1, __int64 a2)
{
int v2; // eax
int v3; // r14d
__int64 v4; // rax
v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
v3 = v2 - 993;
if ( v2 - 1000 >= 0 )
v3 = v2 - 1000;
v4 = EditorSFXManager::sharedState(a2);
EditorSFXManager::removeSoundAt(v4, *(unsigned int *)(a1 + 1024), (unsigned int)(v3 >> 3));
return sub_100495650(a1);
}