//
// cocos2d::CCTextureAtlas::dCCTextureAtlas from 0x100307bb0 to 0x100307c28 (120 bytes)
//
// 2 xrefs:
// > j_cocos2d::CCTextureAtlas::dCCTextureAtlas @ 0x100307c2c
// > sub_100307C30 @ 0x100307c38
//
// 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 11:03:08 +0000
//
__int64 __fastcall cocos2d::CCTextureAtlas::dCCTextureAtlas(__int64 a1)
{
void *v2; // x0
void *v3; // x0
_DWORD *v4; // x0
*(_QWORD *)a1 = off_10092B560;
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 = *(_DWORD **)(a1 + 88);
if ( v4 )
cocos2d::CCObject::release(v4);
return cocos2d::CCObject::dCCObject(a1);
}