//
// cocos2d::CCShuffleTiles::shuffle from 0x5bb808 to 0x5bb836 (46 bytes)
//
// 1 xrefs:
// > cocos2d::CCShuffleTiles::startWithTarget @ 0x5bb952
//
// 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)
{
signed int v3; // r5
unsigned int *v4; // r4
int v6; // r1
unsigned int v7; // r7
v3 = a3 - 1;
v4 = &a2[a3];
while ( v3 >= 0 )
{
v6 = rand() % (v3 + 1);
v7 = *(v4 - 1);
--v3;
*--v4 = a2[v6];
a2[v6] = v7;
}
}