// // cocos2d::CCWavesTiles3D::update from 0x18003cc90 to 0x18003ce24 (404 bytes) // // 5 xrefs: // > @ 0x1800ea6f0 // > @ 0x1801368d8 // > @ 0x1801368e8 // > @ 0x1801438a8 // > @ 0x1801b10bc // // 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::CCWavesTiles3D::update(cocos2d::CCWavesTiles3D *this, float a2) { int v2; // edi float v4; // xmm9_4 float v5; // xmm1_4 float v6; // xmm6_4 int v7; // esi float v8; // xmm7_4 float *v9; // rax const struct cocos2d::CCPoint *v10; // rax float v11; // [rsp+20h] [rbp-A8h] BYREF float v12; // [rsp+28h] [rbp-A0h] BYREF __int128 v13; // [rsp+30h] [rbp-98h] BYREF int v14; // [rsp+44h] [rbp-84h] int v15; // [rsp+50h] [rbp-78h] int v16; // [rsp+5Ch] [rbp-6Ch] v2 = 0; if ( *((float *)this + 24) > 0.0 ) { v4 = a2 * 3.1415927; v5 = *((float *)this + 25); v6 = 0.0; do { v7 = 0; if ( v5 > 0.0 ) { v8 = 0.0; do { v9 = kmVec2Fill(&v11, v6, v8); cocos2d::CCTiledGrid3DAction::originalTile((__int64)this, &v13, v9); *((float *)&v13 + 2) = (float)(sinf( (float)((float)(*(float *)&v13 + *((float *)&v13 + 1)) * 0.0099999998) + (float)((float)((float)*((int *)this + 26) * v4) + (float)((float)*((int *)this + 26) * v4))) * *((float *)this + 27)) * *((float *)this + 28); v14 = DWORD2(v13); v15 = DWORD2(v13); v16 = DWORD2(v13); v10 = (const struct cocos2d::CCPoint *)kmVec2Fill(&v12, v6, v8); cocos2d::CCTiledGrid3DAction::setTile(this, v10, (const struct cocos2d::_ccQuad3 *)&v13); v5 = *((float *)this + 25); v8 = (float)++v7; } while ( v5 > (float)v7 ); } v6 = (float)++v2; } while ( *((float *)this + 24) > (float)v2 ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source