//
// cocos2d::CCWaves::update from 0xd2c6b0 to 0xd2c86c (444 bytes)
//
// 2 xrefs:
// > ??> @ 0xc2800
// > ??> @ 0x1512bb8
//
// 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:17 +0000
//
__int64 __fastcall cocos2d::CCWaves::update(cocos2d::CCWaves *this, float a2)
{
float v4; // s8
int v5; // w23
float v6; // s9
float v7; // s1
float v8; // s8
int v9; // w22
float v10; // s0
float v11; // s1
int v12; // w0
int v13; // s2
_BYTE v15[8]; // [xsp+80h] [xbp+80h] BYREF
float v16; // [xsp+88h] [xbp+88h] BYREF
float v17; // [xsp+8Ch] [xbp+8Ch]
int v18; // [xsp+90h] [xbp+90h]
v4 = *((float *)this + 23);
if ( (float)(v4 + 1.0) > 0.0 )
{
v5 = 0;
v6 = 0.0;
v7 = *((float *)this + 24);
do
{
if ( (float)(v7 + 1.0) > 0.0 )
{
v8 = 0.0;
v9 = 0;
do
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, v6, v8);
cocos2d::CCGrid3DAction::originalVertex(this, (const cocos2d::CCPoint *)v15);
v12 = *((unsigned __int8 *)this + 112);
v16 = v10;
v17 = v11;
v18 = v13;
if ( v12 )
v16 = v10
+ (float)((float)(sinf(
(float)(v11 * 0.01)
+ (float)((float)((float)(a2 * 3.1416) * (float)*((unsigned int *)this + 25)) * 2.0))
* *((float *)this + 26))
* *((float *)this + 27));
if ( *((_BYTE *)this + 113) )
v17 = v17
+ (float)((float)(sinf(
(float)(v16 * 0.01)
+ (float)((float)((float)(a2 * 3.1416) * (float)*((unsigned int *)this + 25)) * 2.0))
* *((float *)this + 26))
* *((float *)this + 27));
++v9;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, v6, v8);
cocos2d::CCGrid3DAction::setVertex((__int64)this, (__int64)v15, (__int64)&v16);
v7 = *((float *)this + 24);
v8 = (float)v9;
}
while ( (float)v9 < (float)(v7 + 1.0) );
v4 = *((float *)this + 23);
}
v6 = (float)++v5;
}
while ( (float)v5 < (float)(v4 + 1.0) );
}
return _stack_chk_guard;
}