//
// SecretLayer5::~SecretLayer5 from 0x6e4094 to 0x6e413c (168 bytes)
//
// 2 xrefs:
// > `non-virtual thunk to'SecretLayer5::~SecretLayer5 @ 0x6e4144
// > SecretLayer5::~SecretLayer5 @ 0x6e414c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:57:23 +0000
//
// Alternative name is '_ZN12SecretLayer5D1Ev'
void __fastcall SecretLayer5::~SecretLayer5(SecretLayer5 *this)
{
cocos2d::CCObject *v2; // r0
SecretLayer5 **v3; // r0
char *v4; // r0
char *v5; // r3
*(_DWORD *)this = &off_CE9A58;
*((_DWORD *)this + 66) = &off_CE9CBC;
*((_DWORD *)this + 67) = &off_CE9CF4;
*((_DWORD *)this + 68) = &off_CE9D00;
*((_DWORD *)this + 69) = &off_CE9D10;
*((_DWORD *)this + 70) = &off_CE9D24;
*((_DWORD *)this + 79) = &off_CE9D3C;
*((_DWORD *)this + 80) = &off_CE9D60;
*((_DWORD *)this + 81) = &off_CE9D6C;
*((_DWORD *)this + 82) = &off_CE9D78;
v2 = *((cocos2d::CCObject **)this + 94);
if ( v2 )
v2 = (cocos2d::CCObject *)cocos2d::CCObject::release(v2);
v3 = (SecretLayer5 **)GameLevelManager::sharedState(v2);
if ( v3[229] == (SecretLayer5 *)((char *)this + 328) )
*(_DWORD *)(GameLevelManager::sharedState((GameLevelManager *)v3) + 916) = 0;
v4 = *((char **)this + 106);
if ( v4 )
{
while ( 1 )
{
v5 = *((char **)this + 107);
if ( v4 == v5 )
break;
*((_DWORD *)this + 107) = v5 - 4;
}
operator delete(v4);
}
std::string::~string((int)this + 388);
cocos2d::CCLayer::~CCLayer(this);
}