//
// ParticleGameObject::unclaimParticle from 0x1001b2150 to 0x1001b21cb (123 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008c85c8
//
// 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)
{
unsigned int sizex2; // eax
_BOOL8 m_editorEnabled; // r14
GameManager *v3; // rax
sizex2 = a1->m_particleData.m_data.m_short.sizex2;
if ( (sizex2 & 1) != 0 )
{
if ( !a1->m_particleData.m_data.m_long.size )
return;
}
else if ( !(sizex2 >> 1) )
{
return;
}
if ( a1->m_particle )
{
m_editorEnabled = a1->m_editorEnabled;
v3 = GameManager::sharedState();
(*(void (__fastcall **)(_QWORD, std::string *, cocos2d::CCParticleSystemQuad *))(**((_QWORD **)&v3->m_playLayer
+ m_editorEnabled)
+ 1456LL))(
*((_QWORD *)&v3->m_playLayer + m_editorEnabled),
&a1->m_particleData,
a1->m_particle);
a1->m_particle = nullptr;
}
}