//
// ParticleGameObject::unclaimParticle from 0x100192720 to 0x10019279b (123 bytes)
//
// 1 xrefs:
// > ??> @ 0x100acbc98
//
// This function is hookable on this platform (idp: pc, 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:25:54 +0000
//
__int64 __fastcall ParticleGameObject::unclaimParticle(__int64 a1, __int64 a2, __int64 a3)
{
unsigned int v3; // eax
__int64 result; // rax
__int64 v5; // r14
double v6; // xmm0_8
__int64 v7; // rax
v3 = *(unsigned __int8 *)(a1 + 1448);
if ( (v3 & 1) != 0 )
{
result = *(_QWORD *)(a1 + 1456);
if ( !result )
return result;
}
else
{
result = v3 >> 1;
if ( !result )
return result;
}
if ( *(_QWORD *)(a1 + 776) )
{
v5 = *(unsigned __int8 *)(a1 + 649);
*(_QWORD *)&v6 = GameManager::sharedState(a1, a2, a3).u64[0];
result = (*(__int64 (__fastcall **)(_QWORD, __int64, _QWORD, double))(**(_QWORD **)(v7 + 8 * v5 + 544) + 1512LL))(
*(_QWORD *)(v7 + 8 * v5 + 544),
a1 + 1448,
*(_QWORD *)(a1 + 776),
v6);
*(_QWORD *)(a1 + 776) = 0;
}
return result;
}