//
// cocos2d::CCTextureAtlas::dCCTextureAtlas from 0x1004accf0 to 0x1004acd6e (126 bytes)
//
// 2 xrefs:
// > sub_1004ACD80 @ 0x1004acd85
// > sub_1004ACD90 @ 0x1004acd99
//
// 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::CCScriptEngineManager *__fastcall cocos2d::CCTextureAtlas::dCCTextureAtlas(__int64 a1)
{
void *v2; // rdi
void *v3; // rdi
cocos2d::CCObject *v4; // rdi
*(_QWORD *)a1 = off_100948088;
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));
glDeleteVertexArraysAPPLE(1, (const GLuint *)(a1 + 64));
cocos2d::ccGLBindVAO(0);
v4 = *(cocos2d::CCObject **)(a1 + 88);
if ( v4 )
cocos2d::CCObject::release(v4);
return cocos2d::CCObject::dCCObject((cocos2d::CCObject *)a1);
}