//
// ParticleGameObject::claimParticle from 0x10042720c to 0x100427364 (344 bytes)
//
// 1 xrefs:
// > ??> @ 0x100951908
//
// 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 11:05:01 +0000
//
__int64 __fastcall ParticleGameObject::claimParticle(__int64 result)
{
__int64 v1; // x19
int v2; // w20
__int64 v3; // x0
__int64 v4; // x20
__int64 v5; // x21
__int64 ObjectZOrder; // x4
__int64 v7; // x0
__int64 v8; // x20
__int64 v9; // x21
__int64 v10; // x4
__int64 v11; // x0
float v12; // s0
if ( !*(_QWORD *)(result + 776) )
{
v1 = result;
if ( (*(_BYTE *)(result + 1785) & 1) == 0 )
{
if ( *(_BYTE *)(result + 1472) == 1 )
{
*(_BYTE *)(result + 1472) = 0;
GameToolbox::particleStringToStruct(result + 1448, result + 1480);
}
v2 = *(unsigned __int8 *)(v1 + 649);
v3 = GameManager::sharedState();
if ( v2 == 1 )
{
v4 = *(_QWORD *)(v3 + 552);
v5 = sub_1002F3514(v1);
ObjectZOrder = GameObject::getObjectZOrder(v1);
v7 = (*(__int64 (__fastcall **)(__int64, __int64, __int64, __int64, __int64, _QWORD, _QWORD))(*(_QWORD *)v4 + 1504LL))(
v4,
v1 + 1448,
v1 + 1480,
v5,
ObjectZOrder,
0,
0);
}
else
{
v8 = *(_QWORD *)(v3 + 544);
v9 = sub_1002F3514(v1);
v10 = GameObject::getObjectZOrder(v1);
v7 = (*(__int64 (__fastcall **)(__int64, __int64, __int64, __int64, __int64, _QWORD, _QWORD))(*(_QWORD *)v8 + 1504LL))(
v8,
v1 + 1448,
v1 + 1480,
v9,
v10,
*(unsigned __int8 *)(v1 + 1345),
0);
}
*(_QWORD *)(v1 + 776) = v7;
v11 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v1 + 192LL))(v1);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v1 + 184LL))(v1, v11);
result = *(_QWORD *)(v1 + 776);
if ( result )
{
v12 = (*(float (__fastcall **)(__int64))(*(_QWORD *)result + 920LL))(result);
*(_BYTE *)(v1 + 1386) = v12 >= 0.0;
if ( v12 >= 0.0 )
{
cocos2d::CCParticleSystem::stopSystem(*(_QWORD *)(v1 + 776));
*(_BYTE *)(v1 + 1784) = 1;
*(_DWORD *)(v1 + 1780) = -1082130432;
}
return sub_100427364(v1, *(_QWORD *)(v1 + 776));
}
}
}
return result;
}