//
// cocos2d::CCWaves::update from 0x7ba160 to 0x7ba2a4 (324 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:14 +0000
//
int __fastcall cocos2d::CCWaves::update(int this, float a2)
{
int v2; // r4
int i; // r7
int j; // r8
float v6; // s21
float v7; // s15
float v8; // r0
float v9; // s15
float v10; // r0
int v11; // r3
_BYTE v12[8]; // [sp+0h] [bp-1Ch] BYREF
float v13; // [sp+8h] [bp-14h] BYREF
float v14; // [sp+Ch] [bp-10h]
v2 = this;
for ( i = 0; (float)i < (float)(*(float *)(v2 + 80) + 1.0); ++i )
{
for ( j = 0; ; ++j )
{
v6 = (float)j;
if ( (float)j >= (float)(*(float *)(v2 + 84) + 1.0) )
break;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, (float)i, (float)j);
cocos2d::CCGrid3DAction::originalVertex((cocos2d::CCGrid3DAction *)&v13, (const cocos2d::CCPoint *)v2);
if ( *(_BYTE *)(v2 + 100) )
{
v7 = (float)(a2 * 3.1416) * (float)*(unsigned int *)(v2 + 88);
v8 = sinf((float)(v7 + v7) + (float)(v14 * 0.01));
v13 = v13 + (float)((float)(v8 * *(float *)(v2 + 92)) * *(float *)(v2 + 96));
}
if ( *(_BYTE *)(v2 + 101) )
{
v9 = (float)(a2 * 3.1416) * (float)*(unsigned int *)(v2 + 88);
v10 = sinf((float)(v9 + v9) + (float)(v13 * 0.01));
v14 = v14 + (float)((float)(v10 * *(float *)(v2 + 92)) * *(float *)(v2 + 96));
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, (float)i, v6);
this = cocos2d::CCGrid3DAction::setVertex(v2, (int)v12, (int)&v13, v11);
}
}
return this;
}