//
// cocos2d::CCParticleSystemQuad::dCCParticleSystemQuad from 0x100602a40 to 0x100602ada (154 bytes)
//
// 4 xrefs:
// > sub_100486EA0 @ 0x100486ea5
// > sub_100486EB0 @ 0x100486eb9
// > sub_100602AF0 @ 0x100602af5
// > sub_100602B00 @ 0x100602b09
//
// 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
//
__int64 __fastcall cocos2d::CCParticleSystemQuad::dCCParticleSystemQuad(__int64 a1)
{
void *v2; // rdi
void *v3; // rdi
*(_QWORD *)a1 = off_10097E268;
*(_QWORD *)(a1 + 320) = off_10097E8D8;
if ( !*(_QWORD *)(a1 + 432) )
{
v2 = *(void **)(a1 + 784);
if ( v2 )
{
free(v2);
*(_QWORD *)(a1 + 784) = 0;
}
v3 = *(void **)(a1 + 792);
if ( v3 )
{
free(v3);
*(_QWORD *)(a1 + 792) = 0;
}
glDeleteBuffers(2, (const GLuint *)(a1 + 804));
glDeleteVertexArraysAPPLE(1, (const GLuint *)(a1 + 800));
cocos2d::ccGLBindVAO(0);
}
return cocos2d::CCParticleSystem::dCCParticleSystem(a1);
}