//
// ParticleGameObject::unclaimParticle from 0x4e6bb8 to 0x4e6c08 (80 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:51:05 +0000
//
int __fastcall ParticleGameObject::unclaimParticle(int this)
{
int v1; // r4
int v2; // r3
int v3; // r3
int v4; // r5
int v5; // r0
v1 = this;
v2 = *(unsigned __int8 *)(this + 1268);
if ( (v2 & 1) != 0 )
v3 = *(_DWORD *)(this + 1272);
else
v3 = v2 >> 1;
if ( v3 && *(_DWORD *)(this + 660) )
{
v4 = this + 1268;
if ( *(_BYTE *)(this + 549) )
v5 = *(_DWORD *)(GameManager::sharedState((GameManager *)this) + 408);
else
v5 = *(_DWORD *)(GameManager::sharedState((GameManager *)this) + 404);
this = (*(int (__fastcall **)(int, int, _DWORD))(*(_DWORD *)v5 + 756))(v5, v4, *(_DWORD *)(v1 + 660));
*(_DWORD *)(v1 + 660) = 0;
}
return this;
}