//
// ParticleGameObject::unclaimParticle from 0x1404a05f0 to 0x1404a06c5 (213 bytes)
//
// 2 xrefs:
// > ??> @ 0x14060d8d8
// > ??> @ 0x1406dc50c
//
// 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=2
void ParticleGameObject::unclaimParticle(ParticleGameObject *a1)
{
bool v2; // zf
__int64 v3; // rcx
__int64 v4; // rcx
void *v5; // [rsp+30h] [rbp+8h]
void *v6; // [rsp+30h] [rbp+8h]
if ( a1->m_particleData.m_data.m_size && a1->m_particle )
{
v2 = !a1->m_editorEnabled;
v3 = qword_1406C2ED8;
if ( v2 )
{
if ( !qword_1406C2ED8 )
{
v6 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v3 = qword_1406C2ED8;
}
v4 = *(_QWORD *)(v3 + 520);
}
else
{
if ( !qword_1406C2ED8 )
{
v5 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v3 = qword_1406C2ED8;
}
v4 = *(_QWORD *)(v3 + 528);
}
(*(void (__fastcall **)(__int64, std::string *, cocos2d::CCParticleSystemQuad *))(*(_QWORD *)v4 + 1312LL))(
v4,
&a1->m_particleData,
a1->m_particle);
a1->m_particle = nullptr;
}
}