//
// cocos2d::CCTextureAtlas::dCCTextureAtlas from 0x1004a5ed0 to 0x1004a5f4e (126 bytes)
//
// 2 xrefs:
// > sub_1004A5F60 @ 0x1004a5f65
// > sub_1004A5F70 @ 0x1004a5f79
//
// This function is hookable on this platform (idp: pc, 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 12:30:54 +0000
//
__int64 *__fastcall cocos2d::CCTextureAtlas::dCCTextureAtlas(__int64 a1)
{
void *v2; // rdi
void *v3; // rdi
_DWORD *v4; // rdi
*(_QWORD *)a1 = off_100B52EC8;
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 = *(_DWORD **)(a1 + 88);
if ( v4 )
cocos2d::CCObject::release(v4);
return sub_10047FF60(a1);
}