//
// cocos2d::CCWavesTiles3D::update from 0xd39e48 to 0xd39fa4 (348 bytes)
//
// 2 xrefs:
// > ??> @ 0x42dc0
// > ??> @ 0x1515148
//
// 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::CCWavesTiles3D::update(cocos2d::CCWavesTiles3D *this, float a2)
{
float v4; // s1
float v5; // s8
int v6; // w22
float v7; // s0
int v8; // w24
float v9; // s13
_BYTE v11[8]; // [xsp+70h] [xbp+70h] BYREF
float v12[2]; // [xsp+78h] [xbp+78h] BYREF
float v13; // [xsp+80h] [xbp+80h]
float v14; // [xsp+8Ch] [xbp+8Ch]
float v15; // [xsp+98h] [xbp+98h]
float v16; // [xsp+A4h] [xbp+A4h]
v4 = *((float *)this + 23);
if ( v4 > 0.0 )
{
v5 = 0.0;
v6 = 0;
v7 = *((float *)this + 24);
do
{
v8 = 0;
v9 = 0.0;
if ( v7 > 0.0 )
{
do
{
++v8;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, v5, v9);
cocos2d::CCTiledGrid3DAction::originalTile(this, (const cocos2d::CCPoint *)v11, (__int64)v12);
v13 = (float)(sinf(
(float)((float)(v12[1] + v12[0]) * 0.01)
+ (float)((float)((float)(a2 * 3.1416) * (float)*((unsigned int *)this + 25)) * 2.0))
* *((float *)this + 26))
* *((float *)this + 27);
v14 = v13;
v15 = v13;
v16 = v13;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, v5, v9);
cocos2d::CCTiledGrid3DAction::setTile((__int64)this, (__int64)v11, (__int64)v12);
v9 = (float)v8;
v7 = *((float *)this + 24);
}
while ( (float)v8 < v7 );
v4 = *((float *)this + 23);
}
v5 = (float)++v6;
}
while ( (float)v6 < v4 );
}
return _stack_chk_guard;
}