// // cocos2d::CCParticleSnow::initWithTotalParticles from 0xd6cdd4 to 0xd6d028 (596 bytes) // // 4 xrefs: // > cocos2d::CCParticleSnow::create @ 0xd6e028 // > cocos2d::CCParticleSnow::createWithTotalParticles @ 0xd6e0b4 // > @ 0xc8d88 // > @ 0x152be50 // // 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:07:57 +0000 // __int64 __fastcall cocos2d::CCParticleSnow::initWithTotalParticles(cocos2d::CCParticleSnow *this, unsigned int a2) { unsigned __int8 v3; // w0 unsigned int v4; // w22 __int64 v6; // x2 void (__fastcall *v7)(cocos2d::CCParticleSnow *, float *); // x23 cocos2d::CCDirector *v8; // x0 cocos2d::CCDirector *v9; // x0 void (__fastcall *v10)(cocos2d::CCParticleSnow *, float *); // x23 void (__fastcall *v11)(cocos2d::CCParticleSnow *, float *); // x23 __int64 v12; // x1 __int64 v13; // [xsp+68h] [xbp+68h] BYREF float v14; // [xsp+70h] [xbp+70h] BYREF v3 = cocos2d::CCParticleSystemQuad::initWithTotalParticles(this, a2, 0); v4 = v3; if ( v3 ) { v6 = *(_QWORD *)this; *((float *)this + 115) = -1.0; (*(void (__fastcall **)(cocos2d::CCParticleSnow *, _QWORD))(v6 + 1600))(this, 0); v7 = *(void (__fastcall **)(cocos2d::CCParticleSnow *, float *))(*(_QWORD *)this + 1048LL); cocos2d::CCPoint::CCPoint(&v14, 0.0, -1.0); v7(this, &v14); (*(void (__fastcall **)(cocos2d::CCParticleSnow *, float))(*(_QWORD *)this + 1064LL))(this, 5.0); (*(void (__fastcall **)(cocos2d::CCParticleSnow *, float))(*(_QWORD *)this + 1080LL))(this, 1.0); (*(void (__fastcall **)(cocos2d::CCParticleSnow *, float))(*(_QWORD *)this + 1128LL))(this, 0.0); (*(void (__fastcall **)(cocos2d::CCParticleSnow *, float))(*(_QWORD *)this + 1144LL))(this, 1.0); (*(void (__fastcall **)(cocos2d::CCParticleSnow *, float))(*(_QWORD *)this + 1096LL))(this, 0.0); v8 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(cocos2d::CCParticleSnow *, float))(*(_QWORD *)this + 1112LL))( this, 1.0); v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v8); cocos2d::CCDirector::getWinSize(&v13, v9); v10 = *(void (__fastcall **)(cocos2d::CCParticleSnow *, float *))(*(_QWORD *)this + 184LL); cocos2d::CCPoint::CCPoint(&v14, *(float *)&v13 * 0.5, *((float *)&v13 + 1) + 10.0); v10(this, &v14); v11 = *(void (__fastcall **)(cocos2d::CCParticleSnow *, float *))(*(_QWORD *)this + 960LL); cocos2d::CCPoint::CCPoint(&v14, *(float *)&v13 * 0.5, 0.0); v11(this, &v14); *((float *)this + 123) = 5.0; *((_DWORD *)this + 122) = -1028390912; *((float *)this + 121) = 15.0; *((float *)this + 140) = 10.0; *((float *)this + 141) = 5.0; *((_DWORD *)this + 120) = 1110704128; *((float *)this + 142) = -1.0; *((float *)this + 164) = 10.0; *((float *)this + 144) = 1.0; *((float *)this + 145) = 1.0; *((float *)this + 146) = 1.0; *((float *)this + 147) = 1.0; *((_DWORD *)this + 148) = 0; *((_DWORD *)this + 149) = 0; *((_DWORD *)this + 150) = 0; *((_DWORD *)this + 151) = 0; *((float *)this + 152) = 1.0; *((float *)this + 153) = 1.0; *((float *)this + 154) = 1.0; *((_DWORD *)this + 155) = 0; *((_DWORD *)this + 156) = 0; *((_DWORD *)this + 157) = 0; *((_DWORD *)this + 158) = 0; *((_DWORD *)this + 159) = 0; v12 = sub_D6B8F8((cocos2d::CCTextureCache *)0x42340000); if ( v12 ) (*(void (__fastcall **)(cocos2d::CCParticleSnow *, __int64))(*(_QWORD *)this + 1520LL))(this, v12); (*(void (__fastcall **)(cocos2d::CCParticleSnow *, _QWORD))(*(_QWORD *)this + 1280LL))(this, 0); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source