//
// cocos2d::CCShuffleTiles::shuffle from 0x1007b5cf0 to 0x1007b5d3b (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::CCShuffleTiles::shuffle(cocos2d::CCShuffleTiles *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 );
}
}