//
// cocos2d::CCFadeOutTRTiles::update from 0xd3ae58 to 0xd3afd0 (376 bytes)
//
// 5 xrefs:
// > ??> @ 0xd6f78
// > ??> @ 0x1514de8
// > ??> @ 0x1514e98
// > ??> @ 0x1514f48
// > ??> @ 0x1514ff8
//
// 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:25 +0000
//
__int64 __fastcall cocos2d::CCFadeOutTRTiles::update(cocos2d::CCFadeOutTRTiles *this, float a2)
{
float v3; // s1
float v5; // s10
int v6; // w23
float v7; // s0
int v8; // w21
float v9; // s8
float (__fastcall *v10)(cocos2d::CCFadeOutTRTiles *, _BYTE *, float); // x22
float v11; // s9
void (__fastcall *v13)(cocos2d::CCFadeOutTRTiles *, _BYTE *, float); // x22
_BYTE v14[8]; // [xsp+70h] [xbp+70h] BYREF
v3 = *((float *)this + 23);
if ( v3 > 0.0 )
{
v5 = 0.0;
v6 = 0;
v7 = *((float *)this + 24);
do
{
v8 = 0;
v9 = 0.0;
if ( v7 > 0.0 )
{
do
{
while ( 1 )
{
v10 = *(float (__fastcall **)(cocos2d::CCFadeOutTRTiles *, _BYTE *, float))(*(_QWORD *)this + 136LL);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v14, v5, v9);
v11 = v10(this, v14, a2);
if ( v11 != 0.0 )
break;
++v8;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, v5, v9);
cocos2d::CCFadeOutTRTiles::turnOffTile(this, (const cocos2d::CCPoint *)v14);
v9 = (float)v8;
v7 = *((float *)this + 24);
if ( (float)v8 >= v7 )
goto LABEL_10;
}
if ( v11 < 1.0 )
{
v13 = *(void (__fastcall **)(cocos2d::CCFadeOutTRTiles *, _BYTE *, float))(*(_QWORD *)this + 144LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, v5, v9);
v13(this, v14, v11);
}
else
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, v5, v9);
cocos2d::CCFadeOutTRTiles::turnOnTile(this, (const cocos2d::CCPoint *)v14);
}
++v8;
v7 = *((float *)this + 24);
v9 = (float)v8;
}
while ( (float)v8 < v7 );
LABEL_10:
v3 = *((float *)this + 23);
}
v5 = (float)++v6;
}
while ( (float)v6 < v3 );
}
return _stack_chk_guard;
}