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