//
// cocos2d::CCTurnOffTiles::shuffle from 0xd3b394 to 0xd3b3f0 (92 bytes)
//
// 2 xrefs:
// > cocos2d::CCTurnOffTiles::startWithTarget @ 0xd3b46c
// > ??> @ 0xc0d30
//
// This function is hookable on this platform (idp: arm, 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 13:07:26 +0000
//
void __fastcall cocos2d::CCTurnOffTiles::shuffle(cocos2d::CCTurnOffTiles *this, unsigned int *a2, int a3)
{
int v3; // w19
unsigned int *v5; // x20
int v6; // w0
int v7; // w2
unsigned int v8; // w1
int v9; // w0
v3 = a3 - 1;
if ( 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 );
}
}