//
// SecretLayer5::~SecretLayer5 from 0xbc2ec8 to 0xbc2fa8 (224 bytes)
//
// 5 xrefs:
// > `non-virtual thunk to'SecretLayer5::~SecretLayer5 @ 0xbc2fac
// > SecretLayer5::~SecretLayer5 @ 0xbc2fc0
// > ??> @ 0x47f20
// > ??> @ 0xe0620
// > ??> @ 0x14dfa48
//
// 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:03:30 +0000
//
// Alternative name is '_ZN12SecretLayer5D1Ev'
void __fastcall SecretLayer5::~SecretLayer5(SecretLayer5 *this)
{
cocos2d::CCObject *v2; // x0
char *v3; // x0
char *v4; // x2
v2 = *((cocos2d::CCObject **)this + 63);
*(_QWORD *)this = &off_14DFA40;
*((_QWORD *)this + 40) = off_14DFF08;
*((_QWORD *)this + 41) = &off_14DFF78;
*((_QWORD *)this + 42) = off_14DFF90;
*((_QWORD *)this + 43) = off_14DFFB0;
*((_QWORD *)this + 44) = off_14DFFD8;
*((_QWORD *)this + 51) = off_14E0008;
*((_QWORD *)this + 52) = &off_14E0050;
*((_QWORD *)this + 53) = &off_14E0068;
*((_QWORD *)this + 54) = &off_14E0080;
if ( v2 )
v2 = (cocos2d::CCObject *)cocos2d::CCObject::release(v2);
if ( *(SecretLayer5 **)(GameLevelManager::sharedState(v2) + 1416) == (SecretLayer5 *)((char *)this + 432) )
*(_QWORD *)(GameLevelManager::sharedState((SecretLayer5 *)((char *)this + 432)) + 1416) = 0;
v3 = *((char **)this + 74);
if ( v3 )
{
v4 = *((char **)this + 75);
if ( v3 != v4 )
*((_QWORD *)this + 75) = &v4[4 * ~((unsigned __int64)(v4 - 4 - v3) >> 2)];
operator delete(v3);
}
if ( (*((_BYTE *)this + 520) & 1) != 0 )
operator delete(*((void **)this + 67));
cocos2d::CCLayer::~CCLayer(this);
}