// // GameToolbox::particleFromStruct from 0x69d89c to 0x69ddec (1360 bytes) // // 4 xrefs: // > GameToolbox::particleFromString @ 0x6a1e78 // > LevelEditorLayer::claimCustomParticle @ 0x78715c // > GJBaseGameLayer::createCustomParticle @ 0x9df374 // > @ 0xbbbb8 // // 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:50:41 +0000 // __int64 __fastcall GameToolbox::particleFromStruct(unsigned int *a1, __int64 a2, bool a3) { __int64 v4; // x19 _BOOL4 v5; // w23 void (__fastcall *v6)(__int64, unsigned int *); // x24 void (__fastcall *v7)(__int64, unsigned int *); // x24 unsigned int v8; // w5 unsigned int v9; // w4 void (__fastcall *v10)(__int64, unsigned int *); // x2 unsigned int v11; // w3 unsigned int v12; // w5 unsigned int v13; // w4 void (__fastcall *v14)(__int64, unsigned int *); // x2 unsigned int v15; // w3 unsigned int v16; // w5 unsigned int v17; // w4 void (__fastcall *v18)(__int64, unsigned int *); // x2 unsigned int v19; // w3 unsigned int v20; // w5 unsigned int v21; // w4 void (__fastcall *v22)(__int64, unsigned int *); // x2 unsigned int v23; // w3 __int64 v24; // x1 __int64 v25; // x2 cocos2d::CCSpriteFrameCache *v26; // x0 cocos2d::CCSpriteFrameCache *v27; // x0 const char *v28; // x1 cocos2d::CCSpriteFrame *v29; // x0 unsigned int v31; // [xsp+48h] [xbp+48h] BYREF unsigned int v32; // [xsp+4Ch] [xbp+4Ch] unsigned int v33; // [xsp+50h] [xbp+50h] unsigned int v34; // [xsp+54h] [xbp+54h] v4 = a2; v5 = a2 != 0; if ( a2 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a2 + 1504LL))(a2, *a1); else v4 = cocos2d::CCParticleSystemQuad::createWithTotalParticles((cocos2d::CCParticleSystemQuad *)*a1, a3, a3); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 928LL))(v4, *((float *)a1 + 1)); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 976LL))(v4, *((float *)a1 + 2)); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 992LL))(v4, *((float *)a1 + 3)); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 1488LL))(v4, (float)(int)a1[4]); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 1008LL))(v4, (float)(int)a1[5]); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 1024LL))(v4, (float)(int)a1[6]); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 1064LL))(v4, (float)(int)a1[7]); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 1080LL))(v4, (float)(int)a1[8]); v6 = *(void (__fastcall **)(__int64, unsigned int *))(*(_QWORD *)v4 + 960LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, (float)(int)a1[9], (float)(int)a1[10]); v6(v4, &v31); v7 = *(void (__fastcall **)(__int64, unsigned int *))(*(_QWORD *)v4 + 1048LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, (float)(int)a1[11], (float)(int)a1[12]); v7(v4, &v31); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 1128LL))(v4, (float)(int)a1[13]); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 1144LL))(v4, (float)(int)a1[14]); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 1096LL))(v4, (float)(int)a1[15]); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 1112LL))(v4, (float)(int)a1[16]); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 1296LL))(v4, (float)(int)a1[17]); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 1312LL))(v4, (float)(int)a1[18]); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 1424LL))(v4, (float)(int)a1[19]); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 1440LL))(v4, (float)(int)a1[20]); v8 = a1[25]; v9 = a1[27]; v10 = *(void (__fastcall **)(__int64, unsigned int *))(*(_QWORD *)v4 + 1360LL); v11 = a1[21]; v32 = a1[23]; v33 = v8; v34 = v9; v31 = v11; v10(v4, &v31); v12 = a1[26]; v13 = a1[28]; v14 = *(void (__fastcall **)(__int64, unsigned int *))(*(_QWORD *)v4 + 1376LL); v15 = a1[22]; v32 = a1[24]; v33 = v12; v34 = v13; v31 = v15; v14(v4, &v31); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 1328LL))(v4, (float)(int)a1[29]); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 1344LL))(v4, (float)(int)a1[30]); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 1456LL))(v4, (float)(int)a1[31]); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 1472LL))(v4, (float)(int)a1[32]); v16 = a1[37]; v17 = a1[39]; v18 = *(void (__fastcall **)(__int64, unsigned int *))(*(_QWORD *)v4 + 1392LL); v19 = a1[33]; v32 = a1[35]; v33 = v16; v34 = v17; v31 = v19; v18(v4, &v31); v20 = a1[38]; v21 = a1[40]; v22 = *(void (__fastcall **)(__int64, unsigned int *))(*(_QWORD *)v4 + 1408LL); v23 = a1[34]; v32 = a1[36]; v33 = v20; v34 = v21; v31 = v23; v22(v4, &v31); v24 = *(_QWORD *)v4; *(_DWORD *)(v4 + 496) = a1[41]; *(_DWORD *)(v4 + 500) = a1[42]; *(_DWORD *)(v4 + 504) = a1[43]; *(_DWORD *)(v4 + 508) = a1[44]; (*(void (__fastcall **)(__int64, float))(v24 + 1176))(v4, (float)(int)a1[45]); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 1192LL))(v4, (float)(int)a1[46]); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 1208LL))(v4, (float)(int)a1[47]); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 1224LL))(v4, (float)(int)a1[48]); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 1240LL))(v4, (float)(int)a1[49]); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 1256LL))(v4, (float)(int)a1[50]); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 1600LL))(v4, a1[51]); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 1568LL))(v4, a1[52]); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 1280LL))(v4, *((unsigned __int8 *)a1 + 212)); v25 = *(_QWORD *)v4; *(_BYTE *)(v4 + 544) = *((_BYTE *)a1 + 213); (*(void (__fastcall **)(__int64, _QWORD))(v25 + 1160))(v4, *((unsigned __int8 *)a1 + 214)); v26 = (cocos2d::CCSpriteFrameCache *)*((unsigned __int8 *)a1 + 215); *(_BYTE *)(v4 + 547) = (_BYTE)v26; v27 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v26); v28 = (char *)a1 + 265; if ( (a1[66] & 1) != 0 ) v28 = *((const char **)a1 + 35); v29 = (cocos2d::CCSpriteFrame *)cocos2d::CCSpriteFrameCache::spriteFrameByName(v27, v28); cocos2d::CCParticleSystemQuad::setDisplayFrame((cocos2d::CCParticleSystemQuad *)v4, v29); *(_WORD *)(v4 + 832) = a1[54]; *(_BYTE *)(v4 + 740) = *((_BYTE *)a1 + 220); *(_DWORD *)(v4 + 512) = a1[56]; *(_DWORD *)(v4 + 516) = a1[57]; *(_DWORD *)(v4 + 536) = a1[58]; *(_DWORD *)(v4 + 540) = a1[59]; *(_BYTE *)(v4 + 548) = *((_BYTE *)a1 + 240); *(_BYTE *)(v4 + 545) = *((_BYTE *)a1 + 241); *(_BYTE *)(v4 + 546) = *((_BYTE *)a1 + 242); *(_BYTE *)(v4 + 549) = *((_BYTE *)a1 + 243); *(_BYTE *)(v4 + 550) = *((_BYTE *)a1 + 244); *(_DWORD *)(v4 + 520) = a1[62]; *(_DWORD *)(v4 + 524) = a1[63]; *(_DWORD *)(v4 + 528) = a1[64]; *(_DWORD *)(v4 + 532) = a1[65]; if ( v5 ) cocos2d::CCParticleSystem::resetSystem((cocos2d::CCParticleSystem *)v4); cocos2d::CCParticleSystem::saveDefaults((cocos2d::CCParticleSystem *)v4); return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source