//
// cocos2d::CCTextureAtlas::~CCTextureAtlas from 0xda42ac to 0xda4328 (124 bytes)
//
// 4 xrefs:
// > cocos2d::CCTextureAtlas::~CCTextureAtlas @ 0xda4338
// > ??> @ 0x5e9a8
// > ??> @ 0x6f190
// > ??> @ 0x1530338
//
// 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:08:31 +0000
//
// Alternative name is '_ZN7cocos2d14CCTextureAtlasD2Ev'
void __fastcall cocos2d::CCTextureAtlas::~CCTextureAtlas(cocos2d::CCTextureAtlas *this)
{
void *v2; // x0
void *v3; // x0
cocos2d::CCNotificationCenter *v4; // x0
cocos2d::CCNotificationCenter *v5; // x0
v2 = *((void **)this + 12);
*(_QWORD *)this = &off_1530330;
if ( v2 )
{
free(v2);
*((_QWORD *)this + 12) = 0;
}
v3 = *((void **)this + 7);
if ( v3 )
{
free(v3);
*((_QWORD *)this + 7) = 0;
}
glDeleteBuffers();
v4 = *((cocos2d::CCNotificationCenter **)this + 11);
if ( v4 )
v4 = (cocos2d::CCNotificationCenter *)cocos2d::CCObject::release(v4);
v5 = cocos2d::CCNotificationCenter::sharedNotificationCenter(v4);
cocos2d::CCNotificationCenter::removeObserver((__int64)v5, this, "event_come_to_foreground");
cocos2d::CCObject::~CCObject(this);
}