//
// ParticleGameObject::claimParticle from 0x4e7a34 to 0x4e7b20 (236 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:06 +0000
//
const cocos2d::CCPoint *__fastcall ParticleGameObject::claimParticle(
const cocos2d::CCPoint *this,
int a2,
int a3,
int a4)
{
const cocos2d::CCPoint *v4; // r4
int v5; // r5
GameManager *updated; // r0
int v7; // r8
int v8; // r8
int (__fastcall *v9)(int, char *, char *, int, int, int, int, int); // r9
int ObjectZLayer; // r10
int v11; // r0
int v12; // r5
int (__fastcall *v13)(int, char *, char *, int, int, _DWORD, int, int); // r9
int v14; // r10
int v15; // r0
int v16; // r3
void (__fastcall *v17)(const cocos2d::CCPoint *, int); // r5
int v18; // r0
float v19; // r0
int ObjectZOrder; // [sp+0h] [bp-10h]
v4 = this;
if ( !*((_DWORD *)this + 165) )
{
v5 = *((unsigned __int8 *)this + 1577);
if ( !*((_BYTE *)this + 1577) )
{
updated = (GameManager *)ParticleGameObject::updateParticleStruct((int)this);
v7 = *((unsigned __int8 *)v4 + 549);
if ( *((_BYTE *)v4 + 549) )
{
v8 = *(_DWORD *)(GameManager::sharedState(updated) + 408);
v9 = *(int (__fastcall **)(int, char *, char *, int, int, int, int, int))(*(_DWORD *)v8 + 752);
ObjectZLayer = GameObject::getObjectZLayer(v4);
ObjectZOrder = GameObject::getObjectZOrder(v4);
v11 = v9(v8, (char *)v4 + 1268, (char *)v4 + 1284, ObjectZLayer, ObjectZOrder, v5, v5, a4);
}
else
{
v12 = *(_DWORD *)(GameManager::sharedState(updated) + 404);
v13 = *(int (__fastcall **)(int, char *, char *, int, int, _DWORD, int, int))(*(_DWORD *)v12 + 752);
v14 = GameObject::getObjectZLayer(v4);
v15 = GameObject::getObjectZOrder(v4);
v11 = v13(v12, (char *)v4 + 1268, (char *)v4 + 1284, v14, v15, *((unsigned __int8 *)v4 + 1165), v7, a4);
}
v16 = *(_DWORD *)v4;
*((_DWORD *)v4 + 165) = v11;
v17 = *(void (__fastcall **)(const cocos2d::CCPoint *, int))(v16 + 92);
v18 = (*(int (__fastcall **)(const cocos2d::CCPoint *))(v16 + 96))(v4);
v17(v4, v18);
this = *((const cocos2d::CCPoint **)v4 + 165);
if ( this )
{
v19 = (*(float (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)this + 460))(this);
*((_BYTE *)v4 + 1206) = v19 >= 0.0;
if ( v19 >= 0.0 )
{
cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)v4 + 165));
*((_BYTE *)v4 + 1576) = 1;
*((_DWORD *)v4 + 393) = -1082130432;
}
return ParticleGameObject::applyParticleSettings(v4, *((cocos2d::CCParticleSystemQuad **)v4 + 165));
}
}
}
return this;
}