// // cocos2d::CCTwirl::update from 0xd2d200 to 0xd2d424 (548 bytes) // // 2 xrefs: // > @ 0x576b8 // > @ 0x1512c58 // // 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:18 +0000 // __int64 __fastcall cocos2d::CCTwirl::update(cocos2d::CCTwirl *this, float a2) { float v4; // s1 float v5; // s8 int v6; // w24 float v7; // s2 float v8; // s11 int v9; // w27 float v10; // s5 float v11; // s3 float v12; // s0 float v13; // s1 int v14; // s2 const cocos2d::CCPoint *v15; // x1 float v16; // s0 float v17; // s12 float v18; // s13 float v19; // s0 float v20; // s12 float v21; // s0 float v23; // [xsp+A8h] [xbp+A8h] BYREF float v24; // [xsp+ACh] [xbp+ACh] _BYTE v25[8]; // [xsp+B0h] [xbp+B0h] BYREF float v26[2]; // [xsp+B8h] [xbp+B8h] BYREF _BYTE v27[8]; // [xsp+C0h] [xbp+C0h] BYREF float v28; // [xsp+C8h] [xbp+C8h] BYREF float v29; // [xsp+CCh] [xbp+CCh] int v30; // [xsp+D0h] [xbp+D0h] cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v23, (cocos2d::CCTwirl *)((char *)this + 100)); v4 = *((float *)this + 23); if ( (float)(v4 + 1.0) > 0.0 ) { v5 = 0.0; v6 = 0; v7 = *((float *)this + 24); do { if ( (float)(v7 + 1.0) > 0.0 ) { v8 = 0.0; v9 = 0; do { ++v9; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, v5, v8); cocos2d::CCGrid3DAction::originalVertex(this, (const cocos2d::CCPoint *)v27); v10 = *((float *)this + 23); v11 = *((float *)this + 24); v28 = v12; v29 = v13; v30 = v14; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, v5 - (float)(v10 * 0.5), v8 - (float)(v11 * 0.5)); cocos2d::ccpLength((cocos2d *)v25, v15); v17 = (float)(cosf((float)((float)((float)(a2 * 3.1416) * (float)*((unsigned int *)this + 27)) * 2.0) + 1.5708) * v16) * (float)((float)(*((float *)this + 28) * 0.1) * *((float *)this + 29)); v18 = sinf(v17); v19 = v17; v20 = v29 - v24; v21 = cosf(v19); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v26, (float)(v21 * (float)(v28 - v23)) + (float)(v18 * v20), -(float)((float)(v18 * (float)(v28 - v23)) - (float)(v20 * v21))); v29 = v24 + v26[1]; v28 = v23 + v26[0]; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, v5, v8); cocos2d::CCGrid3DAction::setVertex((__int64)this, (__int64)v27, (__int64)&v28); v7 = *((float *)this + 24); v8 = (float)v9; } while ( (float)v9 < (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