// // CreateParticlePopup::update from 0xafc608 to 0xafc81c (532 bytes) // // 2 xrefs: // > @ 0x5f500 // > @ 0x14afe08 // // 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:18 +0000 // void __fastcall CreateParticlePopup::update(CreateParticlePopup *this, float a2) { float v4; // s0 float v5; // s9 float v6; // s1 float *v7; // x0 float v8; // s8 cocos2d::CCParticleSystem *v9; // x0 float v10; // s3 unsigned __int64 v11; // x1 float v12; // s2 __int64 v13; // x20 __int64 v14; // x0 void (__fastcall *v15)(__int64, __int64); // x21 float v16; // s0 cocos2d::CCString *v17; // x0 __int64 CString; // x0 char *v19; // [xsp+40h] [xbp+40h] __int64 v20; // [xsp+48h] [xbp+48h] if ( *((_BYTE *)this + 976) ) { v4 = a2 + *((float *)this + 245); if ( v4 >= 0.1 ) { v13 = *((_QWORD *)this + 123); v14 = *((_QWORD *)this + 89); *((_DWORD *)this + 245) = 0; v15 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 928LL); v19 = (char *)(*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v14 + 912LL))(v14); v20 = (*(unsigned int (__fastcall **)(_QWORD))(**((_QWORD **)this + 89) + 1496LL))(*((_QWORD *)this + 89)); cocos2d::CCParticleSystem::getParticleDrawCost(*((cocos2d::CCParticleSystem **)this + 89)); v17 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i/%i\n%.0f", v19, v20, (float)(v16 / 10.0)); CString = cocos2d::CCString::getCString(v17); v15(v13, CString); } else { *((float *)this + 245) = v4; } } v5 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 89) + 920LL))(*((_QWORD *)this + 89)); if ( v5 >= 0.0 ) { v6 = *((float *)this + 251); *((float *)this + 206) = *((float *)this + 206) + a2; if ( v6 < 0.0 ) { v7 = *((float **)this + 89); v10 = v7[134]; v11 = 214013 * qword_155E040 + 2531011; qword_155E040 = v11; v12 = v7[135]; if ( (float)(v10 + (float)((float)((float)((float)((float)((v11 >> 16) & 0x7FFF) / 32767.0) * 2.0) + -1.0) * v12)) <= 0.0 ) { *((_DWORD *)this + 251) = 0; } else { qword_155E040 = 214013 * v11 + 2531011; *((float *)this + 251) = v10 + (float)(v12 * (float)((float)((float)((float)(((unsigned __int64)qword_155E040 >> 16) & 0x7FFF) / 32767.0) * 2.0) + -1.0)); } } else { v7 = *((float **)this + 89); } v8 = (*(float (__fastcall **)(float *))(*(_QWORD *)v7 + 968LL))(v7); if ( *((float *)this + 206) > (float)(v5 + (float)((float)(v8 + (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 89) + 984LL))(*((_QWORD *)this + 89))) + *((float *)this + 251))) ) { v9 = *((cocos2d::CCParticleSystem **)this + 89); *((float *)this + 251) = -1.0; *((_DWORD *)this + 206) = 0; cocos2d::CCParticleSystem::resetSystem(v9); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source