//
// sub_180064B30 from 0x180064b30 to 0x180064bcf (159 bytes)
//
// 6 xrefs:
// > cocos2d::CCParticleSmoke::create @ 0x180065389
// > cocos2d::CCParticleSmoke::createWithTotalParticles @ 0x180065c43
// > cocos2d::CCParticleSmoke::create @ 0x180065378
// > cocos2d::CCParticleSmoke::createWithTotalParticles @ 0x180065c32
// > ??> @ 0x180104038
// > ??> @ 0x1801bdbac
//
// 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_180064B30(cocos2d::CCParticleSystemQuad *Block, char a2)
{
int v3; // esi
v3 = a2 & 1;
if ( (a2 & 2) != 0 )
{
sub_1800E49F8(Block, 840, *((_QWORD *)Block - 1), cocos2d::CCParticleSmoke::~CCParticleSmoke);
if ( v3 )
j_j_j_free_0((char *)Block - 8);
return (cocos2d::CCParticleSystemQuad *)((char *)Block - 8);
}
else
{
*(_QWORD *)Block = &cocos2d::CCParticleSmoke::`vftable'{for `cocos2d::CCNode'};
*((_QWORD *)Block + 40) = &cocos2d::CCParticleSmoke::`vftable'{for `cocos2d::CCTextureProtocol'};
cocos2d::CCParticleSystemQuad::~CCParticleSystemQuad(Block);
if ( v3 )
j_j_free_0(Block);
return Block;
}
}