//
// cocos2d::CCParticleMeteor::create from 0x180062d50 to 0x180062e06 (182 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b38c4
//
// 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
//
struct cocos2d::CCParticleMeteor *__fastcall cocos2d::CCParticleMeteor::create()
{
cocos2d::CCParticleSystemQuad *v0; // rax
cocos2d::CCParticleSystemQuad *v1; // rbx
bool (__stdcall *init)(cocos2d::CCParticleSystem *__hidden); // rax
char v3; // al
cocos2d::CCParticleSystemQuad *(__fastcall *v5)(cocos2d::CCParticleSystemQuad *, char); // r8
v0 = (cocos2d::CCParticleSystemQuad *)operator new(0x348u);
v1 = v0;
if ( v0 )
{
cocos2d::CCParticleSystemQuad::CCParticleSystemQuad(v0);
v1->cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCParticleSystemQuad_vtbl *)&cocos2d::CCParticleMeteor::`vftable'{for `cocos2d::CCNode'};
v1->cocos2d::CCParticleSystem::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&cocos2d::CCParticleMeteor::`vftable'{for `cocos2d::CCTextureProtocol'};
}
else
{
v1 = nullptr;
}
if ( v1 )
{
init = v1->init;
if ( (char *)init == (char *)cocos2d::CCParticleMeteor::init )
v3 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v1->cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable[1].copyWithZone)(
v1,
150);
else
v3 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))init)(v1);
if ( v3 )
{
cocos2d::CCObject::autorelease(v1);
return (struct cocos2d::CCParticleMeteor *)v1;
}
v5 = (cocos2d::CCParticleSystemQuad *(__fastcall *)(cocos2d::CCParticleSystemQuad *, char))v1->~CCParticleSystemQuad;
if ( v5 == sub_1800625D0 )
{
sub_1800625D0(v1, 1);
return nullptr;
}
v5(v1, 1);
return nullptr;
}
return (struct cocos2d::CCParticleMeteor *)v1;
}