// // cocos2d::CCTwirl::update from 0x7ba9ec to 0x7bab98 (428 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::CCTwirl::update(cocos2d::CCTwirl *this, float a2) { int v3; // r8 int result; // r0 int v6; // r9 float v7; // s19 const cocos2d::CCPoint *v8; // r1 float v9; // s16 float v10; // s16 float v11; // r0 float v12; // s24 float v13; // s25 float v14; // r0 int v15; // r3 float v16; // [sp+0h] [bp-30h] BYREF float v17; // [sp+4h] [bp-2Ch] _BYTE v18[8]; // [sp+8h] [bp-28h] BYREF float v19[2]; // [sp+10h] [bp-20h] BYREF _BYTE v20[8]; // [sp+18h] [bp-18h] BYREF float v21; // [sp+20h] [bp-10h] BYREF float v22; // [sp+24h] [bp-Ch] v3 = 0; result = cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v16, (cocos2d::CCTwirl *)((char *)this + 88)); while ( (float)v3 < (float)(*((float *)this + 20) + 1.0) ) { v6 = 0; while ( 1 ) { v7 = (float)v6; if ( (float)v6 >= (float)(*((float *)this + 21) + 1.0) ) break; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, (float)v3, (float)v6); cocos2d::CCGrid3DAction::originalVertex((cocos2d::CCGrid3DAction *)&v21, this); ++v6; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v18, (float)v3 - (float)(*((float *)this + 20) * 0.5), v7 - (float)(*((float *)this + 21) * 0.5)); v9 = COERCE_FLOAT(cocos2d::ccpLength((cocos2d *)v18, v8)); v10 = (float)(v9 * cosf( (float)((float)((float)(a2 * 3.1416) * (float)*((unsigned int *)this + 24)) + (float)((float)(a2 * 3.1416) * (float)*((unsigned int *)this + 24))) + 1.5708)) * (float)((float)(*((float *)this + 25) * 0.1) * *((float *)this + 26)); v11 = sinf(v10); v12 = v22 - v17; v13 = v11; v14 = cosf(v10); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v19, (float)(v14 * (float)(v21 - v16)) + (float)(v13 * v12), (float)(v14 * v12) - (float)(v13 * (float)(v21 - v16))); v21 = v16 + v19[0]; v22 = v17 + v19[1]; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, (float)v3, v7); result = cocos2d::CCGrid3DAction::setVertex((int)this, (int)v20, (int)&v21, v15); } ++v3; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source