// // cocos2d::CCTurnOffTiles::shuffle from 0x1007b7060 to 0x1007b70ab (75 bytes) // // 0 xrefs: // // 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 __fastcall cocos2d::CCTurnOffTiles::shuffle(cocos2d::CCTurnOffTiles *a1, unsigned int *a2, unsigned int a3) { signed int v3; // ebx __int64 v4; // r15 int v5; // eax __int64 v6; // rdx unsigned int v7; // eax if ( (int)(a3 - 1) >= 0 ) { v3 = a3; v4 = a3 - 1; do { v5 = rand(); v6 = (unsigned int)(v5 >> 31); LODWORD(v6) = v5 % v3; v7 = a2[v4]; a2[v4] = a2[v6]; a2[v6] = v7; --v3; } while ( v4-- != 0 ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source