//
// ParticleGameObject::unclaimParticle from 0x870394 to 0x870410 (124 bytes)
//
// 2 xrefs:
// > ??> @ 0xa3ea0
// > ??> @ 0x14479b0
//
// This function is hookable on this platform (idp: arm, 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 12:55:45 +0000
//
__int64 __fastcall ParticleGameObject::unclaimParticle(__int64 this)
{
__int64 v1; // x1
__int64 v2; // x3
__int64 v3; // x19
GameManager *v4; // x0
__int64 v5; // x3
__int64 v6; // [xsp+28h] [xbp+28h]
v1 = this + 1448;
v2 = *(_BYTE *)(this + 1448) >> 1;
if ( (*(_BYTE *)(this + 1448) & 1) != 0 )
v2 = *(_QWORD *)(this + 1456);
if ( v2 && *(_QWORD *)(this + 776) )
{
v3 = this;
v4 = (GameManager *)*(unsigned __int8 *)(this + 649);
v6 = v1;
if ( (_DWORD)v4 )
v5 = *(_QWORD *)(GameManager::sharedState(v4) + 552);
else
v5 = *(_QWORD *)(GameManager::sharedState(v4) + 544);
this = (*(__int64 (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v5 + 1512LL))(v5, v6, *(_QWORD *)(v3 + 776));
*(_QWORD *)(v3 + 776) = 0;
}
return this;
}