//
// GameObject::createAndAddParticle from 0x1005b54f0 to 0x1005b55b4 (196 bytes)
//
// 36 xrefs:
// > EndPortalObject::init @ 0x10039c4a1
// > GameObject::customSetup @ 0x1005aa726
// > GameObject::customSetup @ 0x1005abe41
// > GameObject::customSetup @ 0x1005ac1c8
// > GameObject::customSetup @ 0x1005ac2c7
// > GameObject::customSetup @ 0x1005ac4c6
// > GameObject::customSetup @ 0x1005ac555
// > GameObject::customSetup @ 0x1005ac683
// > GameObject::customSetup @ 0x1005ac7a9
// > GameObject::customSetup @ 0x1005ac85a
// > GameObject::customSetup @ 0x1005ac973
// > GameObject::customSetup @ 0x1005aca51
// > GameObject::customSetup @ 0x1005acadd
// > GameObject::customSetup @ 0x1005acca8
// > GameObject::customSetup @ 0x1005acd48
// > GameObject::customSetup @ 0x1005ace7b
// > GameObject::customSetup @ 0x1005acf39
// > GameObject::customSetup @ 0x1005ad009
// > GameObject::customSetup @ 0x1005ad0a5
// > GameObject::customSetup @ 0x1005ad14a
// > GameObject::customSetup @ 0x1005ad1e9
// > GameObject::customSetup @ 0x1005ad2a4
// > GameObject::customSetup @ 0x1005ad3cf
// > GameObject::customSetup @ 0x1005ad454
// > GameObject::customSetup @ 0x1005ad56f
// > GameObject::customSetup @ 0x1005ad640
// > GameObject::customSetup @ 0x1005ad6e5
// > GameObject::customSetup @ 0x1005ad816
// > GameObject::customSetup @ 0x1005ad8ed
// > GameObject::customSetup @ 0x1005ad970
// > GameObject::customSetup @ 0x1005ada5e
// > GameObject::commonInteractiveSetup @ 0x1005b54b9
// > EnhancedGameObject::updateUserCoin @ 0x1005c1ad5
// > EnhancedGameObject::customSetup @ 0x1005cd6d3
// > EnhancedGameObject::customSetup @ 0x1005cda10
// > EnhancedGameObject::customSetup @ 0x1005cdb8a
//
// 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
//
cocos2d::CCParticleSystemQuad *__fastcall GameObject::createAndAddParticle(
GameObject *a1,
int a2,
const char *a3,
int a4,
cocos2d::tCCPositionType a5)
{
double v5; // xmm0_8
GameManager *v10; // rax
GameManager *v11; // rax
std::string v12; // [rsp+8h] [rbp-48h] BYREF
cocos2d::CCParticleSystemQuad *Particle; // [rsp+20h] [rbp-30h]
if ( !GameManager::sharedState()->m_playLayer || a1->m_hasNoParticles )
return nullptr;
v10 = GameManager::sharedState();
Particle = GJBaseGameLayer::createParticle(v10->m_playLayer, a2, a3, a4, a5);
v11 = GameManager::sharedState();
GJBaseGameLayer::getParticleKey(&v12.m_data.m_long.capacitym1, v5, (__int64)v11->m_playLayer, a2, (char *)a3, a4, a5);
if ( (a1->m_particleString.m_data.m_short.sizex2 & 1) != 0 )
operator delete(a1->m_particleString.m_data.m_long.longStorage);
a1->m_particleString = v12;
a1->m_hasParticles = 1;
return Particle;
}