// // cocos2d::CCWaves3D::update from 0xd2c3ac to 0xd2c51c (368 bytes) // // 2 xrefs: // > @ 0xe6f20 // > @ 0x1512738 // // 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:07:17 +0000 // __int64 __fastcall cocos2d::CCWaves3D::update(cocos2d::CCWaves3D *this, float a2) { float v4; // s1 float v5; // s9 int v6; // w22 float v7; // s3 int v8; // w24 float v9; // s8 unsigned int v10; // w0 float v11; // s0 float v12; // s1 float v13; // s2 _BYTE v15[8]; // [xsp+90h] [xbp+90h] BYREF float v16[4]; // [xsp+98h] [xbp+98h] BYREF v4 = *((float *)this + 23); if ( (float)(v4 + 1.0) > 0.0 ) { v5 = 0.0; v6 = 0; v7 = *((float *)this + 24); do { v8 = 0; v9 = 0.0; if ( (float)(v7 + 1.0) > 0.0 ) { do { ++v8; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, v5, v9); cocos2d::CCGrid3DAction::originalVertex(this, (const cocos2d::CCPoint *)v15); v10 = *((_DWORD *)this + 25); v16[0] = v11; v16[1] = v12; v16[2] = v13 + (float)((float)(sinf( (float)((float)(v12 + v11) * 0.01) + (float)((float)((float)(a2 * 3.1416) * (float)v10) * 2.0)) * *((float *)this + 26)) * *((float *)this + 27)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, v5, v9); cocos2d::CCGrid3DAction::setVertex((__int64)this, (__int64)v15, (__int64)v16); v7 = *((float *)this + 24); v9 = (float)v8; } while ( (float)v8 < (float)(v7 + 1.0) ); v4 = *((float *)this + 23); } v5 = (float)++v6; } while ( (float)v6 < (float)(v4 + 1.0) ); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source