//
// cocos2d::CCTurnOffTiles::shuffle from 0x18003bb10 to 0x18003bb5f (79 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bb02c
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:21:37 +0000
//
// Alternative name is '?shuffle@CCShuffleTiles@cocos2d@@QEAAXPEAII@Z'
void __fastcall cocos2d::CCTurnOffTiles::shuffle(cocos2d::CCTurnOffTiles *this, unsigned int *a2, int a3)
{
int v3; // ebx
__int64 i; // rdi
unsigned int v6; // edx
__int64 v7; // rcx
unsigned int v8; // edx
v3 = a3;
for ( i = a3 - 1; i >= 0; a2[v7] = v8 )
{
v6 = rand() % v3--;
v7 = v6;
v8 = a2[i];
a2[i--] = a2[v7];
}
}