//
// cocos2d::CCWavesTiles3D::update from 0x18003d3b0 to 0x18003d56d (445 bytes)
//
// 5 xrefs:
// > ??> @ 0x1800f0750
// > ??> @ 0x18013f8e4
// > ??> @ 0x18013f8f4
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bb1dc
//
// 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::CCWavesTiles3D::update(cocos2d::CCWavesTiles3D *this, float a2)
{
int v2; // edi
float v5; // xmm1_4
float v6; // xmm7_4
int v7; // esi
float v8; // xmm8_4
float *v9; // rax
float *v10; // rax
float v11; // [rsp+20h] [rbp-C8h] BYREF
float v12; // [rsp+28h] [rbp-C0h] BYREF
__int128 v13; // [rsp+30h] [rbp-B8h] BYREF
int v14; // [rsp+44h] [rbp-A4h]
int v15; // [rsp+50h] [rbp-98h]
int v16; // [rsp+5Ch] [rbp-8Ch]
v2 = 0;
if ( *((float *)this + 24) > 0.0 )
{
v5 = *((float *)this + 25);
v6 = 0.0;
do
{
v7 = 0;
if ( v5 > 0.0 )
{
v8 = 0.0;
do
{
v9 = kmVec2Fill(&v11, v6, v8);
cocos2d::CCTiledGrid3DAction::originalTile((__int64)this, &v13, v9);
*((float *)&v13 + 2) = (float)(sinf(
(float)((float)(*(float *)&v13 + *((float *)&v13 + 1)) * 0.0099999998)
+ (float)((float)((float)*((int *)this + 26) * (float)(a2 * 3.1415927))
+ (float)((float)*((int *)this + 26) * (float)(a2 * 3.1415927))))
* *((float *)this + 27))
* *((float *)this + 28);
v14 = DWORD2(v13);
v15 = DWORD2(v13);
v16 = DWORD2(v13);
v10 = kmVec2Fill(&v12, v6, v8);
cocos2d::CCTiledGrid3DAction::setTile(
this,
(const struct cocos2d::CCPoint *)v10,
(const struct cocos2d::_ccQuad3 *)&v13);
v5 = *((float *)this + 25);
v8 = (float)++v7;
}
while ( v5 > (float)v7 );
}
v6 = (float)++v2;
}
while ( *((float *)this + 24) > (float)v2 );
}
}