//
// cocos2d::CCTurnOffTiles::update from 0x7c28e8 to 0x7c2990 (168 bytes)
//
// 0 xrefs:
//
// 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
//
int __fastcall cocos2d::CCTurnOffTiles::update(int this, float a2)
{
int v2; // r5
unsigned int v3; // r6
unsigned int v4; // r4
unsigned int v5; // s14
_BYTE v6[8]; // [sp+4h] [bp-Ch] BYREF
v2 = this;
v3 = 0;
v4 = (unsigned int)(float)(a2 * (float)*(unsigned int *)(this + 92));
while ( v3 < *(_DWORD *)(v2 + 92) )
{
v5 = *(_DWORD *)(*(_DWORD *)(v2 + 96) + 4 * v3);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v6,
(float)(unsigned int)(float)((float)v5 / *(float *)(v2 + 84)),
(float)(v5 % (unsigned int)*(float *)(v2 + 84)));
if ( v3 >= v4 )
this = cocos2d::CCTurnOffTiles::turnOnTile((cocos2d::CCTurnOffTiles *)v2, (const cocos2d::CCPoint *)v6);
else
this = cocos2d::CCTurnOffTiles::turnOffTile((cocos2d::CCTurnOffTiles *)v2, (const cocos2d::CCPoint *)v6);
++v3;
}
return this;
}