//
// ShaderLayer::~ShaderLayer from 0xb28f54 to 0xb2901c (200 bytes)
//
// 5 xrefs:
// > `non-virtual thunk to'ShaderLayer::~ShaderLayer @ 0xb29020
// > ShaderLayer::~ShaderLayer @ 0xb29034
// > ??> @ 0xbed80
// > ??> @ 0xfa078
// > ??> @ 0x14b6b98
//
// 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:01:40 +0000
//
// Alternative name is '_ZN11ShaderLayerD1Ev'
void __fastcall ShaderLayer::~ShaderLayer(ShaderLayer *this)
{
cocos2d::CCObject *v2; // x0
cocos2d::CCNotificationCenter *v3; // x0
_QWORD *v4; // x0
_QWORD *v5; // x19
void *v6; // x0
_QWORD *v7; // x0
_QWORD *v8; // x19
void *v9; // x0
v2 = *((cocos2d::CCObject **)this + 137);
*(_QWORD *)this = &off_14B6B90;
*((_QWORD *)this + 40) = off_14B7020;
*((_QWORD *)this + 41) = &off_14B7090;
*((_QWORD *)this + 42) = off_14B70A8;
*((_QWORD *)this + 43) = off_14B70C8;
*((_QWORD *)this + 44) = off_14B70F0;
if ( v2 )
v2 = (cocos2d::CCObject *)cocos2d::CCObject::release(v2);
v3 = (cocos2d::CCNotificationCenter *)cocos2d::CCNotificationCenter::sharedNotificationCenter(v2);
cocos2d::CCNotificationCenter::removeObserver(v3, this, "event_come_to_foreground");
v4 = *((_QWORD **)this + 58);
if ( v4 )
{
do
{
v5 = (_QWORD *)*v4;
operator delete(v4);
v4 = v5;
}
while ( v5 );
}
v6 = *((void **)this + 56);
*((_QWORD *)this + 56) = 0;
if ( v6 )
operator delete(v6);
v7 = *((_QWORD **)this + 53);
if ( v7 )
{
do
{
v8 = (_QWORD *)*v7;
operator delete(v7);
v7 = v8;
}
while ( v8 );
}
v9 = *((void **)this + 51);
*((_QWORD *)this + 51) = 0;
if ( v9 )
operator delete(v9);
cocos2d::CCLayer::~CCLayer(this);
}