// // cocos2d::CCWaves::update from 0x18002e630 to 0x18002e840 (528 bytes) // // 5 xrefs: // > @ 0x1800e8c48 // > @ 0x180134ffc // > @ 0x18013500c // > @ 0x1801438a8 // > @ 0x1801afec8 // // 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::CCWaves::update(cocos2d::CCWaves *this, float a2) { int v2; // esi float v4; // xmm10_4 float v5; // xmm8_4 int v6; // edi float v7; // xmm7_4 const struct cocos2d::CCPoint *v8; // rax float y; // xmm6_4 float v10; // xmm0_4 float x; // xmm1_4 const struct cocos2d::CCPoint *v12; // rax float v13; // [rsp+20h] [rbp-A8h] BYREF float v14; // [rsp+28h] [rbp-A0h] BYREF struct cocos2d::_ccVertex3F v15; // [rsp+30h] [rbp-98h] BYREF v2 = 0; if ( (float)(*((float *)this + 24) + 1.0) > 0.0 ) { v4 = a2 * 3.1415927; v5 = 0.0; do { v6 = 0; if ( (float)(*((float *)this + 25) + 1.0) > 0.0 ) { v7 = 0.0; do { v8 = (const struct cocos2d::CCPoint *)kmVec2Fill(&v13, v5, v7); cocos2d::CCGrid3DAction::originalVertex(this, &v15, v8); y = v15.y; if ( *((_BYTE *)this + 116) ) { v10 = sinf( (float)((float)((float)*((int *)this + 26) * v4) + (float)((float)*((int *)this + 26) * v4)) + (float)(v15.y * 0.0099999998)); x = v15.x + (float)((float)(v10 * *((float *)this + 27)) * *((float *)this + 28)); v15.x = x; } else { x = v15.x; } if ( *((_BYTE *)this + 117) ) v15.y = y + (float)((float)(sinf( (float)((float)((float)*((int *)this + 26) * v4) + (float)((float)*((int *)this + 26) * v4)) + (float)(x * 0.0099999998)) * *((float *)this + 27)) * *((float *)this + 28)); v12 = (const struct cocos2d::CCPoint *)kmVec2Fill(&v14, v5, v7); cocos2d::CCGrid3DAction::setVertex(this, v12, &v15); v7 = (float)++v6; } while ( (float)(*((float *)this + 25) + 1.0) > (float)v6 ); } v5 = (float)++v2; } while ( (float)(*((float *)this + 24) + 1.0) > (float)v2 ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source