// // cocos2d::CCLiquid::update from 0x18002db60 to 0x18002dd50 (496 bytes) // // 5 xrefs: // > @ 0x1800e8bc0 // > @ 0x180134f58 // > @ 0x180134f68 // > @ 0x1801438a8 // > @ 0x1801afe14 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall cocos2d::CCLiquid::update(cocos2d::CCLiquid *this, float a2) { int v3; // edi float v4; // xmm13_4 float v5; // xmm1_4 float v6; // xmm10_4 int v7; // esi float v8; // xmm12_4 const struct cocos2d::CCPoint *v9; // rax float x; // xmm6_4 float v11; // xmm9_4 float y; // xmm6_4 const struct cocos2d::CCPoint *v13; // rax float v14; // [rsp+20h] [rbp-C8h] BYREF float v15; // [rsp+28h] [rbp-C0h] BYREF struct cocos2d::_ccVertex3F v16; // [rsp+30h] [rbp-B8h] BYREF v3 = 1; if ( *((float *)this + 24) > 1.0 ) { v4 = a2 * 3.1415927; v5 = *((float *)this + 25); v6 = 1.0; do { v7 = 1; if ( v5 > 1.0 ) { v8 = 1.0; do { v9 = (const struct cocos2d::CCPoint *)kmVec2Fill(&v14, v6, v8); cocos2d::CCGrid3DAction::originalVertex(this, &v16, v9); x = v16.x; v11 = (float)((float)*((int *)this + 26) * v4) + (float)((float)*((int *)this + 26) * v4); v16.x = x + (float)((float)(sinf((float)(v16.x * 0.0099999998) + v11) * *((float *)this + 27)) * *((float *)this + 28)); y = v16.y; v16.y = y + (float)((float)(sinf((float)(v16.y * 0.0099999998) + v11) * *((float *)this + 27)) * *((float *)this + 28)); v13 = (const struct cocos2d::CCPoint *)kmVec2Fill(&v15, v6, v8); cocos2d::CCGrid3DAction::setVertex(this, v13, &v16); v5 = *((float *)this + 25); v8 = (float)++v7; } while ( v5 > (float)v7 ); } v6 = (float)++v3; } while ( *((float *)this + 24) > (float)v3 ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source