//
// cocos2d::CCTurnOffTiles::update from 0x10089c750 to 0x10089c81d (205 bytes)
//
// 1 xrefs:
// > ??> @ 0x100ba8e68
//
// This function is hookable on this platform (idp: pc, 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 12:37:09 +0000
//
unsigned __int64 __fastcall cocos2d::CCTurnOffTiles::update(__int64 a1, float a2)
{
unsigned __int64 result; // rax
unsigned __int64 v3; // r12
unsigned __int64 i; // r13
_BYTE v5[48]; // [rsp-68h] [rbp-68h] BYREF
float v6[14]; // [rsp-38h] [rbp-38h] BYREF
result = *(unsigned int *)(a1 + 104);
if ( (_DWORD)result )
{
v3 = (unsigned int)(int)(float)((float)(int)result * a2);
for ( i = 0; i < result; ++i )
{
sub_100278250(
v6,
(float)(int)(float)((float)*(int *)(*(_QWORD *)(a1 + 112) + 4 * i) / *(float *)(a1 + 96)),
(float)(int)(*(_DWORD *)(*(_QWORD *)(a1 + 112) + 4 * i) % (unsigned int)(int)*(float *)(a1 + 96)));
if ( i < v3 )
memset(v5, 0, sizeof(v5));
else
cocos2d::CCTiledGrid3DAction::originalTile((__int64)v5, a1, (__int64)v6);
cocos2d::CCTiledGrid3DAction::setTile(a1, (__int64)v6, (__int64)v5);
result = *(unsigned int *)(a1 + 104);
}
}
return result;
}