// // GameObject::spawnDefaultPickupParticle from 0xaf337c to 0xaf35c4 (584 bytes) // // 2 xrefs: // > GJBaseGameLayer::destroyObject @ 0x9c231c // > @ 0xc6400 // // 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 13:01:14 +0000 // __int64 __fastcall GameObject::spawnDefaultPickupParticle(GameObject *this, GJBaseGameLayer *a2) { unsigned int v4; // w25 _BOOL4 v5; // w23 const cocos2d::CCPoint *v6; // x0 cocos2d::CCParticleSystem *v7; // x21 unsigned __int8 *v8; // x0 int v9; // w2 void (__fastcall *v10)(cocos2d::CCParticleSystem *, float *); // x4 float v11; // s10 float v12; // s9 float v13; // s8 void (__fastcall *v14)(cocos2d::CCParticleSystem *, float *); // x2 __int64 v15; // x21 __int64 v16; // x1 __int64 v17; // x2 GameObject *v18; // x0 char v19; // w4 __int64 v20; // x1 void (__fastcall *v21)(__int64, __int64); // x19 __int64 v22; // x0 const cocos2d::CCPoint *v24; // x0 float v25; // [xsp+68h] [xbp+68h] BYREF float v26; // [xsp+6Ch] [xbp+6Ch] float v27; // [xsp+70h] [xbp+70h] float v28; // [xsp+74h] [xbp+74h] v4 = (*(unsigned __int8 (__fastcall **)(GameObject *))(*(_QWORD *)this + 896LL))(this); v5 = *((_DWORD *)this + 257) == 1614; if ( *((_DWORD *)this + 257) != 1614 ) { v24 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)this + 192LL))(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v25, v24); v7 = (cocos2d::CCParticleSystem *)GJBaseGameLayer::spawnParticle( a2, (cocos2d::CCParticleSystemQuad *)"glassDestroy01.plist", 0, 2u, (__int64)&v25); if ( !v7 ) { LABEL_4: v15 = CCCircleWave::create(nullptr, 12.0, 2.0, 0.3, 0); v16 = (*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)this + 944LL))(this); v17 = *(_QWORD *)v15; v18 = this; v19 = *(_BYTE *)v16; *(_WORD *)(v15 + 341) = *(_WORD *)(v16 + 1); *(_BYTE *)(v15 + 340) = v19; v20 = *(_QWORD *)this; v21 = *(void (__fastcall **)(__int64, __int64))(v17 + 184); v22 = (*(__int64 (__fastcall **)(GameObject *))(v20 + 192))(v18); v21(v15, v22); (*(void (__fastcall **)(_QWORD, __int64, _QWORD))(**((_QWORD **)a2 + 490) + 464LL))(*((_QWORD *)a2 + 490), v15, 0); return _stack_chk_guard; } LABEL_3: v8 = (unsigned __int8 *)(*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)this + 944LL))(this); v9 = v8[2]; v10 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float *))(*(_QWORD *)v7 + 1360LL); v11 = (float)*v8 / 255.0; v12 = (float)v8[1] / 255.0; v28 = (float)v4 / 255.0; v13 = (float)v9 / 255.0; v25 = v11; v26 = v12; v27 = v13; v10(v7, &v25); v14 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float *))(*(_QWORD *)v7 + 1392LL); v25 = v11; v26 = v12; v27 = v13; v28 = 0.0; v14(v7, &v25); if ( v5 ) { cocos2d::CCParticleSystem::loadScaledDefaults(v7, 0.6); return _stack_chk_guard; } goto LABEL_4; } v6 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)this + 192LL))(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v25, v6); v7 = (cocos2d::CCParticleSystem *)GJBaseGameLayer::spawnParticle( a2, (cocos2d::CCParticleSystemQuad *)"coinPickupEffect.plist", 0, 2u, (__int64)&v25); if ( v7 ) goto LABEL_3; return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source