//
// cocos2d::CCFadeOutTRTiles::update from 0x18003c3e0 to 0x18003c5a6 (454 bytes)
//
// 8 xrefs:
// > ??> @ 0x1800f0460
// > ??> @ 0x1800f04f8
// > ??> @ 0x1800f0590
// > ??> @ 0x1800f0628
// > ??> @ 0x18013f7ac
// > ??> @ 0x18013f7bc
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bb0bc
//
// 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 11:21:37 +0000
//
void __fastcall cocos2d::CCFadeOutTRTiles::update(cocos2d::CCFadeOutTRTiles *this, float a2)
{
int v2; // ebp
float v4; // xmm7_4
int v5; // esi
float v6; // xmm6_4
__int64 v7; // rbx
float *v8; // rax
double v9; // xmm0_8
float *v10; // rax
const struct cocos2d::_ccQuad3 *v11; // r8
const struct cocos2d::CCPoint *v12; // rdx
__int64 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 = *(_QWORD *)this;
v8 = kmVec2Fill(&v16, v4, v6);
v9 = (*(double (__fastcall **)(cocos2d::CCFadeOutTRTiles *, float *))(v7 + 128))(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 = *(_QWORD *)this;
v14 = kmVec2Fill(&v18, v4, v6);
(*(void (__fastcall **)(cocos2d::CCFadeOutTRTiles *, float *))(v13 + 136))(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;
}
}