//
// GameObject::claimParticle from 0x452cd0 to 0x453052 (898 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:48:38 +0000
//
int __fastcall GameObject::claimParticle(GameObject *this)
{
int ObjectZLayer; // r5
int ParentMode; // r0
int v4; // r0
GameManager *v5; // r0
char *v6; // r8
int v7; // r0
const char *v8; // r7
int v9; // r9
size_t v10; // r0
int v11; // r0
int v12; // r0
const char *v13; // r7
int v14; // r9
size_t v15; // r0
int (__fastcall *v16)(GameObject *, int); // r5
int v17; // r0
int result; // r0
int *v19; // r5
int v20; // r3
void (__fastcall *v21)(int *, int); // r7
int v22; // r0
int v23; // r5
void (__fastcall *v24)(int, int); // r7
int v25; // r0
int v26; // r5
int (__fastcall *v27)(int, int); // r7
int v28; // r0
int v29; // r3
unsigned __int8 *v30; // r5
int v31; // r0
__int16 v32; // r2
unsigned __int8 v33; // r3
int v34; // r0
int v35; // r0
float v36; // s14
int v37; // s15
void (__fastcall *v38)(int, float *); // r3
int v39; // s13
int v40; // r0
int (__fastcall *v41)(int, float *); // r3
int v42; // r0
__int16 v43; // r2
unsigned __int8 v44; // r3
int v45; // r0
unsigned __int8 *v46; // r0
int v47; // r9
int v48; // r8
int v49; // r7
float v50; // s19
int v51; // r5
int v52; // s18
void (__fastcall *v53)(int, float *); // r10
int v54; // s17
int v55; // r0
int (__fastcall *v56)(int, float *); // r3
int (__fastcall *v57)(GameObject *, int); // r5
int v58; // r0
int v59; // r0
__int16 v60; // [sp+4h] [bp-24h] BYREF
unsigned __int8 v61; // [sp+6h] [bp-22h]
int v62; // [sp+8h] [bp-20h] BYREF
int v63; // [sp+Ch] [bp-1Ch]
int v64; // [sp+10h] [bp-18h]
float v65; // [sp+14h] [bp-14h] BYREF
float v66; // [sp+18h] [bp-10h]
float v67; // [sp+1Ch] [bp-Ch]
int v68; // [sp+20h] [bp-8h]
ObjectZLayer = GameObject::getObjectZLayer(this);
ParentMode = GameObject::getParentMode(this);
v4 = GameObject::parentForZLayer(this, ObjectZLayer, 1, ParentMode);
v5 = (GameManager *)(*(int (__fastcall **)(int))(*(_DWORD *)v4 + 52))(v4);
v6 = (char *)v5 - 1;
if ( *((_BYTE *)this + 549) )
{
v7 = GameManager::sharedState(v5);
if ( (*((_BYTE *)this + 664) & 1) != 0 )
v8 = *((const char **)this + 168);
else
v8 = (char *)this + 665;
v9 = *(_DWORD *)(v7 + 408);
v62 = 0;
v63 = 0;
v64 = 0;
v10 = strlen(v8);
std::string::__init(&v62, v8, v10);
v11 = GJBaseGameLayer::claimParticle(v9, &v62, v6);
}
else
{
v12 = GameManager::sharedState(v5);
if ( (*((_BYTE *)this + 664) & 1) != 0 )
v13 = *((const char **)this + 168);
else
v13 = (char *)this + 665;
v14 = *(_DWORD *)(v12 + 404);
v62 = 0;
v63 = 0;
v64 = 0;
v15 = strlen(v13);
std::string::__init(&v62, v13, v15);
v11 = GJBaseGameLayer::claimParticle(v14, &v62, v6);
}
*((_DWORD *)this + 165) = v11;
std::string::~string((int)&v62);
v16 = *(int (__fastcall **)(GameObject *, int))(*(_DWORD *)this + 92);
v17 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)this + 96))(this);
result = v16(this, v17);
v19 = *((int **)this + 165);
if ( v19 )
{
v20 = *v19;
if ( *((_BYTE *)this + 688) )
{
(*(void (__fastcall **)(_DWORD, int))(v20 + 80))(*((_DWORD *)this + 165), 1065353216);
}
else
{
v21 = *(void (__fastcall **)(int *, int))(v20 + 64);
v22 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)this + 68))(this);
v21(v19, v22);
v23 = *((_DWORD *)this + 165);
v24 = *(void (__fastcall **)(int, int))(*(_DWORD *)v23 + 72);
v25 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)this + 76))(this);
v24(v23, v25);
}
v26 = *((_DWORD *)this + 165);
if ( *((_BYTE *)this + 928) )
{
result = (*(int (__fastcall **)(_DWORD, _DWORD))(*(_DWORD *)v26 + 180))(*((_DWORD *)this + 165), 0);
}
else
{
v27 = *(int (__fastcall **)(int, int))(*(_DWORD *)v26 + 180);
v28 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)this + 184))(this);
result = v27(v26, v28);
}
if ( *((_BYTE *)this + 677) )
{
v29 = *((_DWORD *)this + 223);
if ( v29 == 1583 || v29 == 1586 )
{
if ( *((_DWORD *)this + 165) )
{
v30 = (unsigned __int8 *)&v60;
v31 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)this + 472))(this);
v32 = *(_WORD *)v31;
v33 = *(_BYTE *)(v31 + 2);
v34 = *((_DWORD *)this + 189);
v60 = v32;
v61 = v33;
if ( v34 )
v30 = (unsigned __int8 *)(*(int (__fastcall **)(int))(*(_DWORD *)v34 + 472))(v34);
v35 = *((_DWORD *)this + 165);
v36 = (float)v30[1];
v37 = v30[2];
v38 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v35 + 680);
v39 = *v30;
v68 = 1065353216;
v66 = v36 / 255.0;
v67 = (float)v37 / 255.0;
v65 = (float)v39 / 255.0;
v38(v35, &v65);
v40 = *((_DWORD *)this + 165);
v41 = *(int (__fastcall **)(int, float *))(*(_DWORD *)v40 + 696);
v68 = 0;
v66 = (float)HIBYTE(v60) / 255.0;
v67 = (float)v61 / 255.0;
v65 = (float)(unsigned __int8)v60 / 255.0;
result = v41(v40, &v65);
if ( *((_DWORD *)this + 223) == 1586 )
return cocos2d::CCParticleSystem::loadScaledDefaults(
*((cocos2d::CCParticleSystem **)this + 165),
*((float *)this + 252));
}
}
else if ( v29 == 1700 )
{
if ( *((_DWORD *)this + 165) )
{
v42 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)this + 472))(this);
v43 = *(_WORD *)v42;
v44 = *(_BYTE *)(v42 + 2);
v45 = *((_DWORD *)this + 189);
v60 = v43;
v61 = v44;
if ( v45 )
v46 = (unsigned __int8 *)(*(int (__fastcall **)(int))(*(_DWORD *)v45 + 472))(v45);
else
v46 = (unsigned __int8 *)&v60;
v47 = *((_DWORD *)this + 165);
v48 = *v46;
v49 = v46[1];
v50 = (float)(unsigned __int8)v60;
v51 = v46[2];
v52 = HIBYTE(v60);
v53 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v47 + 680);
v54 = v61;
v68 = *(_DWORD *)((*(int (__fastcall **)(int))(*(_DWORD *)v47 + 676))(v47) + 12);
v65 = v50 / 255.0;
v66 = (float)v52 / 255.0;
v67 = (float)v54 / 255.0;
v53(v47, &v65);
v55 = *((_DWORD *)this + 165);
v56 = *(int (__fastcall **)(int, float *))(*(_DWORD *)v55 + 696);
v68 = 0;
v65 = (float)v48 / 255.0;
v66 = (float)v49 / 255.0;
v67 = (float)v51 / 255.0;
return v56(v55, &v65);
}
}
else
{
v57 = *(int (__fastcall **)(GameObject *, int))(*(_DWORD *)this + 824);
if ( *((_BYTE *)this + 678) && (v58 = *((_DWORD *)this + 189)) != 0 )
v59 = (*(int (__fastcall **)(int))(*(_DWORD *)v58 + 472))(v58);
else
v59 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)this + 472))(this);
return v57(this, v59);
}
}
}
return result;
}