//
// cocos2d::CCTurnOffTiles::update from 0xd3b538 to 0xd3b618 (224 bytes)
//
// 2 xrefs:
// > ??> @ 0xeafd0
// > ??> @ 0x15150a8
//
// 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
//
__int64 __fastcall cocos2d::CCTurnOffTiles::update(cocos2d::CCTurnOffTiles *this, float a2)
{
unsigned int v3; // w0
unsigned int v4; // w22
unsigned int v5; // w19
unsigned int v6; // w1
_BYTE v8[8]; // [xsp+40h] [xbp+40h] BYREF
v3 = *((_DWORD *)this + 26);
v4 = (unsigned int)(float)((float)v3 * a2);
if ( v3 )
{
v5 = 0;
do
{
while ( 1 )
{
v6 = *(_DWORD *)(*((_QWORD *)this + 14) + 4LL * v5);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v8,
(float)(unsigned int)(float)((float)v6 / *((float *)this + 24)),
(float)(v6 % (unsigned int)*((float *)this + 24)));
if ( v4 <= v5 )
break;
cocos2d::CCTurnOffTiles::turnOffTile(this, (const cocos2d::CCPoint *)v8);
if ( *((_DWORD *)this + 26) <= ++v5 )
return _stack_chk_guard;
}
cocos2d::CCTurnOffTiles::turnOnTile(this, (const cocos2d::CCPoint *)v8);
++v5;
}
while ( *((_DWORD *)this + 26) > v5 );
}
return _stack_chk_guard;
}