//
// ParticleGameObject::create from 0x14049fb00 to 0x14049fc20 (288 bytes)
//
// 3 xrefs:
// > GameObject::createWithKey @ 0x14018c0a7
// > CreateParticlePopup::onCopySettings @ 0x140431b71
// > ??> @ 0x1406dc47c
//
// 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
//
// Hidden C++ exception states: #wind=1
ParticleGameObject *ParticleGameObject::create()
{
char *v0; // rbx
bool (*v1)(ParticleGameObject *); // rdx
v0 = (char *)operator new(0x720u);
EnhancedGameObject::EnhancedGameObject((EnhancedGameObject *)v0);
*(_QWORD *)v0 = &ParticleGameObject::`vftable';
*((_QWORD *)v0 + 40) = &ParticleGameObject::`vftable';
*((_QWORD *)v0 + 43) = &ParticleGameObject::`vftable';
*(_OWORD *)(v0 + 1464) = 0;
*((_QWORD *)v0 + 185) = 0;
*((_QWORD *)v0 + 186) = 15;
v0[1464] = 0;
v0[1496] = 1;
sub_140063B90((__int64)(v0 + 1504));
v0[1800] = 0;
*((_DWORD *)v0 + 451) = 0;
v0[1808] = 0;
*((_DWORD *)v0 + 453) = -1082130432;
*((_WORD *)v0 + 908) = 0;
v1 = *(bool (**)(ParticleGameObject *))(*(_QWORD *)v0 + 72LL);
if ( v1 == ParticleGameObject::init )
{
if ( EnhancedGameObject::init((EnhancedGameObject *)v0, "edit_eCParticleBtn_001.png") )
{
v0[1402] = 1;
v0[313] = 0;
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);
return (ParticleGameObject *)v0;
}
}
else if ( v1((ParticleGameObject *)v0) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);
return (ParticleGameObject *)v0;
}
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v0 + 8LL))(v0, 1);
return nullptr;
}