//
// GameObject::spawnDefaultPickupParticle from 0x65e5e8 to 0x65e744 (348 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::destroyObject @ 0x5a4a26
//
// 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:55:35 +0000
//
int __fastcall GameObject::spawnDefaultPickupParticle(GameObject *this, GJBaseGameLayer *a2)
{
int v4; // r0
_BOOL4 v5; // r7
unsigned int v6; // s19
char *v7; // r6
const cocos2d::CCPoint *v8; // r0
int result; // r0
cocos2d::CCParticleSystem *v10; // r6
unsigned __int8 *v11; // r0
void (__fastcall *v12)(cocos2d::CCParticleSystem *, float *, int); // r3
int v13; // s18
int v14; // s17
int v15; // r2
float v16; // s18
float v17; // s17
float v18; // s16
void (__fastcall *v19)(cocos2d::CCParticleSystem *, float *); // r3
CCCircleWave *v20; // r6
char *v21; // r0
char v22; // r2
char v23; // r1
int v24; // r3
void (__fastcall *v25)(CCCircleWave *, int); // r9
int v26; // r0
bool v27; // [sp+4h] [bp-20h]
float v28; // [sp+Ch] [bp-18h] BYREF
float v29; // [sp+10h] [bp-14h]
float v30; // [sp+14h] [bp-10h]
float v31; // [sp+18h] [bp-Ch]
v4 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)this + 448))(this);
v5 = *((_DWORD *)this + 223) == 1614;
v6 = v4;
if ( *((_DWORD *)this + 223) == 1614 )
v7 = "coinPickupEffect.plist";
else
v7 = "glassDestroy01.plist";
v8 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(GameObject *))(*(_DWORD *)this + 96))(this);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, v8);
result = GJBaseGameLayer::spawnParticle(a2, (cocos2d::CCParticleSystemQuad *)v7, 0, 2, (int)&v28);
v10 = (cocos2d::CCParticleSystem *)result;
if ( result )
{
v11 = (unsigned __int8 *)(*(int (__fastcall **)(GameObject *))(*(_DWORD *)this + 472))(this);
v12 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float *, int))(*(_DWORD *)v10 + 680);
v13 = *v11;
v14 = v11[1];
v15 = v11[2];
v31 = (float)v6 / 255.0;
v16 = (float)v13 / 255.0;
v17 = (float)v14 / 255.0;
v28 = v16;
v18 = (float)v15 / 255.0;
v29 = v17;
v30 = v18;
v12(v10, &v28, v15);
v19 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float *))(*(_DWORD *)v10 + 696);
v28 = v16;
v31 = 0.0;
v29 = v17;
v30 = v18;
v19(v10, &v28);
if ( !v5 )
{
LABEL_6:
v20 = CCCircleWave::create((CCCircleWave *)0x41400000, 2.0, (cocos2d::CCActionTween *)0x3E99999A, 0.0, 0, v27);
v21 = (char *)(*(int (__fastcall **)(GameObject *))(*(_DWORD *)this + 472))(this);
v22 = v21[1];
v23 = *v21;
*((_BYTE *)v20 + 282) = v21[2];
v24 = *(_DWORD *)v20;
*((_BYTE *)v20 + 281) = v22;
*((_BYTE *)v20 + 280) = v23;
v25 = *(void (__fastcall **)(CCCircleWave *, int))(v24 + 92);
v26 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)this + 96))(this);
v25(v20, v26);
return (*(int (__fastcall **)(_DWORD, CCCircleWave *, _DWORD))(**((_DWORD **)a2 + 609) + 232))(
*((_DWORD *)a2 + 609),
v20,
0);
}
return cocos2d::CCParticleSystem::loadScaledDefaults(v10, 0.6);
}
else if ( !v5 )
{
goto LABEL_6;
}
return result;
}