//
// cocos2d::CCTurnOffTiles::startWithTarget from 0xd3b3f0 to 0xd3b478 (136 bytes)
//
// 2 xrefs:
// > ??> @ 0x910c0
// > ??> @ 0x15150d8
//
// 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::startWithTarget(cocos2d::CCTurnOffTiles *this, cocos2d::CCNode *a2)
{
unsigned int v3; // w0
float v4; // s0
__int64 v5; // x0
unsigned int v6; // w2
unsigned int v7; // w3
unsigned int *v8; // x1
cocos2d::CCGridAction::startWithTarget(this, a2);
v3 = *((_DWORD *)this + 25);
if ( v3 != -1 )
srand(v3);
v4 = *((float *)this + 23) * *((float *)this + 24);
*((_DWORD *)this + 26) = (unsigned int)v4;
v5 = operator new[](4LL * (unsigned int)v4);
*((_QWORD *)this + 14) = v5;
v6 = *((_DWORD *)this + 26);
if ( v6 )
{
v7 = 0;
while ( 1 )
{
*(_DWORD *)(v5 + 4LL * v7) = v7;
++v7;
v6 = *((_DWORD *)this + 26);
if ( v6 <= v7 )
break;
v5 = *((_QWORD *)this + 14);
}
v8 = *((unsigned int **)this + 14);
}
else
{
v8 = (unsigned int *)v5;
}
cocos2d::CCTurnOffTiles::shuffle(this, v8, v6);
}