// // cocos2d::CCWaves3D::update from 0x18002eb70 to 0x18002ed3e (462 bytes) // // 5 xrefs: // > @ 0x1800ee8d8 // > @ 0x18013da60 // > @ 0x18013da70 // > @ 0x18014cf68 // > @ 0x1801b9fb8 // // 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::CCWaves3D::update(cocos2d::CCWaves3D *this, float a2) { int v2; // edi float v5; // xmm1_4 float v6; // xmm7_4 int v7; // esi float v8; // xmm9_4 float *v9; // rax float v10; // xmm0_4 float *v11; // rax float v12; // [rsp+20h] [rbp-B8h] BYREF float v13; // [rsp+28h] [rbp-B0h] BYREF float v14[2]; // [rsp+30h] [rbp-A8h] BYREF float v15; // [rsp+38h] [rbp-A0h] v2 = 0; if ( (float)(*((float *)this + 24) + 1.0) > 0.0 ) { v5 = *((float *)this + 25) + 1.0; v6 = 0.0; do { v7 = 0; if ( v5 > 0.0 ) { v8 = 0.0; do { v9 = kmVec2Fill(&v12, v6, v8); cocos2d::CCGrid3DAction::originalVertex((__int64)this, v14, v9); v10 = sinf( (float)((float)(v14[0] + v14[1]) * 0.0099999998) + (float)((float)((float)*((int *)this + 26) * (float)(a2 * 3.1415927)) + (float)((float)*((int *)this + 26) * (float)(a2 * 3.1415927)))); v15 = v15 + (float)((float)(v10 * *((float *)this + 27)) * *((float *)this + 28)); v11 = kmVec2Fill(&v13, v6, v8); cocos2d::CCGrid3DAction::setVertex( this, (const struct cocos2d::CCPoint *)v11, (const struct cocos2d::_ccVertex3F *)v14); ++v7; v5 = *((float *)this + 25) + 1.0; v8 = (float)v7; } while ( v5 > (float)v7 ); } v6 = (float)++v2; } while ( (float)(*((float *)this + 24) + 1.0) > (float)v2 ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source