//
// ParticleGameObject::unclaimParticle from 0x1003814e4 to 0x10038154c (104 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007f9650
//
// 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
//
void __fastcall ParticleGameObject::unclaimParticle(ParticleGameObject *a1)
{
std::size_t size; // x8
_BOOL4 m_editorEnabled; // w20
GameManager *v4; // x0
__int64 v5; // x8
size = a1->m_particleData.m_data.m_short.shortStorage.__elems_[22];
if ( (size & 0x8000000000000000LL) != 0 )
size = a1->m_particleData.m_data.m_long.size;
if ( size && a1->m_particle )
{
m_editorEnabled = a1->m_editorEnabled;
v4 = GameManager::sharedState();
v5 = 504;
if ( m_editorEnabled )
v5 = 512;
(*(void (__fastcall **)(_QWORD, std::string *, cocos2d::CCParticleSystemQuad *))(**(_QWORD **)((char *)&v4->__vftable
+ v5)
+ 1464LL))(
*(GameManager_vtbl **)((char *)&v4->__vftable + v5),
&a1->m_particleData,
a1->m_particle);
a1->m_particle = nullptr;
}
}