//
// sub_180064810 from 0x180064810 to 0x1800648af (159 bytes)
//
// 6 xrefs:
// > cocos2d::CCParticleFireworks::create @ 0x180064fc9
// > cocos2d::CCParticleFireworks::createWithTotalParticles @ 0x180065833
// > cocos2d::CCParticleFireworks::create @ 0x180064fb8
// > cocos2d::CCParticleFireworks::createWithTotalParticles @ 0x180065822
// > ??> @ 0x1801012b8
// > ??> @ 0x1801bdb70
//
// 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 11:21:52 +0000
//
cocos2d::CCParticleSystemQuad *__fastcall sub_180064810(cocos2d::CCParticleSystemQuad *Block, char a2)
{
int v3; // esi
v3 = a2 & 1;
if ( (a2 & 2) != 0 )
{
sub_1800E49F8(Block, 840, *((_QWORD *)Block - 1), cocos2d::CCParticleFireworks::~CCParticleFireworks);
if ( v3 )
j_j_j_free_0((char *)Block - 8);
return (cocos2d::CCParticleSystemQuad *)((char *)Block - 8);
}
else
{
*(_QWORD *)Block = &cocos2d::CCParticleFireworks::`vftable'{for `cocos2d::CCNode'};
*((_QWORD *)Block + 40) = &cocos2d::CCParticleFireworks::`vftable'{for `cocos2d::CCTextureProtocol'};
cocos2d::CCParticleSystemQuad::~CCParticleSystemQuad(Block);
if ( v3 )
j_j_free_0(Block);
return Block;
}
}