//
// GameObject::claimParticle from 0x7758d0 to 0x775dbc (1260 bytes)
//
// 48 xrefs:
// > ??> @ 0xdc450
// > ??> @ 0x1433818
// > ??> @ 0x1434608
// > ??> @ 0x1434de8
// > ??> @ 0x14355f8
// > ??> @ 0x1443958
// > ??> @ 0x1444168
// > ??> @ 0x1444978
// > ??> @ 0x1445188
// > ??> @ 0x1445998
// > ??> @ 0x14461a8
// > ??> @ 0x14469b8
// > ??> @ 0x14471c8
// > ??> @ 0x14481b8
// > ??> @ 0x14489c8
// > ??> @ 0x14491d8
// > ??> @ 0x14499e8
// > ??> @ 0x144a238
// > ??> @ 0x144aa48
// > ??> @ 0x144b258
// > ??> @ 0x144ba68
// > ??> @ 0x144c278
// > ??> @ 0x144ca98
// > ??> @ 0x144d2a8
// > ??> @ 0x144dab8
// > ??> @ 0x144e2c8
// > ??> @ 0x144ead8
// > ??> @ 0x144f2e8
// > ??> @ 0x144faf8
// > ??> @ 0x1450308
// > ??> @ 0x1450b18
// > ??> @ 0x1451328
// > ??> @ 0x1451b38
// > ??> @ 0x1452348
// > ??> @ 0x1452b58
// > ??> @ 0x1453368
// > ??> @ 0x1453b78
// > ??> @ 0x1454388
// > ??> @ 0x1454b98
// > ??> @ 0x14553a8
// > ??> @ 0x1455bb8
// > ??> @ 0x14563c8
// > ??> @ 0x1456bd8
// > ??> @ 0x14573e8
// > ??> @ 0x1457bf8
// > ??> @ 0x1458408
// > ??> @ 0x1458c18
// > ??> @ 0x1459448
//
// 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 12:53:14 +0000
//
__int64 __fastcall GameObject::claimParticle(GameObject *this)
{
int ParentMode; // w0
__int64 v3; // x0
GameManager *v4; // x0
__int64 v5; // x23
const char *v6; // x1
size_t v7; // x0
__int64 v8; // x0
char v9; // w1
void (__fastcall *v10)(GameObject *, __int64); // x21
__int64 v11; // x0
__int64 v12; // x21
void (__fastcall *v13)(__int64); // x22
__int64 v14; // x21
void (__fastcall *v15)(__int64); // x22
__int64 v16; // x21
void (__fastcall *v17)(__int64); // x22
int v18; // w0
void (__fastcall *v19)(GameObject *, __int64); // x21
__int64 v20; // x0
__int64 v21; // x1
__int64 v23; // x23
const char *v24; // x1
size_t v25; // x0
__int64 v26; // x0
char v27; // w1
__int64 v28; // x0
__int16 v29; // w2
__int64 v30; // x1
unsigned __int8 *v31; // x0
int v32; // w3
float v33; // s2
float v34; // s1
__int64 v35; // x0
void (__fastcall *v36)(__int64, float *); // x2
__int64 v37; // x0
void (__fastcall *v38)(__int64, float *); // x2
__int64 v39; // x0
__int16 v40; // w2
__int64 v41; // x1
unsigned __int8 *v42; // x2
__int64 v43; // x25
int v44; // w23
int v45; // w21
int v46; // w22
float v47; // s11
void (__fastcall *v48)(__int64, float *); // x26
float v49; // s10
float v50; // s9
float v51; // w2
__int64 v52; // x0
void (__fastcall *v53)(__int64, float *); // x2
int ObjectZLayer; // [xsp+78h] [xbp+78h]
char *v55; // [xsp+78h] [xbp+78h]
char *v56; // [xsp+78h] [xbp+78h]
__int16 v57; // [xsp+88h] [xbp+88h] BYREF
unsigned __int8 v58; // [xsp+8Ah] [xbp+8Ah]
float v59; // [xsp+90h] [xbp+90h] BYREF
float v60; // [xsp+94h] [xbp+94h]
float v61; // [xsp+98h] [xbp+98h]
float v62; // [xsp+9Ch] [xbp+9Ch]
__int64 v63; // [xsp+A0h] [xbp+A0h] BYREF
__int64 v64; // [xsp+A8h] [xbp+A8h]
void *v65; // [xsp+B0h] [xbp+B0h]
ObjectZLayer = GameObject::getObjectZLayer(this);
ParentMode = GameObject::getParentMode(this);
v3 = GameObject::parentForZLayer(this, ObjectZLayer, 1, ParentMode);
v4 = (GameManager *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 104LL))(v3);
if ( *((_BYTE *)this + 649) )
{
v5 = *(_QWORD *)(GameManager::sharedState(v4) + 552);
v6 = (char *)this + 785;
if ( (*((_BYTE *)this + 784) & 1) != 0 )
v6 = *((const char **)this + 100);
v55 = (char *)v6;
v63 = 0;
v64 = 0;
v65 = nullptr;
v7 = strlen(v6);
std::string::__init(&v63, v55, v7);
v8 = GJBaseGameLayer::claimParticle(v5, (char *)&v63);
v9 = v63;
*((_QWORD *)this + 97) = v8;
if ( (v9 & 1) == 0 )
goto LABEL_5;
LABEL_21:
operator delete(v65);
goto LABEL_5;
}
v23 = *(_QWORD *)(GameManager::sharedState(v4) + 544);
v24 = (char *)this + 785;
if ( (*((_BYTE *)this + 784) & 1) != 0 )
v24 = *((const char **)this + 100);
v56 = (char *)v24;
v63 = 0;
v64 = 0;
v65 = nullptr;
v25 = strlen(v24);
std::string::__init(&v63, v56, v25);
v26 = GJBaseGameLayer::claimParticle(v23, (char *)&v63);
v27 = v63;
*((_QWORD *)this + 97) = v26;
if ( (v27 & 1) != 0 )
goto LABEL_21;
LABEL_5:
v10 = *(void (__fastcall **)(GameObject *, __int64))(*(_QWORD *)this + 184LL);
v11 = (*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)this + 192LL))(this);
v10(this, v11);
v12 = *((_QWORD *)this + 97);
if ( !v12 )
return _stack_chk_guard;
if ( *((_BYTE *)this + 820) )
{
(*(void (__fastcall **)(_QWORD, float))(*(_QWORD *)v12 + 160LL))(*((_QWORD *)this + 97), 1.0);
if ( !*((_BYTE *)this + 1064) )
goto LABEL_8;
}
else
{
v13 = *(void (__fastcall **)(__int64))(*(_QWORD *)v12 + 128LL);
(*(void (__fastcall **)(GameObject *))(*(_QWORD *)this + 136LL))(this);
v13(v12);
v14 = *((_QWORD *)this + 97);
v15 = *(void (__fastcall **)(__int64))(*(_QWORD *)v14 + 144LL);
(*(void (__fastcall **)(GameObject *))(*(_QWORD *)this + 152LL))(this);
v15(v14);
if ( !*((_BYTE *)this + 1064) )
{
LABEL_8:
v16 = *((_QWORD *)this + 97);
v17 = *(void (__fastcall **)(__int64))(*(_QWORD *)v16 + 360LL);
(*(void (__fastcall **)(GameObject *))(*(_QWORD *)this + 368LL))(this);
v17(v16);
goto LABEL_9;
}
}
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 97) + 360LL))(*((_QWORD *)this + 97), 0.0);
LABEL_9:
if ( *((_BYTE *)this + 809) )
{
v18 = *((_DWORD *)this + 257);
if ( v18 == 1586 || v18 == 1583 )
{
if ( *((_QWORD *)this + 97) )
{
v28 = (*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)this + 944LL))(this);
v29 = *(_WORD *)v28;
v30 = *((_QWORD *)this + 111);
LOBYTE(v28) = *(_BYTE *)(v28 + 2);
v57 = v29;
v58 = v28;
v31 = v30
? (unsigned __int8 *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v30 + 944LL))(v30)
: (unsigned __int8 *)&v57;
v32 = *v31;
v33 = (float)v31[1];
v34 = (float)v31[2];
v35 = *((_QWORD *)this + 97);
v36 = *(void (__fastcall **)(__int64, float *))(*(_QWORD *)v35 + 1360LL);
v62 = 1.0;
v60 = v33 / 255.0;
v61 = v34 / 255.0;
v59 = (float)v32 / 255.0;
v36(v35, &v59);
v37 = *((_QWORD *)this + 97);
v38 = *(void (__fastcall **)(__int64, float *))(*(_QWORD *)v37 + 1392LL);
v62 = 0.0;
v60 = (float)HIBYTE(v57) / 255.0;
v61 = (float)v58 / 255.0;
v59 = (float)(unsigned __int8)v57 / 255.0;
v38(v37, &v59);
if ( *((_DWORD *)this + 257) == 1586 )
cocos2d::CCParticleSystem::loadScaledDefaults(
*((cocos2d::CCParticleSystem **)this + 97),
*((float *)this + 288));
}
}
else if ( v18 == 1700 )
{
if ( *((_QWORD *)this + 97) )
{
v39 = (*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)this + 944LL))(this);
v40 = *(_WORD *)v39;
v41 = *((_QWORD *)this + 111);
LOBYTE(v39) = *(_BYTE *)(v39 + 2);
v57 = v40;
v58 = v39;
if ( v41 )
v42 = (unsigned __int8 *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v41 + 944LL))(v41);
else
v42 = (unsigned __int8 *)&v57;
v43 = *((_QWORD *)this + 97);
v44 = *v42;
v45 = v42[2];
v46 = v42[1];
v47 = (float)(unsigned __int8)v57 / 255.0;
v48 = *(void (__fastcall **)(__int64, float *))(*(_QWORD *)v43 + 1360LL);
v49 = (float)HIBYTE(v57) / 255.0;
v50 = (float)v58 / 255.0;
v51 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v43 + 1352LL))(v43) + 12);
v59 = v47;
v60 = v49;
v62 = v51;
v61 = v50;
v48(v43, &v59);
v52 = *((_QWORD *)this + 97);
v53 = *(void (__fastcall **)(__int64, float *))(*(_QWORD *)v52 + 1392LL);
v62 = 0.0;
v59 = (float)v44 / 255.0;
v60 = (float)v46 / 255.0;
v61 = (float)v45 / 255.0;
v53(v52, &v59);
}
}
else
{
v19 = *(void (__fastcall **)(GameObject *, __int64))(*(_QWORD *)this + 1648LL);
if ( *((_BYTE *)this + 810) && (v20 = *((_QWORD *)this + 111)) != 0 )
v21 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v20 + 944LL))(v20);
else
v21 = (*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)this + 944LL))(this);
v19(this, v21);
}
}
return _stack_chk_guard;
}