//
// cocos2d::CCFadeOutTRTiles::update from 0x1007b65f0 to 0x1007b6768 (376 bytes)
//
// 4 xrefs:
// > ??> @ 0x1009937c0
// > ??> @ 0x100993880
// > ??> @ 0x100993940
// > ??> @ 0x100993a00
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall cocos2d::CCFadeOutTRTiles::update(cocos2d::CCFadeOutTRTiles *a1, float a2)
{
float v2; // xmm1_4
float v3; // xmm3_4
int v4; // r12d
float v5; // xmm0_4
float v6; // xmm1_4
int v7; // r13d
float v8; // xmm0_4
float v9; // xmm1_4
_OWORD v10[3]; // [rsp+0h] [rbp-70h] BYREF
float v11[2]; // [rsp+34h] [rbp-3Ch] BYREF
float v12; // [rsp+3Ch] [rbp-34h]
float v13; // [rsp+40h] [rbp-30h]
float v14; // [rsp+44h] [rbp-2Ch]
v12 = a2;
v2 = *((float *)&a1->m_bFirstTick + 1);
if ( v2 > 0.0 )
{
v3 = *(float *)&a1[1].__vftable;
if ( v3 > 0.0 )
{
v4 = 0;
v5 = 0.0;
while ( v3 <= 0.0 )
{
LABEL_5:
v5 = (float)++v4;
if ( v2 <= (float)v4 )
return;
}
v6 = 0.0;
v7 = 1;
v13 = v5;
while ( 1 )
{
v14 = v6;
sub_10028CBF0((float *)v10, v5, v6);
v8 = ((float (__fastcall *)(cocos2d::CCFadeOutTRTiles *, _OWORD *, float))a1->testFunc)(a1, v10, v12);
if ( v8 == 0.0 )
{
sub_10028CBE0(v11, v13, v14);
memset(v10, 0, sizeof(v10));
}
else
{
v9 = v14;
if ( v8 < 1.0 )
{
v14 = v8;
sub_10028CBE0((float *)v10, v13, v9);
((void (__fastcall *)(cocos2d::CCFadeOutTRTiles *, _OWORD *, float))a1->transformTile)(a1, v10, v14);
goto LABEL_9;
}
sub_10028CBE0(v11, v13, v14);
cocos2d::CCTiledGrid3DAction::originalTile((__int64)v10, (__int64)a1, (__int64)v11);
}
cocos2d::CCTiledGrid3DAction::setTile((__int64)a1, (__int64)v11, (__int64)v10);
LABEL_9:
v6 = (float)v7;
v3 = *(float *)&a1[1].__vftable;
++v7;
v5 = v13;
if ( v3 <= v6 )
{
v2 = *((float *)&a1->m_bFirstTick + 1);
goto LABEL_5;
}
}
}
}
}