//
// cocos2d::CCTextureAtlas::dCCTextureAtlas from 0x100269e28 to 0x100269ea0 (120 bytes)
//
// 2 xrefs:
// > j_cocos2d::CCTextureAtlas::dCCTextureAtlas @ 0x100269ea4
// > sub_100269EA8 @ 0x100269eb0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
cocos2d::CCObject *__fastcall cocos2d::CCTextureAtlas::dCCTextureAtlas(__int64 a1)
{
void *v2; // x0
void *v3; // x0
cocos2d::CCObject *v4; // x0
*(_QWORD *)a1 = off_1007D2828;
v2 = *(void **)(a1 + 96);
if ( v2 )
{
free(v2);
*(_QWORD *)(a1 + 96) = 0;
}
v3 = *(void **)(a1 + 56);
if ( v3 )
{
free(v3);
*(_QWORD *)(a1 + 56) = 0;
}
glDeleteBuffers(2, (const GLuint *)(a1 + 68));
glDeleteVertexArraysOES(1, a1 + 64);
cocos2d::ccGLBindVAO(0);
v4 = *(cocos2d::CCObject **)(a1 + 88);
if ( v4 )
cocos2d::CCObject::release(v4);
return cocos2d::CCObject::dCCObject((cocos2d::CCObject *)a1);
}