//
// cocos2d::CCTurnOffTiles::shuffle from 0xac947c to 0xac94d8 (92 bytes)
//
// 2 xrefs:
// > cocos2d::CCTurnOffTiles::startWithTarget @ 0xac954c
// > ??> @ 0x91db8
//
// 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::CCTurnOffTiles::shuffle(cocos2d::CCTurnOffTiles *a1, unsigned int *a2, unsigned int a3)
{
unsigned int v3; // w19
unsigned int *v5; // x20
int v6; // w0
signed int v7; // w2
unsigned int v8; // w1
int v9; // w0
v3 = a3 - 1;
if ( (int)(a3 - 1) >= 0 )
{
v5 = &a2[v3];
do
{
v6 = rand();
v7 = v3 + 1;
v8 = *v5;
--v3;
v9 = v6 % v7;
*v5-- = a2[v9];
a2[v9] = v8;
}
while ( v3 != -1 );
}
}