//
// cocos2d::CCShuffleTiles::shuffle from 0x7c20c8 to 0x7c20f6 (46 bytes)
//
// 1 xrefs:
// > cocos2d::CCShuffleTiles::startWithTarget @ 0x7c2210
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:21 +0000
//
void __fastcall cocos2d::CCShuffleTiles::shuffle(cocos2d::CCShuffleTiles *this, unsigned int *a2, unsigned int a3)
{
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;
}
}