//
// cocos2d::CCFadeOutTRTiles::update from 0x18003bcb0 to 0x18003be7a (458 bytes)
//
// 8 xrefs:
// > ??> @ 0x1800ea400
// > ??> @ 0x1800ea498
// > ??> @ 0x1800ea530
// > ??> @ 0x1800ea5c8
// > ??> @ 0x1801367a8
// > ??> @ 0x1801367b8
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b0f90
//
// 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 *this, float a2)
{
int v2; // ebp
float v4; // xmm8_4
int v5; // esi
float v6; // xmm6_4
cocos2d::CCFadeOutTRTiles_vtbl *v7; // rbx
float *v8; // rax
double v9; // xmm0_8
float *v10; // rax
const struct cocos2d::_ccQuad3 *v11; // r8
const struct cocos2d::CCPoint *v12; // rdx
cocos2d::CCFadeOutTRTiles_vtbl *v13; // rbx
float *v14; // rax
float *v15; // rbx
float v16; // [rsp+20h] [rbp-D8h] BYREF
float v17; // [rsp+28h] [rbp-D0h] BYREF
float v18; // [rsp+30h] [rbp-C8h] BYREF
float v19; // [rsp+38h] [rbp-C0h] BYREF
_OWORD v20[3]; // [rsp+40h] [rbp-B8h] BYREF
v2 = 0;
if ( *((float *)this + 24) > 0.0 )
{
v4 = 0.0;
while ( 1 )
{
v5 = 0;
if ( *((float *)this + 25) > 0.0 )
break;
LABEL_12:
v4 = (float)++v2;
if ( *((float *)this + 24) <= (float)v2 )
return;
}
v6 = 0.0;
while ( 1 )
{
v7 = this->__vftable;
v8 = kmVec2Fill(&v16, v4, v6);
v9 = ((double (__fastcall *)(cocos2d::CCFadeOutTRTiles *, float *))v7->testFunc)(this, v8);
if ( *(float *)&v9 == 0.0 )
break;
if ( *(float *)&v9 >= 1.0 )
{
v15 = kmVec2Fill(&v19, v4, v6);
v11 = (const struct cocos2d::_ccQuad3 *)cocos2d::CCTiledGrid3DAction::originalTile((__int64)this, v20, v15);
v12 = (const struct cocos2d::CCPoint *)v15;
goto LABEL_10;
}
v13 = this->__vftable;
v14 = kmVec2Fill(&v18, v4, v6);
((void (__fastcall *)(cocos2d::CCFadeOutTRTiles *, float *))v13->transformTile)(this, v14);
LABEL_11:
v6 = (float)++v5;
if ( *((float *)this + 25) <= (float)v5 )
goto LABEL_12;
}
v10 = kmVec2Fill(&v17, v4, v6);
v11 = (const struct cocos2d::_ccQuad3 *)v20;
memset(v20, 0, sizeof(v20));
v12 = (const struct cocos2d::CCPoint *)v10;
LABEL_10:
cocos2d::CCTiledGrid3DAction::setTile(this, v12, v11);
goto LABEL_11;
}
}