//
// EditorSFXManager::releaseBinding from 0x1004c7f34 to 0x1004c7f8c (88 bytes)
//
// 2 xrefs:
// > EditorSFXManager::clearAll @ 0x1004c753c
// > sub_1004C8404 @ 0x1004c84a0
//
// 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 11:06:24 +0000
//
void __fastcall EditorSFXManager::releaseBinding(int a1, char *__p)
{
void *v3; // x0
if ( __p )
{
if ( *(_QWORD *)__p )
{
cocos2d::CCObject::release(*(_DWORD **)__p);
*(_QWORD *)__p = 0;
}
v3 = *((void **)__p + 5);
if ( v3 )
{
*((_QWORD *)__p + 6) = v3;
operator delete(v3);
}
if ( __p[39] < 0 )
operator delete(*((void **)__p + 2));
operator delete(__p);
}
}