// // CreateParticlePopup::update from 0x664578 to 0x664758 (480 bytes) // // 0 xrefs: // // 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:39 +0000 // float __fastcall CreateParticlePopup::update(CreateParticlePopup *this, float a2) { float v4; // s15 int v5; // r5 void (__fastcall *v6)(int, int); // r6 const char *v7; // r8 int v8; // r7 float v9; // r0 int v10; // r3 cocos2d::CCString *v11; // r0 int CString; // r0 float result; // r0 float v14; // s18 float *v15; // r0 float v16; // s14 float v17; // s13 unsigned int v18; // r2 __int64 v19; // r6 int v20; // r6 float v21; // s14 float v22; // s16 cocos2d::CCParticleSystem *v23; // r0 if ( *((_BYTE *)this + 684) ) { v4 = a2 + *((float *)this + 172); if ( v4 >= 0.1 ) { *((_DWORD *)this + 172) = 0; v5 = *((_DWORD *)this + 173); v6 = *(void (__fastcall **)(int, int))(*(_DWORD *)v5 + 464); v7 = (const char *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 136) + 456))(*((_DWORD *)this + 136)); v8 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 136) + 748))(*((_DWORD *)this + 136)); v9 = COERCE_FLOAT(cocos2d::CCParticleSystem::getParticleDrawCost(*((cocos2d::CCParticleSystem **)this + 136))); v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i/%i\n%.0f", v7, v8, v10, (float)(v9 / 10.0)); CString = cocos2d::CCString::getCString(v11); v6(v5, CString); } else { *((float *)this + 172) = v4; } } result = COERCE_FLOAT((*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 136) + 460))(*((_DWORD *)this + 136))); v14 = result; if ( result >= 0.0 ) { v15 = *((float **)this + 136); *((float *)this + 151) = *((float *)this + 151) + a2; if ( *((float *)this + 177) < 0.0 ) { v16 = v15[114]; v17 = v15[115]; v18 = (unsigned int)(214013 * qword_D2D180 + 2531011) >> 16; v19 = 214013 * qword_D2D180 + 2531011; qword_D2D180 = v19; if ( (float)(v16 + (float)((float)((float)((float)((float)(v18 & 0x7FFF) / 32767.0) + (float)((float)(v18 & 0x7FFF) / 32767.0)) - 1.0) * v17)) <= 0.0 ) { v21 = 0.0; } else { qword_D2D180 = 214013 * v19 + 2531011; v20 = ((214013 * v19 + 2531011) >> 16) & 0x7FFF; v21 = v16 + (float)((float)((float)((float)((float)v20 / 32767.0) + (float)((float)v20 / 32767.0)) - 1.0) * v17); } *((float *)this + 177) = v21; } v22 = COERCE_FLOAT((*(int (__fastcall **)(float *))(*(_DWORD *)v15 + 484))(v15)); result = (*(float (__fastcall **)(_DWORD))(**((_DWORD **)this + 136) + 492))(*((_DWORD *)this + 136)); if ( *((float *)this + 151) > (float)(v14 + (float)((float)(v22 + result) + *((float *)this + 177))) ) { *((_DWORD *)this + 151) = 0; v23 = *((cocos2d::CCParticleSystem **)this + 136); *((_DWORD *)this + 177) = -1082130432; return COERCE_FLOAT(cocos2d::CCParticleSystem::resetSystem(v23)); } } return result; }