//
// cocos2d::CCShuffleTiles::shuffle from 0xac88ac to 0xac8908 (92 bytes)
//
// 2 xrefs:
// > cocos2d::CCShuffleTiles::startWithTarget @ 0xac8a4c
// > ??> @ 0x2ede8
//
// 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::shuffle(cocos2d::CCShuffleTiles *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 );
}
}