// // cocos2d::CCShuffleTiles::startWithTarget from 0xac89c0 to 0xac8b90 (464 bytes) // // 2 xrefs: // > @ 0x30f18 // > @ 0x11ff468 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void cocos2d::CCShuffleTiles::startWithTarget(cocos2d::CCShuffleTiles *a1, cocos2d::CCNode *a2) { unsigned int v3; // w0 float v4; // s0 __int64 v5; // x0 unsigned int m_uID; // w2 unsigned int *v7; // x1 unsigned int i; // w0 __int64 v9; // x23 __int64 v10; // x21 __int64 v11; // x20 cocos2d::CCPoint *v12; // x19 cocos2d::CCSize *v13; // x0 float v14; // s1 float v15; // s9 int v16; // w24 float v17; // s0 int v18; // w21 float v19; // s8 float v20; // s0 float v21; // s1 float v22; // s0 float v23; // s1 __int64 v24; // x0 cocos2d::CCSize v25; // [xsp+68h] [xbp+68h] BYREF cocos2d::CCPoint v26; // [xsp+70h] [xbp+70h] BYREF cocos2d::CCGridAction::startWithTarget(a1, a2); v3 = HIDWORD(a1[1].__vftable); if ( v3 != -1 ) srand(v3); v4 = *((float *)&a1->m_bFirstTick + 1) * *(float *)&a1[1].__vftable; a1[1].m_uID = (unsigned int)v4; v5 = operator new[](4LL * (unsigned int)v4); *(_QWORD *)&a1[1].cocos2d::CCTiledGrid3DAction::cocos2d::CCGridAction::cocos2d::CCActionInterval::cocos2d::CCFiniteTimeAction::cocos2d::CCAction::cocos2d::CCObject::m_nTag = v5; m_uID = a1[1].m_uID; v7 = (unsigned int *)v5; if ( m_uID ) { for ( i = 0; i < m_uID; ++i ) { v7[i] = i; m_uID = a1[1].m_uID; } } cocos2d::CCShuffleTiles::shuffle(a1, v7, m_uID); v9 = a1[1].m_uID; v10 = v9 - 1; v11 = operator new[](24 * v9); v12 = (cocos2d::CCPoint *)v11; if ( v9 ) { do { --v10; cocos2d::CCPoint::CCPoint(v12); cocos2d::CCPoint::CCPoint(v12 + 1); v13 = (cocos2d::CCSize *)&v12[2]; v12 += 3; cocos2d::CCSize::CCSize(v13); } while ( v10 != -1 ); } v14 = *((float *)&a1->m_bFirstTick + 1); *(_QWORD *)&a1[1].m_uAutoReleaseCount = v11; if ( v14 > 0.0 ) { v15 = 0.0; v16 = 0; v17 = *(float *)&a1[1].__vftable; do { v18 = 0; v19 = 0.0; if ( v17 > 0.0 ) { do { ++v18; cocos2d::CCPoint::CCPoint(&v26, v15, v19); cocos2d::CCPoint::operator=(v11, v20, v21); cocos2d::CCPoint::CCPoint(&v26, v15, v19); cocos2d::CCPoint::operator=(v11 + 8, v22, v23); cocos2d::CCSize::CCSize(&v25, v15, v19); cocos2d::CCShuffleTiles::getDelta(a1, &v25); v24 = v11 + 16; v11 += 24; cocos2d::CCSize::operator=(v24); v19 = (float)v18; v17 = *(float *)&a1[1].__vftable; } while ( (float)v18 < v17 ); v14 = *((float *)&a1->m_bFirstTick + 1); } v15 = (float)++v16; } while ( (float)v16 < v14 ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source