//
// cocos2d::CCFadeOutTRTiles::update from 0x7c2570 to 0x7c2664 (244 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::CCFadeOutTRTiles::update(int this, float a2)
{
float *v2; // r4
int i; // r7
int j; // r8
int (__fastcall *v6)(float *, _BYTE *, _DWORD); // r10
float v7; // r0
float v8; // s18
int (__fastcall *v9)(float *, _BYTE *, _DWORD); // r10
_BYTE v10[8]; // [sp+4h] [bp-Ch] BYREF
v2 = (float *)this;
for ( i = 0; (float)i < v2[20]; ++i )
{
for ( j = 0; (float)j < v2[21]; ++j )
{
v6 = *(int (__fastcall **)(float *, _BYTE *, _DWORD))(*(_DWORD *)v2 + 68);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v10, (float)i, (float)j);
v7 = COERCE_FLOAT(v6(v2, v10, LODWORD(a2)));
v8 = v7;
if ( v7 == 0.0 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, (float)i, (float)j);
this = cocos2d::CCFadeOutTRTiles::turnOffTile((cocos2d::CCFadeOutTRTiles *)v2, (const cocos2d::CCPoint *)v10);
}
else if ( v7 >= 1.0 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, (float)i, (float)j);
this = cocos2d::CCFadeOutTRTiles::turnOnTile((cocos2d::CCFadeOutTRTiles *)v2, (const cocos2d::CCPoint *)v10);
}
else
{
v9 = *(int (__fastcall **)(float *, _BYTE *, _DWORD))(*(_DWORD *)v2 + 72);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, (float)i, (float)j);
this = v9(v2, v10, LODWORD(v8));
}
}
}
return this;
}