//
// cocos2d::CCWaves3D::update from 0x5b36f4 to 0x5b37f4 (256 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void cocos2d::CCWaves3D::update(cocos2d::CCWaves3D *a1, float a2)
{
int i; // r7
int v5; // r8
float v6; // s18
float v7; // s15
float v8; // r0
cocos2d::CCPoint v9; // [sp+0h] [bp-1Ch] BYREF
cocos2d::ccVertex3F v10; // [sp+8h] [bp-14h] BYREF
for ( i = 0; (float)i < (float)(*(float *)&a1[1].__vftable + 1.0); ++i )
{
v5 = 0;
while ( 1 )
{
v6 = (float)v5;
if ( (float)v5 >= (float)(*(float *)&a1[1].m_uID + 1.0) )
break;
cocos2d::CCPoint::CCPoint(&v9, (float)i, (float)v5);
cocos2d::CCGrid3DAction::originalVertex(&v10, a1, &v9);
++v5;
v7 = (float)(a2 * 3.1416) * (float)(unsigned int)a1[1].m_nLuaID;
v8 = sinf((float)(v7 + v7) + (float)((float)(v10.y + v10.x) * 0.01));
v10.z = v10.z
+ (float)((float)(v8
* *(float *)&a1[1].cocos2d::CCGrid3DAction::cocos2d::CCGridAction::cocos2d::CCActionInterval::cocos2d::CCFiniteTimeAction::cocos2d::CCAction::cocos2d::CCObject::m_nTag)
* *(float *)&a1[1].m_uReference);
cocos2d::CCPoint::CCPoint(&v9, (float)i, v6);
cocos2d::CCGrid3DAction::setVertex(a1, &v9, &v10);
}
}
}