// // cocos2d::CCWaves::update from 0x18002ed40 to 0x18002ef69 (553 bytes) // // 5 xrefs: // > @ 0x1800eecb0 // > @ 0x18013dfb4 // > @ 0x18013dfc4 // > @ 0x18014cf68 // > @ 0x1801b9fdc // // This function is hookable on this platform (idp: pc, 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 11:21:32 +0000 // void __fastcall cocos2d::CCWaves::update(cocos2d::CCWaves *this, float a2) { int v2; // esi float v4; // xmm8_4 int v5; // edi float v6; // xmm6_4 float *v7; // rax float v8; // xmm7_4 float v9; // xmm0_4 float v10; // xmm2_4 float *v11; // rax float v12; // [rsp+20h] [rbp-B8h] BYREF float v13; // [rsp+28h] [rbp-B0h] BYREF float v14; // [rsp+30h] [rbp-A8h] BYREF float v15; // [rsp+34h] [rbp-A4h] v2 = 0; if ( (float)(*((float *)this + 24) + 1.0) > 0.0 ) { v4 = 0.0; do { v5 = 0; if ( (float)(*((float *)this + 25) + 1.0) > 0.0 ) { v6 = 0.0; do { v7 = kmVec2Fill(&v12, v4, v6); cocos2d::CCGrid3DAction::originalVertex((__int64)this, &v14, v7); v8 = v15; if ( *((_BYTE *)this + 116) ) { v9 = sinf( (float)((float)((float)*((int *)this + 26) * (float)(a2 * 3.1415927)) + (float)((float)*((int *)this + 26) * (float)(a2 * 3.1415927))) + (float)(v15 * 0.0099999998)); v10 = v14 + (float)((float)(v9 * *((float *)this + 27)) * *((float *)this + 28)); v14 = v10; } else { v10 = v14; } if ( *((_BYTE *)this + 117) ) v15 = v8 + (float)((float)(sinf( (float)((float)((float)*((int *)this + 26) * (float)(a2 * 3.1415927)) + (float)((float)*((int *)this + 26) * (float)(a2 * 3.1415927))) + (float)(v10 * 0.0099999998)) * *((float *)this + 27)) * *((float *)this + 28)); v11 = kmVec2Fill(&v13, v4, v6); cocos2d::CCGrid3DAction::setVertex( this, (const struct cocos2d::CCPoint *)v11, (const struct cocos2d::_ccVertex3F *)&v14); v6 = (float)++v5; } while ( (float)(*((float *)this + 25) + 1.0) > (float)v5 ); } v4 = (float)++v2; } while ( (float)(*((float *)this + 24) + 1.0) > (float)v2 ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source