// // cocos2d::CCRipple3D::update from 0x7ba788 to 0x7ba8ba (306 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:00:15 +0000 // int __fastcall cocos2d::CCRipple3D::update(int this, float a2) { int v2; // r4 int i; // r7 int j; // r8 float v6; // s21 const cocos2d::CCPoint *v7; // r1 float v8; // r0 float v9; // s12 float v10; // s22 float v11; // r0 int v12; // r3 _BYTE v13[8]; // [sp+0h] [bp-20h] BYREF _BYTE v14[8]; // [sp+8h] [bp-18h] BYREF float v15[2]; // [sp+10h] [bp-10h] BYREF float v16; // [sp+18h] [bp-8h] v2 = this; for ( i = 0; (float)i < (float)(*(float *)(v2 + 80) + 1.0); ++i ) { for ( j = 0; ; ++j ) { v6 = (float)j; if ( (float)j >= (float)(*(float *)(v2 + 84) + 1.0) ) break; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, (float)i, (float)j); cocos2d::CCGrid3DAction::originalVertex((cocos2d::CCGrid3DAction *)v15, (const cocos2d::CCPoint *)v2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, v15[0], v15[1]); cocos2d::CCPoint::operator-(v13, v2 + 88, v14); v8 = COERCE_FLOAT(cocos2d::ccpLength((cocos2d *)v13, v7)); v9 = *(float *)(v2 + 96); if ( v8 < v9 ) { v10 = (float)(v9 - v8) / v9; v11 = sinf( (float)((float)((float)(a2 * 3.1416) * (float)*(unsigned int *)(v2 + 100)) + (float)((float)(a2 * 3.1416) * (float)*(unsigned int *)(v2 + 100))) + (float)((float)(v9 - v8) * 0.1)); v16 = v16 + (float)((float)((float)(v11 * *(float *)(v2 + 104)) * *(float *)(v2 + 108)) * (float)(v10 * v10)); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, (float)i, v6); this = cocos2d::CCGrid3DAction::setVertex(v2, (int)v14, (int)v15, v12); } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source