//
// cocos2d::CCWaves3D::update from 0x7b9f3c to 0x7ba03c (256 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::CCWaves3D::update(int this, float a2)
{
int v2; // r4
int i; // r7
int v5; // r8
float v6; // s18
float v7; // s15
float v8; // r0
int v9; // r3
_BYTE v10[8]; // [sp+0h] [bp-1Ch] BYREF
float v11[2]; // [sp+8h] [bp-14h] BYREF
float v12; // [sp+10h] [bp-Ch]
v2 = this;
for ( i = 0; (float)i < (float)(*(float *)(v2 + 80) + 1.0); ++i )
{
v5 = 0;
while ( 1 )
{
v6 = (float)v5;
if ( (float)v5 >= (float)(*(float *)(v2 + 84) + 1.0) )
break;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, (float)i, (float)v5);
cocos2d::CCGrid3DAction::originalVertex((cocos2d::CCGrid3DAction *)v11, (const cocos2d::CCPoint *)v2);
++v5;
v7 = (float)(a2 * 3.1416) * (float)*(unsigned int *)(v2 + 88);
v8 = sinf((float)(v7 + v7) + (float)((float)(v11[1] + v11[0]) * 0.01));
v12 = v12 + (float)((float)(v8 * *(float *)(v2 + 92)) * *(float *)(v2 + 96));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, (float)i, v6);
this = cocos2d::CCGrid3DAction::setVertex(v2, (int)v10, (int)v11, v9);
}
}
return this;
}