//
// EditorSFXManager::firstSetup from 0xcc0208 to 0xcc0300 (248 bytes)
//
// 2 xrefs:
// > GameManager::firstLoad @ 0x71fc24
// > ??> @ 0xebe70
//
// 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:17 +0000
//
float __fastcall EditorSFXManager::firstSetup(cocos2d::CCArray **this)
{
cocos2d::CCArray *v2; // x0
cocos2d::CCArray *v3; // x0
__int64 v4; // x0
_QWORD *v5; // x0
_QWORD *v6; // x20
__int64 v7; // x2
__int64 v8; // x0
_QWORD *v9; // x0
_QWORD *v10; // x20
__int64 v11; // x2
__int64 v12; // x0
EditorSFXManager::clearAll((EditorSFXManager *)this);
if ( (*(_BYTE *)(this + 21) & 1) != 0 )
{
*(_BYTE *)*(this + 23) = 0;
*(this + 22) = nullptr;
}
else
{
*((_BYTE *)this + 169) = 0;
*((_BYTE *)this + 168) = 0;
}
v2 = *(this + 18);
if ( v2 )
cocos2d::CCArray::removeAllObjects(v2);
v3 = *(this + 19);
if ( v3 )
cocos2d::CCArray::removeAllObjects(v3);
v4 = (__int64)*(this + 8);
*((_DWORD *)this + 40) = 1;
if ( v4 )
{
v5 = *(this + 7);
if ( v5 )
{
do
{
v6 = (_QWORD *)*v5;
operator delete(v5);
v5 = v6;
}
while ( v6 );
}
v7 = (__int64)*(this + 6);
v8 = 0;
*(this + 7) = nullptr;
if ( v7 )
{
do
*((_QWORD *)*(this + 5) + v8++) = 0;
while ( v8 != v7 );
}
*(this + 8) = nullptr;
}
if ( *(this + 13) )
{
v9 = *(this + 12);
if ( v9 )
{
do
{
v10 = (_QWORD *)*v9;
operator delete(v9);
v9 = v10;
}
while ( v10 );
}
v11 = (__int64)*(this + 11);
v12 = 0;
*(this + 12) = nullptr;
if ( v11 )
{
do
*((_QWORD *)*(this + 10) + v12++) = 0;
while ( v12 != v11 );
}
*(this + 13) = nullptr;
}
*((float *)this + 48) = 1.0;
return 1.0;
}